eta_comp.js 1.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096
  1. import { ref as Le, reactive as k0, nextTick as gs, openBlock as Je, createElementBlock as qe, normalizeStyle as hr, createElementVNode as cr, toDisplayString as yn, unref as A0, createCommentVNode as Jn, createTextVNode as Xp, Fragment as el, renderList as il, normalizeClass as T0, defineCustomElement as Gp } from "vue";
  2. const ms = {
  3. //图表配置
  4. chart: {
  5. spacingTop: 30,
  6. backgroundColor: "rgba(0,0,0,0)"
  7. },
  8. title: {
  9. enabled: !1
  10. },
  11. exporting: {
  12. enabled: !1
  13. },
  14. boost: {
  15. useGPUTranslations: !0
  16. },
  17. //默认颜色配置
  18. colors: [
  19. "#00f",
  20. "#f00",
  21. "#999",
  22. "#000",
  23. "#7cb5ec",
  24. "#90ed7d",
  25. "#f7a35c",
  26. "#8085e9",
  27. "#f15c80",
  28. "#e4d354",
  29. "#2b908f",
  30. "#f45b5b",
  31. "#91e8e1"
  32. ],
  33. //版权信息
  34. credits: { enabled: !1 },
  35. //数据列通用配置
  36. plotOptions: {
  37. series: {
  38. turboThreshold: 0,
  39. //不限制数据点个数
  40. boostThreshold: 0,
  41. dataGrouping: {
  42. enabled: !1
  43. },
  44. //取消数据大自动数据合并
  45. animation: {
  46. duration: 1e3
  47. }
  48. },
  49. areaspline: {
  50. lineWidth: 1,
  51. stacking: "normal",
  52. marker: {
  53. enabled: !1
  54. }
  55. // fillOpacity: 0.5,
  56. },
  57. column: {
  58. pointPadding: 0.05,
  59. stacking: "normal"
  60. },
  61. scatter: {
  62. turboThreshold: 0,
  63. marker: {
  64. symbol: "circle",
  65. radius: 5,
  66. states: {
  67. hover: {
  68. enabled: !0
  69. }
  70. }
  71. },
  72. states: {
  73. hover: {
  74. marker: {
  75. enabled: !0
  76. }
  77. }
  78. }
  79. }
  80. },
  81. //范围选择器
  82. rangeSelector: {
  83. enabled: !1,
  84. selected: 2
  85. },
  86. //悬浮提示框
  87. tooltip: {
  88. split: !1,
  89. shared: !0,
  90. dateTimeLabelFormats: {
  91. // 时间格式化字符
  92. day: "%Y/%m/%d",
  93. week: "%Y/%m",
  94. month: "%Y/%m",
  95. year: "%Y/%m"
  96. },
  97. xDateFormat: "%Y/%m/%d",
  98. className: "chart-tooltips-box"
  99. // formatter:function(e){
  100. // return `<p>${this.x}</p><p>aaa</p>`
  101. // // return e
  102. // }
  103. // outside: true,
  104. // valueDecimals: 4,
  105. },
  106. //图例
  107. legend: {
  108. enabled: !0,
  109. verticalAlign: "top",
  110. margin: 3
  111. // layout: 'vertical'
  112. },
  113. //滚动条
  114. scrollbar: {
  115. enabled: !1
  116. },
  117. //导航器
  118. navigator: {
  119. enabled: !1
  120. },
  121. //范围选择器
  122. rangeSelector: {
  123. enabled: !1
  124. },
  125. xAxis: {
  126. tickPosition: "inside",
  127. lineColor: "#bfbfbf",
  128. tickColor: "#bfbfbf",
  129. tickLength: 5,
  130. type: "datetime",
  131. ordinal: !1,
  132. dateTimeLabelFormats: {
  133. day: "%y/%m",
  134. week: "%y/%m",
  135. month: "%y/%m",
  136. year: "%y/%m"
  137. }
  138. // gridLineWidth:0
  139. }
  140. }, P0 = {
  141. //默认颜色配置
  142. colors: ["#4B0082", "#7FFFAA", "#FF4500", "#808000", "#EEE8AA", "#849EC1", "#8A4294", "#578B5A", "#FDA8C7", "#53B3FF", "#999999", "#000000", "#FFDF0C", "#FF0000", "#0033FF"],
  143. yAxis: {
  144. lineWidth: 1,
  145. lineColor: "#bfbfbf",
  146. tickColor: "#bfbfbf",
  147. offset: 0,
  148. opposite: !1,
  149. reversed: !1,
  150. visible: !0,
  151. gridLineWidth: 0,
  152. tickWidth: 1,
  153. tickLength: 5,
  154. tickPosition: "inside",
  155. endOnTick: !1,
  156. startOnTick: !1,
  157. showLastLabel: !0,
  158. //显示最后刻度值
  159. tickPixelInterval: 50
  160. }
  161. }, Cn = {
  162. tickPosition: "inside",
  163. lineColor: "#bfbfbf",
  164. tickColor: "#bfbfbf",
  165. tickLength: 5,
  166. ordinal: !1,
  167. type: "linear"
  168. }, mr = {
  169. tickWidth: 1,
  170. tickLength: 5,
  171. lineWidth: 1,
  172. lineColor: "#bfbfbf",
  173. tickColor: "#bfbfbf",
  174. // offset: 0,
  175. visible: !0,
  176. gridLineWidth: 0,
  177. tickPosition: "inside",
  178. endOnTick: !1,
  179. startOnTick: !1,
  180. showLastLabel: !0,
  181. tickPixelInterval: 50
  182. }, Hp = {
  183. tickPosition: "inside",
  184. lineColor: "#bfbfbf",
  185. tickColor: "#bfbfbf",
  186. tickLength: 5,
  187. type: "datetime",
  188. ordinal: !1,
  189. dateTimeLabelFormats: {
  190. day: "%y/%m",
  191. week: "%y/%m",
  192. month: "%y/%m",
  193. year: "%y/%m"
  194. },
  195. xDateFormat: "%Y-%m-%d"
  196. }, E0 = {
  197. 年: "Y",
  198. 季: "Q",
  199. 月: "M",
  200. 周: "W",
  201. 天: "D"
  202. }, kp = {
  203. 年: "Year",
  204. 季: "Season",
  205. 月: "Month",
  206. 周: "Week",
  207. 天: "Day"
  208. };
  209. var Fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
  210. function Mn(r) {
  211. return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
  212. }
  213. var Fp = { exports: {} };
  214. (function(r) {
  215. (function(d, T) {
  216. r.exports ? (T.default = T, r.exports = d.document ? T(d) : T) : (d.Highcharts && d.Highcharts.error(16, !0), d.Highcharts = T(d));
  217. })(typeof window < "u" ? window : Fr, function(d) {
  218. function T(y, j, I, Z) {
  219. y.hasOwnProperty(j) || (y[j] = Z.apply(null, I));
  220. }
  221. var l = {};
  222. return T(l, "Core/Globals.js", [], function() {
  223. var y = typeof d < "u" ? d : typeof window < "u" ? window : {}, j;
  224. return function(I) {
  225. I.SVG_NS = "http://www.w3.org/2000/svg", I.product = "Highcharts", I.version = "9.3.3", I.win = y, I.doc = I.win.document, I.svg = I.doc && I.doc.createElementNS && !!I.doc.createElementNS(I.SVG_NS, "svg").createSVGRect, I.userAgent = I.win.navigator && I.win.navigator.userAgent || "", I.isChrome = I.userAgent.indexOf("Chrome") !== -1, I.isFirefox = I.userAgent.indexOf("Firefox") !== -1, I.isMS = /(edge|msie|trident)/i.test(I.userAgent) && !I.win.opera, I.isSafari = !I.isChrome && I.userAgent.indexOf("Safari") !== -1, I.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(I.userAgent), I.isWebKit = I.userAgent.indexOf("AppleWebKit") !== -1, I.deg2rad = 2 * Math.PI / 360, I.hasBidiBug = I.isFirefox && 4 > parseInt(I.userAgent.split("Firefox/")[1], 10), I.hasTouch = !!I.win.TouchEvent, I.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], I.noop = function() {
  226. }, I.supportsPassiveEvents = function() {
  227. var Z = !1;
  228. if (!I.isMS) {
  229. var H = Object.defineProperty({}, "passive", { get: function() {
  230. Z = !0;
  231. } });
  232. I.win.addEventListener && I.win.removeEventListener && (I.win.addEventListener(
  233. "testPassive",
  234. I.noop,
  235. H
  236. ), I.win.removeEventListener("testPassive", I.noop, H));
  237. }
  238. return Z;
  239. }(), I.charts = [], I.dateFormats = {}, I.seriesTypes = {}, I.symbolSizes = {}, I.chartCount = 0;
  240. }(j || (j = {})), j;
  241. }), T(l, "Core/Utilities.js", [l["Core/Globals.js"]], function(y) {
  242. function j(t, o, n, A) {
  243. var _ = o ? "Highcharts error" : "Highcharts warning";
  244. t === 32 && (t = _ + ": Deprecated member");
  245. var D = b(t), W = D ? _ + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  246. if (typeof A < "u") {
  247. var P = "";
  248. D && (W += "?"), S(A, function(X, g) {
  249. P += `
  250. - ` + g + ": " + X, D && (W += encodeURI(g) + "=" + encodeURI(X));
  251. }), W += P;
  252. }
  253. v(y, "displayError", { chart: n, code: t, message: W, params: A }, function() {
  254. if (o)
  255. throw Error(W);
  256. p.console && j.messages.indexOf(W) === -1 && console.warn(W);
  257. }), j.messages.push(W);
  258. }
  259. function I(t, o) {
  260. var n = {};
  261. return S(t, function(A, _) {
  262. F(t[_], !0) && !t.nodeType && o[_] ? (A = I(t[_], o[_]), Object.keys(A).length && (n[_] = A)) : (F(t[_]) || t[_] !== o[_]) && (n[_] = t[_]);
  263. }), n;
  264. }
  265. function Z(t, o) {
  266. return parseInt(t, o || 10);
  267. }
  268. function H(t) {
  269. return typeof t == "string";
  270. }
  271. function U(t) {
  272. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  273. }
  274. function F(t, o) {
  275. return !!t && typeof t == "object" && (!o || !U(t));
  276. }
  277. function R(t) {
  278. return F(t) && typeof t.nodeType == "number";
  279. }
  280. function N(t) {
  281. var o = t && t.constructor;
  282. return !(!F(t, !0) || R(t) || !o || !o.name || o.name === "Object");
  283. }
  284. function b(t) {
  285. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  286. }
  287. function x(t) {
  288. return typeof t < "u" && t !== null;
  289. }
  290. function u(t, o, n) {
  291. var A;
  292. return H(o) ? x(n) ? t.setAttribute(o, n) : t && t.getAttribute && ((A = t.getAttribute(o)) || o !== "class" || (A = t.getAttribute(o + "Name"))) : S(o, function(_, D) {
  293. x(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  294. }), A;
  295. }
  296. function f(t, o) {
  297. var n;
  298. t || (t = {});
  299. for (n in o)
  300. t[n] = o[n];
  301. return t;
  302. }
  303. function E() {
  304. for (var t = arguments, o = t.length, n = 0; n < o; n++) {
  305. var A = t[n];
  306. if (typeof A < "u" && A !== null)
  307. return A;
  308. }
  309. }
  310. function O(t, o) {
  311. y.isMS && !y.svg && o && typeof o.opacity < "u" && (o.filter = "alpha(opacity=" + 100 * o.opacity + ")"), f(t.style, o);
  312. }
  313. function B(t, o) {
  314. return 1e14 < t ? t : parseFloat(t.toPrecision(o || 14));
  315. }
  316. function M(t, o, n) {
  317. var A = y.getStyle || M;
  318. if (o === "width")
  319. return o = Math.min(t.offsetWidth, t.scrollWidth), n = t.getBoundingClientRect && t.getBoundingClientRect().width, n < o && n >= o - 1 && (o = Math.floor(n)), Math.max(0, o - (A(t, "padding-left", !0) || 0) - (A(t, "padding-right", !0) || 0));
  320. if (o === "height")
  321. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (A(t, "padding-top", !0) || 0) - (A(t, "padding-bottom", !0) || 0));
  322. if (p.getComputedStyle || j(27, !0), t = p.getComputedStyle(t, void 0)) {
  323. var _ = t.getPropertyValue(o);
  324. E(n, o !== "opacity") && (_ = Z(_));
  325. }
  326. return _;
  327. }
  328. function S(t, o, n) {
  329. for (var A in t)
  330. Object.hasOwnProperty.call(t, A) && o.call(n || t[A], t[A], A, t);
  331. }
  332. function w(t, o, n) {
  333. function A(P, X) {
  334. var g = t.removeEventListener || y.removeEventListenerPolyfill;
  335. g && g.call(t, P, X, !1);
  336. }
  337. function _(P) {
  338. var X;
  339. if (t.nodeName) {
  340. if (o) {
  341. var g = {};
  342. g[o] = !0;
  343. } else
  344. g = P;
  345. S(g, function(m, L) {
  346. if (P[L])
  347. for (X = P[L].length; X--; )
  348. A(L, P[L][X].fn);
  349. });
  350. }
  351. }
  352. var D = typeof t == "function" && t.prototype || t;
  353. if (Object.hasOwnProperty.call(D, "hcEvents")) {
  354. var W = D.hcEvents;
  355. o ? (D = W[o] || [], n ? (W[o] = D.filter(function(P) {
  356. return n !== P.fn;
  357. }), A(o, n)) : (_(W), W[o] = [])) : (_(W), delete D.hcEvents);
  358. }
  359. }
  360. function v(t, o, n, A) {
  361. if (n = n || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  362. var _ = c.createEvent("Events");
  363. _.initEvent(o, !0, !0), n = f(_, n), t.dispatchEvent ? t.dispatchEvent(n) : t.fireEvent(o, n);
  364. } else if (t.hcEvents) {
  365. n.target || f(n, { preventDefault: function() {
  366. n.defaultPrevented = !0;
  367. }, target: t, type: o }), _ = [];
  368. for (var D = t, W = !1; D.hcEvents; )
  369. Object.hasOwnProperty.call(D, "hcEvents") && D.hcEvents[o] && (_.length && (W = !0), _.unshift.apply(_, D.hcEvents[o])), D = Object.getPrototypeOf(D);
  370. W && _.sort(function(P, X) {
  371. return P.order - X.order;
  372. }), _.forEach(function(P) {
  373. P.fn.call(t, n) === !1 && n.preventDefault();
  374. });
  375. }
  376. A && !n.defaultPrevented && A.call(t, n);
  377. }
  378. var a = y.charts, c = y.doc, p = y.win;
  379. (j || (j = {})).messages = [], Math.easeInOutSine = function(t) {
  380. return -0.5 * (Math.cos(Math.PI * t) - 1);
  381. };
  382. var i = Array.prototype.find ? function(t, o) {
  383. return t.find(o);
  384. } : function(t, o) {
  385. var n, A = t.length;
  386. for (n = 0; n < A; n++)
  387. if (o(t[n], n))
  388. return t[n];
  389. };
  390. S({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, o) {
  391. y[o] = function(n) {
  392. var A;
  393. return j(32, !1, void 0, (A = {}, A["Highcharts." + o] = "use Array." + t, A)), Array.prototype[t].apply(n, [].slice.call(arguments, 1));
  394. };
  395. });
  396. var h, s = function() {
  397. var t = Math.random().toString(36).substring(2, 9) + "-", o = 0;
  398. return function() {
  399. return "highcharts-" + (h ? "" : t) + o++;
  400. };
  401. }();
  402. return p.jQuery && (p.jQuery.fn.highcharts = function() {
  403. var t = [].slice.call(arguments);
  404. if (this[0])
  405. return t[0] ? (new y[H(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : a[u(this[0], "data-highcharts-chart")];
  406. }), i = { addEvent: function(t, o, n, A) {
  407. A === void 0 && (A = {});
  408. var _ = typeof t == "function" && t.prototype || t;
  409. Object.hasOwnProperty.call(_, "hcEvents") || (_.hcEvents = {}), _ = _.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  410. var D = t.addEventListener || y.addEventListenerPolyfill;
  411. return D && D.call(t, o, n, y.supportsPassiveEvents ? { passive: A.passive === void 0 ? o.indexOf("touch") !== -1 : A.passive, capture: !1 } : !1), _[o] || (_[o] = []), _[o].push({ fn: n, order: typeof A.order == "number" ? A.order : 1 / 0 }), _[o].sort(function(W, P) {
  412. return W.order - P.order;
  413. }), function() {
  414. w(t, o, n);
  415. };
  416. }, arrayMax: function(t) {
  417. for (var o = t.length, n = t[0]; o--; )
  418. t[o] > n && (n = t[o]);
  419. return n;
  420. }, arrayMin: function(t) {
  421. for (var o = t.length, n = t[0]; o--; )
  422. t[o] < n && (n = t[o]);
  423. return n;
  424. }, attr: u, clamp: function(t, o, n) {
  425. return t > o ? t < n ? t : n : o;
  426. }, cleanRecursively: I, clearTimeout: function(t) {
  427. x(t) && clearTimeout(t);
  428. }, correctFloat: B, createElement: function(t, o, n, A, _) {
  429. return t = c.createElement(t), o && f(t, o), _ && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), A && A.appendChild(t), t;
  430. }, css: O, defined: x, destroyObjectProperties: function(t, o) {
  431. S(t, function(n, A) {
  432. n && n !== o && n.destroy && n.destroy(), delete t[A];
  433. });
  434. }, discardElement: function(t) {
  435. t && t.parentElement && t.parentElement.removeChild(t);
  436. }, erase: function(t, o) {
  437. for (var n = t.length; n--; )
  438. if (t[n] === o) {
  439. t.splice(n, 1);
  440. break;
  441. }
  442. }, error: j, extend: f, extendClass: function(t, o) {
  443. var n = function() {
  444. };
  445. return n.prototype = new t(), f(n.prototype, o), n;
  446. }, find: i, fireEvent: v, getMagnitude: function(t) {
  447. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  448. }, getNestedProperty: function(t, o) {
  449. for (t = t.split("."); t.length && x(o); ) {
  450. var n = t.shift();
  451. if (typeof n > "u" || n === "__proto__" || (o = o[n], !x(o) || typeof o == "function" || typeof o.nodeType == "number" || o === p))
  452. return;
  453. }
  454. return o;
  455. }, getStyle: M, inArray: function(t, o, n) {
  456. return j(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), o.indexOf(t, n);
  457. }, isArray: U, isClass: N, isDOMElement: R, isFunction: function(t) {
  458. return typeof t == "function";
  459. }, isNumber: b, isObject: F, isString: H, keys: function(t) {
  460. return j(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  461. }, merge: function() {
  462. var t, o = arguments, n = {}, A = function(D, W) {
  463. return typeof D != "object" && (D = {}), S(W, function(P, X) {
  464. X !== "__proto__" && X !== "constructor" && (!F(P, !0) || N(P) || R(P) ? D[X] = W[X] : D[X] = A(D[X] || {}, P));
  465. }), D;
  466. };
  467. o[0] === !0 && (n = o[1], o = Array.prototype.slice.call(o, 2));
  468. var _ = o.length;
  469. for (t = 0; t < _; t++)
  470. n = A(n, o[t]);
  471. return n;
  472. }, normalizeTickInterval: function(t, o, n, A, _) {
  473. var D = t;
  474. n = E(n, 1);
  475. var W = t / n;
  476. for (o || (o = _ ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], A === !1 && (n === 1 ? o = o.filter(function(P) {
  477. return P % 1 === 0;
  478. }) : 0.1 >= n && (o = [1 / n]))), A = 0; A < o.length && (D = o[A], !(_ && D * n >= t || !_ && W <= (o[A] + (o[A + 1] || o[A])) / 2)); A++)
  479. ;
  480. return D = B(D * n, -Math.round(Math.log(1e-3) / Math.LN10));
  481. }, objectEach: S, offset: function(t) {
  482. var o = c.documentElement;
  483. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (p.pageYOffset || o.scrollTop) - (o.clientTop || 0), left: t.left + (p.pageXOffset || o.scrollLeft) - (o.clientLeft || 0), width: t.width, height: t.height };
  484. }, pad: function(t, o, n) {
  485. return Array((o || 2) + 1 - String(t).replace("-", "").length).join(n || "0") + t;
  486. }, pick: E, pInt: Z, relativeLength: function(t, o, n) {
  487. return /%$/.test(t) ? o * parseFloat(t) / 100 + (n || 0) : parseFloat(t);
  488. }, removeEvent: w, splat: function(t) {
  489. return U(t) ? t : [t];
  490. }, stableSort: function(t, o) {
  491. var n = t.length, A, _;
  492. for (_ = 0; _ < n; _++)
  493. t[_].safeI = _;
  494. for (t.sort(function(D, W) {
  495. return A = o(D, W), A === 0 ? D.safeI - W.safeI : A;
  496. }), _ = 0; _ < n; _++)
  497. delete t[_].safeI;
  498. }, syncTimeout: function(t, o, n) {
  499. return 0 < o ? setTimeout(t, o, n) : (t.call(0, n), -1);
  500. }, timeUnits: {
  501. millisecond: 1,
  502. second: 1e3,
  503. minute: 6e4,
  504. hour: 36e5,
  505. day: 864e5,
  506. week: 6048e5,
  507. month: 24192e5,
  508. year: 314496e5
  509. }, uniqueKey: s, useSerialIds: function(t) {
  510. return h = E(t, h);
  511. }, wrap: function(t, o, n) {
  512. var A = t[o];
  513. t[o] = function() {
  514. var _ = Array.prototype.slice.call(arguments), D = arguments, W = this;
  515. return W.proceed = function() {
  516. A.apply(W, arguments.length ? arguments : D);
  517. }, _.unshift(A), _ = n.apply(this, _), W.proceed = null, _;
  518. };
  519. } }, i;
  520. }), T(l, "Core/Chart/ChartDefaults.js", [], function() {
  521. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  522. 10,
  523. 10,
  524. 15,
  525. 10
  526. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  527. }), T(l, "Core/Color/Color.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  528. var I = j.isNumber, Z = j.merge, H = j.pInt;
  529. return j = function() {
  530. function U(F) {
  531. this.rgba = [NaN, NaN, NaN, NaN], this.input = F;
  532. var R = y.Color;
  533. if (R && R !== U)
  534. return new R(F);
  535. if (!(this instanceof U))
  536. return new U(F);
  537. this.init(F);
  538. }
  539. return U.parse = function(F) {
  540. return F ? new U(F) : U.None;
  541. }, U.prototype.init = function(F) {
  542. var R;
  543. if (typeof F == "object" && typeof F.stops < "u")
  544. this.stops = F.stops.map(function(u) {
  545. return new U(u[1]);
  546. });
  547. else if (typeof F == "string") {
  548. if (this.input = F = U.names[F.toLowerCase()] || F, F.charAt(0) === "#") {
  549. var N = F.length, b = parseInt(F.substr(1), 16);
  550. N === 7 ? R = [(b & 16711680) >> 16, (b & 65280) >> 8, b & 255, 1] : N === 4 && (R = [(b & 3840) >> 4 | (b & 3840) >> 8, (b & 240) >> 4 | b & 240, (b & 15) << 4 | b & 15, 1]);
  551. }
  552. if (!R)
  553. for (b = U.parsers.length; b-- && !R; ) {
  554. var x = U.parsers[b];
  555. (N = x.regex.exec(F)) && (R = x.parse(N));
  556. }
  557. }
  558. R && (this.rgba = R);
  559. }, U.prototype.get = function(F) {
  560. var R = this.input, N = this.rgba;
  561. if (typeof R == "object" && typeof this.stops < "u") {
  562. var b = Z(R);
  563. return b.stops = [].slice.call(b.stops), this.stops.forEach(function(x, u) {
  564. b.stops[u] = [b.stops[u][0], x.get(F)];
  565. }), b;
  566. }
  567. return N && I(N[0]) ? F === "rgb" || !F && N[3] === 1 ? "rgb(" + N[0] + "," + N[1] + "," + N[2] + ")" : F === "a" ? "" + N[3] : "rgba(" + N.join(",") + ")" : R;
  568. }, U.prototype.brighten = function(F) {
  569. var R = this.rgba;
  570. if (this.stops)
  571. this.stops.forEach(function(b) {
  572. b.brighten(F);
  573. });
  574. else if (I(F) && F !== 0)
  575. for (var N = 0; 3 > N; N++)
  576. R[N] += H(255 * F), 0 > R[N] && (R[N] = 0), 255 < R[N] && (R[N] = 255);
  577. return this;
  578. }, U.prototype.setOpacity = function(F) {
  579. return this.rgba[3] = F, this;
  580. }, U.prototype.tweenTo = function(F, R) {
  581. var N = this.rgba, b = F.rgba;
  582. return !I(N[0]) || !I(b[0]) ? F.input || "none" : (F = b[3] !== 1 || N[3] !== 1, (F ? "rgba(" : "rgb(") + Math.round(b[0] + (N[0] - b[0]) * (1 - R)) + "," + Math.round(b[1] + (N[1] - b[1]) * (1 - R)) + "," + Math.round(b[2] + (N[2] - b[2]) * (1 - R)) + (F ? "," + (b[3] + (N[3] - b[3]) * (1 - R)) : "") + ")");
  583. }, U.names = { white: "#ffffff", black: "#000000" }, U.parsers = [{
  584. regex: /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
  585. parse: function(F) {
  586. return [H(F[1]), H(F[2]), H(F[3]), parseFloat(F[4], 10)];
  587. }
  588. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(F) {
  589. return [H(F[1]), H(F[2]), H(F[3]), 1];
  590. } }], U.None = new U(""), U;
  591. }(), j;
  592. }), T(l, "Core/Color/Palettes.js", [], function() {
  593. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  594. }), T(l, "Core/Time.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  595. var I = y.win, Z = j.defined, H = j.error, U = j.extend, F = j.isObject, R = j.merge, N = j.objectEach, b = j.pad, x = j.pick, u = j.splat, f = j.timeUnits, E = y.isSafari && I.Intl && I.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && I.Intl && !I.Intl.DateTimeFormat.prototype.formatRange;
  596. return j = function() {
  597. function B(M) {
  598. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = I.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(M);
  599. }
  600. return B.prototype.get = function(M, S) {
  601. if (this.variableTimezone || this.timezoneOffset) {
  602. var w = S.getTime(), v = w - this.getTimezoneOffset(S);
  603. return S.setTime(v), M = S["getUTC" + M](), S.setTime(w), M;
  604. }
  605. return this.useUTC ? S["getUTC" + M]() : S["get" + M]();
  606. }, B.prototype.set = function(M, S, w) {
  607. if (this.variableTimezone || this.timezoneOffset) {
  608. if (M === "Milliseconds" || M === "Seconds" || M === "Minutes" && this.getTimezoneOffset(S) % 36e5 === 0)
  609. return S["setUTC" + M](w);
  610. var v = this.getTimezoneOffset(S);
  611. return v = S.getTime() - v, S.setTime(v), S["setUTC" + M](w), M = this.getTimezoneOffset(S), v = S.getTime() + M, S.setTime(v);
  612. }
  613. return this.useUTC || E && M === "FullYear" ? S["setUTC" + M](w) : S["set" + M](w);
  614. }, B.prototype.update = function(M) {
  615. var S = x(M && M.useUTC, !0);
  616. this.options = M = R(!0, this.options || {}, M), this.Date = M.Date || I.Date || Date, this.timezoneOffset = (this.useUTC = S) && M.timezoneOffset, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.variableTimezone = S && !(!M.getTimezoneOffset && !M.timezone);
  617. }, B.prototype.makeTime = function(M, S, w, v, a, c) {
  618. if (this.useUTC) {
  619. var p = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(p);
  620. p += i;
  621. var h = this.getTimezoneOffset(p);
  622. i !== h ? p += h - i : i - 36e5 !== this.getTimezoneOffset(p - 36e5) || O || (p -= 36e5);
  623. } else
  624. p = new this.Date(M, S, x(w, 1), x(v, 0), x(a, 0), x(c, 0)).getTime();
  625. return p;
  626. }, B.prototype.timezoneOffsetFunction = function() {
  627. var M = this, S = this.options, w = S.getTimezoneOffset, v = S.moment || I.moment;
  628. if (!this.useUTC)
  629. return function(a) {
  630. return 6e4 * new Date(a.toString()).getTimezoneOffset();
  631. };
  632. if (S.timezone) {
  633. if (v)
  634. return function(a) {
  635. return 6e4 * -v.tz(a, S.timezone).utcOffset();
  636. };
  637. H(25);
  638. }
  639. return this.useUTC && w ? function(a) {
  640. return 6e4 * w(a.valueOf());
  641. } : function() {
  642. return 6e4 * (M.timezoneOffset || 0);
  643. };
  644. }, B.prototype.dateFormat = function(M, S, w) {
  645. if (!Z(S) || isNaN(S))
  646. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  647. M = x(M, "%Y-%m-%d %H:%M:%S");
  648. var v = this, a = new this.Date(S), c = this.get("Hours", a), p = this.get("Day", a), i = this.get("Date", a), h = this.get("Month", a), s = this.get("FullYear", a), t = y.defaultOptions.lang, o = t && t.weekdays, n = t && t.shortWeekdays;
  649. return a = U({ a: n ? n[p] : o[p].substr(0, 3), A: o[p], d: b(i), e: b(i, 2, " "), w: p, b: t.shortMonths[h], B: t.months[h], m: b(h + 1), o: h + 1, y: s.toString().substr(2, 2), Y: s, H: b(c), k: c, I: b(c % 12 || 12), l: c % 12 || 12, M: b(this.get("Minutes", a)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: b(a.getSeconds()), L: b(Math.floor(S % 1e3), 3) }, y.dateFormats), N(a, function(A, _) {
  650. for (; M.indexOf("%" + _) !== -1; )
  651. M = M.replace("%" + _, typeof A == "function" ? A.call(v, S) : A);
  652. }), w ? M.substr(0, 1).toUpperCase() + M.substr(1) : M;
  653. }, B.prototype.resolveDTLFormat = function(M) {
  654. return F(M, !0) ? M : (M = u(M), { main: M[0], from: M[1], to: M[2] });
  655. }, B.prototype.getTimeTicks = function(M, S, w, v) {
  656. var a = this, c = [], p = {}, i = new a.Date(S), h = M.unitRange, s = M.count || 1, t;
  657. if (v = x(v, 1), Z(S)) {
  658. if (a.set(
  659. "Milliseconds",
  660. i,
  661. h >= f.second ? 0 : s * Math.floor(a.get("Milliseconds", i) / s)
  662. ), h >= f.second && a.set("Seconds", i, h >= f.minute ? 0 : s * Math.floor(a.get("Seconds", i) / s)), h >= f.minute && a.set("Minutes", i, h >= f.hour ? 0 : s * Math.floor(a.get("Minutes", i) / s)), h >= f.hour && a.set("Hours", i, h >= f.day ? 0 : s * Math.floor(a.get("Hours", i) / s)), h >= f.day && a.set("Date", i, h >= f.month ? 1 : Math.max(1, s * Math.floor(a.get("Date", i) / s))), h >= f.month) {
  663. a.set("Month", i, h >= f.year ? 0 : s * Math.floor(a.get("Month", i) / s));
  664. var o = a.get("FullYear", i);
  665. }
  666. h >= f.year && a.set(
  667. "FullYear",
  668. i,
  669. o - o % s
  670. ), h === f.week && (o = a.get("Day", i), a.set("Date", i, a.get("Date", i) - o + v + (o < v ? -7 : 0))), o = a.get("FullYear", i), v = a.get("Month", i);
  671. var n = a.get("Date", i), A = a.get("Hours", i);
  672. for (S = i.getTime(), !a.variableTimezone && a.useUTC || !Z(w) || (t = w - S > 4 * f.month || a.getTimezoneOffset(S) !== a.getTimezoneOffset(w)), S = i.getTime(), i = 1; S < w; )
  673. c.push(S), S = h === f.year ? a.makeTime(o + i * s, 0) : h === f.month ? a.makeTime(o, v + i * s) : !t || h !== f.day && h !== f.week ? t && h === f.hour && 1 < s ? a.makeTime(o, v, n, A + i * s) : S + h * s : a.makeTime(o, v, n + i * s * (h === f.day ? 1 : 7)), i++;
  674. c.push(S), h <= f.hour && 1e4 > c.length && c.forEach(function(_) {
  675. _ % 18e5 === 0 && a.dateFormat("%H%M%S%L", _) === "000000000" && (p[_] = "day");
  676. });
  677. }
  678. return c.info = U(M, { higherRanks: p, totalRange: h * s }), c;
  679. }, B.prototype.getDateFormat = function(M, S, w, v) {
  680. var a = this.dateFormat("%m-%d %H:%M:%S.%L", S), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, p = "millisecond";
  681. for (i in f) {
  682. if (M === f.week && +this.dateFormat("%w", S) === w && a.substr(6) === "00:00:00.000") {
  683. var i = "week";
  684. break;
  685. }
  686. if (f[i] > M) {
  687. i = p;
  688. break;
  689. }
  690. if (c[i] && a.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  691. break;
  692. i !== "week" && (p = i);
  693. }
  694. if (i)
  695. var h = this.resolveDTLFormat(v[i]).main;
  696. return h;
  697. }, B;
  698. }(), j;
  699. }), T(l, "Core/DefaultOptions.js", [l["Core/Chart/ChartDefaults.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Color/Palettes.js"], l["Core/Time.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  700. j = j.parse;
  701. var F = U.merge, R = {
  702. colors: Z.colors,
  703. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  704. lang: {
  705. loading: "Loading...",
  706. months: "January February March April May June July August September October November December".split(" "),
  707. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  708. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  709. decimalPoint: ".",
  710. numericSymbols: "kMGTPE".split(""),
  711. resetZoom: "Reset zoom",
  712. resetZoomTitle: "Reset zoom level 1:1",
  713. thousandsSep: " "
  714. },
  715. global: {},
  716. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  717. chart: y,
  718. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  719. subtitle: { text: "", align: "center", widthAdjust: -44 },
  720. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  721. plotOptions: {},
  722. labels: { style: { position: "absolute", color: "#333333" } },
  723. legend: {
  724. enabled: !0,
  725. align: "center",
  726. alignColumns: !0,
  727. className: "highcharts-no-tooltip",
  728. layout: "horizontal",
  729. labelFormatter: function() {
  730. return this.name;
  731. },
  732. borderColor: "#999999",
  733. borderRadius: 0,
  734. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  735. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  736. itemHoverStyle: { color: "#000000" },
  737. itemHiddenStyle: { color: "#cccccc" },
  738. shadow: !1,
  739. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  740. squareSymbol: !0,
  741. symbolPadding: 5,
  742. verticalAlign: "bottom",
  743. x: 0,
  744. y: 0,
  745. title: { style: { fontWeight: "bold" } }
  746. },
  747. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  748. tooltip: {
  749. enabled: !0,
  750. animation: I.svg,
  751. borderRadius: 3,
  752. dateTimeLabelFormats: {
  753. millisecond: "%A, %b %e, %H:%M:%S.%L",
  754. second: "%A, %b %e, %H:%M:%S",
  755. minute: "%A, %b %e, %H:%M",
  756. hour: "%A, %b %e, %H:%M",
  757. day: "%A, %b %e, %Y",
  758. week: "Week from %A, %b %e, %Y",
  759. month: "%B %Y",
  760. year: "%Y"
  761. },
  762. footerFormat: "",
  763. headerShape: "callout",
  764. hideDelay: 500,
  765. padding: 8,
  766. shape: "callout",
  767. shared: !1,
  768. snap: I.isTouchDevice ? 25 : 10,
  769. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  770. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  771. backgroundColor: j("#f7f7f7").setOpacity(0.85).get(),
  772. borderWidth: 1,
  773. shadow: !0,
  774. stickOnContact: !1,
  775. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  776. useHTML: !1
  777. },
  778. credits: { enabled: !0, href: "https://www.highcharts.com?credits", position: { align: "right", x: -10, verticalAlign: "bottom", y: -5 }, style: { cursor: "pointer", color: "#999999", fontSize: "9px" }, text: "Highcharts.com" }
  779. };
  780. R.chart.styledMode = !1;
  781. var N = new H(F(R.global, R.time));
  782. return y = { defaultOptions: R, defaultTime: N, getOptions: function() {
  783. return R;
  784. }, setOptions: function(b) {
  785. return F(!0, R, b), (b.time || b.global) && (I.time ? I.time.update(F(
  786. R.global,
  787. R.time,
  788. b.global,
  789. b.time
  790. )) : I.time = N), R;
  791. } }, y;
  792. }), T(l, "Core/Animation/Fx.js", [l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I) {
  793. var Z = y.parse, H = j.win, U = I.isNumber, F = I.objectEach;
  794. return function() {
  795. function R(N, b, x) {
  796. this.pos = NaN, this.options = b, this.elem = N, this.prop = x;
  797. }
  798. return R.prototype.dSetter = function() {
  799. var N = this.paths, b = N && N[0];
  800. N = N && N[1];
  801. var x = this.now || 0, u = [];
  802. if (x !== 1 && b && N)
  803. if (b.length === N.length && 1 > x)
  804. for (var f = 0; f < N.length; f++) {
  805. for (var E = b[f], O = N[f], B = [], M = 0; M < O.length; M++) {
  806. var S = E[M], w = O[M];
  807. U(S) && U(w) && (O[0] !== "A" || M !== 4 && M !== 5) ? B[M] = S + x * (w - S) : B[M] = w;
  808. }
  809. u.push(B);
  810. }
  811. else
  812. u = N;
  813. else
  814. u = this.toD || [];
  815. this.elem.attr("d", u, void 0, !0);
  816. }, R.prototype.update = function() {
  817. var N = this.elem, b = this.prop, x = this.now, u = this.options.step;
  818. this[b + "Setter"] ? this[b + "Setter"]() : N.attr ? N.element && N.attr(b, x, null, !0) : N.style[b] = x + this.unit, u && u.call(N, x, this);
  819. }, R.prototype.run = function(N, b, x) {
  820. var u = this, f = u.options, E = function(M) {
  821. return E.stopped ? !1 : u.step(M);
  822. }, O = H.requestAnimationFrame || function(M) {
  823. setTimeout(
  824. M,
  825. 13
  826. );
  827. }, B = function() {
  828. for (var M = 0; M < R.timers.length; M++)
  829. R.timers[M]() || R.timers.splice(M--, 1);
  830. R.timers.length && O(B);
  831. };
  832. N !== b || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = N, this.end = b, this.unit = x, this.now = this.start, this.pos = 0, E.elem = this.elem, E.prop = this.prop, E() && R.timers.push(E) === 1 && O(B)) : (delete f.curAnim[this.prop], f.complete && Object.keys(f.curAnim).length === 0 && f.complete.call(this.elem));
  833. }, R.prototype.step = function(N) {
  834. var b = +/* @__PURE__ */ new Date(), x = this.options, u = this.elem, f = x.complete, E = x.duration, O = x.curAnim;
  835. if (u.attr && !u.element)
  836. N = !1;
  837. else if (N || b >= E + this.startTime) {
  838. this.now = this.end, this.pos = 1, this.update();
  839. var B = O[this.prop] = !0;
  840. F(O, function(M) {
  841. M !== !0 && (B = !1);
  842. }), B && f && f.call(u), N = !1;
  843. } else
  844. this.pos = x.easing((b - this.startTime) / E), this.now = this.start + (this.end - this.start) * this.pos, this.update(), N = !0;
  845. return N;
  846. }, R.prototype.initPath = function(N, b, x) {
  847. function u(a, c) {
  848. for (; a.length < v; ) {
  849. var p = a[0], i = c[v - a.length];
  850. i && p[0] === "M" && (a[0] = i[0] === "C" ? ["C", p[1], p[2], p[1], p[2], p[1], p[2]] : [
  851. "L",
  852. p[1],
  853. p[2]
  854. ]), a.unshift(p), B && (p = a.pop(), a.push(a[a.length - 1], p));
  855. }
  856. }
  857. function f(a, c) {
  858. for (; a.length < v; )
  859. if (c = a[Math.floor(a.length / M) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), B) {
  860. var p = a[Math.floor(a.length / M)].slice();
  861. a.splice(a.length / 2, 0, c, p);
  862. } else
  863. a.push(c);
  864. }
  865. var E = N.startX, O = N.endX;
  866. x = x.slice();
  867. var B = N.isArea, M = B ? 2 : 1;
  868. if (b = b && b.slice(), !b)
  869. return [x, x];
  870. if (E && O && O.length) {
  871. for (N = 0; N < E.length; N++)
  872. if (E[N] === O[0]) {
  873. var S = N;
  874. break;
  875. } else if (E[0] === O[O.length - E.length + N]) {
  876. S = N;
  877. var w = !0;
  878. break;
  879. } else if (E[E.length - 1] === O[O.length - E.length + N]) {
  880. S = E.length - N;
  881. break;
  882. }
  883. typeof S > "u" && (b = []);
  884. }
  885. if (b.length && U(S)) {
  886. var v = x.length + S * M;
  887. w ? (u(b, x), f(x, b)) : (u(x, b), f(b, x));
  888. }
  889. return [b, x];
  890. }, R.prototype.fillSetter = function() {
  891. R.prototype.strokeSetter.apply(this, arguments);
  892. }, R.prototype.strokeSetter = function() {
  893. this.elem.attr(this.prop, Z(this.start).tweenTo(Z(this.end), this.pos), void 0, !0);
  894. }, R.timers = [], R;
  895. }();
  896. }), T(l, "Core/Animation/AnimationUtilities.js", [l["Core/Animation/Fx.js"], l["Core/Utilities.js"]], function(y, j) {
  897. function I(f) {
  898. return N(f) ? b({ duration: 500, defer: 0 }, f) : { duration: f ? 500 : 0, defer: 0 };
  899. }
  900. function Z(f, E) {
  901. for (var O = y.timers.length; O--; )
  902. y.timers[O].elem !== f || E && E !== y.timers[O].prop || (y.timers[O].stopped = !0);
  903. }
  904. var H = j.defined, U = j.getStyle, F = j.isArray, R = j.isNumber, N = j.isObject, b = j.merge, x = j.objectEach, u = j.pick;
  905. return { animate: function(f, E, O) {
  906. var B, M = "", S, w;
  907. if (!N(O)) {
  908. var v = arguments;
  909. O = { duration: v[2], easing: v[3], complete: v[4] };
  910. }
  911. R(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = b(E), x(E, function(a, c) {
  912. Z(f, c), w = new y(f, O, c), S = void 0, c === "d" && F(E.d) ? (w.paths = w.initPath(f, f.pathArray, E.d), w.toD = E.d, B = 0, S = 1) : f.attr ? B = f.attr(c) : (B = parseFloat(U(f, c)) || 0, c !== "opacity" && (M = "px")), S || (S = a), typeof S == "string" && S.match("px") && (S = S.replace(/px/g, "")), w.run(B, S, M);
  913. });
  914. }, animObject: I, getDeferredAnimation: function(f, E, O) {
  915. var B = I(E), M = 0, S = 0;
  916. return (O ? [O] : f.series).forEach(function(w) {
  917. w = I(w.options.animation), M = E && H(E.defer) ? B.defer : Math.max(M, w.duration + w.defer), S = Math.min(B.duration, w.duration);
  918. }), f.renderer.forExport && (M = 0), { defer: Math.max(0, M - S), duration: Math.min(M, S) };
  919. }, setAnimation: function(f, E) {
  920. E.renderer.globalAnimation = u(f, E.options.chart.animation, !0);
  921. }, stop: Z };
  922. }), T(l, "Core/Renderer/HTML/AST.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  923. var I = y.SVG_NS, Z = j.attr, H = j.createElement, U = j.error, F = j.isFunction, R = j.isString, N = j.objectEach, b = j.splat, x = (j = y.win.trustedTypes) && F(j.createPolicy) && j.createPolicy("highcharts", { createHTML: function(E) {
  924. return E;
  925. } }), u = x ? x.createHTML("") : "";
  926. try {
  927. var f = !!new DOMParser().parseFromString(u, "text/html");
  928. } catch {
  929. f = !1;
  930. }
  931. return F = function() {
  932. function E(O) {
  933. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  934. }
  935. return E.filterUserAttributes = function(O) {
  936. return N(O, function(B, M) {
  937. var S = !0;
  938. E.allowedAttributes.indexOf(M) === -1 && (S = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(M) !== -1 && (S = R(B) && E.allowedReferences.some(function(w) {
  939. return B.indexOf(w) === 0;
  940. })), S || (U("Highcharts warning: Invalid attribute '" + M + "' in config"), delete O[M]);
  941. }), O;
  942. }, E.setElementHTML = function(O, B) {
  943. O.innerHTML = E.emptyHTML, B && new E(B).addToDOM(O);
  944. }, E.prototype.addToDOM = function(O) {
  945. function B(M, S) {
  946. var w;
  947. return b(M).forEach(function(v) {
  948. var a = v.tagName, c = v.textContent ? y.doc.createTextNode(v.textContent) : void 0;
  949. if (a)
  950. if (a === "#text")
  951. var p = c;
  952. else if (E.allowedTags.indexOf(a) !== -1) {
  953. a = y.doc.createElementNS(a === "svg" ? I : S.namespaceURI || I, a);
  954. var i = v.attributes || {};
  955. N(v, function(h, s) {
  956. s !== "tagName" && s !== "attributes" && s !== "children" && s !== "textContent" && (i[s] = h);
  957. }), Z(a, E.filterUserAttributes(i)), c && a.appendChild(c), B(v.children || [], a), p = a;
  958. } else
  959. U("Highcharts warning: Invalid tagName " + a + " in config");
  960. p && S.appendChild(p), w = p;
  961. }), w;
  962. }
  963. return B(this.nodes, O);
  964. }, E.prototype.parseMarkup = function(O) {
  965. var B = [];
  966. if (O = O.trim(), f)
  967. O = new DOMParser().parseFromString(x ? x.createHTML(O) : O, "text/html");
  968. else {
  969. var M = H("div");
  970. M.innerHTML = O, O = { body: M };
  971. }
  972. var S = function(w, v) {
  973. var a = w.nodeName.toLowerCase(), c = { tagName: a };
  974. if (a === "#text" && (c.textContent = w.textContent || ""), a = w.attributes) {
  975. var p = {};
  976. [].forEach.call(a, function(h) {
  977. p[h.name] = h.value;
  978. }), c.attributes = p;
  979. }
  980. if (w.childNodes.length) {
  981. var i = [];
  982. [].forEach.call(w.childNodes, function(h) {
  983. S(h, i);
  984. }), i.length && (c.children = i);
  985. }
  986. v.push(c);
  987. };
  988. return [].forEach.call(O.body.childNodes, function(w) {
  989. return S(w, B);
  990. }), B;
  991. }, E.allowedAttributes = "aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "), E.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), E.allowedTags = "a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "), E.emptyHTML = u, E;
  992. }(), F;
  993. }), T(
  994. l,
  995. "Core/FormatUtilities.js",
  996. [l["Core/DefaultOptions.js"], l["Core/Utilities.js"]],
  997. function(y, j) {
  998. function I(b, x, u, f) {
  999. b = +b || 0, x = +x;
  1000. var E = Z.lang, O = (b.toString().split(".")[1] || "").split("e")[0].length, B = b.toString().split("e"), M = x;
  1001. if (x === -1)
  1002. x = Math.min(O, 20);
  1003. else if (!F(x))
  1004. x = 2;
  1005. else if (x && B[1] && 0 > B[1]) {
  1006. var S = x + +B[1];
  1007. 0 <= S ? (B[0] = (+B[0]).toExponential(S).split("e")[0], x = S) : (B[0] = B[0].split(".")[0] || 0, b = 20 > x ? (B[0] * Math.pow(10, B[1])).toFixed(x) : 0, B[1] = 0);
  1008. }
  1009. S = (Math.abs(B[1] ? B[0] : b) + Math.pow(10, -Math.max(x, O) - 1)).toFixed(x), O = String(N(S));
  1010. var w = 3 < O.length ? O.length % 3 : 0;
  1011. return u = R(u, E.decimalPoint), f = R(f, E.thousandsSep), b = (0 > b ? "-" : "") + (w ? O.substr(0, w) + f : ""), b = 0 > +B[1] && !M ? "0" : b + O.substr(w).replace(/(\d{3})(?=\d)/g, "$1" + f), x && (b += u + S.slice(-x)), B[1] && +b != 0 && (b += "e" + B[1]), b;
  1012. }
  1013. var Z = y.defaultOptions, H = y.defaultTime, U = j.getNestedProperty, F = j.isNumber, R = j.pick, N = j.pInt;
  1014. return { dateFormat: function(b, x, u) {
  1015. return H.dateFormat(b, x, u);
  1016. }, format: function(b, x, u) {
  1017. var f = "{", E = !1, O = /f$/, B = /\.([0-9])/, M = Z.lang, S = u && u.time || H;
  1018. u = u && u.numberFormatter || I;
  1019. for (var w = []; b; ) {
  1020. var v = b.indexOf(f);
  1021. if (v === -1)
  1022. break;
  1023. var a = b.slice(0, v);
  1024. if (E) {
  1025. if (a = a.split(":"), f = U(a.shift() || "", x), a.length && typeof f == "number")
  1026. if (a = a.join(":"), O.test(a)) {
  1027. var c = parseInt((a.match(B) || ["", "-1"])[1], 10);
  1028. f !== null && (f = u(f, c, M.decimalPoint, -1 < a.indexOf(",") ? M.thousandsSep : ""));
  1029. } else
  1030. f = S.dateFormat(a, f);
  1031. w.push(f);
  1032. } else
  1033. w.push(a);
  1034. b = b.slice(v + 1), f = (E = !E) ? "}" : "{";
  1035. }
  1036. return w.push(b), w.join("");
  1037. }, numberFormat: I };
  1038. }
  1039. ), T(l, "Core/Renderer/RendererUtilities.js", [l["Core/Utilities.js"]], function(y) {
  1040. var j = y.clamp, I = y.pick, Z = y.stableSort, H;
  1041. return function(U) {
  1042. function F(R, N, b) {
  1043. var x = R, u = x.reducedLen || N, f = function(w, v) {
  1044. return (v.rank || 0) - (w.rank || 0);
  1045. }, E = function(w, v) {
  1046. return w.target - v.target;
  1047. }, O, B = !0, M = [], S = 0;
  1048. for (O = R.length; O--; )
  1049. S += R[O].size;
  1050. if (S > u) {
  1051. for (Z(R, f), S = O = 0; S <= u; )
  1052. S += R[O].size, O++;
  1053. M = R.splice(O - 1, R.length);
  1054. }
  1055. for (Z(R, E), R = R.map(function(w) {
  1056. return { size: w.size, targets: [w.target], align: I(w.align, 0.5) };
  1057. }); B; ) {
  1058. for (O = R.length; O--; )
  1059. u = R[O], f = (Math.min.apply(0, u.targets) + Math.max.apply(0, u.targets)) / 2, u.pos = j(
  1060. f - u.size * u.align,
  1061. 0,
  1062. N - u.size
  1063. );
  1064. for (O = R.length, B = !1; O--; )
  1065. 0 < O && R[O - 1].pos + R[O - 1].size > R[O].pos && (R[O - 1].size += R[O].size, R[O - 1].targets = R[O - 1].targets.concat(R[O].targets), R[O - 1].align = 0.5, R[O - 1].pos + R[O - 1].size > N && (R[O - 1].pos = N - R[O - 1].size), R.splice(O, 1), B = !0);
  1066. }
  1067. return x.push.apply(x, M), O = 0, R.some(function(w) {
  1068. var v = 0;
  1069. return (w.targets || []).some(function() {
  1070. return x[O].pos = w.pos + v, typeof b < "u" && Math.abs(x[O].pos - x[O].target) > b ? (x.slice(0, O + 1).forEach(function(a) {
  1071. return delete a.pos;
  1072. }), x.reducedLen = (x.reducedLen || N) - 0.1 * N, x.reducedLen > 0.1 * N && F(x, N, b), !0) : (v += x[O].size, O++, !1);
  1073. });
  1074. }), Z(x, E), x;
  1075. }
  1076. U.distribute = F;
  1077. }(H || (H = {})), H;
  1078. }), T(l, "Core/Renderer/SVG/SVGElement.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Renderer/HTML/AST.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  1079. var U = y.animate, F = y.animObject, R = y.stop, N = Z.deg2rad, b = Z.doc, x = Z.noop, u = Z.svg, f = Z.SVG_NS, E = Z.win, O = H.addEvent, B = H.attr, M = H.createElement, S = H.css, w = H.defined, v = H.erase, a = H.extend, c = H.fireEvent, p = H.isArray, i = H.isFunction, h = H.isNumber, s = H.isString, t = H.merge, o = H.objectEach, n = H.pick, A = H.pInt, _ = H.syncTimeout, D = H.uniqueKey;
  1080. return y = function() {
  1081. function W() {
  1082. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = f, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  1083. }
  1084. return W.prototype._defaultGetter = function(P) {
  1085. return P = n(this[P + "Value"], this[P], this.element ? this.element.getAttribute(P) : null, 0), /^[\-0-9\.]+$/.test(P) && (P = parseFloat(P)), P;
  1086. }, W.prototype._defaultSetter = function(P, X, g) {
  1087. g.setAttribute(X, P);
  1088. }, W.prototype.add = function(P) {
  1089. var X = this.renderer, g = this.element;
  1090. if (P && (this.parentGroup = P), this.parentInverted = P && P.inverted, typeof this.textStr < "u" && this.element.nodeName === "text" && X.buildText(this), this.added = !0, !P || P.handleZ || this.zIndex)
  1091. var m = this.zIndexSetter();
  1092. return m || (P ? P.element : X.box).appendChild(g), this.onAdd && this.onAdd(), this;
  1093. }, W.prototype.addClass = function(P, X) {
  1094. var g = X ? "" : this.attr("class") || "";
  1095. return P = (P || "").split(/ /g).reduce(function(m, L) {
  1096. return g.indexOf(L) === -1 && m.push(L), m;
  1097. }, g ? [g] : []).join(" "), P !== g && this.attr("class", P), this;
  1098. }, W.prototype.afterSetters = function() {
  1099. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  1100. }, W.prototype.align = function(P, X, g) {
  1101. var m = {}, L = this.renderer, Y = L.alignedObjects, V, Q, k;
  1102. P ? (this.alignOptions = P, this.alignByTranslate = X, (!g || s(g)) && (this.alignTo = V = g || "renderer", v(Y, this), Y.push(this), g = void 0)) : (P = this.alignOptions, X = this.alignByTranslate, V = this.alignTo), g = n(g, L[V], V === "scrollablePlotBox" ? L.plotBox : void 0, L), V = P.align;
  1103. var G = P.verticalAlign;
  1104. return L = (g.x || 0) + (P.x || 0), Y = (g.y || 0) + (P.y || 0), V === "right" ? Q = 1 : V === "center" && (Q = 2), Q && (L += (g.width - (P.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), G === "bottom" ? k = 1 : G === "middle" && (k = 2), k && (Y += (g.height - (P.height || 0)) / k), m[X ? "translateY" : "y"] = Math.round(Y), this[this.placed ? "animate" : "attr"](m), this.placed = !0, this.alignAttr = m, this;
  1105. }, W.prototype.alignSetter = function(P) {
  1106. var X = { left: "start", center: "middle", right: "end" };
  1107. X[P] && (this.alignValue = P, this.element.setAttribute(
  1108. "text-anchor",
  1109. X[P]
  1110. ));
  1111. }, W.prototype.animate = function(P, X, g) {
  1112. var m = this, L = F(n(X, this.renderer.globalAnimation, !0));
  1113. return X = L.defer, n(b.hidden, b.msHidden, b.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (g && (L.complete = g), _(function() {
  1114. m.element && U(m, P, L);
  1115. }, X)) : (this.attr(P, void 0, g), o(P, function(Y, V) {
  1116. L.step && L.step.call(this, Y, { prop: V, pos: 1, elem: this });
  1117. }, this)), this;
  1118. }, W.prototype.applyTextOutline = function(P) {
  1119. var X = this.element;
  1120. P.indexOf("contrast") !== -1 && (P = P.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  1121. var g = P.split(" ");
  1122. if (P = g[g.length - 1], (g = g[0]) && g !== "none" && Z.svg) {
  1123. this.fakeTS = !0, this.ySetter = this.xSetter, g = g.replace(/(^[\d\.]+)(.*?)$/g, function(Y, V, Q) {
  1124. return 2 * Number(V) + Q;
  1125. }), this.removeTextOutline();
  1126. var m = b.createElementNS(f, "tspan");
  1127. B(m, { class: "highcharts-text-outline", fill: P, stroke: P, "stroke-width": g, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(Y) {
  1128. var V = Y.cloneNode(!0);
  1129. V.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  1130. return V.removeAttribute(Q);
  1131. }), m.appendChild(V);
  1132. });
  1133. var L = b.createElementNS(f, "tspan");
  1134. L.textContent = "​", ["x", "y"].forEach(function(Y) {
  1135. var V = X.getAttribute(Y);
  1136. V && L.setAttribute(Y, V);
  1137. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  1138. }
  1139. }, W.prototype.attr = function(P, X, g, m) {
  1140. var L = this.element, Y = this.symbolCustomAttribs, V, Q = this, k, G;
  1141. if (typeof P == "string" && typeof X < "u") {
  1142. var z = P;
  1143. P = {}, P[z] = X;
  1144. }
  1145. return typeof P == "string" ? Q = (this[P + "Getter"] || this._defaultGetter).call(this, P, L) : (o(P, function($, q) {
  1146. k = !1, m || R(this, q), this.symbolName && Y.indexOf(q) !== -1 && (V || (this.symbolAttr(P), V = !0), k = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), k || (G = this[q + "Setter"] || this._defaultSetter, G.call(this, $, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, $, G));
  1147. }, this), this.afterSetters()), g && g.call(this), Q;
  1148. }, W.prototype.clip = function(P) {
  1149. return this.attr("clip-path", P ? "url(" + this.renderer.url + "#" + P.id + ")" : "none");
  1150. }, W.prototype.crisp = function(P, X) {
  1151. X = X || P.strokeWidth || 0;
  1152. var g = Math.round(X) % 2 / 2;
  1153. return P.x = Math.floor(P.x || this.x || 0) + g, P.y = Math.floor(P.y || this.y || 0) + g, P.width = Math.floor((P.width || this.width || 0) - 2 * g), P.height = Math.floor((P.height || this.height || 0) - 2 * g), w(P.strokeWidth) && (P.strokeWidth = X), P;
  1154. }, W.prototype.complexColor = function(P, X, g) {
  1155. var m = this.renderer, L, Y, V, Q, k, G, z, $, q, it, et = [], nt;
  1156. c(this.renderer, "complexColor", { args: arguments }, function() {
  1157. if (P.radialGradient ? Y = "radialGradient" : P.linearGradient && (Y = "linearGradient"), Y) {
  1158. if (V = P[Y], k = m.gradients, G = P.stops, q = g.radialReference, p(V) && (P[Y] = V = { x1: V[0], y1: V[1], x2: V[2], y2: V[3], gradientUnits: "userSpaceOnUse" }), Y === "radialGradient" && q && !w(V.gradientUnits) && (Q = V, V = t(V, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), o(V, function(ct, gt) {
  1159. gt !== "id" && et.push(gt, ct);
  1160. }), o(G, function(ct) {
  1161. et.push(ct);
  1162. }), et = et.join(","), k[et])
  1163. it = k[et].attr("id");
  1164. else {
  1165. V.id = it = D();
  1166. var rt = k[et] = m.createElement(Y).attr(V).add(m.defs);
  1167. rt.radAttr = Q, rt.stops = [], G.forEach(function(ct) {
  1168. ct[1].indexOf("rgba") === 0 ? (L = I.parse(ct[1]), z = L.get("rgb"), $ = L.get("a")) : (z = ct[1], $ = 1), ct = m.createElement("stop").attr({
  1169. offset: ct[0],
  1170. "stop-color": z,
  1171. "stop-opacity": $
  1172. }).add(rt), rt.stops.push(ct);
  1173. });
  1174. }
  1175. nt = "url(" + m.url + "#" + it + ")", g.setAttribute(X, nt), g.gradient = et, P.toString = function() {
  1176. return nt;
  1177. };
  1178. }
  1179. });
  1180. }, W.prototype.css = function(P) {
  1181. var X = this.styles, g = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], Y = "", V = !X;
  1182. if (P && P.color && (P.fill = P.color), X && o(P, function(G, z) {
  1183. X && X[z] !== G && (g[z] = G, V = !0);
  1184. }), V) {
  1185. if (X && (P = a(X, g)), P) {
  1186. if (P.width === null || P.width === "auto")
  1187. delete this.textWidth;
  1188. else if (m.nodeName.toLowerCase() === "text" && P.width)
  1189. var Q = this.textWidth = A(P.width);
  1190. }
  1191. if (this.styles = P, Q && !u && this.renderer.forExport && delete P.width, m.namespaceURI === this.SVG_NS) {
  1192. var k = function(G, z) {
  1193. return "-" + z.toLowerCase();
  1194. };
  1195. o(P, function(G, z) {
  1196. L.indexOf(z) === -1 && (Y += z.replace(/([A-Z])/g, k) + ":" + G + ";");
  1197. }), Y && B(m, "style", Y);
  1198. } else
  1199. S(m, P);
  1200. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), P && P.textOutline && this.applyTextOutline(P.textOutline));
  1201. }
  1202. return this;
  1203. }, W.prototype.dashstyleSetter = function(P) {
  1204. var X = this["stroke-width"];
  1205. if (X === "inherit" && (X = 1), P = P && P.toLowerCase()) {
  1206. var g = P.replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot", "3,1,1,1").replace("shortdot", "1,1,").replace("shortdash", "3,1,").replace("longdash", "8,3,").replace(/dot/g, "1,3,").replace("dash", "4,3,").replace(/,$/, "").split(",");
  1207. for (P = g.length; P--; )
  1208. g[P] = "" + A(g[P]) * n(X, NaN);
  1209. P = g.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", P);
  1210. }
  1211. }, W.prototype.destroy = function() {
  1212. var P = this, X = P.element || {}, g = P.renderer, m = X.ownerSVGElement, L = g.isSVG && X.nodeName === "SPAN" && P.parentGroup || void 0;
  1213. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, R(P), P.clipPath && m) {
  1214. var Y = P.clipPath;
  1215. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function(V) {
  1216. -1 < V.getAttribute("clip-path").indexOf(Y.element.id) && V.removeAttribute("clip-path");
  1217. }), P.clipPath = Y.destroy();
  1218. }
  1219. if (P.stops) {
  1220. for (m = 0; m < P.stops.length; m++)
  1221. P.stops[m].destroy();
  1222. P.stops.length = 0, P.stops = void 0;
  1223. }
  1224. for (P.safeRemoveChild(X), g.styledMode || P.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  1225. X = L.parentGroup, P.safeRemoveChild(L.div), delete L.div, L = X;
  1226. P.alignTo && v(g.alignedObjects, P), o(P, function(V, Q) {
  1227. P[Q] && P[Q].parentGroup === P && P[Q].destroy && P[Q].destroy(), delete P[Q];
  1228. });
  1229. }, W.prototype.destroyShadows = function() {
  1230. (this.shadows || []).forEach(function(P) {
  1231. this.safeRemoveChild(P);
  1232. }, this), this.shadows = void 0;
  1233. }, W.prototype.destroyTextPath = function(P, X) {
  1234. var g = P.getElementsByTagName("text")[0];
  1235. if (g) {
  1236. if (g.removeAttribute("dx"), g.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && g.getElementsByTagName("textPath").length) {
  1237. for (P = this.textPathWrapper.element.childNodes; P.length; )
  1238. g.appendChild(P[0]);
  1239. g.removeChild(this.textPathWrapper.element);
  1240. }
  1241. } else
  1242. (P.getAttribute("dx") || P.getAttribute("dy")) && (P.removeAttribute("dx"), P.removeAttribute("dy"));
  1243. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  1244. }, W.prototype.dSetter = function(P, X, g) {
  1245. p(P) && (typeof P[0] == "string" && (P = this.renderer.pathToSegments(P)), this.pathArray = P, P = P.reduce(function(m, L, Y) {
  1246. return L && L.join ? (Y ? m + " " : "") + L.join(" ") : (L || "").toString();
  1247. }, "")), /(NaN| {2}|^$)/.test(P) && (P = "M 0 0"), this[X] !== P && (g.setAttribute(X, P), this[X] = P);
  1248. }, W.prototype.fadeOut = function(P) {
  1249. var X = this;
  1250. X.animate({ opacity: 0 }, { duration: n(P, 150), complete: function() {
  1251. X.attr({ y: -9999 }).hide();
  1252. } });
  1253. }, W.prototype.fillSetter = function(P, X, g) {
  1254. typeof P == "string" ? g.setAttribute(X, P) : P && this.complexColor(P, X, g);
  1255. }, W.prototype.getBBox = function(P, X) {
  1256. var g = this.renderer, m = this.element, L = this.styles, Y = this.textStr, V = g.cache, Q = g.cacheKeys, k = m.namespaceURI === this.SVG_NS;
  1257. X = n(X, this.rotation, 0);
  1258. var G = g.styledMode ? m && W.prototype.getStyle.call(m, "font-size") : L && L.fontSize, z;
  1259. if (w(Y)) {
  1260. var $ = Y.toString();
  1261. $.indexOf("<") === -1 && ($ = $.replace(/[0-9]/g, "0")), $ += ["", X, G, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  1262. }
  1263. if ($ && !P && (z = V[$]), !z) {
  1264. if (k || g.forExport) {
  1265. try {
  1266. var q = this.fakeTS && function(it) {
  1267. var et = m.querySelector(".highcharts-text-outline");
  1268. et && S(et, { display: it });
  1269. };
  1270. i(q) && q("none"), z = m.getBBox ? a({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  1271. } catch {
  1272. }
  1273. (!z || 0 > z.width) && (z = {
  1274. width: 0,
  1275. height: 0
  1276. });
  1277. } else
  1278. z = this.htmlGetBBox();
  1279. if (g.isSVG && (P = z.width, g = z.height, k && (z.height = g = { "11px,17": 14, "13px,20": 16 }[(G || "") + "," + Math.round(g)] || g), X && (k = X * N, z.width = Math.abs(g * Math.sin(k)) + Math.abs(P * Math.cos(k)), z.height = Math.abs(g * Math.cos(k)) + Math.abs(P * Math.sin(k)))), $ && (Y === "" || 0 < z.height)) {
  1280. for (; 250 < Q.length; )
  1281. delete V[Q.shift()];
  1282. V[$] || Q.push($), V[$] = z;
  1283. }
  1284. }
  1285. return z;
  1286. }, W.prototype.getStyle = function(P) {
  1287. return E.getComputedStyle(this.element || this, "").getPropertyValue(P);
  1288. }, W.prototype.hasClass = function(P) {
  1289. return ("" + this.attr("class")).split(" ").indexOf(P) !== -1;
  1290. }, W.prototype.hide = function(P) {
  1291. return P ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  1292. }, W.prototype.htmlGetBBox = function() {
  1293. return { height: 0, width: 0, x: 0, y: 0 };
  1294. }, W.prototype.init = function(P, X) {
  1295. this.element = X === "span" ? M(X) : b.createElementNS(this.SVG_NS, X), this.renderer = P, c(this, "afterInit");
  1296. }, W.prototype.invert = function(P) {
  1297. return this.inverted = P, this.updateTransform(), this;
  1298. }, W.prototype.on = function(P, X) {
  1299. var g = this.onEvents;
  1300. return g[P] && g[P](), g[P] = O(
  1301. this.element,
  1302. P,
  1303. X
  1304. ), this;
  1305. }, W.prototype.opacitySetter = function(P, X, g) {
  1306. this.opacity = P = Number(Number(P).toFixed(3)), g.setAttribute(X, P);
  1307. }, W.prototype.removeClass = function(P) {
  1308. return this.attr("class", ("" + this.attr("class")).replace(s(P) ? new RegExp("(^| )" + P + "( |$)") : P, " ").replace(/ +/g, " ").trim());
  1309. }, W.prototype.removeTextOutline = function() {
  1310. var P = this.element.querySelector("tspan.highcharts-text-outline");
  1311. P && this.safeRemoveChild(P);
  1312. }, W.prototype.safeRemoveChild = function(P) {
  1313. var X = P.parentNode;
  1314. X && X.removeChild(P);
  1315. }, W.prototype.setRadialReference = function(P) {
  1316. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  1317. return this.element.radialReference = P, X && X.radAttr && X.animate(this.renderer.getRadialAttr(P, X.radAttr)), this;
  1318. }, W.prototype.setTextPath = function(P, X) {
  1319. var g = this.element, m = this.text ? this.text.element : g, L = { textAnchor: "text-anchor" }, Y = !1, V = this.textPathWrapper, Q = !V;
  1320. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  1321. var k = j.filterUserAttributes(X.attributes);
  1322. if (P && X && X.enabled) {
  1323. V && V.element.parentNode === null ? (Q = !0, V = V.destroy()) : V && this.removeTextOutline.call(V.parentGroup), this.options && this.options.padding && (k.dx = -this.options.padding), V || (this.textPathWrapper = V = this.renderer.createElement("textPath"), Y = !0);
  1324. var G = V.element;
  1325. if ((X = P.element.getAttribute("id")) || P.element.setAttribute("id", X = D()), Q)
  1326. for (m.setAttribute("y", 0), h(k.dx) && m.setAttribute("x", -k.dx), P = [].slice.call(m.childNodes), Q = 0; Q < P.length; Q++) {
  1327. var z = P[Q];
  1328. z.nodeType !== E.Node.TEXT_NODE && z.nodeName !== "tspan" || G.appendChild(z);
  1329. }
  1330. Y && V && V.add({ element: m }), G.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), w(k.dy) && (G.parentNode.setAttribute("dy", k.dy), delete k.dy), w(k.dx) && (G.parentNode.setAttribute("dx", k.dx), delete k.dx), o(k, function($, q) {
  1331. G.setAttribute(L[q] || q, $);
  1332. }), g.removeAttribute("transform"), this.removeTextOutline.call(V), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = x;
  1333. } else
  1334. V && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(g, P), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  1335. return this;
  1336. }, W.prototype.shadow = function(P, X, g) {
  1337. var m = [], L = this.element, Y = this.oldShadowOptions, V = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, k;
  1338. if (P === !0 ? k = V : typeof P == "object" && (k = a(V, P)), k && (k && Y && o(k, function(it, et) {
  1339. it !== Y[et] && (Q = !0);
  1340. }), Q && this.destroyShadows(), this.oldShadowOptions = k), !k)
  1341. this.destroyShadows();
  1342. else if (!this.shadows) {
  1343. var G = k.opacity / k.width, z = this.parentInverted ? "translate(" + k.offsetY + ", " + k.offsetX + ")" : "translate(" + k.offsetX + ", " + k.offsetY + ")";
  1344. for (V = 1; V <= k.width; V++) {
  1345. var $ = L.cloneNode(!1), q = 2 * k.width + 1 - 2 * V;
  1346. B($, { stroke: P.color || "#000000", "stroke-opacity": G * V, "stroke-width": q, transform: z, fill: "none" }), $.setAttribute("class", ($.getAttribute("class") || "") + " highcharts-shadow"), g && (B($, "height", Math.max(B($, "height") - q, 0)), $.cutHeight = q), X ? X.element.appendChild($) : L.parentNode && L.parentNode.insertBefore($, L), m.push($);
  1347. }
  1348. this.shadows = m;
  1349. }
  1350. return this;
  1351. }, W.prototype.show = function(P) {
  1352. return this.attr({ visibility: P ? "inherit" : "visible" });
  1353. }, W.prototype.strokeSetter = function(P, X, g) {
  1354. this[X] = P, this.stroke && this["stroke-width"] ? (W.prototype.fillSetter.call(this, this.stroke, "stroke", g), g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0) : X === "stroke-width" && P === 0 && this.hasStroke ? (g.removeAttribute("stroke"), this.hasStroke = !1) : this.renderer.styledMode && this["stroke-width"] && (g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0);
  1355. }, W.prototype.strokeWidth = function() {
  1356. if (!this.renderer.styledMode)
  1357. return this["stroke-width"] || 0;
  1358. var P = this.getStyle("stroke-width"), X = 0;
  1359. if (P.indexOf("px") === P.length - 2)
  1360. X = A(P);
  1361. else if (P !== "") {
  1362. var g = b.createElementNS(f, "rect");
  1363. B(g, { width: P, "stroke-width": 0 }), this.element.parentNode.appendChild(g), X = g.getBBox().width, g.parentNode.removeChild(g);
  1364. }
  1365. return X;
  1366. }, W.prototype.symbolAttr = function(P) {
  1367. var X = this;
  1368. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g) {
  1369. X[g] = n(P[g], X[g]);
  1370. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  1371. }, W.prototype.textSetter = function(P) {
  1372. P !== this.textStr && (delete this.textPxLength, this.textStr = P, this.added && this.renderer.buildText(this));
  1373. }, W.prototype.titleSetter = function(P) {
  1374. var X = this.element, g = X.getElementsByTagName("title")[0] || b.createElementNS(this.SVG_NS, "title");
  1375. X.insertBefore ? X.insertBefore(g, X.firstChild) : X.appendChild(g), g.textContent = String(n(P, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  1376. /&gt;/g,
  1377. ">"
  1378. );
  1379. }, W.prototype.toFront = function() {
  1380. var P = this.element;
  1381. return P.parentNode.appendChild(P), this;
  1382. }, W.prototype.translate = function(P, X) {
  1383. return this.attr({ translateX: P, translateY: X });
  1384. }, W.prototype.updateShadows = function(P, X, g) {
  1385. var m = this.shadows;
  1386. if (m)
  1387. for (var L = m.length; L--; )
  1388. g.call(m[L], P === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : P === "d" ? this.d : X, P, m[L]);
  1389. }, W.prototype.updateTransform = function() {
  1390. var P = this.scaleX, X = this.scaleY, g = this.inverted, m = this.rotation, L = this.matrix, Y = this.element, V = this.translateX || 0, Q = this.translateY || 0;
  1391. g && (V += this.width, Q += this.height), V = ["translate(" + V + "," + Q + ")"], w(L) && V.push("matrix(" + L.join(",") + ")"), g ? V.push("rotate(90) scale(-1,1)") : m && V.push("rotate(" + m + " " + n(this.rotationOriginX, Y.getAttribute("x"), 0) + " " + n(this.rotationOriginY, Y.getAttribute("y") || 0) + ")"), (w(P) || w(X)) && V.push("scale(" + n(P, 1) + " " + n(X, 1) + ")"), V.length && Y.setAttribute("transform", V.join(" "));
  1392. }, W.prototype.visibilitySetter = function(P, X, g) {
  1393. P === "inherit" ? g.removeAttribute(X) : this[X] !== P && g.setAttribute(
  1394. X,
  1395. P
  1396. ), this[X] = P;
  1397. }, W.prototype.xGetter = function(P) {
  1398. return this.element.nodeName === "circle" && (P === "x" ? P = "cx" : P === "y" && (P = "cy")), this._defaultGetter(P);
  1399. }, W.prototype.zIndexSetter = function(P, X) {
  1400. var g = this.renderer, m = this.parentGroup, L = (m || g).element || g.box, Y = this.element;
  1401. g = L === g.box;
  1402. var V = !1, Q = this.added, k;
  1403. if (w(P) ? (Y.setAttribute("data-z-index", P), P = +P, this[X] === P && (Q = !1)) : w(this[X]) && Y.removeAttribute("data-z-index"), this[X] = P, Q) {
  1404. for ((P = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, k = X.length - 1; 0 <= k && !V; k--) {
  1405. m = X[k], Q = m.getAttribute("data-z-index");
  1406. var G = !w(Q);
  1407. m !== Y && (0 > P && G && !g && !k ? (L.insertBefore(Y, X[k]), V = !0) : (A(Q) <= P || G && (!w(P) || 0 <= P)) && (L.insertBefore(Y, X[k + 1] || null), V = !0));
  1408. }
  1409. V || (L.insertBefore(Y, X[g ? 3 : 0] || null), V = !0);
  1410. }
  1411. return V;
  1412. }, W;
  1413. }(), y.prototype["stroke-widthSetter"] = y.prototype.strokeSetter, y.prototype.yGetter = y.prototype.xGetter, y.prototype.matrixSetter = y.prototype.rotationOriginXSetter = y.prototype.rotationOriginYSetter = y.prototype.rotationSetter = y.prototype.scaleXSetter = y.prototype.scaleYSetter = y.prototype.translateXSetter = y.prototype.translateYSetter = y.prototype.verticalAlignSetter = function(W, P) {
  1414. this[P] = W, this.doTransform = !0;
  1415. }, y;
  1416. }), T(l, "Core/Renderer/RendererRegistry.js", [l["Core/Globals.js"]], function(y) {
  1417. var j;
  1418. return function(I) {
  1419. I.rendererTypes = {};
  1420. var Z;
  1421. I.getRendererType = function(H) {
  1422. return H === void 0 && (H = Z), I.rendererTypes[H] || I.rendererTypes[Z];
  1423. }, I.registerRendererType = function(H, U, F) {
  1424. I.rendererTypes[H] = U, (!Z || F) && (Z = H, y.Renderer = U);
  1425. };
  1426. }(j || (j = {})), j;
  1427. }), T(
  1428. l,
  1429. "Core/Renderer/SVG/SVGLabel.js",
  1430. [l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]],
  1431. function(y, j) {
  1432. var I = this && this.__extends || function() {
  1433. var b = function(x, u) {
  1434. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, E) {
  1435. f.__proto__ = E;
  1436. } || function(f, E) {
  1437. for (var O in E)
  1438. E.hasOwnProperty(O) && (f[O] = E[O]);
  1439. }, b(x, u);
  1440. };
  1441. return function(x, u) {
  1442. function f() {
  1443. this.constructor = x;
  1444. }
  1445. b(x, u), x.prototype = u === null ? Object.create(u) : (f.prototype = u.prototype, new f());
  1446. };
  1447. }(), Z = j.defined, H = j.extend, U = j.isNumber, F = j.merge, R = j.pick, N = j.removeEvent;
  1448. return function(b) {
  1449. function x(u, f, E, O, B, M, S, w, v, a) {
  1450. var c = b.call(this) || this;
  1451. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(u, "g"), c.textStr = f, c.x = E, c.y = O, c.anchorX = M, c.anchorY = S, c.baseline = v, c.className = a, c.addClass(a === "button" ? "highcharts-no-tooltip" : "highcharts-label"), a && c.addClass("highcharts-" + a), c.text = u.text(void 0, 0, 0, w).attr({ zIndex: 1 });
  1452. var p;
  1453. return typeof B == "string" && ((p = /^url\((.*?)\)$/.test(B)) || c.renderer.symbols[B]) && (c.symbolKey = B), c.bBox = x.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = u.styledMode || p, c.deferredAttr = {}, c.alignFactor = 0, c;
  1454. }
  1455. return I(x, b), x.prototype.alignSetter = function(u) {
  1456. u = { left: 0, center: 0.5, right: 1 }[u], u !== this.alignFactor && (this.alignFactor = u, this.bBox && U(this.xSetting) && this.attr({ x: this.xSetting }));
  1457. }, x.prototype.anchorXSetter = function(u, f) {
  1458. this.anchorX = u, this.boxAttr(f, Math.round(u) - this.getCrispAdjust() - this.xSetting);
  1459. }, x.prototype.anchorYSetter = function(u, f) {
  1460. this.anchorY = u, this.boxAttr(f, u - this.ySetting);
  1461. }, x.prototype.boxAttr = function(u, f) {
  1462. this.box ? this.box.attr(u, f) : this.deferredAttr[u] = f;
  1463. }, x.prototype.css = function(u) {
  1464. if (u) {
  1465. var f = {};
  1466. u = F(u), x.textProps.forEach(function(O) {
  1467. typeof u[O] < "u" && (f[O] = u[O], delete u[O]);
  1468. }), this.text.css(f);
  1469. var E = "width" in f;
  1470. "fontSize" in f || "fontWeight" in f ? this.updateTextPadding() : E && this.updateBoxSize();
  1471. }
  1472. return y.prototype.css.call(this, u);
  1473. }, x.prototype.destroy = function() {
  1474. N(this.element, "mouseenter"), N(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  1475. }, x.prototype.fillSetter = function(u, f) {
  1476. u && (this.needsBox = !0), this.fill = u, this.boxAttr(f, u);
  1477. }, x.prototype.getBBox = function() {
  1478. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  1479. var u = this.padding, f = R(this.paddingLeft, u);
  1480. return { width: this.width, height: this.height, x: this.bBox.x - f, y: this.bBox.y - u };
  1481. }, x.prototype.getCrispAdjust = function() {
  1482. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  1483. this["stroke-width"],
  1484. 10
  1485. ) : 0) % 2 / 2;
  1486. }, x.prototype.heightSetter = function(u) {
  1487. this.heightSetting = u;
  1488. }, x.prototype.onAdd = function() {
  1489. var u = this.textStr;
  1490. this.text.add(this), this.attr({ text: Z(u) ? u : "", x: this.x, y: this.y }), this.box && Z(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  1491. }, x.prototype.paddingSetter = function(u, f) {
  1492. U(u) ? u !== this[f] && (this[f] = u, this.updateTextPadding()) : this[f] = void 0;
  1493. }, x.prototype.rSetter = function(u, f) {
  1494. this.boxAttr(f, u);
  1495. }, x.prototype.shadow = function(u) {
  1496. return u && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(u)), this;
  1497. }, x.prototype.strokeSetter = function(u, f) {
  1498. this.stroke = u, this.boxAttr(f, u);
  1499. }, x.prototype["stroke-widthSetter"] = function(u, f) {
  1500. u && (this.needsBox = !0), this["stroke-width"] = u, this.boxAttr(f, u);
  1501. }, x.prototype["text-alignSetter"] = function(u) {
  1502. this.textAlign = u;
  1503. }, x.prototype.textSetter = function(u) {
  1504. typeof u < "u" && this.text.attr({ text: u }), this.updateTextPadding();
  1505. }, x.prototype.updateBoxSize = function() {
  1506. var u = this.text.element.style, f = {}, E = this.padding, O = this.bBox = U(this.widthSetting) && U(this.heightSetting) && !this.textAlign || !Z(this.text.textStr) ? x.emptyBBox : this.text.getBBox();
  1507. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * E, u = this.renderer.fontMetrics(u && u.fontSize, this.text), this.baselineOffset = E + Math.min((this.text.firstLineMetrics || u).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - u.h) / 2), this.needsBox && (this.box || (E = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), E.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), E.add(this)), E = this.getCrispAdjust(), f.x = E, f.y = (this.baseline ? -this.baselineOffset : 0) + E, f.width = Math.round(this.width), f.height = Math.round(this.height), this.box.attr(H(f, this.deferredAttr)), this.deferredAttr = {});
  1508. }, x.prototype.updateTextPadding = function() {
  1509. var u = this.text;
  1510. this.updateBoxSize();
  1511. var f = this.baseline ? 0 : this.baselineOffset, E = R(this.paddingLeft, this.padding);
  1512. Z(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (E += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (E !== u.x || f !== u.y) && (u.attr("x", E), u.hasBoxWidthChanged && (this.bBox = u.getBBox(!0)), typeof f < "u" && u.attr("y", f)), u.x = E, u.y = f;
  1513. }, x.prototype.widthSetter = function(u) {
  1514. this.widthSetting = U(u) ? u : void 0;
  1515. }, x.prototype.getPaddedWidth = function() {
  1516. var u = this.padding, f = R(this.paddingLeft, u);
  1517. return u = R(this.paddingRight, u), (this.widthSetting || this.bBox.width || 0) + f + u;
  1518. }, x.prototype.xSetter = function(u) {
  1519. this.x = u, this.alignFactor && (u -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(u), this.attr("translateX", this.xSetting);
  1520. }, x.prototype.ySetter = function(u) {
  1521. this.ySetting = this.y = Math.round(u), this.attr("translateY", this.ySetting);
  1522. }, x.emptyBBox = { width: 0, height: 0, x: 0, y: 0 }, x.textProps = "color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "), x;
  1523. }(y);
  1524. }
  1525. ), T(
  1526. l,
  1527. "Core/Renderer/SVG/Symbols.js",
  1528. [l["Core/Utilities.js"]],
  1529. function(y) {
  1530. function j(R, N, b, x, u) {
  1531. var f = [];
  1532. if (u) {
  1533. var E = u.start || 0, O = F(u.r, b);
  1534. b = F(u.r, x || b);
  1535. var B = (u.end || 0) - 1e-3;
  1536. x = u.innerR;
  1537. var M = F(u.open, 1e-3 > Math.abs((u.end || 0) - E - 2 * Math.PI)), S = Math.cos(E), w = Math.sin(E), v = Math.cos(B), a = Math.sin(B);
  1538. E = F(u.longArc, 1e-3 > B - E - Math.PI ? 0 : 1), f.push(["M", R + O * S, N + b * w], ["A", O, b, 0, E, F(u.clockwise, 1), R + O * v, N + b * a]), H(x) && f.push(M ? ["M", R + x * v, N + x * a] : ["L", R + x * v, N + x * a], ["A", x, x, 0, E, H(u.clockwise) ? 1 - u.clockwise : 0, R + x * S, N + x * w]), M || f.push(["Z"]);
  1539. }
  1540. return f;
  1541. }
  1542. function I(R, N, b, x, u) {
  1543. return u && u.r ? Z(R, N, b, x, u) : [["M", R, N], ["L", R + b, N], ["L", R + b, N + x], ["L", R, N + x], ["Z"]];
  1544. }
  1545. function Z(R, N, b, x, u) {
  1546. return u = u && u.r || 0, [["M", R + u, N], ["L", R + b - u, N], ["C", R + b, N, R + b, N, R + b, N + u], ["L", R + b, N + x - u], ["C", R + b, N + x, R + b, N + x, R + b - u, N + x], ["L", R + u, N + x], ["C", R, N + x, R, N + x, R, N + x - u], ["L", R, N + u], ["C", R, N, R, N, R + u, N]];
  1547. }
  1548. var H = y.defined, U = y.isNumber, F = y.pick;
  1549. return { arc: j, callout: function(R, N, b, x, u) {
  1550. var f = Math.min(u && u.r || 0, b, x), E = f + 6, O = u && u.anchorX;
  1551. u = u && u.anchorY || 0;
  1552. var B = Z(R, N, b, x, { r: f });
  1553. return U(O) && (R + O >= b ? u > N + E && u < N + x - E ? B.splice(3, 1, ["L", R + b, u - 6], ["L", R + b + 6, u], ["L", R + b, u + 6], ["L", R + b, N + x - f]) : B.splice(3, 1, ["L", R + b, x / 2], ["L", O, u], ["L", R + b, x / 2], ["L", R + b, N + x - f]) : 0 >= R + O ? u > N + E && u < N + x - E ? B.splice(7, 1, ["L", R, u + 6], ["L", R - 6, u], ["L", R, u - 6], ["L", R, N + f]) : B.splice(7, 1, ["L", R, x / 2], ["L", O, u], ["L", R, x / 2], ["L", R, N + f]) : u && u > x && O > R + E && O < R + b - E ? B.splice(5, 1, ["L", O + 6, N + x], ["L", O, N + x + 6], ["L", O - 6, N + x], ["L", R + f, N + x]) : u && 0 > u && O > R + E && O < R + b - E && B.splice(1, 1, ["L", O - 6, N], ["L", O, N - 6], ["L", O + 6, N], ["L", b - f, N])), B;
  1554. }, circle: function(R, N, b, x) {
  1555. return j(R + b / 2, N + x / 2, b / 2, x / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  1556. }, diamond: function(R, N, b, x) {
  1557. return [["M", R + b / 2, N], ["L", R + b, N + x / 2], ["L", R + b / 2, N + x], ["L", R, N + x / 2], ["Z"]];
  1558. }, rect: I, roundedRect: Z, square: I, triangle: function(R, N, b, x) {
  1559. return [["M", R + b / 2, N], ["L", R + b, N + x], ["L", R, N + x], ["Z"]];
  1560. }, "triangle-down": function(R, N, b, x) {
  1561. return [["M", R, N], ["L", R + b, N], ["L", R + b / 2, N + x], ["Z"]];
  1562. } };
  1563. }
  1564. ), T(l, "Core/Renderer/SVG/TextBuilder.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I) {
  1565. var Z = j.doc, H = j.SVG_NS, U = j.win, F = I.attr, R = I.isString, N = I.objectEach, b = I.pick;
  1566. return function() {
  1567. function x(u) {
  1568. var f = u.styles;
  1569. this.renderer = u.renderer, this.svgElement = u, this.width = u.textWidth, this.textLineHeight = f && f.lineHeight, this.textOutline = f && f.textOutline, this.ellipsis = !(!f || f.textOverflow !== "ellipsis"), this.noWrap = !(!f || f.whiteSpace !== "nowrap"), this.fontSize = f && f.fontSize;
  1570. }
  1571. return x.prototype.buildSVG = function() {
  1572. var u = this.svgElement, f = u.element, E = u.renderer, O = b(u.textStr, "").toString(), B = O.indexOf("<") !== -1, M = f.childNodes;
  1573. E = this.width && !u.added && E.box;
  1574. var S = /<br.*?>/g, w = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  1575. if (w !== u.textCache) {
  1576. for (u.textCache = w, delete u.actualWidth, w = M.length; w--; )
  1577. f.removeChild(M[w]);
  1578. B || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || S.test(O)) ? O !== "" && (E && E.appendChild(f), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(u.element), this.modifyDOM(), this.ellipsis && (f.textContent || "").indexOf("…") !== -1 && u.attr(
  1579. "title",
  1580. this.unescapeEntities(u.textStr || "", ["&lt;", "&gt;"])
  1581. ), E && E.removeChild(f)) : f.appendChild(Z.createTextNode(this.unescapeEntities(O))), R(this.textOutline) && u.applyTextOutline && u.applyTextOutline(this.textOutline);
  1582. }
  1583. }, x.prototype.modifyDOM = function() {
  1584. var u = this, f = this.svgElement, E = F(f.element, "x");
  1585. f.firstLineMetrics = void 0;
  1586. for (var O; (O = f.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  1587. f.element.removeChild(O);
  1588. [].forEach.call(f.element.querySelectorAll("tspan.highcharts-br"), function(w, v) {
  1589. w.nextSibling && w.previousSibling && (v === 0 && w.previousSibling.nodeType === 1 && (f.firstLineMetrics = f.renderer.fontMetrics(void 0, w.previousSibling)), F(w, { dy: u.getLineHeight(w.nextSibling), x: E }));
  1590. });
  1591. var B = this.width || 0;
  1592. if (B) {
  1593. var M = function(w, v) {
  1594. var a = w.textContent || "", c = a.replace(/([^\^])-/g, "$1- ").split(" "), p = !u.noWrap && (1 < c.length || 1 < f.element.childNodes.length), i = u.getLineHeight(v), h = 0, s = f.actualWidth;
  1595. if (u.ellipsis)
  1596. a && u.truncate(w, a, void 0, 0, Math.max(0, B - parseInt(u.fontSize || 12, 10)), function(t, o) {
  1597. return t.substring(
  1598. 0,
  1599. o
  1600. ) + "…";
  1601. });
  1602. else if (p) {
  1603. for (a = [], p = []; v.firstChild && v.firstChild !== w; )
  1604. p.push(v.firstChild), v.removeChild(v.firstChild);
  1605. for (; c.length; )
  1606. c.length && !u.noWrap && 0 < h && (a.push(w.textContent || ""), w.textContent = c.join(" ").replace(/- /g, "-")), u.truncate(w, void 0, c, h === 0 && s || 0, B, function(t, o) {
  1607. return c.slice(0, o).join(" ").replace(/- /g, "-");
  1608. }), s = f.actualWidth, h++;
  1609. p.forEach(function(t) {
  1610. v.insertBefore(t, w);
  1611. }), a.forEach(function(t) {
  1612. v.insertBefore(Z.createTextNode(t), w), t = Z.createElementNS(H, "tspan"), t.textContent = "​", F(t, { dy: i, x: E }), v.insertBefore(t, w);
  1613. });
  1614. }
  1615. }, S = function(w) {
  1616. [].slice.call(w.childNodes).forEach(function(v) {
  1617. v.nodeType === U.Node.TEXT_NODE ? M(v, w) : (v.className.baseVal.indexOf("highcharts-br") !== -1 && (f.actualWidth = 0), S(v));
  1618. });
  1619. };
  1620. S(f.element);
  1621. }
  1622. }, x.prototype.getLineHeight = function(u) {
  1623. var f;
  1624. return u = u.nodeType === U.Node.TEXT_NODE ? u.parentElement : u, this.renderer.styledMode || (f = u && /(px|em)$/.test(u.style.fontSize) ? u.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  1625. this.textLineHeight.toString(),
  1626. 10
  1627. ) : this.renderer.fontMetrics(f, u || this.svgElement.element).h;
  1628. }, x.prototype.modifyTree = function(u) {
  1629. var f = this, E = function(O, B) {
  1630. var M = O.attributes;
  1631. M = M === void 0 ? {} : M;
  1632. var S = O.children, w = O.tagName, v = f.renderer.styledMode;
  1633. w === "b" || w === "strong" ? v ? M.class = "highcharts-strong" : M.style = "font-weight:bold;" + (M.style || "") : (w === "i" || w === "em") && (v ? M.class = "highcharts-emphasized" : M.style = "font-style:italic;" + (M.style || "")), R(M.style) && (M.style = M.style.replace(/(;| |^)color([ :])/, "$1fill$2")), w === "br" ? (M.class = "highcharts-br", O.textContent = "​", (B = u[B + 1]) && B.textContent && (B.textContent = B.textContent.replace(/^ +/gm, ""))) : w === "a" && S && S.some(function(a) {
  1634. return a.tagName === "#text";
  1635. }) && (O.children = [{ children: S, tagName: "tspan" }]), w !== "#text" && w !== "a" && (O.tagName = "tspan"), O.attributes = M, S && S.filter(function(a) {
  1636. return a.tagName !== "#text";
  1637. }).forEach(E);
  1638. };
  1639. u.forEach(E);
  1640. }, x.prototype.truncate = function(u, f, E, O, B, M) {
  1641. var S = this.svgElement, w = S.renderer, v = S.rotation, a = [], c = E ? 1 : 0, p = (f || E || "").length, i = p, h, s = function(o, n) {
  1642. n = n || o;
  1643. var A = u.parentNode;
  1644. if (A && typeof a[n] > "u")
  1645. if (A.getSubStringLength)
  1646. try {
  1647. a[n] = O + A.getSubStringLength(0, E ? n + 1 : n);
  1648. } catch {
  1649. }
  1650. else
  1651. w.getSpanWidth && (u.textContent = M(f || E, o), a[n] = O + w.getSpanWidth(S, u));
  1652. return a[n];
  1653. };
  1654. S.rotation = 0;
  1655. var t = s(u.textContent.length);
  1656. if (O + t > B) {
  1657. for (; c <= p; )
  1658. i = Math.ceil((c + p) / 2), E && (h = M(E, i)), t = s(i, h && h.length - 1), c === p ? c = p + 1 : t > B ? p = i - 1 : c = i;
  1659. p === 0 ? u.textContent = "" : f && p === f.length - 1 || (u.textContent = h || M(f || E, i));
  1660. }
  1661. E && E.splice(0, i), S.actualWidth = t, S.rotation = v;
  1662. }, x.prototype.unescapeEntities = function(u, f) {
  1663. return N(this.renderer.escapes, function(E, O) {
  1664. f && f.indexOf(E) !== -1 || (u = u.toString().replace(new RegExp(E, "g"), O));
  1665. }), u;
  1666. }, x;
  1667. }();
  1668. }), T(l, "Core/Renderer/SVG/SVGRenderer.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Renderer/SVG/SVGLabel.js"], l["Core/Renderer/SVG/Symbols.js"], l["Core/Renderer/SVG/TextBuilder.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F, R, N) {
  1669. var b = I.charts, x = I.deg2rad, u = I.doc, f = I.isFirefox, E = I.isMS, O = I.isWebKit, B = I.noop, M = I.SVG_NS, S = I.symbolSizes, w = I.win, v = N.addEvent, a = N.attr, c = N.createElement, p = N.css, i = N.defined, h = N.destroyObjectProperties, s = N.extend, t = N.isArray, o = N.isNumber, n = N.isObject, A = N.isString, _ = N.merge, D = N.pick, W = N.pInt, P = N.uniqueKey, X;
  1670. return I = function() {
  1671. function g(m, L, Y, V, Q, k, G) {
  1672. this.width = this.url = this.style = this.isSVG = this.imgCount = this.height = this.gradients = this.globalAnimation = this.defs = this.chartIndex = this.cacheKeys = this.cache = this.boxWrapper = this.box = this.alignedObjects = void 0, this.init(m, L, Y, V, Q, k, G);
  1673. }
  1674. return g.prototype.init = function(m, L, Y, V, Q, k, G) {
  1675. var z = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), $ = z.element;
  1676. G || z.css(this.getStyle(V)), m.appendChild($), a(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && a($, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = $, this.boxWrapper = z, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highcharts 9.3.3")), this.defs = this.createElement("defs").add(), this.allowHTML = k, this.forExport = Q, this.styledMode = G, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.setSize(L, Y, !1);
  1677. var q;
  1678. f && m.getBoundingClientRect && (L = function() {
  1679. p(m, { left: 0, top: 0 }), q = m.getBoundingClientRect(), p(m, { left: Math.ceil(q.left) - q.left + "px", top: Math.ceil(q.top) - q.top + "px" });
  1680. }, L(), this.unSubPixelFix = v(w, "resize", L));
  1681. }, g.prototype.definition = function(m) {
  1682. return new y([m]).addToDOM(this.defs.element);
  1683. }, g.prototype.getReferenceURL = function() {
  1684. if ((f || O) && u.getElementsByTagName("base").length) {
  1685. if (!i(X)) {
  1686. var m = P();
  1687. m = new y([{ tagName: "svg", attributes: { width: 8, height: 8 }, children: [{ tagName: "defs", children: [{ tagName: "clipPath", attributes: { id: m }, children: [{ tagName: "rect", attributes: { width: 4, height: 4 } }] }] }, { tagName: "rect", attributes: { id: "hitme", width: 8, height: 8, "clip-path": "url(#" + m + ")", fill: "rgba(0,0,0,0.001)" } }] }]).addToDOM(u.body), p(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  1688. var L = u.elementFromPoint(6, 6);
  1689. X = (L && L.id) === "hitme", u.body.removeChild(m);
  1690. }
  1691. if (X)
  1692. return w.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  1693. }
  1694. return "";
  1695. }, g.prototype.getStyle = function(m) {
  1696. return this.style = s({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  1697. }, g.prototype.setStyle = function(m) {
  1698. this.boxWrapper.css(this.getStyle(m));
  1699. }, g.prototype.isHidden = function() {
  1700. return !this.boxWrapper.getBBox().width;
  1701. }, g.prototype.destroy = function() {
  1702. var m = this.defs;
  1703. return this.box = null, this.boxWrapper = this.boxWrapper.destroy(), h(this.gradients || {}), this.gradients = null, m && (this.defs = m.destroy()), this.unSubPixelFix && this.unSubPixelFix(), this.alignedObjects = null;
  1704. }, g.prototype.createElement = function(m) {
  1705. var L = new this.Element();
  1706. return L.init(this, m), L;
  1707. }, g.prototype.getRadialAttr = function(m, L) {
  1708. return { cx: m[0] - m[2] / 2 + (L.cx || 0) * m[2], cy: m[1] - m[2] / 2 + (L.cy || 0) * m[2], r: (L.r || 0) * m[2] };
  1709. }, g.prototype.buildText = function(m) {
  1710. new R(m).buildSVG();
  1711. }, g.prototype.getContrast = function(m) {
  1712. return m = j.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  1713. }, g.prototype.button = function(m, L, Y, V, Q, k, G, z, $, q) {
  1714. var it = this.label(m, L, Y, $, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? _(Q) : {};
  1715. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(_({ padding: 8, r: 2 }, rt)), !et) {
  1716. rt = _({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  1717. var ct = rt.style;
  1718. delete rt.style, k = _(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(k || {}));
  1719. var gt = k.style;
  1720. delete k.style, G = _(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(G || {}));
  1721. var dt = G.style;
  1722. delete G.style, z = _(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(z || {}));
  1723. var ht = z.style;
  1724. delete z.style;
  1725. }
  1726. return v(it.element, E ? "mouseover" : "mouseenter", function() {
  1727. nt !== 3 && it.setState(1);
  1728. }), v(it.element, E ? "mouseout" : "mouseleave", function() {
  1729. nt !== 3 && it.setState(nt);
  1730. }), it.setState = function(at) {
  1731. at !== 1 && (it.state = nt = at), it.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-" + ["normal", "hover", "pressed", "disabled"][at || 0]), et || it.attr([rt, k, G, z][at || 0]).css([ct, gt, dt, ht][at || 0]);
  1732. }, et || it.attr(rt).css(s({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  1733. return at.stopPropagation();
  1734. }).on("click", function(at) {
  1735. nt !== 3 && V.call(it, at);
  1736. });
  1737. }, g.prototype.crispLine = function(m, L, Y) {
  1738. Y === void 0 && (Y = "round");
  1739. var V = m[0], Q = m[1];
  1740. return i(V[1]) && V[1] === Q[1] && (V[1] = Q[1] = Math[Y](V[1]) - L % 2 / 2), i(V[2]) && V[2] === Q[2] && (V[2] = Q[2] = Math[Y](V[2]) + L % 2 / 2), m;
  1741. }, g.prototype.path = function(m) {
  1742. var L = this.styledMode ? {} : { fill: "none" };
  1743. return t(m) ? L.d = m : n(m) && s(L, m), this.createElement("path").attr(L);
  1744. }, g.prototype.circle = function(m, L, Y) {
  1745. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: Y }, L = this.createElement("circle"), L.xSetter = L.ySetter = function(V, Q, k) {
  1746. k.setAttribute("c" + Q, V);
  1747. }, L.attr(m);
  1748. }, g.prototype.arc = function(m, L, Y, V, Q, k) {
  1749. return n(m) ? (V = m, L = V.y, Y = V.r, m = V.x) : V = { innerR: V, start: Q, end: k }, m = this.symbol("arc", m, L, Y, Y, V), m.r = Y, m;
  1750. }, g.prototype.rect = function(m, L, Y, V, Q, k) {
  1751. Q = n(m) ? m.r : Q;
  1752. var G = this.createElement("rect");
  1753. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(Y, 0), height: Math.max(V, 0) }, this.styledMode || (typeof k < "u" && (m["stroke-width"] = k, m = G.crisp(m)), m.fill = "none"), Q && (m.r = Q), G.rSetter = function(z, $, q) {
  1754. G.r = z, a(q, { rx: z, ry: z });
  1755. }, G.rGetter = function() {
  1756. return G.r || 0;
  1757. }, G.attr(m);
  1758. }, g.prototype.setSize = function(m, L, Y) {
  1759. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  1760. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  1761. }, duration: D(
  1762. Y,
  1763. !0
  1764. ) ? void 0 : 0 }), this.alignElements();
  1765. }, g.prototype.g = function(m) {
  1766. var L = this.createElement("g");
  1767. return m ? L.attr({ class: "highcharts-" + m }) : L;
  1768. }, g.prototype.image = function(m, L, Y, V, Q, k) {
  1769. var G = { preserveAspectRatio: "none" }, z = function(q, it) {
  1770. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  1771. };
  1772. o(L) && (G.x = L), o(Y) && (G.y = Y), o(V) && (G.width = V), o(Q) && (G.height = Q);
  1773. var $ = this.createElement("image").attr(G);
  1774. return L = function(q) {
  1775. z($.element, m), k.call($, q);
  1776. }, k ? (z(
  1777. $.element,
  1778. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  1779. ), Y = new w.Image(), v(Y, "load", L), Y.src = m, Y.complete && L({})) : z($.element, m), $;
  1780. }, g.prototype.symbol = function(m, L, Y, V, Q, k) {
  1781. var G = this, z = /^url\((.*?)\)$/, $ = z.test(m), q = !$ && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  1782. if (it) {
  1783. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(Y || 0), V || 0, Q || 0, k));
  1784. var nt = this.path(et);
  1785. G.styledMode || nt.attr("fill", "none"), s(nt, { symbolName: q || void 0, x: L, y: Y, width: V, height: Q }), k && s(nt, k);
  1786. } else if ($) {
  1787. var rt = m.match(z)[1], ct = nt = this.image(rt);
  1788. ct.imgwidth = D(S[rt] && S[rt].width, k && k.width), ct.imgheight = D(S[rt] && S[rt].height, k && k.height);
  1789. var gt = function(dt) {
  1790. return dt.attr({ width: dt.width, height: dt.height });
  1791. };
  1792. ["width", "height"].forEach(function(dt) {
  1793. ct[dt + "Setter"] = function(ht, at) {
  1794. var J = this["img" + at];
  1795. this[at] = ht, i(J) && (k && k.backgroundSize === "within" && this.width && this.height && (J = Math.round(J * Math.min(this.width / this.imgwidth, this.height / this.imgheight))), this.element && this.element.setAttribute(at, J), this.alignByTranslate || (ht = ((this[at] || 0) - J) / 2, this.attr(at === "width" ? { translateX: ht } : { translateY: ht })));
  1796. };
  1797. }), i(L) && ct.attr({ x: L, y: Y }), ct.isImg = !0, i(ct.imgwidth) && i(ct.imgheight) ? gt(ct) : (ct.attr({ width: 0, height: 0 }), c("img", { onload: function() {
  1798. var dt = b[G.chartIndex];
  1799. this.width === 0 && (p(this, { position: "absolute", top: "-999em" }), u.body.appendChild(this)), S[rt] = { width: this.width, height: this.height }, ct.imgwidth = this.width, ct.imgheight = this.height, ct.element && gt(ct), this.parentNode && this.parentNode.removeChild(this), G.imgCount--, !G.imgCount && dt && !dt.hasLoaded && dt.onload();
  1800. }, src: rt }), this.imgCount++);
  1801. }
  1802. return nt;
  1803. }, g.prototype.clipRect = function(m, L, Y, V) {
  1804. var Q = P() + "-", k = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  1805. return m = this.rect(m, L, Y, V, 0).add(k), m.id = Q, m.clipPath = k, m.count = 0, m;
  1806. }, g.prototype.text = function(m, L, Y, V) {
  1807. var Q = {};
  1808. return V && (this.allowHTML || !this.forExport) ? this.html(m, L, Y) : (Q.x = Math.round(L || 0), Y && (Q.y = Math.round(Y)), i(m) && (Q.text = m), m = this.createElement("text").attr(Q), (!V || this.forExport && !this.allowHTML) && (m.xSetter = function(k, G, z) {
  1809. for (var $ = z.getElementsByTagName("tspan"), q = z.getAttribute(G), it = 0, et; it < $.length; it++)
  1810. et = $[it], et.getAttribute(G) === q && et.setAttribute(G, k);
  1811. z.setAttribute(G, k);
  1812. }), m);
  1813. }, g.prototype.fontMetrics = function(m, L) {
  1814. return m = !this.styledMode && /px/.test(m) || !w.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && H.prototype.getStyle.call(L, "font-size"), m = /px/.test(m) ? W(m) : 12, L = 24 > m ? m + 3 : Math.round(1.2 * m), { h: L, b: Math.round(0.8 * L), f: m };
  1815. }, g.prototype.rotCorr = function(m, L, Y) {
  1816. var V = m;
  1817. return L && Y && (V = Math.max(V * Math.cos(L * x), 4)), { x: -m / 3 * Math.sin(L * x), y: V };
  1818. }, g.prototype.pathToSegments = function(m) {
  1819. for (var L = [], Y = [], V = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  1820. A(Y[0]) && o(m[Q]) && Y.length === V[Y[0].toUpperCase()] && m.splice(Q, 0, Y[0].replace("M", "L").replace("m", "l")), typeof m[Q] == "string" && (Y.length && L.push(Y.slice(0)), Y.length = 0), Y.push(m[Q]);
  1821. return L.push(Y.slice(0)), L;
  1822. }, g.prototype.label = function(m, L, Y, V, Q, k, G, z, $) {
  1823. return new U(this, m, L, Y, V, Q, k, G, z, $);
  1824. }, g.prototype.alignElements = function() {
  1825. this.alignedObjects.forEach(function(m) {
  1826. return m.align();
  1827. });
  1828. }, g;
  1829. }(), s(I.prototype, { Element: H, SVG_NS: M, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: F, draw: B }), Z.registerRendererType("svg", I, !0), I;
  1830. }), T(l, "Core/Renderer/HTML/HTMLElement.js", [l["Core/Globals.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]], function(y, j, I) {
  1831. var Z = this && this.__extends || function() {
  1832. var E = function(O, B) {
  1833. return E = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, S) {
  1834. M.__proto__ = S;
  1835. } || function(M, S) {
  1836. for (var w in S)
  1837. S.hasOwnProperty(w) && (M[w] = S[w]);
  1838. }, E(O, B);
  1839. };
  1840. return function(O, B) {
  1841. function M() {
  1842. this.constructor = O;
  1843. }
  1844. E(O, B), O.prototype = B === null ? Object.create(B) : (M.prototype = B.prototype, new M());
  1845. };
  1846. }(), H = y.isFirefox, U = y.isMS, F = y.isWebKit, R = y.win, N = I.css, b = I.defined, x = I.extend, u = I.pick, f = I.pInt;
  1847. return function(E) {
  1848. function O() {
  1849. return E !== null && E.apply(this, arguments) || this;
  1850. }
  1851. return Z(O, E), O.compose = function(B) {
  1852. if (O.composedClasses.indexOf(B) === -1) {
  1853. O.composedClasses.push(B);
  1854. var M = O.prototype, S = B.prototype;
  1855. S.getSpanCorrection = M.getSpanCorrection, S.htmlCss = M.htmlCss, S.htmlGetBBox = M.htmlGetBBox, S.htmlUpdateTransform = M.htmlUpdateTransform, S.setSpanRotation = M.setSpanRotation;
  1856. }
  1857. return B;
  1858. }, O.prototype.getSpanCorrection = function(B, M, S) {
  1859. this.xCorr = -B * S, this.yCorr = -M;
  1860. }, O.prototype.htmlCss = function(B) {
  1861. var M = this.element.tagName === "SPAN" && B && "width" in B, S = u(M && B.width, void 0);
  1862. if (M) {
  1863. delete B.width, this.textWidth = S;
  1864. var w = !0;
  1865. }
  1866. return B && B.textOverflow === "ellipsis" && (B.whiteSpace = "nowrap", B.overflow = "hidden"), this.styles = x(this.styles, B), N(this.element, B), w && this.htmlUpdateTransform(), this;
  1867. }, O.prototype.htmlGetBBox = function() {
  1868. var B = this.element;
  1869. return { x: B.offsetLeft, y: B.offsetTop, width: B.offsetWidth, height: B.offsetHeight };
  1870. }, O.prototype.htmlUpdateTransform = function() {
  1871. if (this.added) {
  1872. var B = this.renderer, M = this.element, S = this.translateX || 0, w = this.translateY || 0, v = this.x || 0, a = this.y || 0, c = this.textAlign || "left", p = { left: 0, center: 0.5, right: 1 }[c], i = this.styles;
  1873. if (i = i && i.whiteSpace, N(M, { marginLeft: S, marginTop: w }), !B.styledMode && this.shadows && this.shadows.forEach(function(A) {
  1874. N(A, { marginLeft: S + 1, marginTop: w + 1 });
  1875. }), this.inverted && [].forEach.call(M.childNodes, function(A) {
  1876. B.invertChild(A, M);
  1877. }), M.tagName === "SPAN") {
  1878. var h = this.rotation, s = this.textWidth && f(this.textWidth), t = [h, c, M.innerHTML, this.textWidth, this.textAlign].join(), o = void 0;
  1879. if (o = !1, s !== this.oldTextWidth) {
  1880. if (this.textPxLength)
  1881. var n = this.textPxLength;
  1882. else
  1883. N(M, { width: "", whiteSpace: i || "nowrap" }), n = M.offsetWidth;
  1884. (s > this.oldTextWidth || n > s) && (/[ \-]/.test(M.textContent || M.innerText) || M.style.textOverflow === "ellipsis") && (N(M, { width: n > s || h ? s + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = s, o = !0);
  1885. }
  1886. this.hasBoxWidthChanged = o, t !== this.cTT && (o = B.fontMetrics(M.style.fontSize, M).b, !b(h) || h === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(h, p, o), this.getSpanCorrection(!b(h) && this.textPxLength || M.offsetWidth, o, p, h, c)), N(M, { left: v + (this.xCorr || 0) + "px", top: a + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = h, this.oldAlign = c;
  1887. }
  1888. } else
  1889. this.alignOnAdd = !0;
  1890. }, O.prototype.setSpanRotation = function(B, M, S) {
  1891. var w = {}, v = U && !/Edge/.test(R.navigator.userAgent) ? "-ms-transform" : F ? "-webkit-transform" : H ? "MozTransform" : R.opera ? "-o-transform" : void 0;
  1892. v && (w[v] = w.transform = "rotate(" + B + "deg)", w[v + (H ? "Origin" : "-origin")] = w.transformOrigin = 100 * M + "% " + S + "px", N(this.element, w));
  1893. }, O.composedClasses = [], O;
  1894. }(j);
  1895. }), T(
  1896. l,
  1897. "Core/Renderer/HTML/HTMLRenderer.js",
  1898. [l["Core/Renderer/HTML/AST.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Renderer/SVG/SVGRenderer.js"], l["Core/Utilities.js"]],
  1899. function(y, j, I, Z) {
  1900. var H = this && this.__extends || function() {
  1901. var b = function(x, u) {
  1902. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, E) {
  1903. f.__proto__ = E;
  1904. } || function(f, E) {
  1905. for (var O in E)
  1906. E.hasOwnProperty(O) && (f[O] = E[O]);
  1907. }, b(x, u);
  1908. };
  1909. return function(x, u) {
  1910. function f() {
  1911. this.constructor = x;
  1912. }
  1913. b(x, u), x.prototype = u === null ? Object.create(u) : (f.prototype = u.prototype, new f());
  1914. };
  1915. }(), U = Z.attr, F = Z.createElement, R = Z.extend, N = Z.pick;
  1916. return function(b) {
  1917. function x() {
  1918. return b !== null && b.apply(this, arguments) || this;
  1919. }
  1920. return H(x, b), x.compose = function(u) {
  1921. return x.composedClasses.indexOf(u) === -1 && (x.composedClasses.push(u), u.prototype.html = x.prototype.html), u;
  1922. }, x.prototype.html = function(u, f, E) {
  1923. var O = this.createElement("span"), B = O.element, M = O.renderer, S = M.isSVG, w = function(v, a) {
  1924. ["opacity", "visibility"].forEach(function(c) {
  1925. v[c + "Setter"] = function(p, i, h) {
  1926. var s = v.div ? v.div.style : a;
  1927. j.prototype[c + "Setter"].call(this, p, i, h), s && (s[i] = p);
  1928. };
  1929. }), v.addedSetters = !0;
  1930. };
  1931. return O.textSetter = function(v) {
  1932. v !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, N(v, "")), this.textStr = v, O.doTransform = !0);
  1933. }, S && w(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(v, a) {
  1934. a === "align" ? O.alignValue = O.textAlign = v : O[a] = v, O.doTransform = !0;
  1935. }, O.afterSetters = function() {
  1936. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  1937. }, O.attr({ text: u, x: Math.round(f), y: Math.round(E) }).css({ position: "absolute" }), M.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), B.style.whiteSpace = "nowrap", O.css = O.htmlCss, S && (O.add = function(v) {
  1938. var a = M.box.parentNode, c = [];
  1939. if (this.parentGroup = v) {
  1940. var p = v.div;
  1941. if (!p) {
  1942. for (; v; )
  1943. c.push(v), v = v.parentGroup;
  1944. c.reverse().forEach(function(i) {
  1945. function h(n, A) {
  1946. i[A] = n, A === "translateX" ? o.left = n + "px" : o.top = n + "px", i.doTransform = !0;
  1947. }
  1948. var s = U(i.element, "class"), t = i.styles || {};
  1949. p = i.div = i.div || F("div", s ? { className: s } : void 0, {
  1950. position: "absolute",
  1951. left: (i.translateX || 0) + "px",
  1952. top: (i.translateY || 0) + "px",
  1953. display: i.display,
  1954. opacity: i.opacity,
  1955. cursor: t.cursor,
  1956. pointerEvents: t.pointerEvents,
  1957. visibility: i.visibility
  1958. }, p || a);
  1959. var o = p.style;
  1960. R(i, { classSetter: function(n) {
  1961. return function(A) {
  1962. this.element.setAttribute("class", A), n.className = A;
  1963. };
  1964. }(p), on: function() {
  1965. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  1966. }, translateXSetter: h, translateYSetter: h }), i.addedSetters || w(i);
  1967. });
  1968. }
  1969. } else
  1970. p = a;
  1971. return p.appendChild(B), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  1972. }), O;
  1973. }, x.composedClasses = [], x;
  1974. }(I);
  1975. }
  1976. ), T(l, "Core/Axis/AxisDefaults.js", [], function() {
  1977. var y;
  1978. return function(j) {
  1979. j.defaultXAxisOptions = { alignTicks: !0, allowDecimals: void 0, panningEnabled: !0, zIndex: 2, zoomEnabled: !0, dateTimeLabelFormats: { millisecond: { main: "%H:%M:%S.%L", range: !1 }, second: { main: "%H:%M:%S", range: !1 }, minute: { main: "%H:%M", range: !1 }, hour: { main: "%H:%M", range: !1 }, day: { main: "%e. %b" }, week: { main: "%e. %b" }, month: { main: "%b '%y" }, year: { main: "%Y" } }, endOnTick: !1, gridLineDashStyle: "Solid", gridZIndex: 1, labels: {
  1980. autoRotation: void 0,
  1981. autoRotationLimit: 80,
  1982. distance: void 0,
  1983. enabled: !0,
  1984. indentation: 10,
  1985. overflow: "justify",
  1986. padding: 5,
  1987. reserveSpace: void 0,
  1988. rotation: void 0,
  1989. staggerLines: 0,
  1990. step: 0,
  1991. useHTML: !1,
  1992. x: 0,
  1993. zIndex: 7,
  1994. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  1995. }, maxPadding: 0.01, minorGridLineDashStyle: "Solid", minorTickLength: 2, minorTickPosition: "outside", minPadding: 0.01, offset: void 0, opposite: !1, reversed: void 0, reversedStacks: !1, showEmpty: !0, showFirstLabel: !0, showLastLabel: !0, startOfWeek: 1, startOnTick: !1, tickLength: 10, tickPixelInterval: 100, tickmarkPlacement: "between", tickPosition: "outside", title: {
  1996. align: "middle",
  1997. rotation: 0,
  1998. useHTML: !1,
  1999. x: 0,
  2000. y: 0,
  2001. style: { color: "#666666" }
  2002. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, j.defaultYAxisOptions = { reversedStacks: !0, endOnTick: !0, maxPadding: 0.05, minPadding: 0.05, tickPixelInterval: 72, showLastLabel: !0, labels: { x: -8 }, startOnTick: !0, title: { rotation: 270, text: "Values" }, stackLabels: {
  2003. animation: {},
  2004. allowOverlap: !1,
  2005. enabled: !1,
  2006. crop: !0,
  2007. overflow: "justify",
  2008. formatter: function() {
  2009. var I = this.axis.chart.numberFormatter;
  2010. return I(this.total, -1);
  2011. },
  2012. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  2013. }, gridLineWidth: 1, lineWidth: 0 }, j.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, j.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, j.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, j.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  2014. }(y || (y = {})), y;
  2015. }), T(l, "Core/Foundation.js", [l["Core/Utilities.js"]], function(y) {
  2016. var j = y.addEvent, I = y.isFunction, Z = y.objectEach, H = y.removeEvent, U;
  2017. return function(F) {
  2018. F.registerEventOptions = function(R, N) {
  2019. R.eventOptions = R.eventOptions || {}, Z(N.events, function(b, x) {
  2020. R.eventOptions[x] !== b && (R.eventOptions[x] && (H(R, x, R.eventOptions[x]), delete R.eventOptions[x]), I(b) && (R.eventOptions[x] = b, j(R, x, b)));
  2021. });
  2022. };
  2023. }(U || (U = {})), U;
  2024. }), T(
  2025. l,
  2026. "Core/Axis/Tick.js",
  2027. [l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Utilities.js"]],
  2028. function(y, j, I) {
  2029. var Z = j.deg2rad, H = I.clamp, U = I.correctFloat, F = I.defined, R = I.destroyObjectProperties, N = I.extend, b = I.fireEvent, x = I.isNumber, u = I.merge, f = I.objectEach, E = I.pick;
  2030. return j = function() {
  2031. function O(B, M, S, w, v) {
  2032. this.isNewLabel = this.isNew = !0, this.axis = B, this.pos = M, this.type = S || "", this.parameters = v || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, b(this, "init"), S || w || this.addLabel();
  2033. }
  2034. return O.prototype.addLabel = function() {
  2035. var B = this, M = B.axis, S = M.options, w = M.chart, v = M.categories, a = M.logarithmic, c = M.names, p = B.pos, i = E(B.options && B.options.labels, S.labels), h = M.tickPositions, s = p === h[0], t = p === h[h.length - 1], o = (!i.step || i.step === 1) && M.tickInterval === 1;
  2036. h = h.info;
  2037. var n = B.label, A;
  2038. if (v = this.parameters.category || (v ? E(v[p], c[p], p) : p), a && x(v) && (v = U(a.lin2log(v))), M.dateTime)
  2039. if (h)
  2040. var _ = w.time.resolveDTLFormat(S.dateTimeLabelFormats[!S.grid && h.higherRanks[p] || h.unitName]), D = _.main;
  2041. else
  2042. x(v) && (D = M.dateTime.getXDateFormat(v, S.dateTimeLabelFormats || {}));
  2043. B.isFirst = s, B.isLast = t;
  2044. var W = {
  2045. axis: M,
  2046. chart: w,
  2047. dateTimeLabelFormat: D,
  2048. isFirst: s,
  2049. isLast: t,
  2050. pos: p,
  2051. tick: B,
  2052. tickPositionInfo: h,
  2053. value: v
  2054. };
  2055. b(this, "labelFormat", W);
  2056. var P = function(g) {
  2057. return i.formatter ? i.formatter.call(g, g) : i.format ? (g.text = M.defaultLabelFormatter.call(g), y.format(i.format, g, w)) : M.defaultLabelFormatter.call(g, g);
  2058. };
  2059. S = P.call(W, W);
  2060. var X = _ && _.list;
  2061. B.shortenLabel = X ? function() {
  2062. for (A = 0; A < X.length; A++)
  2063. if (N(W, { dateTimeLabelFormat: X[A] }), n.attr({ text: P.call(W, W) }), n.getBBox().width < M.getSlotWidth(B) - 2 * i.padding)
  2064. return;
  2065. n.attr({ text: "" });
  2066. } : void 0, o && M._addedPlotLB && B.moveLabel(S, i), F(n) || B.movedLabel ? n && n.textStr !== S && !o && (!n.textWidth || i.style.width || n.styles.width || n.css({ width: null }), n.attr({ text: S }), n.textPxLength = n.getBBox().width) : (B.label = n = B.createLabel({ x: 0, y: 0 }, S, i), B.rotation = 0);
  2067. }, O.prototype.createLabel = function(B, M, S) {
  2068. var w = this.axis, v = w.chart;
  2069. return (B = F(M) && S.enabled ? v.renderer.text(M, B.x, B.y, S.useHTML).add(w.labelGroup) : null) && (v.styledMode || B.css(u(S.style)), B.textPxLength = B.getBBox().width), B;
  2070. }, O.prototype.destroy = function() {
  2071. R(
  2072. this,
  2073. this.axis
  2074. );
  2075. }, O.prototype.getPosition = function(B, M, S, w) {
  2076. var v = this.axis, a = v.chart, c = w && a.oldChartHeight || a.chartHeight;
  2077. return B = { x: B ? U(v.translate(M + S, null, null, w) + v.transB) : v.left + v.offset + (v.opposite ? (w && a.oldChartWidth || a.chartWidth) - v.right - v.left : 0), y: B ? c - v.bottom + v.offset - (v.opposite ? v.height : 0) : U(c - v.translate(M + S, null, null, w) - v.transB) }, B.y = H(B.y, -1e5, 1e5), b(this, "afterGetPosition", { pos: B }), B;
  2078. }, O.prototype.getLabelPosition = function(B, M, S, w, v, a, c, p) {
  2079. var i = this.axis, h = i.transA, s = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, o = i.tickRotCorr || { x: 0, y: 0 }, n = w || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), A = {}, _ = v.y;
  2080. return F(_) || (_ = i.side === 0 ? S.rotation ? -8 : -S.getBBox().height : i.side === 2 ? o.y + 8 : Math.cos(S.rotation * Z) * (o.y - S.getBBox(!1, 0).height / 2)), B = B + v.x + n + o.x - (a && w ? a * h * (s ? -1 : 1) : 0), M = M + _ - (a && !w ? a * h * (s ? 1 : -1) : 0), t && (S = c / (p || 1) % t, i.opposite && (S = t - S - 1), M += i.labelOffset / t * S), A.x = B, A.y = Math.round(M), b(this, "afterGetLabelPosition", { pos: A, tickmarkOffset: a, index: c }), A;
  2081. }, O.prototype.getLabelSize = function() {
  2082. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  2083. }, O.prototype.getMarkPath = function(B, M, S, w, v, a) {
  2084. return a.crispLine([["M", B, M], ["L", B + (v ? 0 : -S), M + (v ? S : 0)]], w);
  2085. }, O.prototype.handleOverflow = function(B) {
  2086. var M = this.axis, S = M.options.labels, w = B.x, v = M.chart.chartWidth, a = M.chart.spacing, c = E(M.labelLeft, Math.min(M.pos, a[3]));
  2087. a = E(M.labelRight, Math.max(M.isRadial ? 0 : M.pos + M.len, v - a[1]));
  2088. var p = this.label, i = this.rotation, h = { left: 0, center: 0.5, right: 1 }[M.labelAlign || p.attr("align")], s = p.getBBox().width, t = M.getSlotWidth(this), o = {}, n = t, A = 1, _;
  2089. i || S.overflow !== "justify" ? 0 > i && w - h * s < c ? _ = Math.round(w / Math.cos(i * Z) - c) : 0 < i && w + h * s > a && (_ = Math.round((v - w) / Math.cos(i * Z))) : (v = w + (1 - h) * s, w - h * s < c ? n = B.x + n * (1 - h) - c : v > a && (n = a - B.x + n * h, A = -1), n = Math.min(t, n), n < t && M.labelAlign === "center" && (B.x += A * (t - n - h * (t - Math.min(s, n)))), (s > n || M.autoRotation && (p.styles || {}).width) && (_ = n)), _ && (this.shortenLabel ? this.shortenLabel() : (o.width = Math.floor(_) + "px", (S.style || {}).textOverflow || (o.textOverflow = "ellipsis"), p.css(o)));
  2090. }, O.prototype.moveLabel = function(B, M) {
  2091. var S = this, w = S.label, v = S.axis, a = v.reversed, c = !1;
  2092. if (w && w.textStr === B ? (S.movedLabel = w, c = !0, delete S.label) : f(v.ticks, function(i) {
  2093. c || i.isNew || i === S || !i.label || i.label.textStr !== B || (S.movedLabel = i.label, c = !0, i.labelPos = S.movedLabel.xy, delete i.label);
  2094. }), !c && (S.labelPos || w)) {
  2095. var p = S.labelPos || w.xy;
  2096. w = v.horiz ? a ? 0 : v.width + v.left : p.x, v = v.horiz ? p.y : a ? v.width + v.left : 0, S.movedLabel = S.createLabel({ x: w, y: v }, B, M), S.movedLabel && S.movedLabel.attr({ opacity: 0 });
  2097. }
  2098. }, O.prototype.render = function(B, M, S) {
  2099. var w = this.axis, v = w.horiz, a = this.pos, c = E(this.tickmarkOffset, w.tickmarkOffset);
  2100. a = this.getPosition(v, a, c, M), c = a.x;
  2101. var p = a.y;
  2102. w = v && c === w.pos + w.len || !v && p === w.pos ? -1 : 1, v = E(S, this.label && this.label.newOpacity, 1), S = E(S, 1), this.isActive = !0, this.renderGridLine(M, S, w), this.renderMark(a, S, w), this.renderLabel(a, M, v, B), this.isNew = !1, b(this, "afterRender");
  2103. }, O.prototype.renderGridLine = function(B, M, S) {
  2104. var w = this.axis, v = w.options, a = {}, c = this.pos, p = this.type, i = E(
  2105. this.tickmarkOffset,
  2106. w.tickmarkOffset
  2107. ), h = w.chart.renderer, s = this.gridLine, t = v.gridLineWidth, o = v.gridLineColor, n = v.gridLineDashStyle;
  2108. this.type === "minor" && (t = v.minorGridLineWidth, o = v.minorGridLineColor, n = v.minorGridLineDashStyle), s || (w.chart.styledMode || (a.stroke = o, a["stroke-width"] = t || 0, a.dashstyle = n), p || (a.zIndex = 1), B && (M = 0), this.gridLine = s = h.path().attr(a).addClass("highcharts-" + (p ? p + "-" : "") + "grid-line").add(w.gridGroup)), s && (S = w.getPlotLinePath({ value: c + i, lineWidth: s.strokeWidth() * S, force: "pass", old: B })) && s[B || this.isNew ? "attr" : "animate"]({ d: S, opacity: M });
  2109. }, O.prototype.renderMark = function(B, M, S) {
  2110. var w = this.axis, v = w.options, a = w.chart.renderer, c = this.type, p = w.tickSize(c ? c + "Tick" : "tick"), i = B.x;
  2111. B = B.y;
  2112. var h = E(v[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && w.isXAxis ? 1 : 0);
  2113. v = v[c !== "minor" ? "tickColor" : "minorTickColor"];
  2114. var s = this.mark, t = !s;
  2115. p && (w.opposite && (p[0] = -p[0]), s || (this.mark = s = a.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(w.axisGroup), w.chart.styledMode || s.attr({ stroke: v, "stroke-width": h })), s[t ? "attr" : "animate"]({ d: this.getMarkPath(
  2116. i,
  2117. B,
  2118. p[0],
  2119. s.strokeWidth() * S,
  2120. w.horiz,
  2121. a
  2122. ), opacity: M }));
  2123. }, O.prototype.renderLabel = function(B, M, S, w) {
  2124. var v = this.axis, a = v.horiz, c = v.options, p = this.label, i = c.labels, h = i.step;
  2125. v = E(this.tickmarkOffset, v.tickmarkOffset);
  2126. var s = B.x;
  2127. B = B.y;
  2128. var t = !0;
  2129. p && x(s) && (p.xy = B = this.getLabelPosition(s, B, p, a, i, v, w, h), this.isFirst && !this.isLast && !c.showFirstLabel || this.isLast && !this.isFirst && !c.showLastLabel ? t = !1 : !a || i.step || i.rotation || M || S === 0 || this.handleOverflow(B), h && w % h && (t = !1), t && x(B.y) ? (B.opacity = S, p[this.isNewLabel ? "attr" : "animate"](B), this.isNewLabel = !1) : (p.attr("y", -9999), this.isNewLabel = !0));
  2130. }, O.prototype.replaceMovedLabel = function() {
  2131. var B = this.label, M = this.axis, S = M.reversed;
  2132. if (B && !this.isNew) {
  2133. var w = M.horiz ? S ? M.left : M.width + M.left : B.xy.x;
  2134. S = M.horiz ? B.xy.y : S ? M.width + M.top : M.top, B.animate({ x: w, y: S, opacity: 0 }, void 0, B.destroy), delete this.label;
  2135. }
  2136. M.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  2137. }, O;
  2138. }(), j;
  2139. }
  2140. ), T(l, "Core/Axis/Axis.js", [
  2141. l["Core/Animation/AnimationUtilities.js"],
  2142. l["Core/Axis/AxisDefaults.js"],
  2143. l["Core/Color/Color.js"],
  2144. l["Core/DefaultOptions.js"],
  2145. l["Core/Foundation.js"],
  2146. l["Core/Globals.js"],
  2147. l["Core/Axis/Tick.js"],
  2148. l["Core/Utilities.js"]
  2149. ], function(y, j, I, Z, H, U, F, R) {
  2150. var N = y.animObject, b = Z.defaultOptions, x = H.registerEventOptions, u = U.deg2rad, f = R.arrayMax, E = R.arrayMin, O = R.clamp, B = R.correctFloat, M = R.defined, S = R.destroyObjectProperties, w = R.erase, v = R.error, a = R.extend, c = R.fireEvent, p = R.getMagnitude, i = R.isArray, h = R.isNumber, s = R.isString, t = R.merge, o = R.normalizeTickInterval, n = R.objectEach, A = R.pick, _ = R.relativeLength, D = R.removeEvent, W = R.splat, P = R.syncTimeout;
  2151. return y = function() {
  2152. function X(g, m) {
  2153. this.zoomEnabled = this.width = this.visible = this.userOptions = this.translationSlope = this.transB = this.transA = this.top = this.ticks = this.tickRotCorr = this.tickPositions = this.tickmarkOffset = this.tickInterval = this.tickAmount = this.side = this.series = this.right = this.positiveValuesOnly = this.pos = this.pointRangePadding = this.pointRange = this.plotLinesAndBandsGroups = this.plotLinesAndBands = this.paddedTicks = this.overlap = this.options = this.offset = this.names = this.minPixelPadding = this.minorTicks = this.minorTickInterval = this.min = this.maxLabelLength = this.max = this.len = this.left = this.labelFormatter = this.labelEdge = this.isLinked = this.height = this.hasVisibleSeries = this.hasNames = this.eventOptions = this.coll = this.closestPointRange = this.chart = this.categories = this.bottom = this.alternateBands = void 0, this.init(g, m);
  2154. }
  2155. return X.prototype.init = function(g, m) {
  2156. var L = m.isX;
  2157. this.chart = g, this.horiz = g.inverted && !this.isZAxis ? !L : L, this.isXAxis = L, this.coll = this.coll || (L ? "xAxis" : "yAxis"), c(this, "init", { userOptions: m }), this.opposite = A(m.opposite, this.opposite), this.side = A(m.side, this.side, this.horiz ? this.opposite ? 0 : 2 : this.opposite ? 1 : 3), this.setOptions(m);
  2158. var Y = this.options, V = Y.labels, Q = Y.type;
  2159. this.userOptions = m, this.minPixelPadding = 0, this.reversed = A(Y.reversed, this.reversed), this.visible = Y.visible, this.zoomEnabled = Y.zoomEnabled, this.hasNames = Q === "category" || Y.categories === !0, this.categories = Y.categories || this.hasNames, this.names || (this.names = [], this.names.keys = {}), this.plotLinesAndBandsGroups = {}, this.positiveValuesOnly = !!this.logarithmic, this.isLinked = M(Y.linkedTo), this.ticks = {}, this.labelEdge = [], this.minorTicks = {}, this.plotLinesAndBands = [], this.alternateBands = {}, this.len = 0, this.minRange = this.userMinRange = Y.minRange || Y.maxZoom, this.range = Y.range, this.offset = Y.offset || 0, this.min = this.max = null, m = A(Y.crosshair, W(g.options.tooltip.crosshairs)[L ? 0 : 1]), this.crosshair = m === !0 ? {} : m, g.axes.indexOf(this) === -1 && (L ? g.axes.splice(g.xAxis.length, 0, this) : g.axes.push(this), g[this.coll].push(this)), this.series = this.series || [], g.inverted && !this.isZAxis && L && typeof this.reversed > "u" && (this.reversed = !0), this.labelRotation = h(V.rotation) ? V.rotation : void 0, x(this, Y), c(this, "afterInit");
  2160. }, X.prototype.setOptions = function(g) {
  2161. this.options = t(j.defaultXAxisOptions, this.coll === "yAxis" && j.defaultYAxisOptions, [j.defaultTopAxisOptions, j.defaultRightAxisOptions, j.defaultBottomAxisOptions, j.defaultLeftAxisOptions][this.side], t(b[this.coll], g)), c(this, "afterSetOptions", { userOptions: g });
  2162. }, X.prototype.defaultLabelFormatter = function(g) {
  2163. var m = this.axis;
  2164. g = this.chart.numberFormatter;
  2165. var L = h(this.value) ? this.value : NaN, Y = m.chart.time, V = this.dateTimeLabelFormat, Q = b.lang, k = Q.numericSymbols;
  2166. Q = Q.numericSymbolMagnitude || 1e3;
  2167. var G = m.logarithmic ? Math.abs(L) : m.tickInterval, z = k && k.length;
  2168. if (m.categories)
  2169. var $ = "" + this.value;
  2170. else if (V)
  2171. $ = Y.dateFormat(V, L);
  2172. else if (z && 1e3 <= G)
  2173. for (; z-- && typeof $ > "u"; )
  2174. m = Math.pow(Q, z + 1), G >= m && 10 * L % m === 0 && k[z] !== null && L !== 0 && ($ = g(L / m, -1) + k[z]);
  2175. return typeof $ > "u" && ($ = 1e4 <= Math.abs(L) ? g(L, -1) : g(L, -1, void 0, "")), $;
  2176. }, X.prototype.getSeriesExtremes = function() {
  2177. var g = this, m = g.chart, L;
  2178. c(this, "getSeriesExtremes", null, function() {
  2179. g.hasVisibleSeries = !1, g.dataMin = g.dataMax = g.threshold = null, g.softThreshold = !g.isXAxis, g.stacking && g.stacking.buildStacks(), g.series.forEach(function(Y) {
  2180. if (Y.visible || !m.options.chart.ignoreHiddenSeries) {
  2181. var V = Y.options, Q = V.threshold;
  2182. if (g.hasVisibleSeries = !0, g.positiveValuesOnly && 0 >= Q && (Q = null), g.isXAxis) {
  2183. if (V = Y.xData, V.length) {
  2184. V = g.logarithmic ? V.filter(g.validatePositiveValue) : V, L = Y.getXExtremes(V);
  2185. var k = L.min, G = L.max;
  2186. h(k) || k instanceof Date || (V = V.filter(h), L = Y.getXExtremes(V), k = L.min, G = L.max), V.length && (g.dataMin = Math.min(A(g.dataMin, k), k), g.dataMax = Math.max(A(g.dataMax, G), G));
  2187. }
  2188. } else
  2189. Y = Y.applyExtremes(), h(Y.dataMin) && (k = Y.dataMin, g.dataMin = Math.min(A(g.dataMin, k), k)), h(Y.dataMax) && (G = Y.dataMax, g.dataMax = Math.max(A(g.dataMax, G), G)), M(Q) && (g.threshold = Q), (!V.softThreshold || g.positiveValuesOnly) && (g.softThreshold = !1);
  2190. }
  2191. });
  2192. }), c(this, "afterGetSeriesExtremes");
  2193. }, X.prototype.translate = function(g, m, L, Y, V, Q) {
  2194. var k = this.linkedParent || this, G = Y && k.old ? k.old.min : k.min, z = k.minPixelPadding;
  2195. V = (k.isOrdinal || k.brokenAxis && k.brokenAxis.hasBreaks || k.logarithmic && V) && k.lin2val;
  2196. var $ = 1, q = 0;
  2197. return Y = Y && k.old ? k.old.transA : k.transA, Y || (Y = k.transA), L && ($ *= -1, q = k.len), k.reversed && ($ *= -1, q -= $ * (k.sector || k.len)), m ? (g = (g * $ + q - z) / Y + G, V && (g = k.lin2val(g))) : (V && (g = k.val2lin(g)), g = h(G) ? $ * (g - G) * Y + q + $ * z + (h(Q) ? Y * Q : 0) : void 0), g;
  2198. }, X.prototype.toPixels = function(g, m) {
  2199. return this.translate(
  2200. g,
  2201. !1,
  2202. !this.horiz,
  2203. null,
  2204. !0
  2205. ) + (m ? 0 : this.pos);
  2206. }, X.prototype.toValue = function(g, m) {
  2207. return this.translate(g - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  2208. }, X.prototype.getPlotLinePath = function(g) {
  2209. function m(at, J, tt) {
  2210. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : ht = !0), at;
  2211. }
  2212. var L = this, Y = L.chart, V = L.left, Q = L.top, k = g.old, G = g.value, z = g.lineWidth, $ = k && Y.oldChartHeight || Y.chartHeight, q = k && Y.oldChartWidth || Y.chartWidth, it = L.transB, et = g.translatedValue, nt = g.force, rt, ct, gt, dt, ht;
  2213. return g = {
  2214. value: G,
  2215. lineWidth: z,
  2216. old: k,
  2217. force: nt,
  2218. acrossPanes: g.acrossPanes,
  2219. translatedValue: et
  2220. }, c(this, "getPlotLinePath", g, function(at) {
  2221. et = A(et, L.translate(G, null, null, k)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round($ - et - it), h(et) ? L.horiz ? (ct = Q, dt = $ - L.bottom, rt = gt = m(rt, V, V + L.width)) : (rt = V, gt = q - L.right, ct = dt = m(ct, Q, Q + L.height)) : (ht = !0, nt = !1), at.path = ht && !nt ? null : Y.renderer.crispLine([["M", rt, ct], ["L", gt, dt]], z || 1);
  2222. }), g.path;
  2223. }, X.prototype.getLinearTickPositions = function(g, m, L) {
  2224. var Y = B(Math.floor(m / g) * g);
  2225. L = B(Math.ceil(L / g) * g);
  2226. var V = [], Q;
  2227. if (B(Y + g) === Y && (Q = 20), this.single)
  2228. return [m];
  2229. for (m = Y; m <= L && (V.push(m), m = B(m + g, Q), m !== k); )
  2230. var k = m;
  2231. return V;
  2232. }, X.prototype.getMinorTickInterval = function() {
  2233. var g = this.options;
  2234. return g.minorTicks === !0 ? A(g.minorTickInterval, "auto") : g.minorTicks === !1 ? null : g.minorTickInterval;
  2235. }, X.prototype.getMinorTickPositions = function() {
  2236. var g = this.options, m = this.tickPositions, L = this.minorTickInterval, Y = this.pointRangePadding || 0, V = this.min - Y;
  2237. Y = this.max + Y;
  2238. var Q = Y - V, k = [];
  2239. if (Q && Q / L < this.len / 3) {
  2240. var G = this.logarithmic;
  2241. if (G)
  2242. this.paddedTicks.forEach(function(z, $, q) {
  2243. $ && k.push.apply(
  2244. k,
  2245. G.getLogTickPositions(L, q[$ - 1], q[$], !0)
  2246. );
  2247. });
  2248. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  2249. k = k.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), V, Y, g.startOfWeek));
  2250. else
  2251. for (g = V + (m[0] - V) % L; g <= Y && g !== k[0]; g += L)
  2252. k.push(g);
  2253. }
  2254. return k.length !== 0 && this.trimTicks(k), k;
  2255. }, X.prototype.adjustForMinRange = function() {
  2256. var g = this.options, m = this.logarithmic, L = this.min, Y = this.max, V = 0, Q, k, G, z;
  2257. if (this.isXAxis && typeof this.minRange > "u" && !m && (M(g.min) || M(g.max) || M(g.floor) || M(g.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  2258. if (G = et.xData, z = et.xIncrement ? 1 : G.length - 1, 1 < G.length)
  2259. for (Q = z; 0 < Q; Q--)
  2260. k = G[Q] - G[Q - 1], (!V || k < V) && (V = k);
  2261. }), this.minRange = Math.min(5 * V, this.dataMax - this.dataMin))), Y - L < this.minRange) {
  2262. var $ = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - Y + L) / 2;
  2263. it = [L - it, A(g.min, L - it)], $ && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = f(it), Y = [L + q, A(g.max, L + q)], $ && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = E(Y), Y - L < q && (it[0] = Y - q, it[1] = A(g.min, Y - q), L = f(it));
  2264. }
  2265. this.min = L, this.max = Y;
  2266. }, X.prototype.getClosest = function() {
  2267. var g;
  2268. return this.categories ? g = 1 : this.series.forEach(function(m) {
  2269. var L = m.closestPointRange, Y = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  2270. !m.noSharedTooltip && M(L) && Y && (g = M(g) ? Math.min(g, L) : L);
  2271. }), g;
  2272. }, X.prototype.nameToX = function(g) {
  2273. var m = i(this.categories), L = m ? this.categories : this.names, Y = g.options.x;
  2274. if (g.series.requireSorting = !1, M(Y) || (Y = this.options.uniqueNames ? m ? L.indexOf(g.name) : A(L.keys[g.name], -1) : g.series.autoIncrement()), Y === -1) {
  2275. if (!m)
  2276. var V = L.length;
  2277. } else
  2278. V = Y;
  2279. return typeof V < "u" && (this.names[V] = g.name, this.names.keys[g.name] = V), V;
  2280. }, X.prototype.updateNames = function() {
  2281. var g = this, m = this.names;
  2282. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  2283. delete m.keys[L];
  2284. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  2285. L.xIncrement = null, (!L.points || L.isDirtyData) && (g.max = Math.max(g.max, L.xData.length - 1), L.processData(), L.generatePoints()), L.data.forEach(function(Y, V) {
  2286. if (Y && Y.options && typeof Y.name < "u") {
  2287. var Q = g.nameToX(Y);
  2288. typeof Q < "u" && Q !== Y.x && (Y.x = Q, L.xData[V] = Q);
  2289. }
  2290. });
  2291. }));
  2292. }, X.prototype.setAxisTranslation = function() {
  2293. var g = this, m = g.max - g.min, L = g.linkedParent, Y = !!g.categories, V = g.isXAxis, Q = g.axisPointRange || 0, k = 0, G = 0, z = g.transA;
  2294. if (V || Y || Q) {
  2295. var $ = g.getClosest();
  2296. L ? (k = L.minPointOffset, G = L.pointRangePadding) : g.series.forEach(function(q) {
  2297. var it = Y ? 1 : V ? A(q.options.pointRange, $, 0) : g.axisPointRange || 0, et = q.options.pointPlacement;
  2298. Q = Math.max(Q, it), (!g.single || Y) && (q = q.is("xrange") ? !V : V, k = Math.max(k, q && s(et) ? 0 : it / 2), G = Math.max(G, q && et === "on" ? 0 : it));
  2299. }), L = g.ordinal && g.ordinal.slope && $ ? g.ordinal.slope / $ : 1, g.minPointOffset = k *= L, g.pointRangePadding = G *= L, g.pointRange = Math.min(Q, g.single && Y ? 1 : m), V && (g.closestPointRange = $);
  2300. }
  2301. g.translationSlope = g.transA = z = g.staticScale || g.len / (m + G || 1), g.transB = g.horiz ? g.left : g.bottom, g.minPixelPadding = z * k, c(this, "afterSetAxisTranslation");
  2302. }, X.prototype.minFromRange = function() {
  2303. return this.max - this.range;
  2304. }, X.prototype.setTickInterval = function(g) {
  2305. var m = this.chart, L = this.logarithmic, Y = this.options, V = this.isXAxis, Q = this.isLinked, k = Y.tickPixelInterval, G = this.categories, z = this.softThreshold, $ = Y.maxPadding, q = Y.minPadding, it = h(Y.tickInterval) && 0 <= Y.tickInterval ? Y.tickInterval : void 0, et = h(this.threshold) ? this.threshold : null;
  2306. this.dateTime || G || Q || this.getTickAmount();
  2307. var nt = A(this.userMin, Y.min), rt = A(this.userMax, Y.max);
  2308. if (Q) {
  2309. this.linkedParent = m[this.coll][Y.linkedTo];
  2310. var ct = this.linkedParent.getExtremes();
  2311. this.min = A(ct.min, ct.dataMin), this.max = A(ct.max, ct.dataMax), Y.type !== this.linkedParent.options.type && v(11, 1, m);
  2312. } else {
  2313. if (z && M(et)) {
  2314. if (this.dataMin >= et)
  2315. ct = et, q = 0;
  2316. else if (this.dataMax <= et) {
  2317. var gt = et;
  2318. $ = 0;
  2319. }
  2320. }
  2321. this.min = A(nt, ct, this.dataMin), this.max = A(rt, gt, this.dataMax);
  2322. }
  2323. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, A(this.dataMin, this.min)) && v(10, 1, m), this.min = B(L.log2lin(this.min), 16), this.max = B(L.log2lin(this.max), 16)), this.range && M(this.max) && (this.userMin = this.min = nt = Math.max(this.dataMin, this.minFromRange()), this.userMax = rt = this.max, this.range = null), c(this, "foundExtremes"), this.beforePadding && this.beforePadding(), this.adjustForMinRange(), !(G || this.axisPointRange || this.stacking && this.stacking.usePercentage || Q) && M(this.min) && M(this.max) && (m = this.max - this.min) && (!M(nt) && q && (this.min -= m * q), !M(rt) && $ && (this.max += m * $)), h(this.userMin) || (h(Y.softMin) && Y.softMin < this.min && (this.min = nt = Y.softMin), h(Y.floor) && (this.min = Math.max(this.min, Y.floor))), h(this.userMax) || (h(Y.softMax) && Y.softMax > this.max && (this.max = rt = Y.softMax), h(Y.ceiling) && (this.max = Math.min(this.max, Y.ceiling))), z && M(this.dataMin) && (et = et || 0, !M(nt) && this.min < et && this.dataMin >= et ? this.min = this.options.minRange ? Math.min(et, this.max - this.minRange) : et : !M(rt) && this.max > et && this.dataMax <= et && (this.max = this.options.minRange ? Math.max(et, this.min + this.minRange) : et)), h(this.min) && h(this.max) && !this.chart.polar && this.min > this.max && (M(this.options.min) ? this.max = this.min : M(this.options.max) && (this.min = this.max)), this.tickInterval = this.min === this.max || typeof this.min > "u" || typeof this.max > "u" ? 1 : Q && this.linkedParent && !it && k === this.linkedParent.options.tickPixelInterval ? it = this.linkedParent.tickInterval : A(it, this.tickAmount ? (this.max - this.min) / Math.max(this.tickAmount - 1, 1) : void 0, G ? 1 : (this.max - this.min) * k / Math.max(this.len, k)), V && !g) {
  2324. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  2325. this.series.forEach(function(ht) {
  2326. ht.forceCrop = ht.forceCropping && ht.forceCropping(), ht.processData(dt);
  2327. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  2328. }
  2329. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), g = A(Y.minTickInterval, this.dateTime && !this.series.some(function(ht) {
  2330. return ht.noSharedTooltip;
  2331. }) ? this.closestPointRange : 0), !it && this.tickInterval < g && (this.tickInterval = g), this.dateTime || this.logarithmic || it || (this.tickInterval = o(this.tickInterval, void 0, p(this.tickInterval), A(Y.allowDecimals, 0.5 > this.tickInterval || this.tickAmount !== void 0), !!this.tickAmount)), this.tickAmount || (this.tickInterval = this.unsquish()), this.setTickPositions();
  2332. }, X.prototype.setTickPositions = function() {
  2333. var g = this.options, m = g.tickPositions, L = this.getMinorTickInterval(), Y = this.hasVerticalPanning(), V = this.coll === "colorAxis", Q = (V || !Y) && g.startOnTick;
  2334. Y = (V || !Y) && g.endOnTick, V = g.tickPositioner, this.tickmarkOffset = this.categories && g.tickmarkPlacement === "between" && this.tickInterval === 1 ? 0.5 : 0, this.minorTickInterval = L === "auto" && this.tickInterval ? this.tickInterval / 5 : L, this.single = this.min === this.max && M(this.min) && !this.tickAmount && (parseInt(this.min, 10) === this.min || g.allowDecimals !== !1), this.tickPositions = L = m && m.slice(), !L && (this.ordinal && this.ordinal.positions || !((this.max - this.min) / this.tickInterval > Math.max(2 * this.len, 200)) ? L = this.dateTime ? this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval, g.units), this.min, this.max, g.startOfWeek, this.ordinal && this.ordinal.positions, this.closestPointRange, !0) : this.logarithmic ? this.logarithmic.getLogTickPositions(this.tickInterval, this.min, this.max) : this.getLinearTickPositions(
  2335. this.tickInterval,
  2336. this.min,
  2337. this.max
  2338. ) : (L = [this.min, this.max], v(19, !1, this.chart)), L.length > this.len && (L = [L[0], L.pop()], L[0] === L[1] && (L.length = 1)), this.tickPositions = L, V && (V = V.apply(this, [this.min, this.max]))) && (this.tickPositions = L = V), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, Y), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(k) {
  2339. return k.is("heatmap") && k.options.pointPlacement === "between";
  2340. }) && (this.min -= 0.5, this.max += 0.5), m || V || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  2341. }, X.prototype.trimTicks = function(g, m, L) {
  2342. var Y = g[0], V = g[g.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  2343. if (c(this, "trimTicks"), !this.isLinked) {
  2344. if (m && Y !== -1 / 0)
  2345. this.min = Y;
  2346. else
  2347. for (; this.min - Q > g[0]; )
  2348. g.shift();
  2349. if (L)
  2350. this.max = V;
  2351. else
  2352. for (; this.max + Q < g[g.length - 1]; )
  2353. g.pop();
  2354. g.length === 0 && M(Y) && !this.options.tickPositions && g.push((V + Y) / 2);
  2355. }
  2356. }, X.prototype.alignToOthers = function() {
  2357. var g = {}, m = this.options, L;
  2358. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(Y) {
  2359. var V = Y.options;
  2360. V = [Y.horiz ? V.left : V.top, V.width, V.height, V.pane].join(), Y.series.length && (g[V] ? L = !0 : g[V] = 1);
  2361. }), L;
  2362. }, X.prototype.getTickAmount = function() {
  2363. var g = this.options, m = g.tickPixelInterval, L = g.tickAmount;
  2364. !M(g.tickInterval) && !L && this.len < m && !this.isRadial && !this.logarithmic && g.startOnTick && g.endOnTick && (L = 2), !L && this.alignToOthers() && (L = Math.ceil(this.len / m) + 1), 4 > L && (this.finalTickAmt = L, L = 5), this.tickAmount = L;
  2365. }, X.prototype.adjustTickAmount = function() {
  2366. var g = this.options, m = this.tickInterval, L = this.tickPositions, Y = this.tickAmount, V = this.finalTickAmt, Q = L && L.length, k = A(this.threshold, this.softThreshold ? 0 : null);
  2367. if (this.hasData() && h(this.min) && h(this.max)) {
  2368. if (Q < Y) {
  2369. for (; L.length < Y; )
  2370. L.length % 2 || this.min === k ? L.push(B(L[L.length - 1] + m)) : L.unshift(B(L[0] - m));
  2371. this.transA *= (Q - 1) / (Y - 1), this.min = g.startOnTick ? L[0] : Math.min(this.min, L[0]), this.max = g.endOnTick ? L[L.length - 1] : Math.max(this.max, L[L.length - 1]);
  2372. } else
  2373. Q > Y && (this.tickInterval *= 2, this.setTickPositions());
  2374. if (M(V)) {
  2375. for (m = g = L.length; m--; )
  2376. (V === 3 && m % 2 === 1 || 2 >= V && 0 < m && m < g - 1) && L.splice(m, 1);
  2377. this.finalTickAmt = void 0;
  2378. }
  2379. }
  2380. }, X.prototype.setScale = function() {
  2381. var g = !1, m = !1;
  2382. this.series.forEach(function(Y) {
  2383. g = g || Y.isDirtyData || Y.isDirty, m = m || Y.xAxis && Y.xAxis.isDirty || !1;
  2384. }), this.setAxisSize();
  2385. var L = this.len !== (this.old && this.old.len);
  2386. L || g || m || this.isLinked || this.forceRedraw || this.userMin !== (this.old && this.old.userMin) || this.userMax !== (this.old && this.old.userMax) || this.alignToOthers() ? (this.stacking && this.stacking.resetStacks(), this.forceRedraw = !1, this.getSeriesExtremes(), this.setTickInterval(), this.isDirty || (this.isDirty = L || this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max))) : this.stacking && this.stacking.cleanStacks(), g && this.panningState && (this.panningState.isDirty = !0), c(this, "afterSetScale");
  2387. }, X.prototype.setExtremes = function(g, m, L, Y, V) {
  2388. var Q = this, k = Q.chart;
  2389. L = A(L, !0), Q.series.forEach(function(G) {
  2390. delete G.kdTree;
  2391. }), V = a(V, { min: g, max: m }), c(Q, "setExtremes", V, function() {
  2392. Q.userMin = g, Q.userMax = m, Q.eventArgs = V, L && k.redraw(Y);
  2393. });
  2394. }, X.prototype.zoom = function(g, m) {
  2395. var L = this, Y = this.dataMin, V = this.dataMax, Q = this.options, k = Math.min(Y, A(Q.min, Y)), G = Math.max(V, A(Q.max, V));
  2396. return g = { newMin: g, newMax: m }, c(this, "zoom", g, function(z) {
  2397. var $ = z.newMin, q = z.newMax;
  2398. ($ !== L.min || q !== L.max) && (L.allowZoomOutside || (M(Y) && ($ < k && ($ = k), $ > G && ($ = G)), M(V) && (q < k && (q = k), q > G && (q = G))), L.displayBtn = typeof $ < "u" || typeof q < "u", L.setExtremes($, q, !1, void 0, { trigger: "zoom" })), z.zoomed = !0;
  2399. }), g.zoomed;
  2400. }, X.prototype.setAxisSize = function() {
  2401. var g = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], Y = this.horiz, V = this.width = Math.round(_(A(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(_(A(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), k = this.top = Math.round(_(A(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  2402. m = this.left = Math.round(_(A(m.left, g.plotLeft + L[3]), g.plotWidth, g.plotLeft)), this.bottom = g.chartHeight - Q - k, this.right = g.chartWidth - V - m, this.len = Math.max(Y ? V : Q, 0), this.pos = Y ? m : k;
  2403. }, X.prototype.getExtremes = function() {
  2404. var g = this.logarithmic;
  2405. return { min: g ? B(g.lin2log(this.min)) : this.min, max: g ? B(g.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  2406. }, X.prototype.getThreshold = function(g) {
  2407. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  2408. return m = m ? m.lin2log(this.max) : this.max, g === null || g === -1 / 0 ? g = L : g === 1 / 0 ? g = m : L > g ? g = L : m < g && (g = m), this.translate(g, 0, 1, 0, 1);
  2409. }, X.prototype.autoLabelAlign = function(g) {
  2410. var m = (A(g, 0) - 90 * this.side + 720) % 360;
  2411. return g = { align: "center" }, c(
  2412. this,
  2413. "autoLabelAlign",
  2414. g,
  2415. function(L) {
  2416. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  2417. }
  2418. ), g.align;
  2419. }, X.prototype.tickSize = function(g) {
  2420. var m = this.options, L = A(m[g === "tick" ? "tickWidth" : "minorTickWidth"], g === "tick" && this.isXAxis && !this.categories ? 1 : 0), Y = m[g === "tick" ? "tickLength" : "minorTickLength"];
  2421. if (L && Y) {
  2422. m[g + "Position"] === "inside" && (Y = -Y);
  2423. var V = [Y, L];
  2424. }
  2425. return g = { tickSize: V }, c(this, "afterTickSize", g), g.tickSize;
  2426. }, X.prototype.labelMetrics = function() {
  2427. var g = this.tickPositions && this.tickPositions[0] || 0;
  2428. return this.chart.renderer.fontMetrics(
  2429. this.options.labels.style.fontSize,
  2430. this.ticks[g] && this.ticks[g].label
  2431. );
  2432. }, X.prototype.unsquish = function() {
  2433. var g = this.options.labels, m = this.horiz, L = this.tickInterval, Y = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), V = g.rotation, Q = this.labelMetrics(), k = Math.max(this.max - this.min, 0), G = function(nt) {
  2434. var rt = nt / (Y || 1);
  2435. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > k && nt !== 1 / 0 && Y !== 1 / 0 && k && (rt = Math.ceil(k / L)), B(rt * L);
  2436. }, z = L, $, q, it = Number.MAX_VALUE;
  2437. if (m) {
  2438. if (!g.staggerLines && !g.step)
  2439. if (h(V))
  2440. var et = [V];
  2441. else
  2442. Y < g.autoRotationLimit && (et = g.autoRotation);
  2443. et && et.forEach(function(nt) {
  2444. if (nt === V || nt && -90 <= nt && 90 >= nt) {
  2445. q = G(Math.abs(Q.h / Math.sin(u * nt)));
  2446. var rt = q + Math.abs(nt / 360);
  2447. rt < it && (it = rt, $ = nt, z = q);
  2448. }
  2449. });
  2450. } else
  2451. g.step || (z = G(Q.h));
  2452. return this.autoRotation = et, this.labelRotation = A($, h(V) ? V : 0), z;
  2453. }, X.prototype.getSlotWidth = function(g) {
  2454. var m = this.chart, L = this.horiz, Y = this.options.labels, V = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  2455. if (g && h(g.slotWidth))
  2456. return g.slotWidth;
  2457. if (L && 2 > Y.step)
  2458. return Y.rotation ? 0 : (this.staggerLines || 1) * this.len / V;
  2459. if (!L) {
  2460. if (g = Y.style.width, g !== void 0)
  2461. return parseInt(String(g), 10);
  2462. if (Q)
  2463. return Q - m.spacing[3];
  2464. }
  2465. return 0.33 * m.chartWidth;
  2466. }, X.prototype.renderUnsquish = function() {
  2467. var g = this.chart, m = g.renderer, L = this.tickPositions, Y = this.ticks, V = this.options.labels, Q = V.style, k = this.horiz, G = this.getSlotWidth(), z = Math.max(1, Math.round(G - 2 * V.padding)), $ = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  2468. if (s(V.rotation) || ($.rotation = V.rotation || 0), L.forEach(function(gt) {
  2469. gt = Y[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  2470. }), this.maxLabelLength = et, this.autoRotation)
  2471. et > z && et > q.h ? $.rotation = this.labelRotation : this.labelRotation = 0;
  2472. else if (G) {
  2473. var nt = z;
  2474. if (!it) {
  2475. var rt = "clip";
  2476. for (z = L.length; !k && z--; ) {
  2477. var ct = L[z];
  2478. (ct = Y[ct].label) && (ct.styles && ct.styles.textOverflow === "ellipsis" ? ct.css({ textOverflow: "clip" }) : ct.textPxLength > G && ct.css({ width: G + "px" }), ct.getBBox().height > this.len / L.length - (q.h - q.f) && (ct.specificTextOverflow = "ellipsis"));
  2479. }
  2480. }
  2481. }
  2482. $.rotation && (nt = et > 0.5 * g.chartHeight ? 0.33 * g.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = V.align || this.autoLabelAlign(this.labelRotation)) && ($.align = this.labelAlign), L.forEach(function(gt) {
  2483. var dt = (gt = Y[gt]) && gt.label, ht = Q.width, at = {};
  2484. dt && (dt.attr($), gt.shortenLabel ? gt.shortenLabel() : nt && !ht && Q.whiteSpace !== "nowrap" && (nt < dt.textPxLength || dt.element.tagName === "SPAN") ? (at.width = nt + "px", it || (at.textOverflow = dt.specificTextOverflow || rt), dt.css(at)) : dt.styles && dt.styles.width && !at.width && !ht && dt.css({ width: null }), delete dt.specificTextOverflow, gt.rotation = $.rotation);
  2485. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  2486. }, X.prototype.hasData = function() {
  2487. return this.series.some(function(g) {
  2488. return g.hasData();
  2489. }) || this.options.showEmpty && M(this.min) && M(this.max);
  2490. }, X.prototype.addTitle = function(g) {
  2491. var m = this.chart.renderer, L = this.horiz, Y = this.opposite, V = this.options.title, Q = this.chart.styledMode, k;
  2492. this.axisTitle || ((k = V.textAlign) || (k = (L ? { low: "left", middle: "center", high: "right" } : { low: Y ? "right" : "left", middle: "center", high: Y ? "left" : "right" })[V.align]), this.axisTitle = m.text(V.text || "", 0, 0, V.useHTML).attr({ zIndex: 7, rotation: V.rotation, align: k }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t(V.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || V.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[g ? "show" : "hide"](g);
  2493. }, X.prototype.generateTick = function(g) {
  2494. var m = this.ticks;
  2495. m[g] ? m[g].addLabel() : m[g] = new F(this, g);
  2496. }, X.prototype.getOffset = function() {
  2497. var g = this, m = this, L = m.chart, Y = m.horiz, V = m.options, Q = m.side, k = m.ticks, G = m.tickPositions, z = m.coll, $ = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = V.title, rt = V.labels, ct = L.axisOffset;
  2498. L = L.clipOffset;
  2499. var gt = [
  2500. -1,
  2501. 1,
  2502. 1,
  2503. -1
  2504. ][Q], dt = V.className, ht, at = 0, J = 0, tt = 0;
  2505. if (m.showAxis = ht = et || V.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  2506. var st = function(pt, yt, vt) {
  2507. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + z.toLowerCase() + yt + " " + (g.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add($);
  2508. };
  2509. m.gridGroup = st("grid", "-grid", V.gridZIndex), m.axisGroup = st("axis", "", V.zIndex), m.labelGroup = st("axis-labels", "-labels", rt.zIndex);
  2510. }
  2511. if (et || m.isLinked ? (G.forEach(function(pt) {
  2512. m.generateTick(pt);
  2513. }), m.renderUnsquish(), m.reserveSpaceDefault = Q === 0 || Q === 2 || { 1: "left", 3: "right" }[Q] === m.labelAlign, A(rt.reserveSpace, m.labelAlign === "center" ? !0 : null, m.reserveSpaceDefault) && G.forEach(function(pt) {
  2514. tt = Math.max(k[pt].getLabelSize(), tt);
  2515. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : n(k, function(pt, yt) {
  2516. pt.destroy(), delete k[yt];
  2517. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(ht), ht && nt.reserveSpace !== !1)) {
  2518. m.titleOffset = at = m.axisTitle.getBBox()[Y ? "height" : "width"];
  2519. var lt = nt.offset;
  2520. J = M(lt) ? 0 : A(nt.margin, Y ? 5 : 10);
  2521. }
  2522. m.renderLine(), m.offset = gt * A(
  2523. V.offset,
  2524. ct[Q] ? ct[Q] + (V.margin || 0) : 0
  2525. ), m.tickRotCorr = m.tickRotCorr || { x: 0, y: 0 }, nt = Q === 0 ? -m.labelMetrics().h : Q === 2 ? m.tickRotCorr.y : 0, et = Math.abs(tt) + J, tt && (et = et - nt + gt * (Y ? A(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = A(lt, et), m.getMaxLabelDimensions && (m.maxLabelDimensions = m.getMaxLabelDimensions(k, G)), z !== "colorAxis" && (Y = this.tickSize("tick"), ct[Q] = Math.max(ct[Q], (m.axisTitleMargin || 0) + at + gt * m.offset, et, G && G.length && Y ? Y[0] + gt * m.offset : 0), V = !m.axisLine || V.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(
  2526. L[it],
  2527. V
  2528. )), c(this, "afterGetOffset");
  2529. }, X.prototype.getLinePath = function(g) {
  2530. var m = this.chart, L = this.opposite, Y = this.offset, V = this.horiz, Q = this.left + (L ? this.width : 0) + Y;
  2531. return Y = m.chartHeight - this.bottom - (L ? this.height : 0) + Y, L && (g *= -1), m.renderer.crispLine([["M", V ? this.left : Q, V ? Y : this.top], ["L", V ? m.chartWidth - this.right : Q, V ? Y : m.chartHeight - this.bottom]], g);
  2532. }, X.prototype.renderLine = function() {
  2533. this.axisLine || (this.axisLine = this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup), this.chart.styledMode || this.axisLine.attr({ stroke: this.options.lineColor, "stroke-width": this.options.lineWidth, zIndex: 7 }));
  2534. }, X.prototype.getTitlePosition = function() {
  2535. var g = this.horiz, m = this.left, L = this.top, Y = this.len, V = this.options.title, Q = g ? m : L, k = this.opposite, G = this.offset, z = V.x, $ = V.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics(V.style.fontSize, q);
  2536. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), Y = { low: Q + (g ? 0 : Y), middle: Q + Y / 2, high: Q + (g ? Y : 0) }[V.align], m = (g ? L + this.height : m) + (g ? 1 : -1) * (k ? -1 : 1) * this.axisTitleMargin + [
  2537. -q,
  2538. q,
  2539. it.f,
  2540. -q
  2541. ][this.side], g = { x: g ? Y + z : m + (k ? this.width : 0) + G + z, y: g ? m + $ - (k ? this.height : 0) + G : Y + $ }, c(this, "afterGetTitlePosition", { titlePosition: g }), g;
  2542. }, X.prototype.renderMinorTick = function(g, m) {
  2543. var L = this.minorTicks;
  2544. L[g] || (L[g] = new F(this, g, "minor")), m && L[g].isNew && L[g].render(null, !0), L[g].render(null, !1, 1);
  2545. }, X.prototype.renderTick = function(g, m, L) {
  2546. var Y = this.ticks;
  2547. (!this.isLinked || g >= this.min && g <= this.max || this.grid && this.grid.isColumn) && (Y[g] || (Y[g] = new F(this, g)), L && Y[g].isNew && Y[g].render(m, !0, -1), Y[g].render(m));
  2548. }, X.prototype.render = function() {
  2549. var g = this, m = g.chart, L = g.logarithmic, Y = g.options, V = g.isLinked, Q = g.tickPositions, k = g.axisTitle, G = g.ticks, z = g.minorTicks, $ = g.alternateBands, q = Y.stackLabels, it = Y.alternateGridColor, et = g.tickmarkOffset, nt = g.axisLine, rt = g.showAxis, ct = N(m.renderer.globalAnimation), gt, dt;
  2550. if (g.labelEdge.length = 0, g.overlap = !1, [G, z, $].forEach(function(at) {
  2551. n(at, function(J) {
  2552. J.isActive = !1;
  2553. });
  2554. }), g.hasData() || V) {
  2555. var ht = g.chart.hasRendered && g.old && h(g.old.min);
  2556. g.minorTickInterval && !g.categories && g.getMinorTickPositions().forEach(function(at) {
  2557. g.renderMinorTick(
  2558. at,
  2559. ht
  2560. );
  2561. }), Q.length && (Q.forEach(function(at, J) {
  2562. g.renderTick(at, J, ht);
  2563. }), et && (g.min === 0 || g.single) && (G[-1] || (G[-1] = new F(g, -1, null, !0)), G[-1].render(-1))), it && Q.forEach(function(at, J) {
  2564. dt = typeof Q[J + 1] < "u" ? Q[J + 1] + et : g.max - et, J % 2 === 0 && at < g.max && dt <= g.max + (m.polar ? -et : et) && ($[at] || ($[at] = new U.PlotLineOrBand(g)), gt = at + et, $[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, $[at].render(), $[at].isActive = !0);
  2565. }), g._addedPlotLB || (g._addedPlotLB = !0, (Y.plotLines || []).concat(Y.plotBands || []).forEach(function(at) {
  2566. g.addPlotBandOrLine(at);
  2567. }));
  2568. }
  2569. [G, z, $].forEach(function(at) {
  2570. var J = [], tt = ct.duration;
  2571. n(at, function(st, lt) {
  2572. st.isActive || (st.render(lt, !1, 0), st.isActive = !1, J.push(lt));
  2573. }), P(function() {
  2574. for (var st = J.length; st--; )
  2575. at[J[st]] && !at[J[st]].isActive && (at[J[st]].destroy(), delete at[J[st]]);
  2576. }, at !== $ && m.hasRendered && tt ? tt : 0);
  2577. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), k && rt && (Y = g.getTitlePosition(), h(Y.y) ? (k[k.isNew ? "attr" : "animate"](Y), k.isNew = !1) : (k.attr(
  2578. "y",
  2579. -9999
  2580. ), k.isNew = !0)), q && q.enabled && g.stacking && g.stacking.renderStackTotals(), g.old = { len: g.len, max: g.max, min: g.min, transA: g.transA, userMax: g.userMax, userMin: g.userMin }, g.isDirty = !1, c(this, "afterRender");
  2581. }, X.prototype.redraw = function() {
  2582. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(g) {
  2583. g.render();
  2584. })), this.series.forEach(function(g) {
  2585. g.isDirty = !0;
  2586. });
  2587. }, X.prototype.getKeepProps = function() {
  2588. return this.keepProps || X.keepProps;
  2589. }, X.prototype.destroy = function(g) {
  2590. var m = this, L = m.plotLinesAndBands, Y = this.eventOptions;
  2591. if (c(this, "destroy", { keepEvents: g }), g || D(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  2592. S(Q);
  2593. }), L)
  2594. for (g = L.length; g--; )
  2595. L[g].destroy();
  2596. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  2597. m[Q] && (m[Q] = m[Q].destroy());
  2598. });
  2599. for (var V in m.plotLinesAndBandsGroups)
  2600. m.plotLinesAndBandsGroups[V] = m.plotLinesAndBandsGroups[V].destroy();
  2601. n(m, function(Q, k) {
  2602. m.getKeepProps().indexOf(k) === -1 && delete m[k];
  2603. }), this.eventOptions = Y;
  2604. }, X.prototype.drawCrosshair = function(g, m) {
  2605. var L = this.crosshair, Y = A(L && L.snap, !0), V = this.chart, Q, k = this.cross;
  2606. if (c(this, "drawCrosshair", { e: g, point: m }), g || (g = this.cross && this.cross.e), L && (M(m) || !Y) !== !1) {
  2607. if (Y ? M(m) && (Q = A(this.coll !== "colorAxis" ? m.crosshairPos : null, this.isXAxis ? m.plotX : this.len - m.plotY)) : Q = g && (this.horiz ? g.chartX - this.pos : this.len - g.chartY + this.pos), M(Q)) {
  2608. var G = { value: m && (this.isXAxis ? m.x : A(m.stackY, m.y)), translatedValue: Q };
  2609. V.polar && a(G, { isCrosshair: !0, chartX: g && g.chartX, chartY: g && g.chartY, point: m }), G = this.getPlotLinePath(G) || null;
  2610. }
  2611. if (!M(G)) {
  2612. this.hideCrosshair();
  2613. return;
  2614. }
  2615. Y = this.categories && !this.isRadial, k || (this.cross = k = V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (Y ? "category " : "thin ") + (L.className || "")).attr({ zIndex: A(L.zIndex, 2) }).add(), V.styledMode || (k.attr({ stroke: L.color || (Y ? I.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": A(L.width, 1) }).css({ "pointer-events": "none" }), L.dashStyle && k.attr({ dashstyle: L.dashStyle }))), k.show().attr({ d: G }), Y && !L.width && k.attr({ "stroke-width": this.transA }), this.cross.e = g;
  2616. } else
  2617. this.hideCrosshair();
  2618. c(this, "afterDrawCrosshair", { e: g, point: m });
  2619. }, X.prototype.hideCrosshair = function() {
  2620. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  2621. }, X.prototype.hasVerticalPanning = function() {
  2622. var g = this.chart.options.chart.panning;
  2623. return !!(g && g.enabled && /y/.test(g.type));
  2624. }, X.prototype.validatePositiveValue = function(g) {
  2625. return h(g) && 0 < g;
  2626. }, X.prototype.update = function(g, m) {
  2627. var L = this.chart;
  2628. g = t(this.userOptions, g), this.destroy(!0), this.init(L, g), L.isDirtyBox = !0, A(m, !0) && L.redraw();
  2629. }, X.prototype.remove = function(g) {
  2630. for (var m = this.chart, L = this.coll, Y = this.series, V = Y.length; V--; )
  2631. Y[V] && Y[V].remove(!1);
  2632. w(m.axes, this), w(m[L], this), m[L].forEach(function(Q, k) {
  2633. Q.options.index = Q.userOptions.index = k;
  2634. }), this.destroy(), m.isDirtyBox = !0, A(g, !0) && m.redraw();
  2635. }, X.prototype.setTitle = function(g, m) {
  2636. this.update({ title: g }, m);
  2637. }, X.prototype.setCategories = function(g, m) {
  2638. this.update({ categories: g }, m);
  2639. }, X.defaultOptions = j.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  2640. }(), y;
  2641. }), T(l, "Core/Axis/DateTimeAxis.js", [l["Core/Utilities.js"]], function(y) {
  2642. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.timeUnits, U;
  2643. return function(F) {
  2644. function R() {
  2645. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  2646. }
  2647. function N(u) {
  2648. u.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new x(this));
  2649. }
  2650. var b = [];
  2651. F.compose = function(u) {
  2652. return b.indexOf(u) === -1 && (b.push(u), u.keepProps.push("dateTime"), u.prototype.getTimeTicks = R, j(
  2653. u,
  2654. "init",
  2655. N
  2656. )), u;
  2657. };
  2658. var x = function() {
  2659. function u(f) {
  2660. this.axis = f;
  2661. }
  2662. return u.prototype.normalizeTimeTickInterval = function(f, E) {
  2663. var O = E || [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2]], ["week", [1, 2]], ["month", [1, 2, 3, 4, 6]], ["year", null]];
  2664. E = O[O.length - 1];
  2665. var B = H[E[0]], M = E[1], S;
  2666. for (S = 0; S < O.length && (E = O[S], B = H[E[0]], M = E[1], !(O[S + 1] && f <= (B * M[M.length - 1] + H[O[S + 1][0]]) / 2)); S++)
  2667. ;
  2668. return B === H.year && f < 5 * B && (M = [1, 2, 5]), f = Z(f / B, M, E[0] === "year" ? Math.max(I(f / B), 1) : 1), { unitRange: B, count: f, unitName: E[0] };
  2669. }, u.prototype.getXDateFormat = function(f, E) {
  2670. var O = this.axis;
  2671. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, f, O.options.startOfWeek, E) || E.year : E.day;
  2672. }, u;
  2673. }();
  2674. F.Additions = x;
  2675. }(U || (U = {})), U;
  2676. }), T(l, "Core/Axis/LogarithmicAxis.js", [l["Core/Utilities.js"]], function(y) {
  2677. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.pick, U;
  2678. return function(F) {
  2679. function R(u) {
  2680. var f = this.logarithmic;
  2681. u.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : f || (this.logarithmic = new x(this));
  2682. }
  2683. function N() {
  2684. var u = this.logarithmic;
  2685. u && (this.lin2val = function(f) {
  2686. return u.lin2log(f);
  2687. }, this.val2lin = function(f) {
  2688. return u.log2lin(f);
  2689. });
  2690. }
  2691. var b = [];
  2692. F.compose = function(u) {
  2693. return b.indexOf(u) === -1 && (b.push(u), u.keepProps.push("logarithmic"), j(u, "init", R), j(u, "afterInit", N)), u;
  2694. };
  2695. var x = function() {
  2696. function u(f) {
  2697. this.axis = f;
  2698. }
  2699. return u.prototype.getLogTickPositions = function(f, E, O, B) {
  2700. var M = this.axis, S = M.len, w = M.options, v = [];
  2701. if (B || (this.minorAutoInterval = void 0), 0.5 <= f)
  2702. f = Math.round(f), v = M.getLinearTickPositions(f, E, O);
  2703. else if (0.08 <= f) {
  2704. var a = Math.floor(E), c, p = w = void 0;
  2705. for (S = 0.3 < f ? [1, 2, 4] : 0.15 < f ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; a < O + 1 && !p; a++) {
  2706. var i = S.length;
  2707. for (c = 0; c < i && !p; c++) {
  2708. var h = this.log2lin(this.lin2log(a) * S[c]);
  2709. h > E && (!B || w <= O) && typeof w < "u" && v.push(w), w > O && (p = !0), w = h;
  2710. }
  2711. }
  2712. } else
  2713. E = this.lin2log(E), O = this.lin2log(O), f = B ? M.getMinorTickInterval() : w.tickInterval, f = H(f === "auto" ? null : f, this.minorAutoInterval, w.tickPixelInterval / (B ? 5 : 1) * (O - E) / ((B ? S / M.tickPositions.length : S) || 1)), f = Z(f, void 0, I(f)), v = M.getLinearTickPositions(f, E, O).map(this.log2lin), B || (this.minorAutoInterval = f / 5);
  2714. return B || (M.tickInterval = f), v;
  2715. }, u.prototype.lin2log = function(f) {
  2716. return Math.pow(10, f);
  2717. }, u.prototype.log2lin = function(f) {
  2718. return Math.log(f) / Math.LN10;
  2719. }, u;
  2720. }();
  2721. F.Additions = x;
  2722. }(U || (U = {})), U;
  2723. }), T(l, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [l["Core/Utilities.js"]], function(y) {
  2724. var j = y.erase, I = y.extend, Z = y.isNumber, H;
  2725. return function(U) {
  2726. var F = [], R;
  2727. U.compose = function(b, x) {
  2728. return R || (R = b), F.indexOf(x) === -1 && (F.push(x), I(x.prototype, N.prototype)), x;
  2729. };
  2730. var N = function() {
  2731. function b() {
  2732. }
  2733. return b.prototype.getPlotBandPath = function(x, u, f) {
  2734. f === void 0 && (f = this.options);
  2735. var E = this.getPlotLinePath({ value: u, force: !0, acrossPanes: f.acrossPanes }), O = [], B = this.horiz;
  2736. if (u = !Z(this.min) || !Z(this.max) || x < this.min && u < this.min || x > this.max && u > this.max, x = this.getPlotLinePath({ value: x, force: !0, acrossPanes: f.acrossPanes }), f = 1, x && E) {
  2737. if (u) {
  2738. var M = x.toString() === E.toString();
  2739. f = 0;
  2740. }
  2741. for (u = 0; u < x.length; u += 2) {
  2742. var S = x[u], w = x[u + 1], v = E[u], a = E[u + 1];
  2743. S[0] !== "M" && S[0] !== "L" || w[0] !== "M" && w[0] !== "L" || v[0] !== "M" && v[0] !== "L" || a[0] !== "M" && a[0] !== "L" || (B && v[1] === S[1] ? (v[1] += f, a[1] += f) : B || v[2] !== S[2] || (v[2] += f, a[2] += f), O.push(["M", S[1], S[2]], ["L", w[1], w[2]], ["L", a[1], a[2]], ["L", v[1], v[2]], ["Z"])), O.isFlat = M;
  2744. }
  2745. }
  2746. return O;
  2747. }, b.prototype.addPlotBand = function(x) {
  2748. return this.addPlotBandOrLine(x, "plotBands");
  2749. }, b.prototype.addPlotLine = function(x) {
  2750. return this.addPlotBandOrLine(x, "plotLines");
  2751. }, b.prototype.addPlotBandOrLine = function(x, u) {
  2752. var f = this, E = this.userOptions, O = new R(this, x);
  2753. if (this.visible && (O = O.render()), O) {
  2754. if (this._addedPlotLB || (this._addedPlotLB = !0, (E.plotLines || []).concat(E.plotBands || []).forEach(function(M) {
  2755. f.addPlotBandOrLine(M);
  2756. })), u) {
  2757. var B = E[u] || [];
  2758. B.push(x), E[u] = B;
  2759. }
  2760. this.plotLinesAndBands.push(O);
  2761. }
  2762. return O;
  2763. }, b.prototype.removePlotBandOrLine = function(x) {
  2764. var u = this.plotLinesAndBands, f = this.options, E = this.userOptions;
  2765. if (u) {
  2766. for (var O = u.length; O--; )
  2767. u[O].id === x && u[O].destroy();
  2768. [f.plotLines || [], E.plotLines || [], f.plotBands || [], E.plotBands || []].forEach(function(B) {
  2769. for (O = B.length; O--; )
  2770. (B[O] || {}).id === x && j(B, B[O]);
  2771. });
  2772. }
  2773. }, b.prototype.removePlotBand = function(x) {
  2774. this.removePlotBandOrLine(x);
  2775. }, b.prototype.removePlotLine = function(x) {
  2776. this.removePlotBandOrLine(x);
  2777. }, b;
  2778. }();
  2779. }(H || (H = {})), H;
  2780. }), T(l, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [l["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], l["Core/Utilities.js"]], function(y, j) {
  2781. var I = j.arrayMax, Z = j.arrayMin, H = j.defined, U = j.destroyObjectProperties, F = j.erase, R = j.fireEvent, N = j.merge, b = j.objectEach, x = j.pick;
  2782. return j = function() {
  2783. function u(f, E) {
  2784. this.axis = f, E && (this.options = E, this.id = E.id);
  2785. }
  2786. return u.compose = function(f) {
  2787. return y.compose(u, f);
  2788. }, u.prototype.render = function() {
  2789. R(this, "render");
  2790. var f = this, E = f.axis, O = E.horiz, B = E.logarithmic, M = f.options, S = M.color, w = x(M.zIndex, 0), v = M.events, a = {}, c = E.chart.renderer, p = M.label, i = f.label, h = M.to, s = M.from, t = M.value, o = f.svgElem, n = [], A = H(s) && H(h);
  2791. n = H(t);
  2792. var _ = !o, D = { class: "highcharts-plot-" + (A ? "band " : "line ") + (M.className || "") }, W = A ? "bands" : "lines";
  2793. if (B && (s = B.log2lin(s), h = B.log2lin(h), t = B.log2lin(t)), E.chart.styledMode || (n ? (D.stroke = S || "#999999", D["stroke-width"] = x(M.width, 1), M.dashStyle && (D.dashstyle = M.dashStyle)) : A && (D.fill = S || "#e6ebf5", M.borderWidth && (D.stroke = M.borderColor, D["stroke-width"] = M.borderWidth))), a.zIndex = w, W += "-" + w, (B = E.plotLinesAndBandsGroups[W]) || (E.plotLinesAndBandsGroups[W] = B = c.g("plot-" + W).attr(a).add()), _ && (f.svgElem = o = c.path().attr(D).add(B)), n)
  2794. n = E.getPlotLinePath({ value: t, lineWidth: o.strokeWidth(), acrossPanes: M.acrossPanes });
  2795. else if (A)
  2796. n = E.getPlotBandPath(
  2797. s,
  2798. h,
  2799. M
  2800. );
  2801. else
  2802. return;
  2803. return !f.eventsAdded && v && (b(v, function(P, X) {
  2804. o.on(X, function(g) {
  2805. v[X].apply(f, [g]);
  2806. });
  2807. }), f.eventsAdded = !0), (_ || !o.d) && n && n.length ? o.attr({ d: n }) : o && (n ? (o.show(!0), o.animate({ d: n })) : o.d && (o.hide(), i && (f.label = i = i.destroy()))), p && (H(p.text) || H(p.formatter)) && n && n.length && 0 < E.width && 0 < E.height && !n.isFlat ? (p = N({ align: O && A && "center", x: O ? !A && 4 : 10, verticalAlign: !O && A && "middle", y: O ? A ? 16 : 10 : A ? 6 : -4, rotation: O && !A && 90 }, p), this.renderLabel(p, n, A, w)) : i && i.hide(), f;
  2808. }, u.prototype.renderLabel = function(f, E, O, B) {
  2809. var M = this.axis, S = M.chart.renderer, w = this.label;
  2810. w || (this.label = w = S.text(this.getLabelText(f), 0, 0, f.useHTML).attr({ align: f.textAlign || f.align, rotation: f.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (f.className || ""), zIndex: B }).add(), M.chart.styledMode || w.css(N({ textOverflow: "ellipsis" }, f.style))), B = E.xBounds || [E[0][1], E[1][1], O ? E[2][1] : E[0][1]], E = E.yBounds || [E[0][2], E[1][2], O ? E[2][2] : E[0][2]], O = Z(B), S = Z(E), w.align(f, !1, { x: O, y: S, width: I(B) - O, height: I(E) - S }), w.alignValue && w.alignValue !== "left" || w.css({ width: (w.rotation === 90 ? M.height - (w.alignAttr.y - M.top) : M.width - (w.alignAttr.x - M.left)) + "px" }), w.show(!0);
  2811. }, u.prototype.getLabelText = function(f) {
  2812. return H(f.formatter) ? f.formatter.call(this) : f.text;
  2813. }, u.prototype.destroy = function() {
  2814. F(this.axis.plotLinesAndBands, this), delete this.axis, U(this);
  2815. }, u;
  2816. }(), j;
  2817. }), T(
  2818. l,
  2819. "Core/Tooltip.js",
  2820. [l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Renderer/RendererUtilities.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Utilities.js"]],
  2821. function(y, j, I, Z, H) {
  2822. var U = y.format, F = j.doc, R = I.distribute, N = H.addEvent, b = H.clamp, x = H.css, u = H.defined, f = H.discardElement, E = H.extend, O = H.fireEvent, B = H.isArray, M = H.isNumber, S = H.isString, w = H.merge, v = H.pick, a = H.splat, c = H.syncTimeout;
  2823. return y = function() {
  2824. function p(i, h) {
  2825. this.allowShared = !0, this.container = void 0, this.crosshairs = [], this.distance = 0, this.isHidden = !0, this.isSticky = !1, this.now = {}, this.options = {}, this.outside = !1, this.chart = i, this.init(i, h);
  2826. }
  2827. return p.prototype.applyFilter = function() {
  2828. var i = this.chart;
  2829. i.renderer.definition({
  2830. tagName: "filter",
  2831. attributes: { id: "drop-shadow-" + i.index, opacity: 0.5 },
  2832. children: [{ tagName: "feGaussianBlur", attributes: { in: "SourceAlpha", stdDeviation: 1 } }, { tagName: "feOffset", attributes: { dx: 1, dy: 1 } }, { tagName: "feComponentTransfer", children: [{ tagName: "feFuncA", attributes: { type: "linear", slope: 0.3 } }] }, { tagName: "feMerge", children: [{ tagName: "feMergeNode" }, { tagName: "feMergeNode", attributes: { in: "SourceGraphic" } }] }]
  2833. });
  2834. }, p.prototype.bodyFormatter = function(i) {
  2835. return i.map(function(h) {
  2836. var s = h.series.tooltipOptions;
  2837. return (s[(h.point.formatPrefix || "point") + "Formatter"] || h.point.tooltipFormatter).call(h.point, s[(h.point.formatPrefix || "point") + "Format"] || "");
  2838. });
  2839. }, p.prototype.cleanSplit = function(i) {
  2840. this.chart.series.forEach(function(h) {
  2841. var s = h && h.tt;
  2842. s && (!s.isActive || i ? h.tt = s.destroy() : s.isActive = !1);
  2843. });
  2844. }, p.prototype.defaultFormatter = function(i) {
  2845. var h = this.points || a(this), s = [i.tooltipFooterHeaderFormatter(h[0])];
  2846. return s = s.concat(i.bodyFormatter(h)), s.push(i.tooltipFooterHeaderFormatter(h[0], !0)), s;
  2847. }, p.prototype.destroy = function() {
  2848. this.label && (this.label = this.label.destroy()), this.split && this.tt && (this.cleanSplit(!0), this.tt = this.tt.destroy()), this.renderer && (this.renderer = this.renderer.destroy(), f(this.container)), H.clearTimeout(this.hideTimer), H.clearTimeout(this.tooltipTimeout);
  2849. }, p.prototype.getAnchor = function(i, h) {
  2850. var s = this.chart, t = s.pointer, o = s.inverted, n = s.plotTop, A = s.plotLeft, _, D, W = 0, P = 0;
  2851. return i = a(i), this.followPointer && h ? (typeof h.chartX > "u" && (h = t.normalize(h)), t = [h.chartX - A, h.chartY - n]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  2852. _ = X.series.yAxis, D = X.series.xAxis, W += X.plotX || 0, P += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, D && _ && (o ? (W += n + s.plotHeight - D.len - D.pos, P += A + s.plotWidth - _.len - _.pos) : (W += D.pos - A, P += _.pos - n));
  2853. }), W /= i.length, P /= i.length, t = [o ? s.plotWidth - P : W, o ? s.plotHeight - W : P], this.shared && 1 < i.length && h && (o ? t[0] = h.chartX - A : t[1] = h.chartY - n)), t.map(Math.round);
  2854. }, p.prototype.getLabel = function() {
  2855. var i = this, h = this.chart.styledMode, s = this.options, t = this.split && this.allowShared, o = "tooltip" + (u(s.className) ? " " + s.className : ""), n = s.style.pointerEvents || (!this.followPointer && s.stickOnContact ? "auto" : "none"), A = function() {
  2856. i.inContact = !0;
  2857. }, _ = function(Y) {
  2858. var V = i.chart.hoverSeries;
  2859. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(Y.relatedTarget, "highcharts-tooltip"), !i.inContact && V && V.onMouseOut && V.onMouseOut();
  2860. }, D, W = this.chart.renderer;
  2861. if (i.label) {
  2862. var P = !i.label.hasClass("highcharts-label");
  2863. (t && !P || !t && P) && i.destroy();
  2864. }
  2865. if (!this.label) {
  2866. if (this.outside) {
  2867. P = this.chart.options.chart.style;
  2868. var X = Z.getRendererType();
  2869. this.container = D = j.doc.createElement("div"), D.className = "highcharts-tooltip-container", x(D, { position: "absolute", top: "1px", pointerEvents: n, zIndex: Math.max(this.options.style.zIndex || 0, (P && P.zIndex || 0) + 3) }), N(D, "mouseenter", A), N(D, "mouseleave", _), j.doc.body.appendChild(D), this.renderer = W = new X(D, 0, 0, P, void 0, void 0, W.styledMode);
  2870. }
  2871. if (t ? this.label = W.g(o) : (this.label = W.label("", 0, 0, s.shape, void 0, void 0, s.useHTML, void 0, o).attr({ padding: s.padding, r: s.borderRadius }), h || this.label.attr({
  2872. fill: s.backgroundColor,
  2873. "stroke-width": s.borderWidth
  2874. }).css(s.style).css({ pointerEvents: n }).shadow(s.shadow)), h && s.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  2875. var g = this.label, m = g.xSetter, L = g.ySetter;
  2876. g.xSetter = function(Y) {
  2877. m.call(g, i.distance), D.style.left = Y + "px";
  2878. }, g.ySetter = function(Y) {
  2879. L.call(g, i.distance), D.style.top = Y + "px";
  2880. };
  2881. }
  2882. this.label.on("mouseenter", A).on("mouseleave", _).attr({ zIndex: 8 }).add();
  2883. }
  2884. return this.label;
  2885. }, p.prototype.getPosition = function(i, h, s) {
  2886. var t = this.chart, o = this.distance, n = {}, A = t.inverted && s.h || 0, _ = this.outside, D = _ ? F.documentElement.clientWidth - 2 * o : t.chartWidth, W = _ ? Math.max(F.body.scrollHeight, F.documentElement.scrollHeight, F.body.offsetHeight, F.documentElement.offsetHeight, F.documentElement.clientHeight) : t.chartHeight, P = t.pointer.getChartPosition(), X = function(z) {
  2887. var $ = z === "x";
  2888. return [z, $ ? D : W, $ ? i : h].concat(_ ? [$ ? i * P.scaleX : h * P.scaleY, $ ? P.left - o + (s.plotX + t.plotLeft) * P.scaleX : P.top - o + (s.plotY + t.plotTop) * P.scaleY, 0, $ ? D : W] : [$ ? i : h, $ ? s.plotX + t.plotLeft : s.plotY + t.plotTop, $ ? t.plotLeft : t.plotTop, $ ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  2889. }, g = X("y"), m = X("x"), L;
  2890. X = !!s.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  2891. var Y = !this.followPointer && v(s.ttBelow, !t.inverted === X), V = function(z, $, q, it, et, nt, rt) {
  2892. var ct = _ ? z === "y" ? o * P.scaleY : o * P.scaleX : o, gt = (q - it) / 2, dt = it < et - o, ht = et + o + it < $, at = et - ct - q + gt;
  2893. if (et = et + ct - gt, Y && ht)
  2894. n[z] = et;
  2895. else if (!Y && dt)
  2896. n[z] = at;
  2897. else if (dt)
  2898. n[z] = Math.min(rt - it, 0 > at - A ? at : at - A);
  2899. else if (ht)
  2900. n[z] = Math.max(nt, et + A + q > $ ? et : et + A);
  2901. else
  2902. return !1;
  2903. }, Q = function(z, $, q, it, et) {
  2904. var nt;
  2905. return et < o || et > $ - o ? nt = !1 : n[z] = et < q / 2 ? 1 : et > $ - it / 2 ? $ - it - 2 : et - q / 2, nt;
  2906. }, k = function(z) {
  2907. var $ = g;
  2908. g = m, m = $, L = z;
  2909. }, G = function() {
  2910. V.apply(0, g) !== !1 ? Q.apply(0, m) !== !1 || L || (k(!0), G()) : L ? n.x = n.y = 0 : (k(!0), G());
  2911. };
  2912. return (t.inverted || 1 < this.len) && k(), G(), n;
  2913. }, p.prototype.hide = function(i) {
  2914. var h = this;
  2915. H.clearTimeout(this.hideTimer), i = v(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  2916. h.getLabel().fadeOut(i && void 0), h.isHidden = !0;
  2917. }, i));
  2918. }, p.prototype.init = function(i, h) {
  2919. this.chart = i, this.options = h, this.crosshairs = [], this.now = { x: 0, y: 0 }, this.isHidden = !0, this.split = h.split && !i.inverted && !i.polar, this.shared = h.shared || this.split, this.outside = v(h.outside, !(!i.scrollablePixelsX && !i.scrollablePixelsY));
  2920. }, p.prototype.shouldStickOnContact = function() {
  2921. return !(this.followPointer || !this.options.stickOnContact);
  2922. }, p.prototype.isStickyOnContact = function() {
  2923. return !(!this.shouldStickOnContact() || !this.inContact);
  2924. }, p.prototype.move = function(i, h, s, t) {
  2925. var o = this, n = o.now, A = o.options.animation !== !1 && !o.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(h - n.y)), _ = o.followPointer || 1 < o.len;
  2926. E(n, { x: A ? (2 * n.x + i) / 3 : i, y: A ? (n.y + h) / 2 : h, anchorX: _ ? void 0 : A ? (2 * n.anchorX + s) / 3 : s, anchorY: _ ? void 0 : A ? (n.anchorY + t) / 2 : t }), o.getLabel().attr(n), o.drawTracker(), A && (H.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  2927. o && o.move(i, h, s, t);
  2928. }, 32));
  2929. }, p.prototype.refresh = function(i, h) {
  2930. var s = this.chart, t = this.options, o = a(i), n = o[0], A = [], _ = t.formatter || this.defaultFormatter, D = this.shared, W = s.styledMode, P = {};
  2931. if (t.enabled) {
  2932. H.clearTimeout(this.hideTimer), this.allowShared = !(!B(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && n.series.tooltipOptions.followPointer, i = this.getAnchor(i, h);
  2933. var X = i[0], g = i[1];
  2934. if (D && this.allowShared ? (s.pointer.applyInactiveState(o), o.forEach(function(Y) {
  2935. Y.setState("hover"), A.push(Y.getLabelConfig());
  2936. }), P = { x: n.category, y: n.y }, P.points = A) : P = n.getLabelConfig(), this.len = A.length, _ = _.call(P, this), D = n.series, this.distance = v(D.tooltipOptions.distance, 16), _ === !1)
  2937. this.hide();
  2938. else {
  2939. if (this.split && this.allowShared)
  2940. this.renderSplit(
  2941. _,
  2942. o
  2943. );
  2944. else {
  2945. var m = X, L = g;
  2946. if (h && s.pointer.isDirectTouch && (m = h.chartX - s.plotLeft, L = h.chartY - s.plotTop), s.polar || D.options.clip === !1 || o.some(function(Y) {
  2947. return Y.series.shouldShowTooltip(m, L);
  2948. }))
  2949. h = this.getLabel(), t.style.width && !W || h.css({ width: this.chart.spacingBox.width + "px" }), h.attr({ text: _ && _.join ? _.join("") : _ }), h.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + v(n.colorIndex, D.colorIndex)), W || h.attr({ stroke: t.borderColor || n.color || D.color || "#666666" }), this.updatePosition({
  2950. plotX: X,
  2951. plotY: g,
  2952. negative: n.negative,
  2953. ttBelow: n.ttBelow,
  2954. h: i[2] || 0
  2955. });
  2956. else {
  2957. this.hide();
  2958. return;
  2959. }
  2960. }
  2961. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  2962. }
  2963. O(this, "refresh");
  2964. }
  2965. }, p.prototype.renderSplit = function(i, h) {
  2966. function s(ht, at, J, tt, st) {
  2967. return st === void 0 && (st = !0), J ? (at = it ? 0 : ct, ht = b(ht - tt / 2, z.left, z.right - tt - (t.outside ? et : 0))) : (at -= nt, ht = st ? ht - tt - Q : ht + Q, ht = b(ht, st ? ht : z.left, z.right)), { x: ht, y: at };
  2968. }
  2969. var t = this, o = t.chart, n = t.chart, A = n.chartWidth, _ = n.chartHeight, D = n.plotHeight, W = n.plotLeft, P = n.plotTop, X = n.pointer, g = n.scrollablePixelsY;
  2970. g = g === void 0 ? 0 : g;
  2971. var m = n.scrollablePixelsX, L = n.scrollingContainer;
  2972. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  2973. var Y = L.scrollLeft;
  2974. L = L.scrollTop;
  2975. var V = n.styledMode, Q = t.distance, k = t.options, G = t.options.positioner, z = t.outside && typeof m != "number" ? F.documentElement.getBoundingClientRect() : { left: Y, right: Y + A, top: L, bottom: L + _ }, $ = t.getLabel(), q = this.renderer || o.renderer, it = !(!o.xAxis[0] || !o.xAxis[0].opposite);
  2976. o = X.getChartPosition();
  2977. var et = o.left;
  2978. o = o.top;
  2979. var nt = P + L, rt = 0, ct = D - g;
  2980. S(i) && (i = [!1, i]), i = i.slice(0, h.length + 1).reduce(function(ht, at, J) {
  2981. if (at !== !1 && at !== "") {
  2982. J = h[J - 1] || { isHeader: !0, plotX: h[0].plotX, plotY: D, series: {} };
  2983. var tt = J.isHeader, st = tt ? t : J.series;
  2984. at = at.toString();
  2985. var lt = st.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + v(J.colorIndex, yt.colorIndex, "none");
  2986. if (lt || (lt = { padding: k.padding, r: k.borderRadius }, V || (lt.fill = k.backgroundColor, lt["stroke-width"] = k.borderWidth), lt = q.label("", 0, 0, k[pt ? "headerShape" : "shape"], void 0, void 0, k.useHTML).addClass((pt ? "highcharts-tooltip-header " : "") + "highcharts-tooltip-box " + vt).attr(lt).add($)), lt.isActive = !0, lt.attr({ text: at }), V || lt.css(k.style).shadow(k.shadow).attr({ stroke: k.borderColor || J.color || yt.color || "#333333" }), st = st.tt = lt, pt = st.getBBox(), at = pt.width + st.strokeWidth(), tt && (rt = pt.height, ct += rt, it && (nt -= rt)), yt = J.plotX, yt = yt === void 0 ? 0 : yt, vt = J.plotY, vt = vt === void 0 ? 0 : vt, lt = J.series, J.isHeader) {
  2987. yt = W + yt;
  2988. var Mt = P + D / 2;
  2989. } else {
  2990. var Pt = lt.xAxis, At = lt.yAxis;
  2991. yt = Pt.pos + b(yt, -Q, Pt.len + Q), lt.shouldShowTooltip(0, At.pos - P + vt, { ignoreX: !0 }) && (Mt = At.pos + vt);
  2992. }
  2993. yt = b(yt, z.left - Q, z.right + Q), typeof Mt == "number" ? (pt = pt.height + 1, vt = G ? G.call(t, at, pt, J) : s(
  2994. yt,
  2995. Mt,
  2996. tt,
  2997. at
  2998. ), ht.push({ align: G ? 0 : void 0, anchorX: yt, anchorY: Mt, boxWidth: at, point: J, rank: v(vt.rank, tt ? 1 : 0), size: pt, target: vt.y, tt: st, x: vt.x })) : st.isActive = !1;
  2999. }
  3000. return ht;
  3001. }, []), !G && i.some(function(ht) {
  3002. var at = (t.outside ? et : 0) + ht.anchorX;
  3003. return at < z.left && at + ht.boxWidth < z.right ? !0 : at < et - z.left + ht.boxWidth && z.right - at > at;
  3004. }) && (i = i.map(function(ht) {
  3005. var at = s(ht.anchorX, ht.anchorY, ht.point.isHeader, ht.boxWidth, !1);
  3006. return E(ht, { target: at.y, x: at.x });
  3007. })), t.cleanSplit(), R(i, ct);
  3008. var gt = et, dt = et;
  3009. i.forEach(function(ht) {
  3010. var at = ht.x, J = ht.boxWidth;
  3011. ht = ht.isHeader, ht || (t.outside && et + at < gt && (gt = et + at), !ht && t.outside && gt + J > dt && (dt = et + at));
  3012. }), i.forEach(function(ht) {
  3013. var at = ht.x, J = ht.anchorX, tt = ht.pos, st = ht.point.isHeader;
  3014. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: ht.anchorY }, t.outside && at < J) {
  3015. var lt = et - gt;
  3016. 0 < lt && (st || (tt.x = at + lt, tt.anchorX = J + lt), st && (tt.x = (dt - gt) / 2, tt.anchorX = J + lt));
  3017. }
  3018. ht.tt.attr(tt);
  3019. }), i = t.container, g = t.renderer, t.outside && i && g && (n = $.getBBox(), g.setSize(n.width + n.x, n.height + n.y, !1), i.style.left = gt + "px", i.style.top = o + "px");
  3020. }, p.prototype.drawTracker = function() {
  3021. if (this.followPointer || !this.options.stickOnContact)
  3022. this.tracker && this.tracker.destroy();
  3023. else {
  3024. var i = this.chart, h = this.label, s = this.shared ? i.hoverPoints : i.hoverPoint;
  3025. if (h && s) {
  3026. var t = { x: 0, y: 0, width: 0, height: 0 };
  3027. s = this.getAnchor(s);
  3028. var o = h.getBBox();
  3029. s[0] += i.plotLeft - h.translateX, s[1] += i.plotTop - h.translateY, t.x = Math.min(0, s[0]), t.y = Math.min(0, s[1]), t.width = 0 > s[0] ? Math.max(Math.abs(s[0]), o.width - s[0]) : Math.max(Math.abs(s[0]), o.width), t.height = 0 > s[1] ? Math.max(Math.abs(s[1]), o.height - Math.abs(s[1])) : Math.max(Math.abs(s[1]), o.height), this.tracker ? this.tracker.attr(t) : (this.tracker = h.renderer.rect(t).addClass("highcharts-tracker").add(h), i.styledMode || this.tracker.attr({ fill: "rgba(0,0,0,0)" }));
  3030. }
  3031. }
  3032. }, p.prototype.styledModeFormat = function(i) {
  3033. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  3034. }, p.prototype.tooltipFooterHeaderFormatter = function(i, h) {
  3035. var s = i.series, t = s.tooltipOptions, o = s.xAxis, n = o && o.dateTime;
  3036. o = {
  3037. isFooter: h,
  3038. labelConfig: i
  3039. };
  3040. var A = t.xDateFormat, _ = t[h ? "footerFormat" : "headerFormat"];
  3041. return O(this, "headerFormatter", o, function(D) {
  3042. n && !A && M(i.key) && (A = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && A && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(W) {
  3043. _ = _.replace("{point." + W + "}", "{point." + W + ":" + A + "}");
  3044. }), s.chart.styledMode && (_ = this.styledModeFormat(_)), D.text = U(_, { point: i, series: s }, this.chart);
  3045. }), o.text;
  3046. }, p.prototype.update = function(i) {
  3047. this.destroy(), w(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, w(!0, this.options, i));
  3048. }, p.prototype.updatePosition = function(i) {
  3049. var h = this.chart, s = this.options, t = h.pointer, o = this.getLabel();
  3050. t = t.getChartPosition();
  3051. var n = (s.positioner || this.getPosition).call(this, o.width, o.height, i), A = i.plotX + h.plotLeft;
  3052. i = i.plotY + h.plotTop, this.outside && (s = s.borderWidth + 2 * this.distance, this.renderer.setSize(o.width + s, o.height + s, !1), (t.scaleX !== 1 || t.scaleY !== 1) && (x(this.container, { transform: "scale(" + t.scaleX + ", " + t.scaleY + ")" }), A *= t.scaleX, i *= t.scaleY), A += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), A, i);
  3053. }, p;
  3054. }(), y;
  3055. }
  3056. ), T(l, "Core/Series/Point.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Animation/AnimationUtilities.js"], l["Core/DefaultOptions.js"], l["Core/FormatUtilities.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  3057. var U = j.animObject, F = I.defaultOptions, R = Z.format, N = H.addEvent, b = H.defined, x = H.erase, u = H.extend, f = H.fireEvent, E = H.getNestedProperty, O = H.isArray, B = H.isFunction, M = H.isNumber, S = H.isObject, w = H.merge, v = H.objectEach, a = H.pick, c = H.syncTimeout, p = H.removeEvent, i = H.uniqueKey;
  3058. return j = function() {
  3059. function h() {
  3060. this.colorIndex = this.category = void 0, this.formatPrefix = "point", this.id = void 0, this.isNull = !1, this.percentage = this.options = this.name = void 0, this.selected = !1, this.total = this.series = void 0, this.visible = !0, this.x = void 0;
  3061. }
  3062. return h.prototype.animateBeforeDestroy = function() {
  3063. var s = this, t = { x: s.startXPos, opacity: 0 }, o = s.getGraphicalProps();
  3064. o.singular.forEach(function(n) {
  3065. s[n] = s[n].animate(n === "dataLabel" ? {
  3066. x: s[n].startXPos,
  3067. y: s[n].startYPos,
  3068. opacity: 0
  3069. } : t);
  3070. }), o.plural.forEach(function(n) {
  3071. s[n].forEach(function(A) {
  3072. A.element && A.animate(u({ x: s.startXPos }, A.startYPos ? { x: A.startXPos, y: A.startYPos } : {}));
  3073. });
  3074. });
  3075. }, h.prototype.applyOptions = function(s, t) {
  3076. var o = this.series, n = o.options.pointValKey || o.pointValKey;
  3077. return s = h.prototype.optionsToObject.call(this, s), u(this, s), this.options = this.options ? u(this.options, s) : s, s.group && delete this.group, s.dataLabels && delete this.dataLabels, n && (this.y = h.prototype.getNestedProperty.call(this, n)), this.formatPrefix = (this.isNull = a(this.isValid && !this.isValid(), this.x === null || !M(this.y))) ? "null" : "point", this.selected && (this.state = "select"), "name" in this && typeof t > "u" && o.xAxis && o.xAxis.hasNames && (this.x = o.xAxis.nameToX(this)), typeof this.x > "u" && o ? this.x = typeof t > "u" ? o.autoIncrement() : t : M(s.x) && o.options.relativeXValue && (this.x = o.autoIncrement(s.x)), this;
  3078. }, h.prototype.destroy = function() {
  3079. function s() {
  3080. (t.graphic || t.dataLabel || t.dataLabels) && (p(t), t.destroyElements());
  3081. for (D in t)
  3082. t[D] = null;
  3083. }
  3084. var t = this, o = t.series, n = o.chart;
  3085. o = o.options.dataSorting;
  3086. var A = n.hoverPoints, _ = U(t.series.chart.renderer.globalAnimation), D;
  3087. t.legendItem && n.legend.destroyItem(t), A && (t.setState(), x(A, t), A.length || (n.hoverPoints = null)), t === n.hoverPoint && t.onMouseOut(), o && o.enabled ? (this.animateBeforeDestroy(), c(s, _.duration)) : s(), n.pointCount--;
  3088. }, h.prototype.destroyElements = function(s) {
  3089. var t = this;
  3090. s = t.getGraphicalProps(s), s.singular.forEach(function(o) {
  3091. t[o] = t[o].destroy();
  3092. }), s.plural.forEach(function(o) {
  3093. t[o].forEach(function(n) {
  3094. n.element && n.destroy();
  3095. }), delete t[o];
  3096. });
  3097. }, h.prototype.firePointEvent = function(s, t, o) {
  3098. var n = this, A = this.series.options;
  3099. (A.point.events[s] || n.options && n.options.events && n.options.events[s]) && n.importEvents(), s === "click" && A.allowPointSelect && (o = function(_) {
  3100. n.select && n.select(null, _.ctrlKey || _.metaKey || _.shiftKey);
  3101. }), f(n, s, t, o);
  3102. }, h.prototype.getClassName = function() {
  3103. return "highcharts-point" + (this.selected ? " highcharts-point-select" : "") + (this.negative ? " highcharts-negative" : "") + (this.isNull ? " highcharts-null-point" : "") + (typeof this.colorIndex < "u" ? " highcharts-color-" + this.colorIndex : "") + (this.options.className ? " " + this.options.className : "") + (this.zone && this.zone.className ? " " + this.zone.className.replace("highcharts-negative", "") : "");
  3104. }, h.prototype.getGraphicalProps = function(s) {
  3105. var t = this, o = [], n = { singular: [], plural: [] }, A;
  3106. for (s = s || { graphic: 1, dataLabel: 1 }, s.graphic && o.push("graphic", "upperGraphic", "shadowGroup"), s.dataLabel && o.push("dataLabel", "dataLabelUpper", "connector"), A = o.length; A--; ) {
  3107. var _ = o[A];
  3108. t[_] && n.singular.push(_);
  3109. }
  3110. return ["dataLabel", "connector"].forEach(function(D) {
  3111. var W = D + "s";
  3112. s[D] && t[W] && n.plural.push(W);
  3113. }), n;
  3114. }, h.prototype.getLabelConfig = function() {
  3115. return { x: this.category, y: this.y, color: this.color, colorIndex: this.colorIndex, key: this.name || this.category, series: this.series, point: this, percentage: this.percentage, total: this.total || this.stackTotal };
  3116. }, h.prototype.getNestedProperty = function(s) {
  3117. if (s)
  3118. return s.indexOf("custom.") === 0 ? E(s, this.options) : this[s];
  3119. }, h.prototype.getZone = function() {
  3120. var s = this.series, t = s.zones;
  3121. s = s.zoneAxis || "y";
  3122. var o, n = 0;
  3123. for (o = t[n]; this[s] >= o.value; )
  3124. o = t[++n];
  3125. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = o && o.color && !this.options.color ? o.color : this.nonZonedColor, o;
  3126. }, h.prototype.hasNewShapeType = function() {
  3127. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  3128. }, h.prototype.init = function(s, t, o) {
  3129. return this.series = s, this.applyOptions(t, o), this.id = b(this.id) ? this.id : i(), this.resolveColor(), s.chart.pointCount++, f(this, "afterInit"), this;
  3130. }, h.prototype.optionsToObject = function(s) {
  3131. var t = this.series, o = t.options.keys, n = o || t.pointArrayMap || ["y"], A = n.length, _ = {}, D = 0, W = 0;
  3132. if (M(s) || s === null)
  3133. _[n[0]] = s;
  3134. else if (O(s))
  3135. for (!o && s.length > A && (t = typeof s[0], t === "string" ? _.name = s[0] : t === "number" && (_.x = s[0]), D++); W < A; )
  3136. o && typeof s[D] > "u" || (0 < n[W].indexOf(".") ? h.prototype.setNestedProperty(_, s[D], n[W]) : _[n[W]] = s[D]), D++, W++;
  3137. else
  3138. typeof s == "object" && (_ = s, s.dataLabels && (t._hasPointLabels = !0), s.marker && (t._hasPointMarkers = !0));
  3139. return _;
  3140. }, h.prototype.resolveColor = function() {
  3141. var s = this.series, t = s.chart.styledMode, o = s.chart.options.chart.colorCount;
  3142. if (delete this.nonZonedColor, s.options.colorByPoint) {
  3143. if (!t) {
  3144. o = s.options.colors || s.chart.options.colors;
  3145. var n = o[s.colorCounter];
  3146. o = o.length;
  3147. }
  3148. t = s.colorCounter, s.colorCounter++, s.colorCounter === o && (s.colorCounter = 0);
  3149. } else
  3150. t || (n = s.color), t = s.colorIndex;
  3151. this.colorIndex = a(this.options.colorIndex, t), this.color = a(this.options.color, n);
  3152. }, h.prototype.setNestedProperty = function(s, t, o) {
  3153. return o.split(".").reduce(function(n, A, _, D) {
  3154. return n[A] = D.length - 1 === _ ? t : S(n[A], !0) ? n[A] : {}, n[A];
  3155. }, s), s;
  3156. }, h.prototype.tooltipFormatter = function(s) {
  3157. var t = this.series, o = t.tooltipOptions, n = a(o.valueDecimals, ""), A = o.valuePrefix || "", _ = o.valueSuffix || "";
  3158. return t.chart.styledMode && (s = t.chart.tooltip.styledModeFormat(s)), (t.pointArrayMap || ["y"]).forEach(function(D) {
  3159. D = "{point." + D, (A || _) && (s = s.replace(RegExp(D + "}", "g"), A + D + "}" + _)), s = s.replace(RegExp(D + "}", "g"), D + ":,." + n + "f}");
  3160. }), R(s, { point: this, series: this.series }, t.chart);
  3161. }, h.prototype.update = function(s, t, o, n) {
  3162. function A() {
  3163. _.applyOptions(s);
  3164. var m = W && _.hasDummyGraphic;
  3165. m = _.y === null ? !m : m, W && m && (_.graphic = W.destroy(), delete _.hasDummyGraphic), S(s, !0) && (W && W.element && s && s.marker && typeof s.marker.symbol < "u" && (_.graphic = W.destroy()), s && s.dataLabels && _.dataLabel && (_.dataLabel = _.dataLabel.destroy()), _.connector && (_.connector = _.connector.destroy())), g = _.index, D.updateParallelArrays(_, g), X.data[g] = S(X.data[g], !0) || S(s, !0) ? _.options : a(s, X.data[g]), D.isDirty = D.isDirtyData = !0, !D.fixedBox && D.hasCartesianSeries && (P.isDirtyBox = !0), X.legendType === "point" && (P.isDirtyLegend = !0), t && P.redraw(o);
  3166. }
  3167. var _ = this, D = _.series, W = _.graphic, P = D.chart, X = D.options, g;
  3168. t = a(t, !0), n === !1 ? A() : _.firePointEvent("update", { options: s }, A);
  3169. }, h.prototype.remove = function(s, t) {
  3170. this.series.removePoint(this.series.data.indexOf(this), s, t);
  3171. }, h.prototype.select = function(s, t) {
  3172. var o = this, n = o.series, A = n.chart;
  3173. this.selectedStaging = s = a(s, !o.selected), o.firePointEvent(s ? "select" : "unselect", { accumulate: t }, function() {
  3174. o.selected = o.options.selected = s, n.options.data[n.data.indexOf(o)] = o.options, o.setState(s && "select"), t || A.getSelectedPoints().forEach(function(_) {
  3175. var D = _.series;
  3176. _.selected && _ !== o && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(A.hoverPoints && D.options.inactiveOtherPoints ? "inactive" : ""), _.firePointEvent("unselect"));
  3177. });
  3178. }), delete this.selectedStaging;
  3179. }, h.prototype.onMouseOver = function(s) {
  3180. var t = this.series.chart, o = t.pointer;
  3181. s = s ? o.normalize(s) : o.getChartCoordinatesFromPoint(this, t.inverted), o.runPointActions(
  3182. s,
  3183. this
  3184. );
  3185. }, h.prototype.onMouseOut = function() {
  3186. var s = this.series.chart;
  3187. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (s.hoverPoints || []).forEach(function(t) {
  3188. t.setState();
  3189. }), s.hoverPoints = s.hoverPoint = null;
  3190. }, h.prototype.importEvents = function() {
  3191. if (!this.hasImportedEvents) {
  3192. var s = this, t = w(s.series.options.point, s.options).events;
  3193. s.events = t, v(t, function(o, n) {
  3194. B(o) && N(s, n, o);
  3195. }), this.hasImportedEvents = !0;
  3196. }
  3197. }, h.prototype.setState = function(s, t) {
  3198. var o = this.series, n = this.state, A = o.options.states[s || "normal"] || {}, _ = F.plotOptions[o.type].marker && o.options.marker, D = _ && _.enabled === !1, W = _ && _.states && _.states[s || "normal"] || {}, P = W.enabled === !1, X = this.marker || {}, g = o.chart, m = _ && o.markerAttribs, L = o.halo, Y, V = o.stateMarkerGraphic;
  3199. if (s = s || "", !(s === this.state && !t || this.selected && s !== "select" || A.enabled === !1 || s && (P || D && W.enabled === !1) || s && X.states && X.states[s] && X.states[s].enabled === !1)) {
  3200. if (this.state = s, m && (Y = o.markerAttribs(this, s)), this.graphic && !this.hasDummyGraphic) {
  3201. if (n && this.graphic.removeClass("highcharts-point-" + n), s && this.graphic.addClass("highcharts-point-" + s), !g.styledMode) {
  3202. var Q = o.pointAttribs(this, s), k = a(g.options.chart.animation, A.animation);
  3203. o.options.inactiveOtherPoints && M(Q.opacity) && ((this.dataLabels || []).forEach(function(G) {
  3204. G && G.animate({ opacity: Q.opacity }, k);
  3205. }), this.connector && this.connector.animate({ opacity: Q.opacity }, k)), this.graphic.animate(Q, k);
  3206. }
  3207. Y && this.graphic.animate(Y, a(g.options.chart.animation, W.animation, _.animation)), V && V.hide();
  3208. } else
  3209. s && W && (n = X.symbol || o.symbol, V && V.currentSymbol !== n && (V = V.destroy()), Y && (V ? V[t ? "animate" : "attr"]({ x: Y.x, y: Y.y }) : n && (o.stateMarkerGraphic = V = g.renderer.symbol(n, Y.x, Y.y, Y.width, Y.height).add(o.markerGroup), V.currentSymbol = n)), !g.styledMode && V && this.state !== "inactive" && V.attr(o.pointAttribs(this, s))), V && (V[s && this.isInside ? "show" : "hide"](), V.element.point = this, V.addClass(this.getClassName(), !0));
  3210. A = A.halo, Y = (V = this.graphic || V) && V.visibility || "inherit", A && A.size && V && Y !== "hidden" && !this.isCluster ? (L || (o.halo = L = g.renderer.path().add(V.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(A.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + a(this.colorIndex, o.colorIndex) + (this.className ? " " + this.className : ""), visibility: Y, zIndex: -1 }), L.point = this, g.styledMode || L.attr(u({ fill: this.color || o.color, "fill-opacity": A.opacity }, y.filterUserAttributes(A.attributes || {})))) : L && L.point && L.point.haloPath && L.animate({ d: L.point.haloPath(0) }, null, L.hide), f(this, "afterSetState", { state: s });
  3211. }
  3212. }, h.prototype.haloPath = function(s) {
  3213. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - s, this.plotY - s, 2 * s, 2 * s);
  3214. }, h;
  3215. }(), j;
  3216. }), T(l, "Core/Pointer.js", [l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Tooltip.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  3217. var H = y.parse, U = j.charts, F = j.noop, R = Z.addEvent, N = Z.attr, b = Z.css, x = Z.defined, u = Z.extend, f = Z.find, E = Z.fireEvent, O = Z.isNumber, B = Z.isObject, M = Z.objectEach, S = Z.offset, w = Z.pick, v = Z.splat;
  3218. return y = function() {
  3219. function a(c, p) {
  3220. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = p, this.init(c, p);
  3221. }
  3222. return a.prototype.applyInactiveState = function(c) {
  3223. var p = [], i;
  3224. (c || []).forEach(function(h) {
  3225. i = h.series, p.push(i), i.linkedParent && p.push(i.linkedParent), i.linkedSeries && (p = p.concat(i.linkedSeries)), i.navigatorSeries && p.push(i.navigatorSeries);
  3226. }), this.chart.series.forEach(function(h) {
  3227. p.indexOf(h) === -1 ? h.setState("inactive", !0) : h.options.inactiveOtherPoints && h.setAllPointsToState("inactive");
  3228. });
  3229. }, a.prototype.destroy = function() {
  3230. var c = this;
  3231. this.eventsToUnbind.forEach(function(p) {
  3232. return p();
  3233. }), this.eventsToUnbind = [], j.chartCount || (a.unbindDocumentMouseUp && (a.unbindDocumentMouseUp = a.unbindDocumentMouseUp()), a.unbindDocumentTouchEnd && (a.unbindDocumentTouchEnd = a.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), M(c, function(p, i) {
  3234. c[i] = void 0;
  3235. });
  3236. }, a.prototype.drag = function(c) {
  3237. var p = this.chart, i = p.options.chart, h = this.zoomHor, s = this.zoomVert, t = p.plotLeft, o = p.plotTop, n = p.plotWidth, A = p.plotHeight, _ = this.mouseDownX || 0, D = this.mouseDownY || 0, W = B(i.panning) ? i.panning && i.panning.enabled : i.panning, P = i.panKey && c[i.panKey + "Key"], X = c.chartX, g = c.chartY, m = this.selectionMarker;
  3238. if ((!m || !m.touch) && (X < t ? X = t : X > t + n && (X = t + n), g < o ? g = o : g > o + A && (g = o + A), this.hasDragged = Math.sqrt(Math.pow(_ - X, 2) + Math.pow(D - g, 2)), 10 < this.hasDragged)) {
  3239. var L = p.isInsidePlot(_ - t, D - o, { visiblePlotOnly: !0 });
  3240. !p.hasCartesianSeries && !p.mapView || !this.zoomX && !this.zoomY || !L || P || m || (this.selectionMarker = m = p.renderer.rect(t, o, h ? 1 : n, s ? 1 : A, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), p.styledMode || m.attr({ fill: i.selectionMarkerFill || H("#335cad").setOpacity(0.25).get() })), m && h && (h = X - _, m.attr({ width: Math.abs(h), x: (0 < h ? 0 : h) + _ })), m && s && (h = g - D, m.attr({ height: Math.abs(h), y: (0 < h ? 0 : h) + D })), L && !m && W && p.pan(c, i.panning);
  3241. }
  3242. }, a.prototype.dragStart = function(c) {
  3243. var p = this.chart;
  3244. p.mouseIsDown = c.type, p.cancelClick = !1, p.mouseDownX = this.mouseDownX = c.chartX, p.mouseDownY = this.mouseDownY = c.chartY;
  3245. }, a.prototype.drop = function(c) {
  3246. var p = this, i = this.chart, h = this.hasPinched;
  3247. if (this.selectionMarker) {
  3248. var s = this.selectionMarker, t = s.attr ? s.attr("x") : s.x, o = s.attr ? s.attr("y") : s.y, n = s.attr ? s.attr("width") : s.width, A = s.attr ? s.attr("height") : s.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: o, width: n, height: A }, D = !!i.mapView;
  3249. (this.hasDragged || h) && (i.axes.forEach(function(W) {
  3250. if (W.zoomEnabled && x(W.min) && (h || p[{ xAxis: "zoomX", yAxis: "zoomY" }[W.coll]]) && O(t) && O(o)) {
  3251. var P = W.horiz, X = c.type === "touchend" ? W.minPixelPadding : 0, g = W.toValue((P ? t : o) + X);
  3252. P = W.toValue((P ? t + n : o + A) - X), _[W.coll].push({ axis: W, min: Math.min(g, P), max: Math.max(g, P) }), D = !0;
  3253. }
  3254. }), D && E(i, "selection", _, function(W) {
  3255. i.zoom(u(
  3256. W,
  3257. h ? { animation: !1 } : null
  3258. ));
  3259. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), h && this.scaleGroups();
  3260. }
  3261. i && O(i.index) && (b(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  3262. }, a.prototype.findNearestKDPoint = function(c, p, i) {
  3263. var h = this.chart, s = h.hoverPoint;
  3264. if (h = h.tooltip, s && h && h.isStickyOnContact())
  3265. return s;
  3266. var t;
  3267. return c.forEach(function(o) {
  3268. var n = !(o.noSharedTooltip && p) && 0 > o.options.findNearestPointBy.indexOf("y");
  3269. if (o = o.searchPoint(i, n), (n = B(o, !0) && o.series) && !(n = !B(t, !0))) {
  3270. n = t.distX - o.distX;
  3271. var A = t.dist - o.dist, _ = (o.series.group && o.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  3272. n = 0 < (n !== 0 && p ? n : A !== 0 ? A : _ !== 0 ? _ : t.series.index > o.series.index ? -1 : 1);
  3273. }
  3274. n && (t = o);
  3275. }), t;
  3276. }, a.prototype.getChartCoordinatesFromPoint = function(c, p) {
  3277. var i = c.series, h = i.xAxis;
  3278. i = i.yAxis;
  3279. var s = c.shapeArgs;
  3280. if (h && i) {
  3281. var t = w(c.clientX, c.plotX), o = c.plotY || 0;
  3282. return c.isNode && s && O(s.x) && O(s.y) && (t = s.x, o = s.y), p ? { chartX: i.len + i.pos - o, chartY: h.len + h.pos - t } : { chartX: t + h.pos, chartY: o + i.pos };
  3283. }
  3284. if (s && s.x && s.y)
  3285. return { chartX: s.x, chartY: s.y };
  3286. }, a.prototype.getChartPosition = function() {
  3287. if (this.chartPosition)
  3288. return this.chartPosition;
  3289. var c = this.chart.container, p = S(c);
  3290. this.chartPosition = { left: p.left, top: p.top, scaleX: 1, scaleY: 1 };
  3291. var i = c.offsetWidth;
  3292. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = p.width / i, this.chartPosition.scaleY = p.height / c), this.chartPosition;
  3293. }, a.prototype.getCoordinates = function(c) {
  3294. var p = { xAxis: [], yAxis: [] };
  3295. return this.chart.axes.forEach(function(i) {
  3296. p[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  3297. }), p;
  3298. }, a.prototype.getHoverData = function(c, p, i, h, s, t) {
  3299. var o = [];
  3300. h = !(!h || !c);
  3301. var n = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: s };
  3302. E(this, "beforeGetHoverData", n);
  3303. var A = p && !p.stickyTracking ? [p] : i.filter(function(D) {
  3304. return n.filter ? n.filter(D) : D.visible && !(!s && D.directTouch) && w(D.options.enableMouseTracking, !0) && D.stickyTracking;
  3305. }), _ = h || !t ? c : this.findNearestKDPoint(A, s, t);
  3306. return p = _ && _.series, _ && (s && !p.noSharedTooltip ? (A = i.filter(function(D) {
  3307. return n.filter ? n.filter(D) : D.visible && !(!s && D.directTouch) && w(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  3308. }), A.forEach(function(D) {
  3309. var W = f(D.points, function(P) {
  3310. return P.x === _.x && !P.isNull;
  3311. });
  3312. B(W) && (D.chart.isBoosting && (W = D.getPoint(W)), o.push(W));
  3313. })) : o.push(_)), n = { hoverPoint: _ }, E(this, "afterGetHoverData", n), { hoverPoint: n.hoverPoint, hoverSeries: p, hoverPoints: o };
  3314. }, a.prototype.getPointFromEvent = function(c) {
  3315. c = c.target;
  3316. for (var p; c && !p; )
  3317. p = c.point, c = c.parentNode;
  3318. return p;
  3319. }, a.prototype.onTrackerMouseOut = function(c) {
  3320. c = c.relatedTarget || c.toElement;
  3321. var p = this.chart.hoverSeries;
  3322. this.isDirectTouch = !1, !p || !c || p.stickyTracking || this.inClass(c, "highcharts-tooltip") || this.inClass(c, "highcharts-series-" + p.index) && this.inClass(c, "highcharts-tracker") || p.onMouseOut();
  3323. }, a.prototype.inClass = function(c, p) {
  3324. for (var i; c; ) {
  3325. if (i = N(c, "class")) {
  3326. if (i.indexOf(p) !== -1)
  3327. return !0;
  3328. if (i.indexOf("highcharts-container") !== -1)
  3329. return !1;
  3330. }
  3331. c = c.parentNode;
  3332. }
  3333. }, a.prototype.init = function(c, p) {
  3334. this.options = p, this.chart = c, this.runChartClick = !(!p.chart.events || !p.chart.events.click), this.pinchDown = [], this.lastValidTouch = {}, I && (c.tooltip = new I(c, p.tooltip), this.followTouchMove = w(p.tooltip.followTouchMove, !0)), this.setDOMEvents();
  3335. }, a.prototype.normalize = function(c, p) {
  3336. var i = c.touches, h = i ? i.length ? i.item(0) : w(i.changedTouches, c.changedTouches)[0] : c;
  3337. return p || (p = this.getChartPosition()), i = h.pageX - p.left, h = h.pageY - p.top, i /= p.scaleX, h /= p.scaleY, u(c, { chartX: Math.round(i), chartY: Math.round(h) });
  3338. }, a.prototype.onContainerClick = function(c) {
  3339. var p = this.chart, i = p.hoverPoint;
  3340. c = this.normalize(c);
  3341. var h = p.plotLeft, s = p.plotTop;
  3342. p.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (E(i.series, "click", u(c, { point: i })), p.hoverPoint && i.firePointEvent("click", c)) : (u(c, this.getCoordinates(c)), p.isInsidePlot(c.chartX - h, c.chartY - s, { visiblePlotOnly: !0 }) && E(p, "click", c)));
  3343. }, a.prototype.onContainerMouseDown = function(c) {
  3344. var p = ((c.buttons || c.button) & 1) === 1;
  3345. c = this.normalize(c), j.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || p) && (this.zoomOption(c), p && c.preventDefault && c.preventDefault(), this.dragStart(c));
  3346. }, a.prototype.onContainerMouseLeave = function(c) {
  3347. var p = U[w(a.hoverChartIndex, -1)], i = this.chart.tooltip;
  3348. i && i.shouldStickOnContact() && this.inClass(c.relatedTarget, "highcharts-tooltip-container") || (c = this.normalize(c), p && (c.relatedTarget || c.toElement) && (p.pointer.reset(), p.pointer.chartPosition = void 0), i && !i.isHidden && this.reset());
  3349. }, a.prototype.onContainerMouseEnter = function(c) {
  3350. delete this.chartPosition;
  3351. }, a.prototype.onContainerMouseMove = function(c) {
  3352. var p = this.chart;
  3353. c = this.normalize(c), this.setHoverChartIndex(), c.preventDefault || (c.returnValue = !1), (p.mouseIsDown === "mousedown" || this.touchSelect(c)) && this.drag(c), p.openMenu || !this.inClass(c.target, "highcharts-tracker") && !p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || (this.inClass(c.target, "highcharts-no-tooltip") ? this.reset(!1, 0) : this.runPointActions(c));
  3354. }, a.prototype.onDocumentTouchEnd = function(c) {
  3355. var p = U[w(
  3356. a.hoverChartIndex,
  3357. -1
  3358. )];
  3359. p && p.pointer.drop(c);
  3360. }, a.prototype.onContainerTouchMove = function(c) {
  3361. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  3362. }, a.prototype.onContainerTouchStart = function(c) {
  3363. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  3364. }, a.prototype.onDocumentMouseMove = function(c) {
  3365. var p = this.chart, i = this.chartPosition;
  3366. c = this.normalize(c, i);
  3367. var h = p.tooltip;
  3368. !i || h && h.isStickyOnContact() || p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  3369. }, a.prototype.onDocumentMouseUp = function(c) {
  3370. var p = U[w(a.hoverChartIndex, -1)];
  3371. p && p.pointer.drop(c);
  3372. }, a.prototype.pinch = function(c) {
  3373. var p = this, i = p.chart, h = p.pinchDown, s = c.touches || [], t = s.length, o = p.lastValidTouch, n = p.hasZoom, A = {}, _ = t === 1 && (p.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || p.runChartClick), D = {}, W = p.selectionMarker;
  3374. 1 < t ? p.initiated = !0 : t === 1 && this.followTouchMove && (p.initiated = !1), n && p.initiated && !_ && c.cancelable !== !1 && c.preventDefault(), [].map.call(s, function(P) {
  3375. return p.normalize(P);
  3376. }), c.type === "touchstart" ? ([].forEach.call(s, function(P, X) {
  3377. h[X] = { chartX: P.chartX, chartY: P.chartY };
  3378. }), o.x = [h[0].chartX, h[1] && h[1].chartX], o.y = [h[0].chartY, h[1] && h[1].chartY], i.axes.forEach(function(P) {
  3379. if (P.zoomEnabled) {
  3380. var X = i.bounds[P.horiz ? "h" : "v"], g = P.minPixelPadding, m = P.toPixels(Math.min(w(P.options.min, P.dataMin), P.dataMin)), L = P.toPixels(Math.max(w(P.options.max, P.dataMax), P.dataMax)), Y = Math.max(m, L);
  3381. X.min = Math.min(P.pos, Math.min(
  3382. m,
  3383. L
  3384. ) - g), X.max = Math.max(P.pos + P.len, Y + g);
  3385. }
  3386. }), p.res = !0) : p.followTouchMove && t === 1 ? this.runPointActions(p.normalize(c)) : h.length && (E(i, "touchpan", { originalEvent: c }, function() {
  3387. W || (p.selectionMarker = W = u({ destroy: F, touch: !0 }, i.plotBox)), p.pinchTranslate(h, s, A, W, D, o), p.hasPinched = n, p.scaleGroups(A, D);
  3388. }), p.res && (p.res = !1, this.reset(!1, 0)));
  3389. }, a.prototype.pinchTranslate = function(c, p, i, h, s, t) {
  3390. this.zoomHor && this.pinchTranslateDirection(!0, c, p, i, h, s, t), this.zoomVert && this.pinchTranslateDirection(!1, c, p, i, h, s, t);
  3391. }, a.prototype.pinchTranslateDirection = function(c, p, i, h, s, t, o, n) {
  3392. var A = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", W = "chart" + D, P = c ? "width" : "height", X = A["plot" + (c ? "Left" : "Top")], g = A.inverted, m = A.bounds[c ? "h" : "v"], L = p.length === 1, Y = p[0][W], V = !L && p[1][W];
  3393. p = function() {
  3394. typeof $ == "number" && 20 < Math.abs(Y - V) && (G = n || Math.abs(z - $) / Math.abs(Y - V)), k = (X - z) / G + Y, Q = A["plot" + (c ? "Width" : "Height")] / G;
  3395. };
  3396. var Q, k, G = n || 1, z = i[0][W], $ = !L && i[1][W];
  3397. if (p(), i = k, i < m.min) {
  3398. i = m.min;
  3399. var q = !0;
  3400. } else
  3401. i + Q > m.max && (i = m.max - Q, q = !0);
  3402. q ? (z -= 0.8 * (z - o[_][0]), typeof $ == "number" && ($ -= 0.8 * ($ - o[_][1])), p()) : o[_] = [z, $], g || (t[_] = k - X, t[P] = Q), t = g ? 1 / G : G, s[P] = Q, s[_] = i, h[g ? c ? "scaleY" : "scaleX" : "scale" + D] = G, h["translate" + D] = t * X + (z - t * Y);
  3403. }, a.prototype.reset = function(c, p) {
  3404. var i = this.chart, h = i.hoverSeries, s = i.hoverPoint, t = i.hoverPoints, o = i.tooltip, n = o && o.shared ? t : s;
  3405. c && n && v(n).forEach(function(A) {
  3406. A.series.isCartesian && typeof A.plotX > "u" && (c = !1);
  3407. }), c ? o && n && v(n).length && (o.refresh(n), o.shared && t ? t.forEach(function(A) {
  3408. A.setState(A.state, !0), A.series.isCartesian && (A.series.xAxis.crosshair && A.series.xAxis.drawCrosshair(
  3409. null,
  3410. A
  3411. ), A.series.yAxis.crosshair && A.series.yAxis.drawCrosshair(null, A));
  3412. }) : s && (s.setState(s.state, !0), i.axes.forEach(function(A) {
  3413. A.crosshair && s.series[A.coll] === A && A.drawCrosshair(null, s);
  3414. }))) : (s && s.onMouseOut(), t && t.forEach(function(A) {
  3415. A.setState();
  3416. }), h && h.onMouseOut(), o && o.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(A) {
  3417. A.hideCrosshair();
  3418. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  3419. }, a.prototype.runPointActions = function(c, p) {
  3420. var i = this.chart, h = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, s = h ? h.shared : !1, t = p || i.hoverPoint, o = t && t.series || i.hoverSeries;
  3421. p = this.getHoverData(t, o, i.series, (!c || c.type !== "touchmove") && (!!p || o && o.directTouch && this.isDirectTouch), s, c), t = p.hoverPoint, o = p.hoverSeries;
  3422. var n = p.hoverPoints;
  3423. if (p = o && o.tooltipOptions.followPointer && !o.tooltipOptions.split, s = s && o && !o.noSharedTooltip, t && (t !== i.hoverPoint || h && h.isHidden)) {
  3424. if ((i.hoverPoints || []).forEach(function(A) {
  3425. n.indexOf(A) === -1 && A.setState();
  3426. }), i.hoverSeries !== o && o.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(A) {
  3427. A.setState("hover");
  3428. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  3429. return;
  3430. i.hoverPoints = n, i.hoverPoint = t, t.firePointEvent("mouseOver"), h && h.refresh(s ? n : t, c);
  3431. } else
  3432. p && h && !h.isHidden && (t = h.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && h.updatePosition({ plotX: t[0], plotY: t[1] }));
  3433. this.unDocMouseMove || (this.unDocMouseMove = R(i.container.ownerDocument, "mousemove", function(A) {
  3434. var _ = U[a.hoverChartIndex];
  3435. _ && _.pointer.onDocumentMouseMove(A);
  3436. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(A) {
  3437. var _ = w((A.crosshair || {}).snap, !0), D;
  3438. _ && ((D = i.hoverPoint) && D.series[A.coll] === A || (D = f(n, function(W) {
  3439. return W.series[A.coll] === A;
  3440. }))), D || !_ ? A.drawCrosshair(c, D) : A.hideCrosshair();
  3441. });
  3442. }, a.prototype.scaleGroups = function(c, p) {
  3443. var i = this.chart;
  3444. i.series.forEach(function(h) {
  3445. var s = c || h.getPlotBox();
  3446. h.group && (h.xAxis && h.xAxis.zoomEnabled || i.mapView) && (h.group.attr(s), h.markerGroup && (h.markerGroup.attr(s), h.markerGroup.clip(p ? i.clipRect : null)), h.dataLabelsGroup && h.dataLabelsGroup.attr(s));
  3447. }), i.clipRect.attr(p || i.clipBox);
  3448. }, a.prototype.setDOMEvents = function() {
  3449. var c = this, p = this.chart.container, i = p.ownerDocument;
  3450. p.onmousedown = this.onContainerMouseDown.bind(this), p.onmousemove = this.onContainerMouseMove.bind(this), p.onclick = this.onContainerClick.bind(this), this.eventsToUnbind.push(R(p, "mouseenter", this.onContainerMouseEnter.bind(this))), this.eventsToUnbind.push(R(p, "mouseleave", this.onContainerMouseLeave.bind(this))), a.unbindDocumentMouseUp || (a.unbindDocumentMouseUp = R(i, "mouseup", this.onDocumentMouseUp.bind(this)));
  3451. for (var h = this.chart.renderTo.parentElement; h && h.tagName !== "BODY"; )
  3452. this.eventsToUnbind.push(R(h, "scroll", function() {
  3453. delete c.chartPosition;
  3454. })), h = h.parentElement;
  3455. j.hasTouch && (this.eventsToUnbind.push(R(p, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 })), this.eventsToUnbind.push(R(p, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), a.unbindDocumentTouchEnd || (a.unbindDocumentTouchEnd = R(i, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })));
  3456. }, a.prototype.setHoverChartIndex = function() {
  3457. var c = this.chart, p = j.charts[w(a.hoverChartIndex, -1)];
  3458. p && p !== c && p.pointer.onContainerMouseLeave({ relatedTarget: !0 }), p && p.mouseIsDown || (a.hoverChartIndex = c.index);
  3459. }, a.prototype.touch = function(c, p) {
  3460. var i = this.chart;
  3461. if (this.setHoverChartIndex(), c.touches.length === 1)
  3462. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  3463. if (p && this.runPointActions(c), c.type === "touchmove") {
  3464. p = this.pinchDown;
  3465. var h = p[0] ? 4 <= Math.sqrt(Math.pow(p[0].chartX - c.chartX, 2) + Math.pow(p[0].chartY - c.chartY, 2)) : !1;
  3466. }
  3467. w(h, !0) && this.pinch(c);
  3468. } else
  3469. p && this.reset();
  3470. else
  3471. c.touches.length === 2 && this.pinch(c);
  3472. }, a.prototype.touchSelect = function(c) {
  3473. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  3474. }, a.prototype.zoomOption = function(c) {
  3475. var p = this.chart, i = p.options.chart;
  3476. p = p.inverted;
  3477. var h = i.zoomType || "";
  3478. /touch/.test(c.type) && (h = w(i.pinchType, h)), this.zoomX = c = /x/.test(h), this.zoomY = i = /y/.test(h), this.zoomHor = c && !p || i && p, this.zoomVert = i && !p || c && p, this.hasZoom = c || i;
  3479. }, a;
  3480. }(), y;
  3481. }), T(l, "Core/MSPointer.js", [l["Core/Globals.js"], l["Core/Pointer.js"], l["Core/Utilities.js"]], function(y, j, I) {
  3482. function Z() {
  3483. var M = [];
  3484. return M.item = function(S) {
  3485. return this[S];
  3486. }, f(O, function(S) {
  3487. M.push({ pageX: S.pageX, pageY: S.pageY, target: S.target });
  3488. }), M;
  3489. }
  3490. function H(M, S, w, v) {
  3491. var a = F[j.hoverChartIndex || NaN];
  3492. M.pointerType !== "touch" && M.pointerType !== M.MSPOINTER_TYPE_TOUCH || !a || (a = a.pointer, v(M), a[S]({ type: w, target: M.currentTarget, preventDefault: N, touches: Z() }));
  3493. }
  3494. var U = this && this.__extends || function() {
  3495. var M = function(S, w) {
  3496. return M = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, a) {
  3497. v.__proto__ = a;
  3498. } || function(v, a) {
  3499. for (var c in a)
  3500. a.hasOwnProperty(c) && (v[c] = a[c]);
  3501. }, M(S, w);
  3502. };
  3503. return function(S, w) {
  3504. function v() {
  3505. this.constructor = S;
  3506. }
  3507. M(S, w), S.prototype = w === null ? Object.create(w) : (v.prototype = w.prototype, new v());
  3508. };
  3509. }(), F = y.charts, R = y.doc, N = y.noop, b = y.win, x = I.addEvent, u = I.css, f = I.objectEach, E = I.removeEvent, O = {}, B = !!b.PointerEvent;
  3510. return function(M) {
  3511. function S() {
  3512. return M !== null && M.apply(this, arguments) || this;
  3513. }
  3514. return U(S, M), S.isRequired = function() {
  3515. return !(y.hasTouch || !b.PointerEvent && !b.MSPointerEvent);
  3516. }, S.prototype.batchMSEvents = function(w) {
  3517. w(this.chart.container, B ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), w(this.chart.container, B ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), w(R, B ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  3518. }, S.prototype.destroy = function() {
  3519. this.batchMSEvents(E), M.prototype.destroy.call(this);
  3520. }, S.prototype.init = function(w, v) {
  3521. M.prototype.init.call(this, w, v), this.hasZoom && u(w.container, { "-ms-touch-action": "none", "touch-action": "none" });
  3522. }, S.prototype.onContainerPointerDown = function(w) {
  3523. H(w, "onContainerTouchStart", "touchstart", function(v) {
  3524. O[v.pointerId] = { pageX: v.pageX, pageY: v.pageY, target: v.currentTarget };
  3525. });
  3526. }, S.prototype.onContainerPointerMove = function(w) {
  3527. H(w, "onContainerTouchMove", "touchmove", function(v) {
  3528. O[v.pointerId] = {
  3529. pageX: v.pageX,
  3530. pageY: v.pageY
  3531. }, O[v.pointerId].target || (O[v.pointerId].target = v.currentTarget);
  3532. });
  3533. }, S.prototype.onDocumentPointerUp = function(w) {
  3534. H(w, "onDocumentTouchEnd", "touchend", function(v) {
  3535. delete O[v.pointerId];
  3536. });
  3537. }, S.prototype.setDOMEvents = function() {
  3538. M.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(x);
  3539. }, S;
  3540. }(j);
  3541. }), T(l, "Core/Legend/Legend.js", [
  3542. l["Core/Animation/AnimationUtilities.js"],
  3543. l["Core/FormatUtilities.js"],
  3544. l["Core/Globals.js"],
  3545. l["Core/Series/Point.js"],
  3546. l["Core/Renderer/RendererUtilities.js"],
  3547. l["Core/Utilities.js"]
  3548. ], function(y, j, I, Z, H, U) {
  3549. var F = y.animObject, R = y.setAnimation, N = j.format;
  3550. y = I.isFirefox;
  3551. var b = I.marginNames;
  3552. I = I.win;
  3553. var x = H.distribute, u = U.addEvent, f = U.createElement, E = U.css, O = U.defined, B = U.discardElement, M = U.find, S = U.fireEvent, w = U.isNumber, v = U.merge, a = U.pick, c = U.relativeLength, p = U.stableSort, i = U.syncTimeout;
  3554. return H = U.wrap, U = function() {
  3555. function h(s, t) {
  3556. this.allItems = [], this.contentGroup = this.box = void 0, this.display = !1, this.group = void 0, this.offsetWidth = this.maxLegendWidth = this.maxItemWidth = this.legendWidth = this.legendHeight = this.lastLineHeight = this.lastItemY = this.itemY = this.itemX = this.itemMarginTop = this.itemMarginBottom = this.itemHeight = this.initialItemY = 0, this.options = {}, this.padding = 0, this.pages = [], this.proximate = !1, this.scrollGroup = void 0, this.widthOption = this.totalItemWidth = this.titleHeight = this.symbolWidth = this.symbolHeight = 0, this.chart = s, this.init(s, t);
  3557. }
  3558. return h.prototype.init = function(s, t) {
  3559. this.chart = s, this.setOptions(t), t.enabled && (this.render(), u(this.chart, "endResize", function() {
  3560. this.legend.positionCheckboxes();
  3561. }), this.proximate ? this.unchartrender = u(this.chart, "render", function() {
  3562. this.legend.proximatePositions(), this.legend.positionItems();
  3563. }) : this.unchartrender && this.unchartrender());
  3564. }, h.prototype.setOptions = function(s) {
  3565. var t = a(s.padding, 8);
  3566. this.options = s, this.chart.styledMode || (this.itemStyle = s.itemStyle, this.itemHiddenStyle = v(this.itemStyle, s.itemHiddenStyle)), this.itemMarginTop = s.itemMarginTop || 0, this.itemMarginBottom = s.itemMarginBottom || 0, this.padding = t, this.initialItemY = t - 5, this.symbolWidth = a(
  3567. s.symbolWidth,
  3568. 16
  3569. ), this.pages = [], this.proximate = s.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  3570. }, h.prototype.update = function(s, t) {
  3571. var o = this.chart;
  3572. this.setOptions(v(!0, this.options, s)), this.destroy(), o.isDirtyLegend = o.isDirtyBox = !0, a(t, !0) && o.redraw(), S(this, "afterUpdate");
  3573. }, h.prototype.colorizeItem = function(s, t) {
  3574. if (s.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  3575. var o = this.options, n = s.legendItem, A = s.legendLine, _ = s.legendSymbol, D = this.itemHiddenStyle.color;
  3576. o = t ? o.itemStyle.color : D;
  3577. var W = t && s.color || D, P = s.options && s.options.marker, X = { fill: W };
  3578. n && n.css({ fill: o, color: o }), A && A.attr({ stroke: W }), _ && (P && _.isMarker && (X = s.pointAttribs(), t || (X.stroke = X.fill = D)), _.attr(X));
  3579. }
  3580. S(this, "afterColorizeItem", { item: s, visible: t });
  3581. }, h.prototype.positionItems = function() {
  3582. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  3583. }, h.prototype.positionItem = function(s) {
  3584. var t = this, o = this.options, n = o.symbolPadding, A = !o.rtl, _ = s._legendItemPos;
  3585. o = _[0], _ = _[1];
  3586. var D = s.checkbox, W = s.legendGroup;
  3587. W && W.element && (n = { translateX: A ? o : this.legendWidth - o - 2 * n - 4, translateY: _ }, A = function() {
  3588. S(t, "afterPositionItem", { item: s });
  3589. }, O(W.translateY) ? W.animate(n, void 0, A) : (W.attr(n), A())), D && (D.x = o, D.y = _);
  3590. }, h.prototype.destroyItem = function(s) {
  3591. var t = s.checkbox;
  3592. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(o) {
  3593. s[o] && (s[o] = s[o].destroy());
  3594. }), t && B(s.checkbox);
  3595. }, h.prototype.destroy = function() {
  3596. function s(t) {
  3597. this[t] && (this[t] = this[t].destroy());
  3598. }
  3599. this.getAllItems().forEach(function(t) {
  3600. [
  3601. "legendItem",
  3602. "legendGroup"
  3603. ].forEach(s, t);
  3604. }), "clipRect up down pager nav box title group".split(" ").forEach(s, this), this.display = null;
  3605. }, h.prototype.positionCheckboxes = function() {
  3606. var s = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, o = this.titleHeight;
  3607. if (s) {
  3608. var n = s.translateY;
  3609. this.allItems.forEach(function(A) {
  3610. var _ = A.checkbox;
  3611. if (_) {
  3612. var D = n + o + _.y + (this.scrollOffset || 0) + 3;
  3613. E(_, { left: s.translateX + A.checkboxOffset + _.x - 20 + "px", top: D + "px", display: this.proximate || D > n - 6 && D < n + t - 6 ? "" : "none" });
  3614. }
  3615. }, this);
  3616. }
  3617. }, h.prototype.renderTitle = function() {
  3618. var s = this.options, t = this.padding, o = s.title, n = 0;
  3619. o.text && (this.title || (this.title = this.chart.renderer.label(o.text, t - 3, t - 4, null, null, null, s.useHTML, null, "legend-title").attr({ zIndex: 1 }), this.chart.styledMode || this.title.css(o.style), this.title.add(this.group)), o.width || this.title.css({ width: this.maxLegendWidth + "px" }), s = this.title.getBBox(), n = s.height, this.offsetWidth = s.width, this.contentGroup.attr({ translateY: n })), this.titleHeight = n;
  3620. }, h.prototype.setText = function(s) {
  3621. var t = this.options;
  3622. s.legendItem.attr({ text: t.labelFormat ? N(t.labelFormat, s, this.chart) : t.labelFormatter.call(s) });
  3623. }, h.prototype.renderItem = function(s) {
  3624. var t = this.chart, o = t.renderer, n = this.options, A = this.symbolWidth, _ = n.symbolPadding || 0, D = this.itemStyle, W = this.itemHiddenStyle, P = n.layout === "horizontal" ? a(n.itemDistance, 20) : 0, X = !n.rtl, g = !s.series, m = !g && s.series.drawLegendSymbol ? s.series : s, L = m.options, Y = this.createCheckboxForItem && L && L.showCheckbox, V = n.useHTML, Q = s.options.className, k = s.legendItem;
  3625. L = A + _ + P + (Y ? 20 : 0), k || (s.legendGroup = o.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + s.colorIndex + (Q ? " " + Q : "") + (g ? " highcharts-series-" + s.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), s.legendItem = k = o.text("", X ? A + _ : -_, this.baseline || 0, V), t.styledMode || k.css(v(s.visible ? D : W)), k.attr({ align: X ? "left" : "right", zIndex: 2 }).add(s.legendGroup), this.baseline || (this.fontMetrics = o.fontMetrics(t.styledMode ? 12 : D.fontSize, k), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, k.attr("y", this.baseline), this.symbolHeight = n.symbolHeight || this.fontMetrics.f, n.squareSymbol && (this.symbolWidth = a(n.symbolWidth, Math.max(this.symbolHeight, 16)), L = this.symbolWidth + _ + P + (Y ? 20 : 0), X && k.attr("x", this.symbolWidth + _))), m.drawLegendSymbol(this, s), this.setItemEvents && this.setItemEvents(s, k, V)), Y && !s.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(s), this.colorizeItem(s, s.visible), !t.styledMode && D.width || k.css({ width: (n.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(s), t = k.getBBox(), o = this.fontMetrics && this.fontMetrics.h || 0, s.itemWidth = s.checkboxOffset = n.itemWidth || s.legendItemWidth || t.width + L, this.maxItemWidth = Math.max(this.maxItemWidth, s.itemWidth), this.totalItemWidth += s.itemWidth, this.itemHeight = s.itemHeight = Math.round(s.legendItemHeight || (t.height > 1.5 * o ? t.height : o));
  3626. }, h.prototype.layoutItem = function(s) {
  3627. var t = this.options, o = this.padding, n = t.layout === "horizontal", A = s.itemHeight, _ = this.itemMarginBottom, D = this.itemMarginTop, W = n ? a(t.itemDistance, 20) : 0, P = this.maxLegendWidth;
  3628. t = t.alignColumns && this.totalItemWidth > P ? this.maxItemWidth : s.itemWidth, n && this.itemX - o + t > P && (this.itemX = o, this.lastLineHeight && (this.itemY += D + this.lastLineHeight + _), this.lastLineHeight = 0), this.lastItemY = D + this.itemY + _, this.lastLineHeight = Math.max(A, this.lastLineHeight), s._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += D + A + _, this.lastLineHeight = A), this.offsetWidth = this.widthOption || Math.max((n ? this.itemX - o - (s.checkbox ? 0 : W) : t) + o, this.offsetWidth);
  3629. }, h.prototype.getAllItems = function() {
  3630. var s = [];
  3631. return this.chart.series.forEach(function(t) {
  3632. var o = t && t.options;
  3633. t && a(o.showInLegend, O(o.linkedTo) ? !1 : void 0, !0) && (s = s.concat(t.legendItems || (o.legendType === "point" ? t.data : t)));
  3634. }), S(this, "afterGetAllItems", { allItems: s }), s;
  3635. }, h.prototype.getAlignment = function() {
  3636. var s = this.options;
  3637. return this.proximate ? s.align.charAt(0) + "tv" : s.floating ? "" : s.align.charAt(0) + s.verticalAlign.charAt(0) + s.layout.charAt(0);
  3638. }, h.prototype.adjustMargins = function(s, t) {
  3639. var o = this.chart, n = this.options, A = this.getAlignment();
  3640. A && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  3641. _.test(A) && !O(s[D]) && (o[b[D]] = Math.max(o[b[D]], o.legend[(D + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][D] * n[D % 2 ? "x" : "y"] + a(n.margin, 12) + t[D] + (o.titleOffset[D] || 0)));
  3642. });
  3643. }, h.prototype.proximatePositions = function() {
  3644. var s = this.chart, t = [], o = this.options.align === "left";
  3645. this.allItems.forEach(function(n) {
  3646. var A, _ = o;
  3647. if (n.yAxis) {
  3648. n.xAxis.options.reversed && (_ = !_), n.points && (A = M(_ ? n.points : n.points.slice(0).reverse(), function(W) {
  3649. return w(W.plotY);
  3650. })), _ = this.itemMarginTop + n.legendItem.getBBox().height + this.itemMarginBottom;
  3651. var D = n.yAxis.top - s.plotTop;
  3652. n.visible ? (A = A ? A.plotY : n.yAxis.height, A += D - 0.3 * _) : A = D + n.yAxis.height, t.push({ target: A, size: _, item: n });
  3653. }
  3654. }, this), x(t, s.plotHeight).forEach(function(n) {
  3655. n.item._legendItemPos && (n.item._legendItemPos[1] = s.plotTop - s.spacing[0] + n.pos);
  3656. });
  3657. }, h.prototype.render = function() {
  3658. var s = this.chart, t = s.renderer, o = this.options, n = this.padding, A = this.getAllItems(), _ = this.group, D = this.box;
  3659. this.itemX = n, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(o.width, s.spacingBox.width - n);
  3660. var W = s.spacingBox.width - 2 * n - o.x;
  3661. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (W /= 2), this.maxLegendWidth = this.widthOption || W, _ || (this.group = _ = t.g("legend").addClass(o.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = t.g().attr({ zIndex: 1 }).add(_), this.scrollGroup = t.g().add(this.contentGroup)), this.renderTitle(), p(A, function(X, g) {
  3662. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  3663. }), o.reversed && A.reverse(), this.allItems = A, this.display = W = !!A.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, A.forEach(this.renderItem, this), A.forEach(this.layoutItem, this), A = (this.widthOption || this.offsetWidth) + n;
  3664. var P = this.lastItemY + this.lastLineHeight + this.titleHeight;
  3665. P = this.handleOverflow(P), P += n, D || (this.box = D = t.rect().addClass("highcharts-legend-box").attr({ r: o.borderRadius }).add(_), D.isNew = !0), s.styledMode || D.attr({ stroke: o.borderColor, "stroke-width": o.borderWidth || 0, fill: o.backgroundColor || "none" }).shadow(o.shadow), 0 < A && 0 < P && (D[D.isNew ? "attr" : "animate"](D.crisp.call({}, { x: 0, y: 0, width: A, height: P }, D.strokeWidth())), D.isNew = !1), D[W ? "show" : "hide"](), s.styledMode && _.getStyle("display") === "none" && (A = P = 0), this.legendWidth = A, this.legendHeight = P, W && this.align(), this.proximate || this.positionItems(), S(this, "afterRender");
  3666. }, h.prototype.align = function(s) {
  3667. s === void 0 && (s = this.chart.spacingBox);
  3668. var t = this.chart, o = this.options, n = s.y;
  3669. /(lth|ct|rth)/.test(this.getAlignment()) && 0 < t.titleOffset[0] ? n += t.titleOffset[0] : /(lbh|cb|rbh)/.test(this.getAlignment()) && 0 < t.titleOffset[2] && (n -= t.titleOffset[2]), n !== s.y && (s = v(s, { y: n })), this.group.align(v(o, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : o.verticalAlign }), !0, s);
  3670. }, h.prototype.handleOverflow = function(s) {
  3671. var t = this, o = this.chart, n = o.renderer, A = this.options, _ = A.y, D = A.verticalAlign === "top", W = this.padding, P = A.maxHeight, X = A.navigation, g = a(X.animation, !0), m = X.arrowSize || 12, L = this.pages, Y = this.allItems, V = function(q) {
  3672. typeof q == "number" ? $.attr({ height: q }) : $ && (t.clipRect = $.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + W + "px,9999px," + (W + q) + "px,0)" : "auto");
  3673. }, Q = function(q) {
  3674. return t[q] = n.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(z), o.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  3675. }, k, G;
  3676. _ = o.spacingBox.height + (D ? -_ : _) - W;
  3677. var z = this.nav, $ = this.clipRect;
  3678. return A.layout !== "horizontal" || A.verticalAlign === "middle" || A.floating || (_ /= 2), P && (_ = Math.min(_, P)), L.length = 0, s && 0 < _ && s > _ && X.enabled !== !1 ? (this.clipHeight = k = Math.max(_ - 20 - this.titleHeight - W, 0), this.currentPage = a(this.currentPage, 1), this.fullHeight = s, Y.forEach(function(q, it) {
  3679. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  3680. (!rt || et - L[rt - 1] > k && (G || et) !== L[rt - 1]) && (L.push(G || et), rt++), q.pageIx = rt - 1, G && (Y[it - 1].pageIx = rt - 1), it === Y.length - 1 && et + nt - L[rt - 1] > k && nt <= k && (L.push(et), q.pageIx = rt), et !== G && (G = et);
  3681. }), $ || ($ = t.clipRect = n.clipRect(0, W, 9999, 0), t.contentGroup.clip($)), V(k), z || (this.nav = z = n.g().attr({ zIndex: 1 }).add(this.group), this.up = n.symbol("triangle", 0, 0, m, m).add(z), Q("upTracker").on(
  3682. "click",
  3683. function() {
  3684. t.scroll(-1, g);
  3685. }
  3686. ), this.pager = n.text("", 15, 10).addClass("highcharts-legend-navigation"), o.styledMode || this.pager.css(X.style), this.pager.add(z), this.down = n.symbol("triangle-down", 0, 0, m, m).add(z), Q("downTracker").on("click", function() {
  3687. t.scroll(1, g);
  3688. })), t.scroll(0), s = _) : z && (V(), this.nav = z.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), s;
  3689. }, h.prototype.scroll = function(s, t) {
  3690. var o = this, n = this.chart, A = this.pages, _ = A.length, D = this.clipHeight, W = this.options.navigation, P = this.pager, X = this.padding, g = this.currentPage + s;
  3691. g > _ && (g = _), 0 < g && (typeof t < "u" && R(t, n), this.nav.attr({ translateX: X, translateY: D + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  3692. m.attr({ class: g === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3693. }), P.attr({ text: g + "/" + _ }), [this.down, this.downTracker].forEach(
  3694. function(m) {
  3695. m.attr({ x: 18 + this.pager.getBBox().width, class: g === _ ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3696. },
  3697. this
  3698. ), n.styledMode || (this.up.attr({ fill: g === 1 ? W.inactiveColor : W.activeColor }), this.upTracker.css({ cursor: g === 1 ? "default" : "pointer" }), this.down.attr({ fill: g === _ ? W.inactiveColor : W.activeColor }), this.downTracker.css({ cursor: g === _ ? "default" : "pointer" })), this.scrollOffset = -A[g - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = g, this.positionCheckboxes(), s = F(a(t, n.renderer.globalAnimation, !0)), i(function() {
  3699. S(o, "afterScroll", { currentPage: g });
  3700. }, s.duration));
  3701. }, h.prototype.setItemEvents = function(s, t, o) {
  3702. var n = this, A = n.chart.renderer.boxWrapper, _ = s instanceof Z, D = "highcharts-legend-" + (_ ? "point" : "series") + "-active", W = n.chart.styledMode, P = function(X) {
  3703. n.allItems.forEach(function(g) {
  3704. s !== g && [g].concat(g.linkedSeries || []).forEach(function(m) {
  3705. m.setState(X, !_);
  3706. });
  3707. });
  3708. };
  3709. (o ? [t, s.legendSymbol] : [s.legendGroup]).forEach(function(X) {
  3710. X && X.on("mouseover", function() {
  3711. s.visible && P("inactive"), s.setState("hover"), s.visible && A.addClass(D), W || t.css(n.options.itemHoverStyle);
  3712. }).on("mouseout", function() {
  3713. n.chart.styledMode || t.css(v(s.visible ? n.itemStyle : n.itemHiddenStyle)), P(""), A.removeClass(D), s.setState();
  3714. }).on("click", function(g) {
  3715. var m = function() {
  3716. s.setVisible && s.setVisible(), P(s.visible ? "inactive" : "");
  3717. };
  3718. A.removeClass(D), g = { browserEvent: g }, s.firePointEvent ? s.firePointEvent("legendItemClick", g, m) : S(s, "legendItemClick", g, m);
  3719. });
  3720. });
  3721. }, h.prototype.createCheckboxForItem = function(s) {
  3722. s.checkbox = f(
  3723. "input",
  3724. { type: "checkbox", className: "highcharts-legend-checkbox", checked: s.selected, defaultChecked: s.selected },
  3725. this.options.itemCheckboxStyle,
  3726. this.chart.container
  3727. ), u(s.checkbox, "click", function(t) {
  3728. S(s.series || s, "checkboxClick", { checked: t.target.checked, item: s }, function() {
  3729. s.select();
  3730. });
  3731. });
  3732. }, h;
  3733. }(), (/Trident\/7\.0/.test(I.navigator && I.navigator.userAgent) || y) && H(U.prototype, "positionItem", function(h, s) {
  3734. var t = this, o = function() {
  3735. s._legendItemPos && h.call(t, s);
  3736. };
  3737. o(), t.bubbleLegend || setTimeout(o);
  3738. }), U;
  3739. }), T(
  3740. l,
  3741. "Core/Series/SeriesRegistry.js",
  3742. [l["Core/Globals.js"], l["Core/DefaultOptions.js"], l["Core/Series/Point.js"], l["Core/Utilities.js"]],
  3743. function(y, j, I, Z) {
  3744. var H = j.defaultOptions, U = Z.error, F = Z.extendClass, R = Z.merge, N;
  3745. return function(b) {
  3746. function x(u, f) {
  3747. var E = H.plotOptions || {}, O = f.defaultOptions;
  3748. f.prototype.pointClass || (f.prototype.pointClass = I), f.prototype.type = u, O && (E[u] = O), b.seriesTypes[u] = f;
  3749. }
  3750. b.seriesTypes = y.seriesTypes, b.getSeries = function(u, f) {
  3751. f === void 0 && (f = {});
  3752. var E = u.options.chart;
  3753. E = f.type || E.type || E.defaultSeriesType || "";
  3754. var O = b.seriesTypes[E];
  3755. return b || U(17, !0, u, { missingModuleFor: E }), E = new O(), typeof E.init == "function" && E.init(u, f), E;
  3756. }, b.registerSeriesType = x, b.seriesType = function(u, f, E, O, B) {
  3757. var M = H.plotOptions || {};
  3758. return f = f || "", M[u] = R(M[f], E), x(u, F(b.seriesTypes[f] || function() {
  3759. }, O)), b.seriesTypes[u].prototype.type = u, B && (b.seriesTypes[u].prototype.pointClass = F(I, B)), b.seriesTypes[u];
  3760. };
  3761. }(N || (N = {})), N;
  3762. }
  3763. ), T(l, "Core/Chart/Chart.js", [
  3764. l["Core/Animation/AnimationUtilities.js"],
  3765. l["Core/Axis/Axis.js"],
  3766. l["Core/FormatUtilities.js"],
  3767. l["Core/Foundation.js"],
  3768. l["Core/Globals.js"],
  3769. l["Core/Legend/Legend.js"],
  3770. l["Core/MSPointer.js"],
  3771. l["Core/DefaultOptions.js"],
  3772. l["Core/Pointer.js"],
  3773. l["Core/Renderer/RendererRegistry.js"],
  3774. l["Core/Series/SeriesRegistry.js"],
  3775. l["Core/Renderer/SVG/SVGRenderer.js"],
  3776. l["Core/Time.js"],
  3777. l["Core/Utilities.js"],
  3778. l["Core/Renderer/HTML/AST.js"]
  3779. ], function(y, j, I, Z, H, U, F, R, N, b, x, u, f, E, O) {
  3780. var B = y.animate, M = y.animObject, S = y.setAnimation, w = I.numberFormat, v = Z.registerEventOptions, a = H.charts, c = H.doc, p = H.marginNames, i = H.svg, h = H.win, s = R.defaultOptions, t = R.defaultTime, o = x.seriesTypes, n = E.addEvent, A = E.attr, _ = E.cleanRecursively, D = E.createElement, W = E.css, P = E.defined, X = E.discardElement, g = E.erase, m = E.error, L = E.extend, Y = E.find, V = E.fireEvent, Q = E.getStyle, k = E.isArray, G = E.isNumber, z = E.isObject, $ = E.isString, q = E.merge, it = E.objectEach, et = E.pick, nt = E.pInt, rt = E.relativeLength, ct = E.removeEvent, gt = E.splat, dt = E.syncTimeout, ht = E.uniqueKey;
  3781. return y = function() {
  3782. function at(J, tt, st) {
  3783. this.series = this.renderTo = this.renderer = this.pointer = this.pointCount = this.plotWidth = this.plotTop = this.plotLeft = this.plotHeight = this.plotBox = this.options = this.numberFormatter = this.margin = this.legend = this.labelCollectors = this.isResizing = this.index = this.eventOptions = this.container = this.colorCounter = this.clipBox = this.chartWidth = this.chartHeight = this.bounds = this.axisOffset = this.axes = void 0, this.sharedClips = {}, this.yAxis = this.xAxis = this.userOptions = this.titleOffset = this.time = this.symbolCounter = this.spacingBox = this.spacing = void 0, this.getArgs(J, tt, st);
  3784. }
  3785. return at.chart = function(J, tt, st) {
  3786. return new at(J, tt, st);
  3787. }, at.prototype.getArgs = function(J, tt, st) {
  3788. $(J) || J.nodeName ? (this.renderTo = J, this.init(tt, st)) : this.init(J, tt);
  3789. }, at.prototype.init = function(J, tt) {
  3790. var st = J.plotOptions || {};
  3791. V(this, "init", { args: arguments }, function() {
  3792. var lt = q(s, J), pt = lt.chart;
  3793. it(lt.plotOptions, function(yt, vt) {
  3794. z(yt) && (yt.tooltip = st[vt] && q(st[vt].tooltip) || void 0);
  3795. }), lt.tooltip.userOptions = J.chart && J.chart.forExport && J.tooltip.userOptions || J.tooltip, this.userOptions = J, this.margin = [], this.spacing = [], this.bounds = { h: {}, v: {} }, this.labelCollectors = [], this.callback = tt, this.isResizing = 0, this.options = lt, this.axes = [], this.series = [], this.time = J.time && Object.keys(J.time).length ? new f(J.time) : H.time, this.numberFormatter = pt.numberFormatter || w, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = a.length, a.push(this), H.chartCount++, v(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, V(this, "afterInit"), this.firstRender();
  3796. });
  3797. }, at.prototype.initSeries = function(J) {
  3798. var tt = this.options.chart;
  3799. tt = J.type || tt.type || tt.defaultSeriesType;
  3800. var st = o[tt];
  3801. return st || m(17, !0, this, { missingModuleFor: tt }), tt = new st(), typeof tt.init == "function" && tt.init(this, J), tt;
  3802. }, at.prototype.setSeriesData = function() {
  3803. this.getSeriesOrderByLinks().forEach(function(J) {
  3804. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  3805. });
  3806. }, at.prototype.getSeriesOrderByLinks = function() {
  3807. return this.series.concat().sort(function(J, tt) {
  3808. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  3809. });
  3810. }, at.prototype.orderSeries = function(J) {
  3811. var tt = this.series;
  3812. J = J || 0;
  3813. for (var st = tt.length; J < st; ++J)
  3814. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  3815. }, at.prototype.isInsidePlot = function(J, tt, st) {
  3816. st === void 0 && (st = {});
  3817. var lt = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Mt = this.scrollablePlotBox, Pt = 0, At = 0;
  3818. st.visiblePlotOnly && this.scrollingContainer && (At = this.scrollingContainer, Pt = At.scrollLeft, At = At.scrollTop);
  3819. var St = st.series;
  3820. if (pt = st.visiblePlotOnly && Mt || pt, Mt = st.inverted ? tt : J, tt = st.inverted ? J : tt, J = { x: Mt, y: tt, isInsidePlot: !0 }, !st.ignoreX) {
  3821. var Dt = St && (lt ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  3822. Mt = st.paneCoordinates ? Dt.pos + Mt : yt + Mt, Mt >= Math.max(Pt + yt, Dt.pos) && Mt <= Math.min(Pt + yt + pt.width, Dt.pos + Dt.len) || (J.isInsidePlot = !1);
  3823. }
  3824. return !st.ignoreY && J.isInsidePlot && (lt = St && (lt ? St.xAxis : St.yAxis) || { pos: vt, len: 1 / 0 }, st = st.paneCoordinates ? lt.pos + tt : vt + tt, st >= Math.max(At + vt, lt.pos) && st <= Math.min(At + vt + pt.height, lt.pos + lt.len) || (J.isInsidePlot = !1)), V(this, "afterIsInsidePlot", J), J.isInsidePlot;
  3825. }, at.prototype.redraw = function(J) {
  3826. V(this, "beforeRedraw");
  3827. var tt = this.hasCartesianSeries ? this.axes : this.colorAxis || [], st = this.series, lt = this.pointer, pt = this.legend, yt = this.userOptions.legend, vt = this.renderer, Mt = vt.isHidden(), Pt = [], At = this.isDirtyBox, St = this.isDirtyLegend;
  3828. for (this.setResponsive && this.setResponsive(!1), S(this.hasRendered ? J : !1, this), Mt && this.temporaryDisplay(), this.layOutTitles(), J = st.length; J--; ) {
  3829. var Dt = st[J];
  3830. if (Dt.options.stacking || Dt.options.centerInCategory) {
  3831. var Lt = !0;
  3832. if (Dt.isDirty) {
  3833. var Nt = !0;
  3834. break;
  3835. }
  3836. }
  3837. }
  3838. if (Nt)
  3839. for (J = st.length; J--; )
  3840. Dt = st[J], Dt.options.stacking && (Dt.isDirty = !0);
  3841. st.forEach(function(Et) {
  3842. Et.isDirty && (Et.options.legendType === "point" ? (typeof Et.updateTotals == "function" && Et.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Et.isDirtyData && V(Et, "updatedData");
  3843. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), Lt && this.getStacks(), tt.forEach(function(Et) {
  3844. Et.updateNames(), Et.setScale();
  3845. }), this.getMargins(), tt.forEach(function(Et) {
  3846. Et.isDirty && (At = !0);
  3847. }), tt.forEach(function(Et) {
  3848. var Kt = Et.min + "," + Et.max;
  3849. Et.extKey !== Kt && (Et.extKey = Kt, Pt.push(function() {
  3850. V(Et, "afterSetExtremes", L(Et.eventArgs, Et.getExtremes())), delete Et.eventArgs;
  3851. })), (At || Lt) && Et.redraw();
  3852. }), At && this.drawChartBox(), V(this, "predraw"), st.forEach(function(Et) {
  3853. (At || Et.isDirty) && Et.visible && Et.redraw(), Et.isDirtyData = !1;
  3854. }), lt && lt.reset(!0), vt.draw(), V(this, "redraw"), V(this, "render"), Mt && this.temporaryDisplay(!0), Pt.forEach(function(Et) {
  3855. Et.call();
  3856. });
  3857. }, at.prototype.get = function(J) {
  3858. function tt(yt) {
  3859. return yt.id === J || yt.options && yt.options.id === J;
  3860. }
  3861. for (var st = this.series, lt = Y(this.axes, tt) || Y(this.series, tt), pt = 0; !lt && pt < st.length; pt++)
  3862. lt = Y(st[pt].points || [], tt);
  3863. return lt;
  3864. }, at.prototype.getAxes = function() {
  3865. var J = this, tt = this.options, st = tt.xAxis = gt(tt.xAxis || {});
  3866. tt = tt.yAxis = gt(tt.yAxis || {}), V(this, "getAxes"), st.forEach(function(lt, pt) {
  3867. lt.index = pt, lt.isX = !0;
  3868. }), tt.forEach(function(lt, pt) {
  3869. lt.index = pt;
  3870. }), st.concat(tt).forEach(function(lt) {
  3871. new j(J, lt);
  3872. }), V(this, "afterGetAxes");
  3873. }, at.prototype.getSelectedPoints = function() {
  3874. return this.series.reduce(function(J, tt) {
  3875. return tt.getPointsCollection().forEach(function(st) {
  3876. et(st.selectedStaging, st.selected) && J.push(st);
  3877. }), J;
  3878. }, []);
  3879. }, at.prototype.getSelectedSeries = function() {
  3880. return this.series.filter(function(J) {
  3881. return J.selected;
  3882. });
  3883. }, at.prototype.setTitle = function(J, tt, st) {
  3884. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription("caption", void 0), this.layOutTitles(st);
  3885. }, at.prototype.applyDescription = function(J, tt) {
  3886. var st = this, lt = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  3887. lt = this.options[J] = q(!this.styledMode && { style: lt }, this.options[J], tt);
  3888. var pt = this[J];
  3889. pt && tt && (this[J] = pt = pt.destroy()), lt && !pt && (pt = this.renderer.text(lt.text, 0, 0, lt.useHTML).attr({ align: lt.align, class: "highcharts-" + J, zIndex: lt.zIndex || 4 }).add(), pt.update = function(yt) {
  3890. st[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  3891. }, this.styledMode || pt.css(lt.style), this[J] = pt);
  3892. }, at.prototype.layOutTitles = function(J) {
  3893. var tt = [0, 0, 0], st = this.renderer, lt = this.spacingBox;
  3894. ["title", "subtitle", "caption"].forEach(function(yt) {
  3895. var vt = this[yt], Mt = this.options[yt], Pt = Mt.verticalAlign || "top";
  3896. yt = yt === "title" ? Pt === "top" ? -3 : 0 : Pt === "top" ? tt[0] + 2 : 0;
  3897. var At;
  3898. if (vt) {
  3899. this.styledMode || (At = Mt.style && Mt.style.fontSize), At = st.fontMetrics(At, vt).b, vt.css({ width: (Mt.width || lt.width + (Mt.widthAdjust || 0)) + "px" });
  3900. var St = Math.round(vt.getBBox(Mt.useHTML).height);
  3901. vt.align(
  3902. L({ y: Pt === "bottom" ? At : yt + At, height: St }, Mt),
  3903. !1,
  3904. "spacingBox"
  3905. ), Mt.floating || (Pt === "top" ? tt[0] = Math.ceil(tt[0] + St) : Pt === "bottom" && (tt[2] = Math.ceil(tt[2] + St)));
  3906. }
  3907. }, this), tt[0] && (this.options.title.verticalAlign || "top") === "top" && (tt[0] += this.options.title.margin), tt[2] && this.options.caption.verticalAlign === "bottom" && (tt[2] += this.options.caption.margin);
  3908. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  3909. this.titleOffset = tt, V(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  3910. }, at.prototype.getChartSize = function() {
  3911. var J = this.options.chart, tt = J.width;
  3912. J = J.height;
  3913. var st = this.renderTo;
  3914. P(tt) || (this.containerWidth = Q(st, "width")), P(J) || (this.containerHeight = Q(st, "height")), this.chartWidth = Math.max(0, tt || this.containerWidth || 600), this.chartHeight = Math.max(0, rt(J, this.chartWidth) || (1 < this.containerHeight ? this.containerHeight : 400));
  3915. }, at.prototype.temporaryDisplay = function(J) {
  3916. var tt = this.renderTo;
  3917. if (J)
  3918. for (; tt && tt.style; )
  3919. tt.hcOrigStyle && (W(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  3920. else
  3921. for (; tt && tt.style && (c.body.contains(tt) || tt.parentNode || (tt.hcOrigDetached = !0, c.body.appendChild(tt)), (Q(tt, "display", !1) === "none" || tt.hcOricDetached) && (tt.hcOrigStyle = { display: tt.style.display, height: tt.style.height, overflow: tt.style.overflow }, J = { display: "block", overflow: "hidden" }, tt !== this.renderTo && (J.height = 0), W(tt, J), tt.offsetWidth || tt.style.setProperty("display", "block", "important")), tt = tt.parentNode, tt !== c.body); )
  3922. ;
  3923. }, at.prototype.setClassName = function(J) {
  3924. this.container.className = "highcharts-container " + (J || "");
  3925. }, at.prototype.getContainer = function() {
  3926. var J = this.options, tt = J.chart, st = ht(), lt, pt = this.renderTo;
  3927. pt || (this.renderTo = pt = tt.renderTo), $(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  3928. var yt = nt(A(pt, "data-highcharts-chart"));
  3929. G(yt) && a[yt] && a[yt].hasRendered && a[yt].destroy(), A(pt, "data-highcharts-chart", this.index), pt.innerHTML = O.emptyHTML, tt.skipClone || pt.offsetWidth || this.temporaryDisplay(), this.getChartSize(), yt = this.chartWidth;
  3930. var vt = this.chartHeight;
  3931. if (W(pt, { overflow: "hidden" }), this.styledMode || (lt = L({ position: "relative", overflow: "hidden", width: yt + "px", height: vt + "px", textAlign: "left", lineHeight: "normal", zIndex: 0, "-webkit-tap-highlight-color": "rgba(0,0,0,0)", userSelect: "none", "touch-action": "manipulation", outline: "none" }, tt.style || {})), this.container = st = D("div", { id: st }, lt, pt), this._cursor = st.style.cursor, this.renderer = new (tt.renderer || !i ? b.getRendererType(tt.renderer) : u)(st, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), S(
  3932. void 0,
  3933. this
  3934. ), this.setClassName(tt.className), this.styledMode)
  3935. for (var Mt in J.defs)
  3936. this.renderer.definition(J.defs[Mt]);
  3937. else
  3938. this.renderer.setStyle(tt.style);
  3939. this.renderer.chartIndex = this.index, V(this, "afterGetContainer");
  3940. }, at.prototype.getMargins = function(J) {
  3941. var tt = this.spacing, st = this.margin, lt = this.titleOffset;
  3942. this.resetMargins(), lt[0] && !P(st[0]) && (this.plotTop = Math.max(this.plotTop, lt[0] + tt[0])), lt[2] && !P(st[2]) && (this.marginBottom = Math.max(this.marginBottom, lt[2] + tt[2])), this.legend && this.legend.display && this.legend.adjustMargins(
  3943. st,
  3944. tt
  3945. ), V(this, "getMargins"), J || this.getAxisMargins();
  3946. }, at.prototype.getAxisMargins = function() {
  3947. var J = this, tt = J.axisOffset = [0, 0, 0, 0], st = J.colorAxis, lt = J.margin, pt = function(yt) {
  3948. yt.forEach(function(vt) {
  3949. vt.visible && vt.getOffset();
  3950. });
  3951. };
  3952. J.hasCartesianSeries ? pt(J.axes) : st && st.length && pt(st), p.forEach(function(yt, vt) {
  3953. P(lt[vt]) || (J[yt] += tt[vt]);
  3954. }), J.setChartSize();
  3955. }, at.prototype.reflow = function(J) {
  3956. var tt = this, st = tt.options.chart, lt = tt.renderTo, pt = P(st.width) && P(st.height), yt = st.width || Q(lt, "width");
  3957. st = st.height || Q(lt, "height"), lt = J ? J.target : h, delete tt.pointer.chartPosition, !pt && !tt.isPrinting && yt && st && (lt === h || lt === c) && ((yt !== tt.containerWidth || st !== tt.containerHeight) && (E.clearTimeout(tt.reflowTimeout), tt.reflowTimeout = dt(function() {
  3958. tt.container && tt.setSize(void 0, void 0, !1);
  3959. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = st);
  3960. }, at.prototype.setReflow = function(J) {
  3961. var tt = this;
  3962. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = n(h, "resize", function(st) {
  3963. tt.options && tt.reflow(st);
  3964. }), n(this, "destroy", this.unbindReflow));
  3965. }, at.prototype.setSize = function(J, tt, st) {
  3966. var lt = this, pt = lt.renderer;
  3967. lt.isResizing += 1, S(st, lt), st = pt.globalAnimation, lt.oldChartHeight = lt.chartHeight, lt.oldChartWidth = lt.chartWidth, typeof J < "u" && (lt.options.chart.width = J), typeof tt < "u" && (lt.options.chart.height = tt), lt.getChartSize(), lt.styledMode || (st ? B : W)(lt.container, { width: lt.chartWidth + "px", height: lt.chartHeight + "px" }, st), lt.setChartSize(!0), pt.setSize(lt.chartWidth, lt.chartHeight, st), lt.axes.forEach(function(yt) {
  3968. yt.isDirty = !0, yt.setScale();
  3969. }), lt.isDirtyLegend = !0, lt.isDirtyBox = !0, lt.layOutTitles(), lt.getMargins(), lt.redraw(st), lt.oldChartHeight = null, V(lt, "resize"), dt(function() {
  3970. lt && V(lt, "endResize", null, function() {
  3971. --lt.isResizing;
  3972. });
  3973. }, M(st).duration);
  3974. }, at.prototype.setChartSize = function(J) {
  3975. var tt = this.inverted, st = this.renderer, lt = this.chartWidth, pt = this.chartHeight, yt = this.options.chart, vt = this.spacing, Mt = this.clipOffset, Pt, At, St, Dt;
  3976. this.plotLeft = Pt = Math.round(this.plotLeft), this.plotTop = At = Math.round(this.plotTop), this.plotWidth = St = Math.max(0, Math.round(lt - Pt - this.marginRight)), this.plotHeight = Dt = Math.max(0, Math.round(pt - At - this.marginBottom)), this.plotSizeX = tt ? Dt : St, this.plotSizeY = tt ? St : Dt, this.plotBorderWidth = yt.plotBorderWidth || 0, this.spacingBox = st.spacingBox = { x: vt[3], y: vt[0], width: lt - vt[3] - vt[1], height: pt - vt[0] - vt[2] }, this.plotBox = st.plotBox = { x: Pt, y: At, width: St, height: Dt }, tt = 2 * Math.floor(this.plotBorderWidth / 2), lt = Math.ceil(Math.max(tt, Mt[3]) / 2), pt = Math.ceil(Math.max(tt, Mt[0]) / 2), this.clipBox = { x: lt, y: pt, width: Math.floor(this.plotSizeX - Math.max(tt, Mt[1]) / 2 - lt), height: Math.max(0, Math.floor(this.plotSizeY - Math.max(tt, Mt[2]) / 2 - pt)) }, J || (this.axes.forEach(function(Lt) {
  3977. Lt.setAxisSize(), Lt.setAxisTranslation();
  3978. }), st.alignElements()), V(this, "afterSetChartSize", { skipAxes: J });
  3979. }, at.prototype.resetMargins = function() {
  3980. V(this, "resetMargins");
  3981. var J = this, tt = J.options.chart;
  3982. ["margin", "spacing"].forEach(function(st) {
  3983. var lt = tt[st], pt = z(lt) ? lt : [lt, lt, lt, lt];
  3984. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  3985. J[st][vt] = et(tt[st + yt], pt[vt]);
  3986. });
  3987. }), p.forEach(function(st, lt) {
  3988. J[st] = et(J.margin[lt], J.spacing[lt]);
  3989. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  3990. }, at.prototype.drawChartBox = function() {
  3991. var J = this.options.chart, tt = this.renderer, st = this.chartWidth, lt = this.chartHeight, pt = this.styledMode, yt = this.plotBGImage, vt = J.backgroundColor, Mt = J.plotBackgroundColor, Pt = J.plotBackgroundImage, At = this.plotLeft, St = this.plotTop, Dt = this.plotWidth, Lt = this.plotHeight, Nt = this.plotBox, Et = this.clipRect, Kt = this.clipBox, Gt = this.chartBackground, Wt = this.plotBackground, Jt = this.plotBorder, be, zt = "animate";
  3992. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), zt = "attr"), pt)
  3993. var Vt = be = Gt.strokeWidth();
  3994. else
  3995. Vt = J.borderWidth || 0, be = Vt + (J.shadow ? 8 : 0), vt = { fill: vt || "none" }, (Vt || Gt["stroke-width"]) && (vt.stroke = J.borderColor, vt["stroke-width"] = Vt), Gt.attr(vt).shadow(J.shadow);
  3996. Gt[zt]({ x: be / 2, y: be / 2, width: st - be - Vt % 2, height: lt - be - Vt % 2, r: J.borderRadius }), zt = "animate", Wt || (zt = "attr", this.plotBackground = Wt = tt.rect().addClass("highcharts-plot-background").add()), Wt[zt](Nt), pt || (Wt.attr({ fill: Mt || "none" }).shadow(J.plotShadow), Pt && (yt ? (Pt !== yt.attr("href") && yt.attr("href", Pt), yt.animate(Nt)) : this.plotBGImage = tt.image(Pt, At, St, Dt, Lt).add())), Et ? Et.animate({ width: Kt.width, height: Kt.height }) : this.clipRect = tt.clipRect(Kt), zt = "animate", Jt || (zt = "attr", this.plotBorder = Jt = tt.rect().addClass("highcharts-plot-border").attr({ zIndex: 1 }).add()), pt || Jt.attr({ stroke: J.plotBorderColor, "stroke-width": J.plotBorderWidth || 0, fill: "none" }), Jt[zt](Jt.crisp({ x: At, y: St, width: Dt, height: Lt }, -Jt.strokeWidth())), this.isDirtyBox = !1, V(this, "afterDrawChartBox");
  3997. }, at.prototype.propFromSeries = function() {
  3998. var J = this, tt = J.options.chart, st = J.options.series, lt, pt, yt;
  3999. ["inverted", "angular", "polar"].forEach(function(vt) {
  4000. for (pt = o[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], lt = st && st.length; !yt && lt--; )
  4001. (pt = o[st[lt].type]) && pt.prototype[vt] && (yt = !0);
  4002. J[vt] = yt;
  4003. });
  4004. }, at.prototype.linkSeries = function() {
  4005. var J = this, tt = J.series;
  4006. tt.forEach(function(st) {
  4007. st.linkedSeries.length = 0;
  4008. }), tt.forEach(function(st) {
  4009. var lt = st.options.linkedTo;
  4010. $(lt) && (lt = lt === ":previous" ? J.series[st.index - 1] : J.get(lt)) && lt.linkedParent !== st && (lt.linkedSeries.push(st), st.linkedParent = lt, lt.enabledDataSorting && st.setDataSortingOptions(), st.visible = et(st.options.visible, lt.options.visible, st.visible));
  4011. }), V(this, "afterLinkSeries");
  4012. }, at.prototype.renderSeries = function() {
  4013. this.series.forEach(function(J) {
  4014. J.translate(), J.render();
  4015. });
  4016. }, at.prototype.renderLabels = function() {
  4017. var J = this, tt = J.options.labels;
  4018. tt.items && tt.items.forEach(function(st) {
  4019. var lt = L(tt.style, st.style), pt = nt(lt.left) + J.plotLeft, yt = nt(lt.top) + J.plotTop + 12;
  4020. delete lt.left, delete lt.top, J.renderer.text(st.html, pt, yt).attr({ zIndex: 2 }).css(lt).add();
  4021. });
  4022. }, at.prototype.render = function() {
  4023. var J = this.axes, tt = this.colorAxis, st = this.renderer, lt = this.options, pt = function(At) {
  4024. At.forEach(function(St) {
  4025. St.visible && St.render();
  4026. });
  4027. }, yt = 0;
  4028. this.setTitle(), this.legend = new U(this, lt.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), lt = this.plotWidth, J.some(function(At) {
  4029. if (At.horiz && At.visible && At.options.labels.enabled && At.series.length)
  4030. return yt = 21, !0;
  4031. });
  4032. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  4033. J.forEach(function(At) {
  4034. At.setScale();
  4035. }), this.getAxisMargins();
  4036. var Mt = 1.1 < lt / this.plotWidth, Pt = 1.05 < vt / this.plotHeight;
  4037. (Mt || Pt) && (J.forEach(function(At) {
  4038. (At.horiz && Mt || !At.horiz && Pt) && At.setTickInterval(!0);
  4039. }), this.getMargins()), this.drawChartBox(), this.hasCartesianSeries ? pt(J) : tt && tt.length && pt(tt), this.seriesGroup || (this.seriesGroup = st.g("series-group").attr({ zIndex: 3 }).add()), this.renderSeries(), this.renderLabels(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = !0;
  4040. }, at.prototype.addCredits = function(J) {
  4041. var tt = this, st = q(!0, this.options.credits, J);
  4042. st.enabled && !this.credits && (this.credits = this.renderer.text(st.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  4043. st.href && (h.location.href = st.href);
  4044. }).attr({ align: st.position.align, zIndex: 8 }), tt.styledMode || this.credits.css(st.style), this.credits.add().align(st.position), this.credits.update = function(lt) {
  4045. tt.credits = tt.credits.destroy(), tt.addCredits(lt);
  4046. });
  4047. }, at.prototype.destroy = function() {
  4048. var J = this, tt = J.axes, st = J.series, lt = J.container, pt = lt && lt.parentNode, yt;
  4049. for (V(J, "destroy"), J.renderer.forExport ? g(a, J) : a[J.index] = void 0, H.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  4050. tt[yt] = tt[yt].destroy();
  4051. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = st.length; yt--; )
  4052. st[yt] = st[yt].destroy();
  4053. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  4054. var Mt = J[vt];
  4055. Mt && Mt.destroy && (J[vt] = Mt.destroy());
  4056. }), lt && (lt.innerHTML = O.emptyHTML, ct(lt), pt && X(lt)), it(J, function(vt, Mt) {
  4057. delete J[Mt];
  4058. });
  4059. }, at.prototype.firstRender = function() {
  4060. var J = this, tt = J.options;
  4061. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (k(tt.series) ? tt.series : []).forEach(function(st) {
  4062. J.initSeries(st);
  4063. }), J.linkSeries(), J.setSeriesData(), V(J, "beforeRender"), N && (F.isRequired() ? J.pointer = new F(J, tt) : J.pointer = new N(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  4064. }, at.prototype.onload = function() {
  4065. this.callbacks.concat([this.callback]).forEach(function(J) {
  4066. J && typeof this.index < "u" && J.apply(this, [this]);
  4067. }, this), V(this, "load"), V(this, "render"), P(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  4068. }, at.prototype.addSeries = function(J, tt, st) {
  4069. var lt = this, pt;
  4070. return J && (tt = et(tt, !0), V(lt, "addSeries", { options: J }, function() {
  4071. pt = lt.initSeries(J), lt.isDirtyLegend = !0, lt.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), V(lt, "afterAddSeries", { series: pt }), tt && lt.redraw(st);
  4072. })), pt;
  4073. }, at.prototype.addAxis = function(J, tt, st, lt) {
  4074. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: st, animation: lt });
  4075. }, at.prototype.addColorAxis = function(J, tt, st) {
  4076. return this.createAxis("colorAxis", { axis: J, redraw: tt, animation: st });
  4077. }, at.prototype.createAxis = function(J, tt) {
  4078. return J = new j(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  4079. }, at.prototype.showLoading = function(J) {
  4080. var tt = this, st = tt.options, lt = st.loading, pt = function() {
  4081. yt && W(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  4082. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  4083. yt || (tt.loadingDiv = yt = D("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, tt.container)), vt || (tt.loadingSpan = vt = D(
  4084. "span",
  4085. { className: "highcharts-loading-inner" },
  4086. null,
  4087. yt
  4088. ), n(tt, "redraw", pt)), yt.className = "highcharts-loading", O.setElementHTML(vt, et(J, st.lang.loading, "")), tt.styledMode || (W(yt, L(lt.style, { zIndex: 10 })), W(vt, lt.labelStyle), tt.loadingShown || (W(yt, { opacity: 0, display: "" }), B(yt, { opacity: lt.style.opacity || 0.5 }, { duration: lt.showDuration || 0 }))), tt.loadingShown = !0, pt();
  4089. }, at.prototype.hideLoading = function() {
  4090. var J = this.options, tt = this.loadingDiv;
  4091. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || B(tt, { opacity: 0 }, {
  4092. duration: J.loading.hideDuration || 100,
  4093. complete: function() {
  4094. W(tt, { display: "none" });
  4095. }
  4096. })), this.loadingShown = !1;
  4097. }, at.prototype.update = function(J, tt, st, lt) {
  4098. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Mt = [], Pt, At;
  4099. V(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = _(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  4100. var St = J.chart;
  4101. if (St) {
  4102. if (q(!0, pt.options.chart, St), "className" in St && pt.setClassName(St.className), "reflow" in St && pt.setReflow(St.reflow), "inverted" in St || "polar" in St || "type" in St) {
  4103. pt.propFromSeries();
  4104. var Dt = !0;
  4105. }
  4106. "alignTicks" in St && (Dt = !0), "events" in St && v(this, St), it(St, function(Lt, Nt) {
  4107. pt.propsRequireUpdateSeries.indexOf("chart." + Nt) !== -1 && (Pt = !0), pt.propsRequireDirtyBox.indexOf(Nt) !== -1 && (pt.isDirtyBox = !0), pt.propsRequireReflow.indexOf(Nt) !== -1 && (vt ? pt.isDirtyBox = !0 : At = !0);
  4108. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  4109. }
  4110. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new f(J.time)), q(!0, pt.options.time, J.time)), it(J, function(Lt, Nt) {
  4111. pt[Nt] && typeof pt[Nt].update == "function" ? pt[Nt].update(Lt, !1) : typeof pt[yt[Nt]] == "function" ? pt[yt[Nt]](Lt) : Nt !== "colors" && pt.collectionsWithUpdate.indexOf(Nt) === -1 && q(!0, pt.options[Nt], J[Nt]), Nt !== "chart" && pt.propsRequireUpdateSeries.indexOf(Nt) !== -1 && (Pt = !0);
  4112. }), this.collectionsWithUpdate.forEach(function(Lt) {
  4113. if (J[Lt]) {
  4114. var Nt = [];
  4115. pt[Lt].forEach(function(Et, Kt) {
  4116. Et.options.isInternal || Nt.push(et(Et.options.index, Kt));
  4117. }), gt(J[Lt]).forEach(function(Et, Kt) {
  4118. var Gt = P(Et.id), Wt;
  4119. Gt && (Wt = pt.get(Et.id)), !Wt && pt[Lt] && (Wt = pt[Lt][Nt ? Nt[Kt] : Kt]) && Gt && P(Wt.options.id) && (Wt = void 0), Wt && Wt.coll === Lt && (Wt.update(Et, !1), st && (Wt.touched = !0)), !Wt && st && pt.collectionsWithInit[Lt] && (pt.collectionsWithInit[Lt][0].apply(pt, [Et].concat(pt.collectionsWithInit[Lt][1] || []).concat([!1])).touched = !0);
  4120. }), st && pt[Lt].forEach(function(Et) {
  4121. Et.touched || Et.options.isInternal ? delete Et.touched : Mt.push(Et);
  4122. });
  4123. }
  4124. }), Mt.forEach(function(Lt) {
  4125. Lt.chart && Lt.remove && Lt.remove(!1);
  4126. }), Dt && pt.axes.forEach(function(Lt) {
  4127. Lt.update({}, !1);
  4128. }), Pt && pt.getSeriesOrderByLinks().forEach(function(Lt) {
  4129. Lt.chart && Lt.update({}, !1);
  4130. }, this), Dt = St && St.width, St = St && ($(St.height) ? rt(St.height, Dt || pt.chartWidth) : St.height), At || G(Dt) && Dt !== pt.chartWidth || G(St) && St !== pt.chartHeight ? pt.setSize(Dt, St, lt) : et(tt, !0) && pt.redraw(lt), V(pt, "afterUpdate", { options: J, redraw: tt, animation: lt });
  4131. }, at.prototype.setSubtitle = function(J, tt) {
  4132. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  4133. }, at.prototype.setCaption = function(J, tt) {
  4134. this.applyDescription("caption", J), this.layOutTitles(tt);
  4135. }, at.prototype.showResetZoom = function() {
  4136. function J() {
  4137. tt.zoomOut();
  4138. }
  4139. var tt = this, st = s.lang, lt = tt.options.chart.resetZoomButton, pt = lt.theme, yt = pt.states, vt = lt.relativeTo === "chart" || lt.relativeTo === "spacingBox" ? null : "scrollablePlotBox";
  4140. V(this, "beforeShowResetZoom", null, function() {
  4141. tt.resetZoomButton = tt.renderer.button(st.resetZoom, null, null, J, pt, yt && yt.hover).attr({ align: lt.position.align, title: st.resetZoomTitle }).addClass("highcharts-reset-zoom").add().align(lt.position, !1, vt);
  4142. }), V(this, "afterShowResetZoom");
  4143. }, at.prototype.zoomOut = function() {
  4144. V(this, "selection", { resetSelection: !0 }, this.zoom);
  4145. }, at.prototype.zoom = function(J) {
  4146. var tt = this, st = tt.pointer, lt = tt.inverted ? st.mouseDownX : st.mouseDownY, pt = !1, yt;
  4147. !J || J.resetSelection ? (tt.axes.forEach(function(Mt) {
  4148. yt = Mt.zoom();
  4149. }), st.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Mt) {
  4150. var Pt = Mt.axis, At = tt.inverted ? Pt.left : Pt.top, St = tt.inverted ? At + Pt.width : At + Pt.height, Dt = Pt.isXAxis, Lt = !1;
  4151. (!Dt && lt >= At && lt <= St || Dt || !P(lt)) && (Lt = !0), st[Dt ? "zoomX" : "zoomY"] && Lt && (yt = Pt.zoom(Mt.min, Mt.max), Pt.displayBtn && (pt = !0));
  4152. });
  4153. var vt = tt.resetZoomButton;
  4154. pt && !vt ? tt.showResetZoom() : !pt && z(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  4155. tt.options.chart.animation,
  4156. J && J.animation,
  4157. 100 > tt.pointCount
  4158. ));
  4159. }, at.prototype.pan = function(J, tt) {
  4160. var st = this, lt = st.hoverPoints;
  4161. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  4162. var pt = st.options.chart, yt = st.options.mapNavigation && st.options.mapNavigation.enabled;
  4163. pt && pt.panning && (pt.panning = tt);
  4164. var vt = tt.type, Mt;
  4165. V(this, "pan", { originalEvent: J }, function() {
  4166. lt && lt.forEach(function(St) {
  4167. St.setState();
  4168. });
  4169. var Pt = st.xAxis;
  4170. vt === "xy" ? Pt = Pt.concat(st.yAxis) : vt === "y" && (Pt = st.yAxis);
  4171. var At = {};
  4172. Pt.forEach(function(St) {
  4173. if (St.options.panningEnabled && !St.options.isInternal) {
  4174. var Dt = St.horiz, Lt = J[Dt ? "chartX" : "chartY"];
  4175. Dt = Dt ? "mouseDownX" : "mouseDownY";
  4176. var Nt = st[Dt], Et = St.minPointOffset || 0, Kt = St.reversed && !st.inverted || !St.reversed && st.inverted ? -1 : 1, Gt = St.getExtremes(), Wt = St.toValue(Nt - Lt, !0) + Et * Kt, Jt = St.toValue(Nt + St.len - Lt, !0) - (Et * Kt || St.isXAxis && St.pointRangePadding || 0), be = Jt < Wt;
  4177. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  4178. var zt = St.panningState;
  4179. !Kt || St.isXAxis || zt && !zt.isDirty || St.series.forEach(function(Vt) {
  4180. var Ce = Vt.getProcessedData(!0);
  4181. Ce = Vt.getExtremes(Ce.yData, !0), zt || (zt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), G(Ce.dataMin) && G(Ce.dataMax) && (zt.startMin = Math.min(et(Vt.options.threshold, 1 / 0), Ce.dataMin, zt.startMin), zt.startMax = Math.max(et(Vt.options.threshold, -1 / 0), Ce.dataMax, zt.startMax));
  4182. }), Kt = Math.min(et(zt && zt.startMin, Gt.dataMin), Et ? Gt.min : St.toValue(St.toPixels(Gt.min) - St.minPixelPadding)), Jt = Math.max(et(zt && zt.startMax, Gt.dataMax), Et ? Gt.max : St.toValue(St.toPixels(Gt.max) + St.minPixelPadding)), St.panningState = zt, St.isOrdinal || (Et = Kt - Nt, 0 < Et && (Wt += Et, Nt = Kt), Et = Wt - Jt, 0 < Et && (Wt = Jt, Nt -= Et), St.series.length && Nt !== Gt.min && Wt !== Gt.max && Nt >= Kt && Wt <= Jt && (St.setExtremes(Nt, Wt, !1, !1, { trigger: "pan" }), st.resetZoomButton || yt || Nt === Kt || Wt === Jt || !vt.match("y") || (st.showResetZoom(), St.displayBtn = !1), Mt = !0), At[Dt] = Lt);
  4183. }
  4184. }), it(At, function(St, Dt) {
  4185. st[Dt] = St;
  4186. }), Mt && st.redraw(!1), W(st.container, { cursor: "move" });
  4187. });
  4188. }, at;
  4189. }(), L(y.prototype, {
  4190. callbacks: [],
  4191. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  4192. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  4193. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  4194. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  4195. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  4196. }), y;
  4197. }), T(l, "Core/Legend/LegendSymbol.js", [l["Core/Utilities.js"]], function(y) {
  4198. var j = y.merge, I = y.pick, Z;
  4199. return function(H) {
  4200. H.drawLineMarker = function(U) {
  4201. var F = this.options, R = U.symbolWidth, N = U.symbolHeight, b = N / 2, x = this.chart.renderer, u = this.legendGroup;
  4202. U = U.baseline - Math.round(0.3 * U.fontMetrics.b);
  4203. var f = {}, E = F.marker;
  4204. this.chart.styledMode || (f = { "stroke-width": F.lineWidth || 0 }, F.dashStyle && (f.dashstyle = F.dashStyle)), this.legendLine = x.path([["M", 0, U], ["L", R, U]]).addClass("highcharts-graph").attr(f).add(u), E && E.enabled !== !1 && R && (F = Math.min(I(E.radius, b), b), this.symbol.indexOf("url") === 0 && (E = j(E, { width: N, height: N }), F = 0), this.legendSymbol = R = x.symbol(this.symbol, R / 2 - F, U - F, 2 * F, 2 * F, E).addClass("highcharts-point").add(u), R.isMarker = !0);
  4205. }, H.drawRectangle = function(U, F) {
  4206. var R = U.symbolHeight, N = U.options.squareSymbol;
  4207. F.legendSymbol = this.chart.renderer.rect(N ? (U.symbolWidth - R) / 2 : 0, U.baseline - R + 1, N ? R : U.symbolWidth, R, I(U.options.symbolRadius, R / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(F.legendGroup);
  4208. };
  4209. }(Z || (Z = {})), Z;
  4210. }), T(l, "Core/Series/SeriesDefaults.js", [], function() {
  4211. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  4212. normal: { animation: !0 },
  4213. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  4214. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  4215. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  4216. var y = this.series.chart.numberFormatter;
  4217. return typeof this.y != "number" ? "" : y(this.y, -1);
  4218. }, padding: 5, style: { fontSize: "11px", fontWeight: "bold", color: "contrast", textOutline: "1px contrast" }, verticalAlign: "bottom", x: 0, y: 0 }, cropThreshold: 300, opacity: 1, pointRange: 0, softThreshold: !0, states: {
  4219. normal: { animation: !0 },
  4220. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  4221. select: { animation: { duration: 0 } },
  4222. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  4223. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  4224. }), T(l, "Core/Series/Series.js", [
  4225. l["Core/Animation/AnimationUtilities.js"],
  4226. l["Core/DefaultOptions.js"],
  4227. l["Core/Foundation.js"],
  4228. l["Core/Globals.js"],
  4229. l["Core/Legend/LegendSymbol.js"],
  4230. l["Core/Series/Point.js"],
  4231. l["Core/Series/SeriesDefaults.js"],
  4232. l["Core/Series/SeriesRegistry.js"],
  4233. l["Core/Renderer/SVG/SVGElement.js"],
  4234. l["Core/Utilities.js"]
  4235. ], function(y, j, I, Z, H, U, F, R, N, b) {
  4236. var x = y.animObject, u = y.setAnimation, f = j.defaultOptions, E = I.registerEventOptions, O = Z.hasTouch, B = Z.svg, M = Z.win, S = R.seriesTypes, w = b.addEvent, v = b.arrayMax, a = b.arrayMin, c = b.clamp, p = b.cleanRecursively, i = b.correctFloat, h = b.defined, s = b.erase, t = b.error, o = b.extend, n = b.find, A = b.fireEvent, _ = b.getNestedProperty, D = b.isArray, W = b.isNumber, P = b.isString, X = b.merge, g = b.objectEach, m = b.pick, L = b.removeEvent, Y = b.splat, V = b.syncTimeout;
  4237. return y = function() {
  4238. function Q() {
  4239. this.zones = this.yAxis = this.xAxis = this.userOptions = this.tooltipOptions = this.processedYData = this.processedXData = this.points = this.options = this.linkedSeries = this.index = this.eventsToUnbind = this.eventOptions = this.data = this.chart = this._i = void 0;
  4240. }
  4241. return Q.prototype.init = function(k, G) {
  4242. A(this, "init", { options: G });
  4243. var z = this, $ = k.series;
  4244. this.eventsToUnbind = [], z.chart = k, z.options = z.setOptions(G), G = z.options, z.linkedSeries = [], z.bindAxes(), o(z, { name: G.name, state: "", visible: G.visible !== !1, selected: G.selected === !0 }), E(this, G);
  4245. var q = G.events;
  4246. (q && q.click || G.point && G.point.events && G.point.events.click || G.allowPointSelect) && (k.runTrackerClick = !0), z.getColor(), z.getSymbol(), z.parallelArrays.forEach(function(et) {
  4247. z[et + "Data"] || (z[et + "Data"] = []);
  4248. }), z.isCartesian && (k.hasCartesianSeries = !0);
  4249. var it;
  4250. $.length && (it = $[$.length - 1]), z._i = m(it && it._i, -1) + 1, z.opacity = z.options.opacity, k.orderSeries(this.insert($)), G.dataSorting && G.dataSorting.enabled ? z.setDataSortingOptions() : z.points || z.data || z.setData(G.data, !1), A(this, "afterInit");
  4251. }, Q.prototype.is = function(k) {
  4252. return S[k] && this instanceof S[k];
  4253. }, Q.prototype.insert = function(k) {
  4254. var G = this.options.index, z;
  4255. if (W(G)) {
  4256. for (z = k.length; z--; )
  4257. if (G >= m(k[z].options.index, k[z]._i)) {
  4258. k.splice(z + 1, 0, this);
  4259. break;
  4260. }
  4261. z === -1 && k.unshift(this), z += 1;
  4262. } else
  4263. k.push(this);
  4264. return m(z, k.length - 1);
  4265. }, Q.prototype.bindAxes = function() {
  4266. var k = this, G = k.options, z = k.chart, $;
  4267. A(this, "bindAxes", null, function() {
  4268. (k.axisTypes || []).forEach(function(q) {
  4269. var it = 0;
  4270. z[q].forEach(function(et) {
  4271. $ = et.options, (G[q] === it && !$.isInternal || typeof G[q] < "u" && G[q] === $.id || typeof G[q] > "u" && $.index === 0) && (k.insert(et.series), k[q] = et, et.isDirty = !0), $.isInternal || it++;
  4272. }), k[q] || k.optionalAxis === q || t(18, !0, z);
  4273. });
  4274. }), A(this, "afterBindAxes");
  4275. }, Q.prototype.updateParallelArrays = function(k, G) {
  4276. var z = k.series, $ = arguments, q = W(G) ? function(it) {
  4277. var et = it === "y" && z.toYData ? z.toYData(k) : k[it];
  4278. z[it + "Data"][G] = et;
  4279. } : function(it) {
  4280. Array.prototype[G].apply(z[it + "Data"], Array.prototype.slice.call($, 2));
  4281. };
  4282. z.parallelArrays.forEach(q);
  4283. }, Q.prototype.hasData = function() {
  4284. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  4285. }, Q.prototype.autoIncrement = function(k) {
  4286. var G = this.options, z = G.pointIntervalUnit, $ = G.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  4287. return it = m(it, G.pointStart, 0), this.pointInterval = et = m(this.pointInterval, G.pointInterval, 1), $ && W(k) && (et *= k), z && (G = new q.Date(it), z === "day" ? q.set("Date", G, q.get("Date", G) + et) : z === "month" ? q.set("Month", G, q.get("Month", G) + et) : z === "year" && q.set("FullYear", G, q.get("FullYear", G) + et), et = G.getTime() - it), $ && W(k) ? it + et : (this.xIncrement = it + et, it);
  4288. }, Q.prototype.setDataSortingOptions = function() {
  4289. var k = this.options;
  4290. o(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), h(k.pointRange) || (k.pointRange = 1);
  4291. }, Q.prototype.setOptions = function(k) {
  4292. var G = this.chart, z = G.options, $ = z.plotOptions, q = G.userOptions || {};
  4293. k = X(k), G = G.styledMode;
  4294. var it = { plotOptions: $, userOptions: k };
  4295. A(this, "setOptions", it);
  4296. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  4297. return this.userOptions = it.userOptions, q = X(et, $.series, q.plotOptions && q.plotOptions[this.type], k), this.tooltipOptions = X(f.tooltip, f.plotOptions.series && f.plotOptions.series.tooltip, f.plotOptions[this.type].tooltip, z.tooltip.userOptions, $.series && $.series.tooltip, $[this.type].tooltip, k.tooltip), this.stickyTracking = m(k.stickyTracking, nt[this.type] && nt[this.type].stickyTracking, nt.series && nt.series.stickyTracking, this.tooltipOptions.shared && !this.noSharedTooltip ? !0 : q.stickyTracking), et.marker === null && delete q.marker, this.zoneAxis = q.zoneAxis, $ = this.zones = (q.zones || []).slice(), !q.negativeColor && !q.negativeFillColor || q.zones || (z = { value: q[this.zoneAxis + "Threshold"] || q.threshold || 0, className: "highcharts-negative" }, G || (z.color = q.negativeColor, z.fillColor = q.negativeFillColor), $.push(z)), $.length && h($[$.length - 1].value) && $.push(G ? {} : { color: this.color, fillColor: this.fillColor }), A(this, "afterSetOptions", { options: q }), q;
  4298. }, Q.prototype.getName = function() {
  4299. return m(this.options.name, "Series " + (this.index + 1));
  4300. }, Q.prototype.getCyclic = function(k, G, z) {
  4301. var $ = this.chart, q = this.userOptions, it = k + "Index", et = k + "Counter", nt = z ? z.length : m($.options.chart[k + "Count"], $[k + "Count"]);
  4302. if (!G) {
  4303. var rt = m(q[it], q["_" + it]);
  4304. h(rt) || ($.series.length || ($[et] = 0), q["_" + it] = rt = $[et] % nt, $[et] += 1), z && (G = z[rt]);
  4305. }
  4306. typeof rt < "u" && (this[it] = rt), this[k] = G;
  4307. }, Q.prototype.getColor = function() {
  4308. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || f.plotOptions[this.type].color, this.chart.options.colors);
  4309. }, Q.prototype.getPointsCollection = function() {
  4310. return (this.hasGroupedData ? this.points : this.data) || [];
  4311. }, Q.prototype.getSymbol = function() {
  4312. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  4313. }, Q.prototype.findPointIndex = function(k, G) {
  4314. var z = k.id, $ = k.x, q = this.points, it = this.options.dataSorting, et, nt;
  4315. if (z)
  4316. it = this.chart.get(z), it instanceof U && (et = it);
  4317. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  4318. return !ct.touched && ct.index === k.index;
  4319. }, it && it.matchByName ? et = function(ct) {
  4320. return !ct.touched && ct.name === k.name;
  4321. } : this.options.relativeXValue && (et = function(ct) {
  4322. return !ct.touched && ct.options.x === k.x;
  4323. }), et = n(q, et), !et))
  4324. return;
  4325. if (et) {
  4326. var rt = et && et.index;
  4327. typeof rt < "u" && (nt = !0);
  4328. }
  4329. return typeof rt > "u" && W($) && (rt = this.xData.indexOf($, G)), rt !== -1 && typeof rt < "u" && this.cropped && (rt = rt >= this.cropStart ? rt - this.cropStart : rt), !nt && W(rt) && q[rt] && q[rt].touched && (rt = void 0), rt;
  4330. }, Q.prototype.updateData = function(k, G) {
  4331. var z = this.options, $ = z.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = k.length === q.length, rt, ct, gt, dt = !0;
  4332. if (this.xIncrement = null, k.forEach(function(ht, at) {
  4333. var J = h(ht) && this.pointClass.prototype.optionsToObject.call({ series: this }, ht) || {}, tt = J.x;
  4334. J.id || W(tt) ? (J = this.findPointIndex(J, gt), J === -1 || typeof J > "u" ? it.push(ht) : q[J] && ht !== z.data[J] ? (q[J].update(ht, !1, null, !1), q[J].touched = !0, et && (gt = J + 1)) : q[J] && (q[J].touched = !0), (!nt || at !== J || $ && $.enabled || this.hasDerivedData) && (rt = !0)) : it.push(ht);
  4335. }, this), rt)
  4336. for (k = q.length; k--; )
  4337. (ct = q[k]) && !ct.touched && ct.remove && ct.remove(!1, G);
  4338. else
  4339. !nt || $ && $.enabled ? dt = !1 : (k.forEach(function(ht, at) {
  4340. ht !== q[at].y && q[at].update && q[at].update(
  4341. ht,
  4342. !1,
  4343. null,
  4344. !1
  4345. );
  4346. }), it.length = 0);
  4347. return q.forEach(function(ht) {
  4348. ht && (ht.touched = !1);
  4349. }), dt ? (it.forEach(function(ht) {
  4350. this.addPoint(ht, !1, null, null, !1);
  4351. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = v(this.xData), this.autoIncrement()), !0) : !1;
  4352. }, Q.prototype.setData = function(k, G, z, $) {
  4353. var q = this, it = q.points, et = it && it.length || 0, nt = q.options, rt = q.chart, ct = nt.dataSorting, gt = q.xAxis, dt = nt.turboThreshold, ht = this.xData, at = this.yData, J = q.pointArrayMap;
  4354. J = J && J.length;
  4355. var tt = nt.keys, st, lt = 0, pt = 1, yt = null;
  4356. k = k || [];
  4357. var vt = k.length;
  4358. if (G = m(G, !0), ct && ct.enabled && (k = this.sortData(k)), $ !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (st = this.updateData(k, z)), !st) {
  4359. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Mt) {
  4360. q[Mt + "Data"].length = 0;
  4361. }), dt && vt > dt)
  4362. if (yt = q.getFirstValidPoint(k), W(yt))
  4363. for (z = 0; z < vt; z++)
  4364. ht[z] = this.autoIncrement(), at[z] = k[z];
  4365. else if (D(yt))
  4366. if (J)
  4367. if (yt.length === J)
  4368. for (z = 0; z < vt; z++)
  4369. ht[z] = this.autoIncrement(), at[z] = k[z];
  4370. else
  4371. for (z = 0; z < vt; z++)
  4372. $ = k[z], ht[z] = $[0], at[z] = $.slice(
  4373. 1,
  4374. J + 1
  4375. );
  4376. else if (tt && (lt = tt.indexOf("x"), pt = tt.indexOf("y"), lt = 0 <= lt ? lt : 0, pt = 0 <= pt ? pt : 1), yt.length === 1 && (pt = 0), lt === pt)
  4377. for (z = 0; z < vt; z++)
  4378. ht[z] = this.autoIncrement(), at[z] = k[z][pt];
  4379. else
  4380. for (z = 0; z < vt; z++)
  4381. $ = k[z], ht[z] = $[lt], at[z] = $[pt];
  4382. else
  4383. t(12, !1, rt);
  4384. else
  4385. for (z = 0; z < vt; z++)
  4386. typeof k[z] < "u" && ($ = { series: q }, q.pointClass.prototype.applyOptions.apply($, [k[z]]), q.updateParallelArrays($, z));
  4387. for (at && P(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = k, z = et; z--; )
  4388. it[z] && it[z].destroy && it[z].destroy();
  4389. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, z = !1;
  4390. }
  4391. nt.legendType === "point" && (this.processData(), this.generatePoints()), G && rt.redraw(z);
  4392. }, Q.prototype.sortData = function(k) {
  4393. var G = this, z = G.options.dataSorting.sortKey || "y", $ = function(q, it) {
  4394. return h(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  4395. };
  4396. return k.forEach(function(q, it) {
  4397. k[it] = $(G, q), k[it].index = it;
  4398. }, this), k.concat().sort(function(q, it) {
  4399. return q = _(z, q), it = _(z, it), it < q ? -1 : it > q ? 1 : 0;
  4400. }).forEach(function(q, it) {
  4401. q.x = it;
  4402. }, this), G.linkedSeries && G.linkedSeries.forEach(function(q) {
  4403. var it = q.options, et = it.data;
  4404. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  4405. et[rt] = $(q, nt), k[rt] && (et[rt].x = k[rt].x, et[rt].index = rt);
  4406. }), q.setData(et, !1));
  4407. }), k;
  4408. }, Q.prototype.getProcessedData = function(k) {
  4409. var G = this.xAxis, z = this.options, $ = z.cropThreshold, q = k || this.getExtremesFromAll || z.getExtremesFromAll, it = this.isCartesian;
  4410. k = G && G.val2lin, z = !(!G || !G.logarithmic);
  4411. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  4412. if (G) {
  4413. gt = G.getExtremes();
  4414. var ht = gt.min, at = gt.max;
  4415. gt = G.categories && !G.names.length;
  4416. }
  4417. if (it && this.sorted && !q && (!$ || dt > $ || this.forceCrop)) {
  4418. if (nt[dt - 1] < ht || nt[0] > at)
  4419. nt = [], rt = [];
  4420. else if (this.yData && (nt[0] < ht || nt[dt - 1] > at)) {
  4421. var J = this.cropData(this.xData, this.yData, ht, at);
  4422. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  4423. }
  4424. }
  4425. for ($ = nt.length || 1; --$; )
  4426. if (G = z ? k(nt[$]) - k(nt[$ - 1]) : nt[$] - nt[$ - 1], 0 < G && (typeof tt > "u" || G < tt))
  4427. var tt = G;
  4428. else
  4429. 0 > G && ct && !gt && (t(15, !1, this.chart), ct = !1);
  4430. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  4431. }, Q.prototype.processData = function(k) {
  4432. var G = this.xAxis;
  4433. if (this.isCartesian && !this.isDirty && !G.isDirty && !this.yAxis.isDirty && !k)
  4434. return !1;
  4435. k = this.getProcessedData(), this.cropped = k.cropped, this.cropStart = k.cropStart, this.processedXData = k.xData, this.processedYData = k.yData, this.closestPointRange = this.basePointRange = k.closestPointRange, A(this, "afterProcessData");
  4436. }, Q.prototype.cropData = function(k, G, z, $, q) {
  4437. var it = k.length, et, nt = 0, rt = it;
  4438. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  4439. if (k[et] >= z) {
  4440. nt = Math.max(0, et - q);
  4441. break;
  4442. }
  4443. for (z = et; z < it; z++)
  4444. if (k[z] > $) {
  4445. rt = z + q;
  4446. break;
  4447. }
  4448. return { xData: k.slice(nt, rt), yData: G.slice(
  4449. nt,
  4450. rt
  4451. ), start: nt, end: rt };
  4452. }, Q.prototype.generatePoints = function() {
  4453. var k = this.options, G = k.data, z = this.processedXData, $ = this.processedYData, q = this.pointClass, it = z.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = k.keys, ct = [];
  4454. k = k.dataGrouping && k.dataGrouping.groupAll ? et : 0;
  4455. var gt, dt, ht = this.data;
  4456. if (!ht && !nt) {
  4457. var at = [];
  4458. at.length = G.length, ht = this.data = at;
  4459. }
  4460. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  4461. if (at = et + dt, nt) {
  4462. var J = new q().init(this, [z[dt]].concat(Y($[dt])));
  4463. J.dataGroup = this.groupMap[k + dt], J.dataGroup.options && (J.options = J.dataGroup.options, o(J, J.dataGroup.options), delete J.dataLabels);
  4464. } else
  4465. (J = ht[at]) || typeof G[at] > "u" || (ht[at] = J = new q().init(this, G[at], z[dt]));
  4466. J && (J.index = nt ? k + dt : at, ct[dt] = J);
  4467. }
  4468. if (this.options.keys = rt, ht && (it !== (gt = ht.length) || nt))
  4469. for (dt = 0; dt < gt; dt++)
  4470. dt !== et || nt || (dt += it), ht[dt] && (ht[dt].destroyElements(), ht[dt].plotX = void 0);
  4471. this.data = ht, this.points = ct, A(this, "afterGeneratePoints");
  4472. }, Q.prototype.getXExtremes = function(k) {
  4473. return { min: a(k), max: v(k) };
  4474. }, Q.prototype.getExtremes = function(k, G) {
  4475. var z = this.xAxis, $ = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  4476. $ = $ ? $.positiveValuesOnly : !1;
  4477. var nt, rt = 0, ct = 0, gt = 0;
  4478. k = k || this.stackedYData || this.processedYData || [];
  4479. var dt = k.length;
  4480. if (z) {
  4481. var ht = z.getExtremes();
  4482. rt = ht.min, ct = ht.max;
  4483. }
  4484. for (nt = 0; nt < dt; nt++) {
  4485. var at = q[nt];
  4486. ht = k[nt];
  4487. var J = (W(ht) || D(ht)) && (ht.length || 0 < ht || !$);
  4488. if (at = G || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !z || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  4489. if (J = ht.length)
  4490. for (; J--; )
  4491. W(ht[J]) && (it[gt++] = ht[J]);
  4492. else
  4493. it[gt++] = ht;
  4494. }
  4495. return k = { activeYData: it, dataMin: a(it), dataMax: v(it) }, A(this, "afterGetExtremes", { dataExtremes: k }), k;
  4496. }, Q.prototype.applyExtremes = function() {
  4497. var k = this.getExtremes();
  4498. return this.dataMin = k.dataMin, this.dataMax = k.dataMax, k;
  4499. }, Q.prototype.getFirstValidPoint = function(k) {
  4500. for (var G = k.length, z = 0, $ = null; $ === null && z < G; )
  4501. $ = k[z], z++;
  4502. return $;
  4503. }, Q.prototype.translate = function() {
  4504. this.processedXData || this.processData(), this.generatePoints();
  4505. var k = this.options, G = k.stacking, z = this.xAxis, $ = z.categories, q = this.enabledDataSorting, it = this.yAxis, et = this.points, nt = et.length, rt = this.pointPlacementToXValue(), ct = !!rt, gt = k.threshold, dt = k.startFromThreshold ? gt : 0, ht = this.zoneAxis || "y", at, J, tt = Number.MAX_VALUE;
  4506. for (at = 0; at < nt; at++) {
  4507. var st = et[at], lt = st.x, pt = void 0, yt = void 0, vt = st.y, Mt = st.low, Pt = G && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  4508. if ((it.positiveValuesOnly && !it.validatePositiveValue(vt) || z.positiveValuesOnly && !z.validatePositiveValue(lt)) && (st.isNull = !0), st.plotX = J = i(c(z.translate(lt, 0, 0, 0, 1, rt, this.type === "flags"), -1e5, 1e5)), G && this.visible && Pt && Pt[lt]) {
  4509. var At = this.getStackIndicator(
  4510. At,
  4511. lt,
  4512. this.index
  4513. );
  4514. st.isNull || (pt = Pt[lt], yt = pt.points[At.key]);
  4515. }
  4516. if (D(yt) && (Mt = yt[0], vt = yt[1], Mt === dt && At.key === Pt[lt].base && (Mt = m(W(gt) && gt, it.min)), it.positiveValuesOnly && 0 >= Mt && (Mt = null), st.total = st.stackTotal = pt.total, st.percentage = pt.total && st.y / pt.total * 100, st.stackY = vt, this.irregularWidths || pt.setOffset(this.pointXOffset || 0, this.barW || 0)), st.yBottom = h(Mt) ? c(it.translate(Mt, 0, 1, 0, 1), -1e5, 1e5) : null, this.dataModify && (vt = this.dataModify.modifyValue(vt, at)), st.plotY = void 0, W(vt) && (pt = it.translate(vt, !1, !0, !1, !0), typeof pt < "u" && (st.plotY = c(
  4517. pt,
  4518. -1e5,
  4519. 1e5
  4520. ))), st.isInside = this.isPointInside(st), st.clientX = ct ? i(z.translate(lt, 0, 0, 0, 1, rt)) : J, st.negative = st[ht] < (k[ht + "Threshold"] || gt || 0), st.category = $ && typeof $[st.x] < "u" ? $[st.x] : st.x, !st.isNull && st.visible !== !1) {
  4521. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  4522. var St = J;
  4523. }
  4524. st.zone = this.zones.length ? st.getZone() : void 0, !st.graphic && this.group && q && (st.isNew = !0);
  4525. }
  4526. this.closestPointRangePx = tt, A(this, "afterTranslate");
  4527. }, Q.prototype.getValidPoints = function(k, G, z) {
  4528. var $ = this.chart;
  4529. return (k || this.points || []).filter(function(q) {
  4530. return G && !$.isInsidePlot(q.plotX, q.plotY, { inverted: $.inverted }) ? !1 : q.visible !== !1 && (z || !q.isNull);
  4531. });
  4532. }, Q.prototype.getClipBox = function() {
  4533. var k = this.chart, G = this.xAxis, z = this.yAxis, $ = X(k.clipBox);
  4534. return G && G.len !== k.plotSizeX && ($.width = G.len), z && z.len !== k.plotSizeY && ($.height = z.len), $;
  4535. }, Q.prototype.getSharedClipKey = function() {
  4536. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  4537. }, Q.prototype.setClip = function() {
  4538. var k = this.chart, G = this.group, z = this.markerGroup, $ = k.sharedClips;
  4539. k = k.renderer;
  4540. var q = this.getClipBox(), it = this.getSharedClipKey(), et = $[it];
  4541. et ? et.animate(q) : $[it] = et = k.clipRect(q), G && G.clip(this.options.clip === !1 ? void 0 : et), z && z.clip();
  4542. }, Q.prototype.animate = function(k) {
  4543. var G = this.chart, z = this.group, $ = this.markerGroup, q = G.inverted, it = x(this.options.animation), et = [this.getSharedClipKey(), it.duration, it.easing, it.defer].join(), nt = G.sharedClips[et], rt = G.sharedClips[et + "m"];
  4544. if (k && z)
  4545. it = this.getClipBox(), nt ? nt.attr("height", it.height) : (it.width = 0, q && (it.x = G.plotHeight), nt = G.renderer.clipRect(it), G.sharedClips[et] = nt, rt = G.renderer.clipRect({ x: q ? (G.plotSizeX || 0) + 99 : -99, y: q ? -G.plotLeft : -G.plotTop, width: 99, height: q ? G.chartWidth : G.chartHeight }), G.sharedClips[et + "m"] = rt), z.clip(nt), $ && $.clip(rt);
  4546. else if (nt && !nt.hasClass("highcharts-animating")) {
  4547. G = this.getClipBox();
  4548. var ct = it.step;
  4549. $ && $.element.childNodes.length && (it.step = function(gt, dt) {
  4550. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  4551. }), nt.addClass("highcharts-animating").animate(G, it);
  4552. }
  4553. }, Q.prototype.afterAnimate = function() {
  4554. var k = this;
  4555. this.setClip(), g(
  4556. this.chart.sharedClips,
  4557. function(G, z, $) {
  4558. G && !k.chart.container.querySelector('[clip-path="url(#' + G.id + ')"]') && (G.destroy(), delete $[z]);
  4559. }
  4560. ), this.finishedAnimating = !0, A(this, "afterAnimate");
  4561. }, Q.prototype.drawPoints = function() {
  4562. var k = this.points, G = this.chart, z = this.options.marker, $ = this[this.specialGroup] || this.markerGroup, q = this.xAxis, it = m(z.enabled, !q || q.isRadial ? !0 : null, this.closestPointRangePx >= z.enabledThreshold * z.radius), et, nt;
  4563. if (z.enabled !== !1 || this._hasPointMarkers)
  4564. for (et = 0; et < k.length; et++) {
  4565. var rt = k[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  4566. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  4567. var ht = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  4568. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  4569. var J = rt.isInside !== !1;
  4570. nt ? nt[J ? "show" : "hide"](J).animate(at) : J && (0 < (at.width || 0) || rt.hasImage) && (rt.graphic = nt = G.renderer.symbol(ht, at.x, at.y, at.width, at.height, dt ? gt : z).add($), this.enabledDataSorting && G.hasRendered && (nt.attr({ x: rt.startXPos }), ct = "animate")), nt && ct === "animate" && nt[J ? "show" : "hide"](J).animate(at), nt && !G.styledMode && nt[ct](this.pointAttribs(rt, rt.selected && "select")), nt && nt.addClass(rt.getClassName(), !0);
  4571. } else
  4572. nt && (rt.graphic = nt.destroy());
  4573. }
  4574. }, Q.prototype.markerAttribs = function(k, G) {
  4575. var z = this.options, $ = z.marker, q = k.marker || {}, it = q.symbol || $.symbol, et = m(q.radius, $.radius);
  4576. return G && ($ = $.states[G], G = q.states && q.states[G], et = m(G && G.radius, $ && $.radius, et + ($ && $.radiusPlus || 0))), k.hasImage = it && it.indexOf("url") === 0, k.hasImage && (et = 0), k = { x: z.crisp ? Math.floor(k.plotX - et) : k.plotX - et, y: k.plotY - et }, et && (k.width = k.height = 2 * et), k;
  4577. }, Q.prototype.pointAttribs = function(k, G) {
  4578. var z = this.options.marker, $ = k && k.options, q = $ && $.marker || {}, it = $ && $.color, et = k && k.color, nt = k && k.zone && k.zone.color, rt = this.color;
  4579. return k = m(q.lineWidth, z.lineWidth), $ = 1, rt = it || nt || et || rt, it = q.fillColor || z.fillColor || rt, et = q.lineColor || z.lineColor || rt, G = G || "normal", z = z.states[G] || {}, G = q.states && q.states[G] || {}, k = m(G.lineWidth, z.lineWidth, k + m(G.lineWidthPlus, z.lineWidthPlus, 0)), it = G.fillColor || z.fillColor || it, et = G.lineColor || z.lineColor || et, $ = m(G.opacity, z.opacity, $), { stroke: et, "stroke-width": k, fill: it, opacity: $ };
  4580. }, Q.prototype.destroy = function(k) {
  4581. var G = this, z = G.chart, $ = /AppleWebKit\/533/.test(M.navigator.userAgent), q = G.data || [], it, et, nt, rt;
  4582. for (A(G, "destroy"), this.removeEvents(k), (G.axisTypes || []).forEach(function(ct) {
  4583. (rt = G[ct]) && rt.series && (s(rt.series, G), rt.isDirty = rt.forceRedraw = !0);
  4584. }), G.legendItem && G.chart.legend.destroyItem(G), et = q.length; et--; )
  4585. (nt = q[et]) && nt.destroy && nt.destroy();
  4586. G.clips && G.clips.forEach(function(ct) {
  4587. return ct.destroy();
  4588. }), b.clearTimeout(G.animationTimeout), g(G, function(ct, gt) {
  4589. ct instanceof N && !ct.survive && (it = $ && gt === "group" ? "hide" : "destroy", ct[it]());
  4590. }), z.hoverSeries === G && (z.hoverSeries = void 0), s(z.series, G), z.orderSeries(), g(G, function(ct, gt) {
  4591. k && gt === "hcEvents" || delete G[gt];
  4592. });
  4593. }, Q.prototype.applyZones = function() {
  4594. var k = this, G = this.chart, z = G.renderer, $ = this.zones, q = this.clips || [], it = this.graph, et = this.area, nt = Math.max(G.chartWidth, G.chartHeight), rt = this[(this.zoneAxis || "y") + "Axis"], ct = G.inverted, gt, dt, ht, at, J, tt, st, lt, pt = !1;
  4595. if ($.length && (it || et) && rt && typeof rt.min < "u") {
  4596. var yt = rt.reversed, vt = rt.horiz;
  4597. it && !this.showLine && it.hide(), et && et.hide();
  4598. var Mt = rt.getExtremes();
  4599. $.forEach(function(Pt, At) {
  4600. gt = yt ? vt ? G.plotWidth : 0 : vt ? 0 : rt.toPixels(Mt.min) || 0, gt = c(m(dt, gt), 0, nt), dt = c(Math.round(rt.toPixels(m(Pt.value, Mt.max), !0) || 0), 0, nt), pt && (gt = dt = rt.toPixels(Mt.max)), at = Math.abs(gt - dt), J = Math.min(gt, dt), tt = Math.max(gt, dt), rt.isXAxis ? (ht = { x: ct ? tt : J, y: 0, width: at, height: nt }, vt || (ht.x = G.plotHeight - ht.x)) : (ht = { x: 0, y: ct ? tt : J, width: nt, height: at }, vt && (ht.y = G.plotWidth - ht.y)), ct && z.isVML && (ht = rt.isXAxis ? {
  4601. x: 0,
  4602. y: yt ? J : tt,
  4603. height: ht.width,
  4604. width: G.chartWidth
  4605. } : { x: ht.y - G.plotLeft - G.spacingBox.x, y: 0, width: ht.height, height: G.chartHeight }), q[At] ? q[At].animate(ht) : q[At] = z.clipRect(ht), st = k["zone-area-" + At], lt = k["zone-graph-" + At], it && lt && lt.clip(q[At]), et && st && st.clip(q[At]), pt = Pt.value > Mt.max, k.resetZones && dt === 0 && (dt = void 0);
  4606. }), this.clips = q;
  4607. } else
  4608. k.visible && (it && it.show(!0), et && et.show(!0));
  4609. }, Q.prototype.invertGroups = function(k) {
  4610. function G() {
  4611. ["group", "markerGroup"].forEach(function(q) {
  4612. z[q] && ($.renderer.isVML && z[q].attr({ width: z.yAxis.len, height: z.xAxis.len }), z[q].width = z.yAxis.len, z[q].height = z.xAxis.len, z[q].invert(z.isRadialSeries ? !1 : k));
  4613. });
  4614. }
  4615. var z = this, $ = z.chart;
  4616. z.xAxis && (z.eventsToUnbind.push(w($, "resize", G)), G(), z.invertGroups = G);
  4617. }, Q.prototype.plotGroup = function(k, G, z, $, q) {
  4618. var it = this[k], et = !it;
  4619. return z = { visibility: z, zIndex: $ || 0.1 }, typeof this.opacity > "u" || this.chart.styledMode || this.state === "inactive" || (z.opacity = this.opacity), et && (this[k] = it = this.chart.renderer.g().add(q)), it.addClass("highcharts-" + G + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series " + (h(this.colorIndex) ? "highcharts-color-" + this.colorIndex + " " : "") + (this.options.className || "") + (it.hasClass("highcharts-tracker") ? " highcharts-tracker" : ""), !0), it.attr(z)[et ? "attr" : "animate"](this.getPlotBox()), it;
  4620. }, Q.prototype.getPlotBox = function() {
  4621. var k = this.chart, G = this.xAxis, z = this.yAxis;
  4622. return k.inverted && (G = z, z = this.xAxis), { translateX: G ? G.left : k.plotLeft, translateY: z ? z.top : k.plotTop, scaleX: 1, scaleY: 1 };
  4623. }, Q.prototype.removeEvents = function(k) {
  4624. k || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(G) {
  4625. G();
  4626. }), this.eventsToUnbind.length = 0);
  4627. }, Q.prototype.render = function() {
  4628. var k = this, G = k.chart, z = k.options, $ = x(z.animation), q = k.visible ? "inherit" : "hidden", it = z.zIndex, et = k.hasRendered, nt = G.seriesGroup, rt = G.inverted;
  4629. G = !k.finishedAnimating && G.renderer.isSVG ? $.duration : 0, A(this, "render");
  4630. var ct = k.plotGroup("group", "series", q, it, nt);
  4631. k.markerGroup = k.plotGroup("markerGroup", "markers", q, it, nt), z.clip !== !1 && k.setClip(), k.animate && G && k.animate(!0), ct.inverted = m(k.invertible, k.isCartesian) ? rt : !1, k.drawGraph && (k.drawGraph(), k.applyZones()), k.visible && k.drawPoints(), k.drawDataLabels && k.drawDataLabels(), k.redrawPoints && k.redrawPoints(), k.drawTracker && k.options.enableMouseTracking !== !1 && k.drawTracker(), k.invertGroups(rt), k.animate && G && k.animate(), et || (G && $.defer && (G += $.defer), k.animationTimeout = V(function() {
  4632. k.afterAnimate();
  4633. }, G || 0)), k.isDirty = !1, k.hasRendered = !0, A(k, "afterRender");
  4634. }, Q.prototype.redraw = function() {
  4635. var k = this.chart, G = this.isDirty || this.isDirtyData, z = this.group, $ = this.xAxis, q = this.yAxis;
  4636. z && (k.inverted && z.attr({
  4637. width: k.plotWidth,
  4638. height: k.plotHeight
  4639. }), z.animate({ translateX: m($ && $.left, k.plotLeft), translateY: m(q && q.top, k.plotTop) })), this.translate(), this.render(), G && delete this.kdTree;
  4640. }, Q.prototype.searchPoint = function(k, G) {
  4641. var z = this.xAxis, $ = this.yAxis, q = this.chart.inverted;
  4642. return this.searchKDTree({ clientX: q ? z.len - k.chartY + z.pos : k.chartX - z.pos, plotY: q ? $.len - k.chartX + $.pos : k.chartY - $.pos }, G, k);
  4643. }, Q.prototype.buildKDTree = function(k) {
  4644. function G(q, it, et) {
  4645. var nt = q && q.length;
  4646. if (nt) {
  4647. var rt = z.kdAxisArray[it % et];
  4648. return q.sort(function(ct, gt) {
  4649. return ct[rt] - gt[rt];
  4650. }), nt = Math.floor(nt / 2), { point: q[nt], left: G(q.slice(0, nt), it + 1, et), right: G(q.slice(nt + 1), it + 1, et) };
  4651. }
  4652. }
  4653. this.buildingKdTree = !0;
  4654. var z = this, $ = -1 < z.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  4655. delete z.kdTree, V(function() {
  4656. z.kdTree = G(z.getValidPoints(null, !z.directTouch), $, $), z.buildingKdTree = !1;
  4657. }, z.options.kdNow || k && k.type === "touchstart" ? 0 : 1);
  4658. }, Q.prototype.searchKDTree = function(k, G, z) {
  4659. function $(rt, ct, gt, dt) {
  4660. var ht = ct.point, at = q.kdAxisArray[gt % dt], J = ht, tt = h(rt[it]) && h(ht[it]) ? Math.pow(rt[it] - ht[it], 2) : null, st = h(rt[et]) && h(ht[et]) ? Math.pow(rt[et] - ht[et], 2) : null;
  4661. return st = (tt || 0) + (st || 0), ht.dist = h(st) ? Math.sqrt(st) : Number.MAX_VALUE, ht.distX = h(tt) ? Math.sqrt(tt) : Number.MAX_VALUE, at = rt[at] - ht[at], st = 0 > at ? "left" : "right", tt = 0 > at ? "right" : "left", ct[st] && (st = $(rt, ct[st], gt + 1, dt), J = st[nt] < J[nt] ? st : ht), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = $(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  4662. }
  4663. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = G ? "distX" : "dist";
  4664. if (G = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(z), this.kdTree)
  4665. return $(
  4666. k,
  4667. this.kdTree,
  4668. G,
  4669. G
  4670. );
  4671. }, Q.prototype.pointPlacementToXValue = function() {
  4672. var k = this.options, G = k.pointRange, z = this.xAxis;
  4673. return k = k.pointPlacement, k === "between" && (k = z.reversed ? -0.5 : 0.5), W(k) ? k * (G || z.pointRange) : 0;
  4674. }, Q.prototype.isPointInside = function(k) {
  4675. var G = this.chart, z = this.xAxis, $ = this.yAxis;
  4676. return typeof k.plotY < "u" && typeof k.plotX < "u" && 0 <= k.plotY && k.plotY <= ($ ? $.len : G.plotHeight) && 0 <= k.plotX && k.plotX <= (z ? z.len : G.plotWidth);
  4677. }, Q.prototype.drawTracker = function() {
  4678. var k = this, G = k.options, z = G.trackByArea, $ = [].concat(z ? k.areaPath : k.graphPath), q = k.chart, it = q.pointer, et = q.renderer, nt = q.options.tooltip.snap, rt = k.tracker, ct = function(dt) {
  4679. q.hoverSeries !== k && k.onMouseOver();
  4680. }, gt = "rgba(192,192,192," + (B ? 1e-4 : 2e-3) + ")";
  4681. rt ? rt.attr({ d: $ }) : k.graph && (k.tracker = et.path($).attr({ visibility: k.visible ? "visible" : "hidden", zIndex: 2 }).addClass(z ? "highcharts-tracker-area" : "highcharts-tracker-line").add(k.group), q.styledMode || k.tracker.attr({ "stroke-linecap": "round", "stroke-linejoin": "round", stroke: gt, fill: z ? gt : "none", "stroke-width": k.graph.strokeWidth() + (z ? 0 : 2 * nt) }), [k.tracker, k.markerGroup, k.dataLabelsGroup].forEach(function(dt) {
  4682. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(ht) {
  4683. it.onTrackerMouseOut(ht);
  4684. }), G.cursor && !q.styledMode && dt.css({ cursor: G.cursor }), O) && dt.on("touchstart", ct);
  4685. })), A(this, "afterDrawTracker");
  4686. }, Q.prototype.addPoint = function(k, G, z, $, q) {
  4687. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  4688. rt = rt && rt.hasNames && rt.names;
  4689. var ct = it.data, gt = this.xData, dt;
  4690. G = m(G, !0);
  4691. var ht = { series: this };
  4692. this.pointClass.prototype.applyOptions.apply(
  4693. ht,
  4694. [k]
  4695. );
  4696. var at = ht.x, J = gt.length;
  4697. if (this.requireSorting && at < gt[J - 1])
  4698. for (dt = !0; J && gt[J - 1] > at; )
  4699. J--;
  4700. this.updateParallelArrays(ht, "splice", J, 0, 0), this.updateParallelArrays(ht, J), rt && ht.name && (rt[at] = ht.name), ct.splice(J, 0, k), dt && (this.data.splice(J, 0, null), this.processData()), it.legendType === "point" && this.generatePoints(), z && (et[0] && et[0].remove ? et[0].remove(!1) : (et.shift(), this.updateParallelArrays(ht, "shift"), ct.shift())), q !== !1 && A(this, "addPoint", { point: ht }), this.isDirtyData = this.isDirty = !0, G && nt.redraw($);
  4701. }, Q.prototype.removePoint = function(k, G, z) {
  4702. var $ = this, q = $.data, it = q[k], et = $.points, nt = $.chart, rt = function() {
  4703. et && et.length === q.length && et.splice(k, 1), q.splice(k, 1), $.options.data.splice(k, 1), $.updateParallelArrays(it || { series: $ }, "splice", k, 1), it && it.destroy(), $.isDirty = !0, $.isDirtyData = !0, G && nt.redraw();
  4704. };
  4705. u(z, nt), G = m(G, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  4706. }, Q.prototype.remove = function(k, G, z, $) {
  4707. function q() {
  4708. it.destroy($), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(k, !0) && et.redraw(G);
  4709. }
  4710. var it = this, et = it.chart;
  4711. z !== !1 ? A(
  4712. it,
  4713. "remove",
  4714. null,
  4715. q
  4716. ) : q();
  4717. }, Q.prototype.update = function(k, G) {
  4718. k = p(k, this.userOptions), A(this, "update", { options: k });
  4719. var z = this, $ = z.chart, q = z.userOptions, it = z.initialType || z.type, et = $.options.plotOptions, nt = S[it].prototype, rt = z.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], ht = k.type || q.type || $.options.chart.type, at = !(this.hasDerivedData || ht && ht !== this.type || typeof k.pointStart < "u" || typeof k.pointInterval < "u" || typeof k.relativeXValue < "u" || z.hasOptionChanged("dataGrouping") || z.hasOptionChanged("pointStart") || z.hasOptionChanged("pointInterval") || z.hasOptionChanged("pointIntervalUnit") || z.hasOptionChanged("keys"));
  4720. if (ht = ht || it, at && (dt.push("data", "isDirtyData", "points", "processedXData", "processedYData", "xIncrement", "cropped", "_hasPointMarkers", "_hasPointLabels", "clips", "nodes", "layout", "mapMap", "mapData", "minY", "maxY", "minX", "maxX"), k.visible !== !1 && dt.push("area", "graph"), z.parallelArrays.forEach(function(tt) {
  4721. dt.push(tt + "Data");
  4722. }), k.data && (k.dataSorting && o(z.options.dataSorting, k.dataSorting), this.setData(k.data, !1))), k = X(q, rt, { index: typeof q.index > "u" ? z.index : q.index, pointStart: m(et && et.series && et.series.pointStart, q.pointStart, z.xData[0]) }, !at && { data: z.options.data }, k), at && k.data && (k.data = z.options.data), dt = ["group", "markerGroup", "dataLabelsGroup", "transformGroup"].concat(dt), dt.forEach(function(tt) {
  4723. dt[tt] = z[tt], delete z[tt];
  4724. }), et = !1, S[ht]) {
  4725. if (et = ht !== z.type, z.remove(!1, !1, !1, !0), et)
  4726. if (Object.setPrototypeOf)
  4727. Object.setPrototypeOf(z, S[ht].prototype);
  4728. else {
  4729. rt = Object.hasOwnProperty.call(z, "hcEvents") && z.hcEvents;
  4730. for (gt in nt)
  4731. z[gt] = void 0;
  4732. o(z, S[ht].prototype), rt ? z.hcEvents = rt : delete z.hcEvents;
  4733. }
  4734. } else
  4735. t(17, !0, $, { missingModuleFor: ht });
  4736. if (dt.forEach(function(tt) {
  4737. z[tt] = dt[tt];
  4738. }), z.init($, k), at && this.points) {
  4739. var J = z.options;
  4740. J.visible === !1 ? (ct.graphic = 1, ct.dataLabel = 1) : z._hasPointLabels || (k = J.marker, nt = J.dataLabels, !k || k.enabled !== !1 && (q.marker && q.marker.symbol) === k.symbol || (ct.graphic = 1), nt && nt.enabled === !1 && (ct.dataLabel = 1)), this.points.forEach(function(tt) {
  4741. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && $.legend.destroyItem(tt));
  4742. }, this);
  4743. }
  4744. z.initialType = it, $.linkSeries(), et && z.linkedSeries.length && (z.isDirtyData = !0), A(this, "afterUpdate"), m(G, !0) && $.redraw(at ? void 0 : !1);
  4745. }, Q.prototype.setName = function(k) {
  4746. this.name = this.options.name = this.userOptions.name = k, this.chart.isDirtyLegend = !0;
  4747. }, Q.prototype.hasOptionChanged = function(k) {
  4748. var G = this.options[k], z = this.chart.options.plotOptions, $ = this.userOptions[k];
  4749. return $ ? G !== $ : G !== m(
  4750. z && z[this.type] && z[this.type][k],
  4751. z && z.series && z.series[k],
  4752. G
  4753. );
  4754. }, Q.prototype.onMouseOver = function() {
  4755. var k = this.chart, G = k.hoverSeries;
  4756. k.pointer.setHoverChartIndex(), G && G !== this && G.onMouseOut(), this.options.events.mouseOver && A(this, "mouseOver"), this.setState("hover"), k.hoverSeries = this;
  4757. }, Q.prototype.onMouseOut = function() {
  4758. var k = this.options, G = this.chart, z = G.tooltip, $ = G.hoverPoint;
  4759. G.hoverSeries = null, $ && $.onMouseOut(), this && k.events.mouseOut && A(this, "mouseOut"), !z || this.stickyTracking || z.shared && !this.noSharedTooltip || z.hide(), G.series.forEach(function(q) {
  4760. q.setState(
  4761. "",
  4762. !0
  4763. );
  4764. });
  4765. }, Q.prototype.setState = function(k, G) {
  4766. var z = this, $ = z.options, q = z.graph, it = $.inactiveOtherPoints, et = $.states, nt = m(et[k || "normal"] && et[k || "normal"].animation, z.chart.options.chart.animation), rt = $.lineWidth, ct = 0, gt = $.opacity;
  4767. if (k = k || "", z.state !== k && ([z.group, z.markerGroup, z.dataLabelsGroup].forEach(function(dt) {
  4768. dt && (z.state && dt.removeClass("highcharts-series-" + z.state), k && dt.addClass("highcharts-series-" + k));
  4769. }), z.state = k, !z.chart.styledMode)) {
  4770. if (et[k] && et[k].enabled === !1)
  4771. return;
  4772. if (k && (rt = et[k].lineWidth || rt + (et[k].lineWidthPlus || 0), gt = m(et[k].opacity, gt)), q && !q.dashstyle)
  4773. for ($ = { "stroke-width": rt }, q.animate($, nt); z["zone-graph-" + ct]; )
  4774. z["zone-graph-" + ct].animate($, nt), ct += 1;
  4775. it || [z.group, z.markerGroup, z.dataLabelsGroup, z.labelBySeries].forEach(function(dt) {
  4776. dt && dt.animate({ opacity: gt }, nt);
  4777. });
  4778. }
  4779. G && it && z.points && z.setAllPointsToState(k || void 0);
  4780. }, Q.prototype.setAllPointsToState = function(k) {
  4781. this.points.forEach(function(G) {
  4782. G.setState && G.setState(k);
  4783. });
  4784. }, Q.prototype.setVisible = function(k, G) {
  4785. var z = this, $ = z.chart, q = z.legendItem, it = $.options.chart.ignoreHiddenSeries, et = z.visible, nt = (z.visible = k = z.options.visible = z.userOptions.visible = typeof k > "u" ? !et : k) ? "show" : "hide";
  4786. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  4787. z[rt] && z[rt][nt]();
  4788. }), ($.hoverSeries === z || ($.hoverPoint && $.hoverPoint.series) === z) && z.onMouseOut(), q && $.legend.colorizeItem(z, k), z.isDirty = !0, z.options.stacking && $.series.forEach(function(rt) {
  4789. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  4790. }), z.linkedSeries.forEach(function(rt) {
  4791. rt.setVisible(k, !1);
  4792. }), it && ($.isDirtyBox = !0), A(z, nt), G !== !1 && $.redraw();
  4793. }, Q.prototype.show = function() {
  4794. this.setVisible(!0);
  4795. }, Q.prototype.hide = function() {
  4796. this.setVisible(!1);
  4797. }, Q.prototype.select = function(k) {
  4798. this.selected = k = this.options.selected = typeof k > "u" ? !this.selected : k, this.checkbox && (this.checkbox.checked = k), A(this, k ? "select" : "unselect");
  4799. }, Q.prototype.shouldShowTooltip = function(k, G, z) {
  4800. return z === void 0 && (z = {}), z.series = this, z.visiblePlotOnly = !0, this.chart.isInsidePlot(k, G, z);
  4801. }, Q.defaultOptions = F, Q;
  4802. }(), o(y.prototype, { axisTypes: [
  4803. "xAxis",
  4804. "yAxis"
  4805. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: H.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: U, requireSorting: !0, sorted: !0 }), R.series = y, y;
  4806. }), T(l, "Extensions/ScrollablePlotArea.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/Series/Series.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  4807. var F = y.stop, R = U.addEvent, N = U.createElement, b = U.merge, x = U.pick;
  4808. R(I, "afterSetChartSize", function(u) {
  4809. var f = this.options.chart.scrollablePlotArea, E = f && f.minWidth;
  4810. if (f = f && f.minHeight, !this.renderer.forExport) {
  4811. if (E) {
  4812. if (this.scrollablePixelsX = E = Math.max(0, E - this.chartWidth)) {
  4813. this.scrollablePlotBox = this.renderer.scrollablePlotBox = b(this.plotBox), this.plotBox.width = this.plotWidth += E, this.inverted ? this.clipBox.height += E : this.clipBox.width += E;
  4814. var O = { 1: { name: "right", value: E } };
  4815. }
  4816. } else
  4817. f && (this.scrollablePixelsY = E = Math.max(
  4818. 0,
  4819. f - this.chartHeight
  4820. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = b(this.plotBox), this.plotBox.height = this.plotHeight += E, this.inverted ? this.clipBox.width += E : this.clipBox.height += E, O = { 2: { name: "bottom", value: E } });
  4821. O && !u.skipAxes && this.axes.forEach(function(B) {
  4822. O[B.side] ? B.getPlotLinePath = function() {
  4823. var M = O[B.side].name, S = this[M];
  4824. this[M] = S - O[B.side].value;
  4825. var w = j.prototype.getPlotLinePath.apply(this, arguments);
  4826. return this[M] = S, w;
  4827. } : (B.setAxisSize(), B.setAxisTranslation());
  4828. });
  4829. }
  4830. }), R(I, "render", function() {
  4831. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  4832. }), I.prototype.setUpScrolling = function() {
  4833. var u = this, f = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  4834. this.scrollablePixelsX && (f.overflowX = "auto"), this.scrollablePixelsY && (f.overflowY = "auto"), this.scrollingParent = N("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = N(
  4835. "div",
  4836. { className: "highcharts-scrolling" },
  4837. f,
  4838. this.scrollingParent
  4839. ), R(this.scrollingContainer, "scroll", function() {
  4840. u.pointer && delete u.pointer.chartPosition;
  4841. }), this.innerContainer = N("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  4842. }, I.prototype.moveFixedElements = function() {
  4843. var u = this.container, f = this.fixedRenderer, E = ".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), O;
  4844. this.scrollablePixelsX && !this.inverted ? O = ".highcharts-yaxis" : this.scrollablePixelsX && this.inverted || this.scrollablePixelsY && !this.inverted ? O = ".highcharts-xaxis" : this.scrollablePixelsY && this.inverted && (O = ".highcharts-yaxis"), O && E.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), E.forEach(function(B) {
  4845. [].forEach.call(u.querySelectorAll(B), function(M) {
  4846. (M.namespaceURI === f.SVG_NS ? f.box : f.box.parentNode).appendChild(M), M.style.pointerEvents = "auto";
  4847. });
  4848. });
  4849. }, I.prototype.applyFixed = function() {
  4850. var u = !this.fixedDiv, f = this.options.chart, E = f.scrollablePlotArea, O = H.getRendererType();
  4851. u ? (this.fixedDiv = N("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (f.style && f.style.zIndex || 0) + 2, top: 0 }, null, !0), this.scrollingContainer && this.scrollingContainer.parentNode.insertBefore(this.fixedDiv, this.scrollingContainer), this.renderTo.style.overflow = "visible", this.fixedRenderer = f = new O(
  4852. this.fixedDiv,
  4853. this.chartWidth,
  4854. this.chartHeight,
  4855. this.options.chart.style
  4856. ), this.scrollableMask = f.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": x(E.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), R(this, "afterShowResetZoom", this.moveFixedElements), R(this, "afterDrilldown", this.moveFixedElements), R(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || u) && (this.scrollableDirty = !1, this.moveFixedElements()), f = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), F(this.container), this.container.style.width = f + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: f, height: O, viewBox: [0, 0, f, O].join(" ") }), this.chartBackground.attr({ width: f, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", u && (E.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * E.scrollPositionX), E.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * E.scrollPositionY)), O = this.axisOffset, u = this.plotTop - O[0] - 1, E = this.plotLeft - O[3] - 1, f = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  4857. var B = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), M = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  4858. u = this.scrollablePixelsX ? [["M", 0, u], ["L", this.plotLeft - 1, u], ["L", this.plotLeft - 1, f], ["L", 0, f], ["Z"], ["M", B, u], ["L", this.chartWidth, u], ["L", this.chartWidth, f], ["L", B, f], ["Z"]] : this.scrollablePixelsY ? [["M", E, 0], ["L", E, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", E, M], ["L", E, this.chartHeight], ["L", O, this.chartHeight], ["L", O, M], ["Z"]] : [["M", 0, 0]], this.redrawTrigger !== "adjustHeight" && this.scrollableMask.attr({ d: u });
  4859. }, R(j, "afterInit", function() {
  4860. this.chart.scrollableDirty = !0;
  4861. }), R(Z, "show", function() {
  4862. this.chart.scrollableDirty = !0;
  4863. });
  4864. }), T(l, "Core/Axis/StackingAxis.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Utilities.js"]], function(y, j, I) {
  4865. var Z = y.getDeferredAnimation, H = I.addEvent, U = I.destroyObjectProperties, F = I.fireEvent, R = I.isNumber, N = I.objectEach, b;
  4866. return function(x) {
  4867. function u() {
  4868. var B = this.stacking;
  4869. if (B) {
  4870. var M = B.stacks;
  4871. N(M, function(S, w) {
  4872. U(S), M[w] = null;
  4873. }), B && B.stackTotalGroup && B.stackTotalGroup.destroy();
  4874. }
  4875. }
  4876. function f() {
  4877. this.stacking || (this.stacking = new O(this));
  4878. }
  4879. var E = [];
  4880. x.compose = function(B) {
  4881. return E.indexOf(B) === -1 && (E.push(B), H(B, "init", f), H(B, "destroy", u)), B;
  4882. };
  4883. var O = function() {
  4884. function B(M) {
  4885. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = M;
  4886. }
  4887. return B.prototype.buildStacks = function() {
  4888. var M = this.axis, S = M.series, w = M.options.reversedStacks, v = S.length, a;
  4889. if (!M.isXAxis) {
  4890. for (this.usePercentage = !1, a = v; a--; ) {
  4891. var c = S[w ? a : v - a - 1];
  4892. c.setStackedPoints(), c.setGroupedPoints();
  4893. }
  4894. for (a = 0; a < v; a++)
  4895. S[a].modifyStacks();
  4896. F(M, "afterBuildStacks");
  4897. }
  4898. }, B.prototype.cleanStacks = function() {
  4899. if (!this.axis.isXAxis) {
  4900. if (this.oldStacks)
  4901. var M = this.stacks = this.oldStacks;
  4902. N(M, function(S) {
  4903. N(S, function(w) {
  4904. w.cumulative = w.total;
  4905. });
  4906. });
  4907. }
  4908. }, B.prototype.resetStacks = function() {
  4909. var M = this, S = M.stacks;
  4910. M.axis.isXAxis || N(S, function(w) {
  4911. N(
  4912. w,
  4913. function(v, a) {
  4914. R(v.touched) && v.touched < M.stacksTouched ? (v.destroy(), delete w[a]) : (v.total = null, v.cumulative = null);
  4915. }
  4916. );
  4917. });
  4918. }, B.prototype.renderStackTotals = function() {
  4919. var M = this.axis, S = M.chart, w = S.renderer, v = this.stacks;
  4920. M = Z(S, M.options.stackLabels && M.options.stackLabels.animation || !1);
  4921. var a = this.stackTotalGroup = this.stackTotalGroup || w.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  4922. a.translate(S.plotLeft, S.plotTop), N(v, function(c) {
  4923. N(c, function(p) {
  4924. p.render(a);
  4925. });
  4926. }), a.animate(
  4927. { opacity: 1 },
  4928. M
  4929. );
  4930. }, B;
  4931. }();
  4932. x.Additions = O;
  4933. }(b || (b = {})), b;
  4934. }), T(l, "Extensions/Stacking.js", [l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Series/Series.js"], l["Core/Axis/StackingAxis.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F) {
  4935. var R = I.format, N = F.correctFloat, b = F.defined, x = F.destroyObjectProperties, u = F.isArray, f = F.isNumber, E = F.objectEach, O = F.pick, B = function() {
  4936. function M(S, w, v, a, c) {
  4937. var p = S.chart.inverted;
  4938. this.axis = S, this.isNegative = v, this.options = w = w || {}, this.x = a, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: w.align || (p ? v ? "left" : "right" : "center"), verticalAlign: w.verticalAlign || (p ? "middle" : v ? "bottom" : "top"), y: w.y, x: w.x }, this.textAlign = w.textAlign || (p ? v ? "right" : "left" : "center");
  4939. }
  4940. return M.prototype.destroy = function() {
  4941. x(this, this.axis);
  4942. }, M.prototype.render = function(S) {
  4943. var w = this.axis.chart, v = this.options, a = v.format;
  4944. a = a ? R(a, this, w) : v.formatter.call(this), this.label ? this.label.attr({
  4945. text: a,
  4946. visibility: "hidden"
  4947. }) : (this.label = w.renderer.label(a, null, null, v.shape, null, null, v.useHTML, !1, "stack-labels"), a = { r: v.borderRadius || 0, text: a, rotation: v.rotation, padding: O(v.padding, 5), visibility: "hidden" }, w.styledMode || (a.fill = v.backgroundColor, a.stroke = v.borderColor, a["stroke-width"] = v.borderWidth, this.label.css(v.style)), this.label.attr(a), this.label.added || this.label.add(S)), this.label.labelrank = w.plotSizeY;
  4948. }, M.prototype.setOffset = function(S, w, v, a, c) {
  4949. var p = this.axis, i = p.chart;
  4950. a = p.translate(p.stacking.usePercentage ? 100 : a || this.total, 0, 0, 0, 1), v = p.translate(v || 0), v = b(a) && Math.abs(a - v), S = O(c, i.xAxis[0].translate(this.x)) + S, p = b(a) && this.getStackBox(i, this, S, a, w, v, p), w = this.label, v = this.isNegative, S = O(this.options.overflow, "justify") === "justify";
  4951. var h = this.textAlign;
  4952. w && p && (c = w.getBBox(), a = w.padding, h = h === "left" ? i.inverted ? -a : a : h === "right" ? c.width : i.inverted && h === "center" ? c.width / 2 : i.inverted ? v ? c.width + a : -a : c.width / 2, v = i.inverted ? c.height / 2 : v ? -a : c.height, this.alignOptions.x = O(this.options.x, 0), this.alignOptions.y = O(this.options.y, 0), p.x -= h, p.y -= v, w.align(this.alignOptions, null, p), i.isInsidePlot(w.alignAttr.x + h - this.alignOptions.x, w.alignAttr.y + v - this.alignOptions.y) ? w.show() : (w.alignAttr.y = -9999, S = !1), S && H.prototype.justifyDataLabel.call(this.axis, w, this.alignOptions, w.alignAttr, c, p), w.attr({ x: w.alignAttr.x, y: w.alignAttr.y }), O(!S && this.options.crop, !0) && ((i = f(w.x) && f(w.y) && i.isInsidePlot(w.x - a + w.width, w.y) && i.isInsidePlot(w.x + a, w.y)) || w.hide()));
  4953. }, M.prototype.getStackBox = function(S, w, v, a, c, p, i) {
  4954. var h = w.axis.reversed, s = S.inverted, t = i.height + i.pos - (s ? S.plotLeft : S.plotTop);
  4955. return w = w.isNegative && !h || !w.isNegative && h, { x: s ? w ? a - i.right : a - p + i.pos - S.plotLeft : v + S.xAxis[0].transB - S.plotLeft, y: s ? i.height - v - c : w ? t - a - p : t - a, width: s ? p : c, height: s ? c : p };
  4956. }, M;
  4957. }();
  4958. return j.prototype.getStacks = function() {
  4959. var M = this, S = M.inverted;
  4960. M.yAxis.forEach(function(w) {
  4961. w.stacking && w.stacking.stacks && w.hasVisibleSeries && (w.stacking.oldStacks = w.stacking.stacks);
  4962. }), M.series.forEach(function(w) {
  4963. var v = w.xAxis && w.xAxis.options || {};
  4964. !w.options.stacking || w.visible !== !0 && M.options.chart.ignoreHiddenSeries !== !1 || (w.stackKey = [w.type, O(w.options.stack, ""), S ? v.top : v.left, S ? v.height : v.width].join());
  4965. });
  4966. }, U.compose(y), H.prototype.setGroupedPoints = function() {
  4967. var M = this.yAxis.stacking;
  4968. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? H.prototype.setStackedPoints.call(this, "group") : M && E(M.stacks, function(S, w) {
  4969. w.slice(-5) === "group" && (E(S, function(v) {
  4970. return v.destroy();
  4971. }), delete M.stacks[w]);
  4972. });
  4973. }, H.prototype.setStackedPoints = function(M) {
  4974. var S = M || this.options.stacking;
  4975. if (S && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  4976. var w = this.processedXData, v = this.processedYData, a = [], c = v.length, p = this.options, i = p.threshold, h = O(p.startFromThreshold && i, 0);
  4977. p = p.stack, M = M ? this.type + "," + S : this.stackKey;
  4978. var s = "-" + M, t = this.negStacks, o = this.yAxis, n = o.stacking.stacks, A = o.stacking.oldStacks, _, D;
  4979. for (o.stacking.stacksTouched += 1, D = 0; D < c; D++) {
  4980. var W = w[D], P = v[D], X = this.getStackIndicator(
  4981. X,
  4982. W,
  4983. this.index
  4984. ), g = X.key, m = (_ = t && P < (h ? 0 : i)) ? s : M;
  4985. n[m] || (n[m] = {}), n[m][W] || (A[m] && A[m][W] ? (n[m][W] = A[m][W], n[m][W].total = null) : n[m][W] = new B(o, o.options.stackLabels, _, W, p)), m = n[m][W], P !== null ? (m.points[g] = m.points[this.index] = [O(m.cumulative, h)], b(m.cumulative) || (m.base = g), m.touched = o.stacking.stacksTouched, 0 < X.index && this.singleStacks === !1 && (m.points[g][0] = m.points[this.index + "," + W + ",0"][0])) : m.points[g] = m.points[this.index] = null, S === "percent" ? (_ = _ ? M : s, t && n[_] && n[_][W] ? (_ = n[_][W], m.total = _.total = Math.max(_.total, m.total) + Math.abs(P) || 0) : m.total = N(m.total + (Math.abs(P) || 0))) : S === "group" ? (u(P) && (P = P[0]), P !== null && (m.total = (m.total || 0) + 1)) : m.total = N(m.total + (P || 0)), m.cumulative = S === "group" ? (m.total || 1) - 1 : O(m.cumulative, h) + (P || 0), P !== null && (m.points[g].push(m.cumulative), a[D] = m.cumulative, m.hasValidPoints = !0);
  4986. }
  4987. S === "percent" && (o.stacking.usePercentage = !0), S !== "group" && (this.stackedYData = a), o.stacking.oldStacks = {};
  4988. }
  4989. }, H.prototype.modifyStacks = function() {
  4990. var M = this, S = M.stackKey, w = M.yAxis.stacking.stacks, v = M.processedXData, a, c = M.options.stacking;
  4991. M[c + "Stacker"] && [S, "-" + S].forEach(function(p) {
  4992. for (var i = v.length, h, s; i--; )
  4993. h = v[i], a = M.getStackIndicator(a, h, M.index, p), (s = (h = w[p] && w[p][h]) && h.points[a.key]) && M[c + "Stacker"](s, h, i);
  4994. });
  4995. }, H.prototype.percentStacker = function(M, S, w) {
  4996. S = S.total ? 100 / S.total : 0, M[0] = N(M[0] * S), M[1] = N(M[1] * S), this.stackedYData[w] = M[1];
  4997. }, H.prototype.getStackIndicator = function(M, S, w, v) {
  4998. return !b(M) || M.x !== S || v && M.key !== v ? M = { x: S, index: 0, key: v } : M.index++, M.key = [w, S, M.index].join(), M;
  4999. }, Z.StackItem = B, Z.StackItem;
  5000. }), T(l, "Series/Line/LineSeries.js", [l["Core/Series/Series.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5001. var Z = this && this.__extends || function() {
  5002. var F = function(R, N) {
  5003. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, x) {
  5004. b.__proto__ = x;
  5005. } || function(b, x) {
  5006. for (var u in x)
  5007. x.hasOwnProperty(u) && (b[u] = x[u]);
  5008. }, F(R, N);
  5009. };
  5010. return function(R, N) {
  5011. function b() {
  5012. this.constructor = R;
  5013. }
  5014. F(R, N), R.prototype = N === null ? Object.create(N) : (b.prototype = N.prototype, new b());
  5015. };
  5016. }(), H = I.defined, U = I.merge;
  5017. return I = function(F) {
  5018. function R() {
  5019. var N = F !== null && F.apply(this, arguments) || this;
  5020. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  5021. }
  5022. return Z(R, F), R.prototype.drawGraph = function() {
  5023. var N = this, b = this.options, x = (this.gappedPath || this.getGraphPath).call(this), u = this.chart.styledMode, f = [["graph", "highcharts-graph"]];
  5024. u || f[0].push(b.lineColor || this.color || "#cccccc", b.dashStyle), f = N.getZonesGraphs(f), f.forEach(function(E, O) {
  5025. var B = E[0], M = N[B], S = M ? "animate" : "attr";
  5026. M ? (M.endX = N.preventGraphAnimation ? null : x.xMap, M.animate({ d: x })) : x.length && (N[B] = M = N.chart.renderer.path(x).addClass(E[1]).attr({ zIndex: 1 }).add(N.group)), M && !u && (B = { stroke: E[2], "stroke-width": b.lineWidth, fill: N.fillGraph && N.color || "none" }, E[3] ? B.dashstyle = E[3] : b.linecap !== "square" && (B["stroke-linecap"] = B["stroke-linejoin"] = "round"), M[S](B).shadow(2 > O && b.shadow)), M && (M.startX = x.xMap, M.isArea = x.isArea);
  5027. });
  5028. }, R.prototype.getGraphPath = function(N, b, x) {
  5029. var u = this, f = u.options, E = [], O = [], B, M = f.step;
  5030. N = N || u.points;
  5031. var S = N.reversed;
  5032. return S && N.reverse(), (M = { right: 1, center: 2 }[M] || M && 3) && S && (M = 4 - M), N = this.getValidPoints(N, !1, !(f.connectNulls && !b && !x)), N.forEach(function(w, v) {
  5033. var a = w.plotX, c = w.plotY, p = N[v - 1];
  5034. (w.leftCliff || p && p.rightCliff) && !x && (B = !0), w.isNull && !H(b) && 0 < v ? B = !f.connectNulls : w.isNull && !b ? B = !0 : (v === 0 || B ? v = [["M", w.plotX, w.plotY]] : u.getPointSpline ? v = [u.getPointSpline(N, w, v)] : M ? (v = M === 1 ? [["L", p.plotX, c]] : M === 2 ? [["L", (p.plotX + a) / 2, p.plotY], ["L", (p.plotX + a) / 2, c]] : [["L", a, p.plotY]], v.push(["L", a, c])) : v = [["L", a, c]], O.push(w.x), M && (O.push(w.x), M === 2 && O.push(w.x)), E.push.apply(E, v), B = !1);
  5035. }), E.xMap = O, u.graphPath = E;
  5036. }, R.prototype.getZonesGraphs = function(N) {
  5037. return this.zones.forEach(function(b, x) {
  5038. x = ["zone-graph-" + x, "highcharts-graph highcharts-zone-graph-" + x + " " + (b.className || "")], this.chart.styledMode || x.push(b.color || this.color, b.dashStyle || this.options.dashStyle), N.push(x);
  5039. }, this), N;
  5040. }, R.defaultOptions = U(y.defaultOptions, {}), R;
  5041. }(y), j.registerSeriesType("line", I), I;
  5042. }), T(l, "Series/Area/AreaSeries.js", [
  5043. l["Core/Color/Color.js"],
  5044. l["Core/Legend/LegendSymbol.js"],
  5045. l["Core/Series/SeriesRegistry.js"],
  5046. l["Core/Utilities.js"]
  5047. ], function(y, j, I, Z) {
  5048. var H = this && this.__extends || function() {
  5049. var x = function(u, f) {
  5050. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(E, O) {
  5051. E.__proto__ = O;
  5052. } || function(E, O) {
  5053. for (var B in O)
  5054. O.hasOwnProperty(B) && (E[B] = O[B]);
  5055. }, x(u, f);
  5056. };
  5057. return function(u, f) {
  5058. function E() {
  5059. this.constructor = u;
  5060. }
  5061. x(u, f), u.prototype = f === null ? Object.create(f) : (E.prototype = f.prototype, new E());
  5062. };
  5063. }(), U = y.parse, F = I.seriesTypes.line;
  5064. y = Z.extend;
  5065. var R = Z.merge, N = Z.objectEach, b = Z.pick;
  5066. return Z = function(x) {
  5067. function u() {
  5068. var f = x !== null && x.apply(this, arguments) || this;
  5069. return f.data = void 0, f.options = void 0, f.points = void 0, f;
  5070. }
  5071. return H(u, x), u.prototype.drawGraph = function() {
  5072. this.areaPath = [], x.prototype.drawGraph.apply(this);
  5073. var f = this, E = this.areaPath, O = this.options, B = [["area", "highcharts-area", this.color, O.fillColor]];
  5074. this.zones.forEach(function(M, S) {
  5075. B.push(["zone-area-" + S, "highcharts-area highcharts-zone-area-" + S + " " + M.className, M.color || f.color, M.fillColor || O.fillColor]);
  5076. }), B.forEach(function(M) {
  5077. var S = M[0], w = f[S], v = w ? "animate" : "attr", a = {};
  5078. w ? (w.endX = f.preventGraphAnimation ? null : E.xMap, w.animate({ d: E })) : (a.zIndex = 0, w = f[S] = f.chart.renderer.path(E).addClass(M[1]).add(f.group), w.isArea = !0), f.chart.styledMode || (a.fill = b(M[3], U(M[2]).setOpacity(b(O.fillOpacity, 0.75)).get())), w[v](a), w.startX = E.xMap, w.shiftUnit = O.step ? 2 : 1;
  5079. });
  5080. }, u.prototype.getGraphPath = function(f) {
  5081. var E = F.prototype.getGraphPath, O = this.options, B = O.stacking, M = this.yAxis, S, w = [], v = [], a = this.index, c = M.stacking.stacks[this.stackKey], p = O.threshold, i = Math.round(M.getThreshold(O.threshold));
  5082. O = b(O.connectNulls, B === "percent");
  5083. var h = function(n, A, _) {
  5084. var D = f[n];
  5085. n = B && c[D.x].points[a];
  5086. var W = D[_ + "Null"] || 0;
  5087. if (_ = D[_ + "Cliff"] || 0, D = !0, _ || W) {
  5088. var P = (W ? n[0] : n[1]) + _, X = n[0] + _;
  5089. D = !!W;
  5090. } else
  5091. !B && f[A] && f[A].isNull && (P = X = p);
  5092. typeof P < "u" && (v.push({ plotX: t, plotY: P === null ? i : M.getThreshold(P), isNull: D, isCliff: !0 }), w.push({ plotX: t, plotY: X === null ? i : M.getThreshold(X), doCurve: !1 }));
  5093. };
  5094. for (f = f || this.points, B && (f = this.getStackPoints(f)), S = 0; S < f.length; S++) {
  5095. B || (f[S].leftCliff = f[S].rightCliff = f[S].leftNull = f[S].rightNull = void 0);
  5096. var s = f[S].isNull, t = b(f[S].rectPlotX, f[S].plotX), o = B ? b(f[S].yBottom, i) : i;
  5097. (!s || O) && (O || h(S, S - 1, "left"), s && !B && O || (v.push(f[S]), w.push({ x: S, plotX: t, plotY: o })), O || h(S, S + 1, "right"));
  5098. }
  5099. return S = E.call(this, v, !0, !0), w.reversed = !0, s = E.call(this, w, !0, !0), (o = s[0]) && o[0] === "M" && (s[0] = ["L", o[1], o[2]]), s = S.concat(s), s.length && s.push(["Z"]), E = E.call(this, v, !1, O), s.xMap = S.xMap, this.areaPath = s, E;
  5100. }, u.prototype.getStackPoints = function(f) {
  5101. var E = this, O = [], B = [], M = this.xAxis, S = this.yAxis, w = S.stacking.stacks[this.stackKey], v = {}, a = S.series, c = a.length, p = S.options.reversedStacks ? 1 : -1, i = a.indexOf(E);
  5102. if (f = f || this.points, this.options.stacking) {
  5103. for (var h = 0; h < f.length; h++)
  5104. f[h].leftNull = f[h].rightNull = void 0, v[f[h].x] = f[h];
  5105. N(w, function(t, o) {
  5106. t.total !== null && B.push(o);
  5107. }), B.sort(function(t, o) {
  5108. return t - o;
  5109. });
  5110. var s = a.map(function(t) {
  5111. return t.visible;
  5112. });
  5113. B.forEach(function(t, o) {
  5114. var n = 0, A, _;
  5115. if (v[t] && !v[t].isNull)
  5116. O.push(v[t]), [-1, 1].forEach(function(W) {
  5117. var P = W === 1 ? "rightNull" : "leftNull", X = 0, g = w[B[o + W]];
  5118. if (g)
  5119. for (var m = i; 0 <= m && m < c; ) {
  5120. var L = a[m].index;
  5121. A = g.points[L], A || (L === E.index ? v[t][P] = !0 : s[m] && (_ = w[t].points[L]) && (X -= _[1] - _[0])), m += p;
  5122. }
  5123. v[t][W === 1 ? "rightCliff" : "leftCliff"] = X;
  5124. });
  5125. else {
  5126. for (var D = i; 0 <= D && D < c; ) {
  5127. if (A = w[t].points[a[D].index]) {
  5128. n = A[1];
  5129. break;
  5130. }
  5131. D += p;
  5132. }
  5133. n = b(n, 0), n = S.translate(n, 0, 1, 0, 1), O.push({ isNull: !0, plotX: M.translate(t, 0, 0, 0, 1), x: t, plotY: n, yBottom: n });
  5134. }
  5135. });
  5136. }
  5137. return O;
  5138. }, u.defaultOptions = R(F.defaultOptions, { threshold: 0 }), u;
  5139. }(F), y(Z.prototype, {
  5140. singleStacks: !1,
  5141. drawLegendSymbol: j.drawRectangle
  5142. }), I.registerSeriesType("area", Z), Z;
  5143. }), T(l, "Series/Spline/SplineSeries.js", [l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j) {
  5144. var I = this && this.__extends || function() {
  5145. var F = function(R, N) {
  5146. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, x) {
  5147. b.__proto__ = x;
  5148. } || function(b, x) {
  5149. for (var u in x)
  5150. x.hasOwnProperty(u) && (b[u] = x[u]);
  5151. }, F(R, N);
  5152. };
  5153. return function(R, N) {
  5154. function b() {
  5155. this.constructor = R;
  5156. }
  5157. F(R, N), R.prototype = N === null ? Object.create(N) : (b.prototype = N.prototype, new b());
  5158. };
  5159. }(), Z = y.seriesTypes.line, H = j.merge, U = j.pick;
  5160. return j = function(F) {
  5161. function R() {
  5162. var N = F !== null && F.apply(this, arguments) || this;
  5163. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  5164. }
  5165. return I(R, F), R.prototype.getPointSpline = function(N, b, x) {
  5166. var u = b.plotX || 0, f = b.plotY || 0, E = N[x - 1];
  5167. if (x = N[x + 1], E && !E.isNull && E.doCurve !== !1 && !b.isCliff && x && !x.isNull && x.doCurve !== !1 && !b.isCliff) {
  5168. N = E.plotY || 0;
  5169. var O = x.plotX || 0;
  5170. x = x.plotY || 0;
  5171. var B = 0, M = (1.5 * u + (E.plotX || 0)) / 2.5, S = (1.5 * f + N) / 2.5;
  5172. O = (1.5 * u + O) / 2.5;
  5173. var w = (1.5 * f + x) / 2.5;
  5174. O !== M && (B = (w - S) * (O - u) / (O - M) + f - w), S += B, w += B, S > N && S > f ? (S = Math.max(N, f), w = 2 * f - S) : S < N && S < f && (S = Math.min(N, f), w = 2 * f - S), w > x && w > f ? (w = Math.max(x, f), S = 2 * f - w) : w < x && w < f && (w = Math.min(x, f), S = 2 * f - w), b.rightContX = O, b.rightContY = w;
  5175. }
  5176. return b = ["C", U(E.rightContX, E.plotX, 0), U(E.rightContY, E.plotY, 0), U(M, u, 0), U(S, f, 0), u, f], E.rightContX = E.rightContY = void 0, b;
  5177. }, R.defaultOptions = H(Z.defaultOptions), R;
  5178. }(Z), y.registerSeriesType("spline", j), j;
  5179. }), T(
  5180. l,
  5181. "Series/AreaSpline/AreaSplineSeries.js",
  5182. [l["Series/Area/AreaSeries.js"], l["Series/Spline/SplineSeries.js"], l["Core/Legend/LegendSymbol.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]],
  5183. function(y, j, I, Z, H) {
  5184. var U = this && this.__extends || function() {
  5185. var b = function(x, u) {
  5186. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, E) {
  5187. f.__proto__ = E;
  5188. } || function(f, E) {
  5189. for (var O in E)
  5190. E.hasOwnProperty(O) && (f[O] = E[O]);
  5191. }, b(x, u);
  5192. };
  5193. return function(x, u) {
  5194. function f() {
  5195. this.constructor = x;
  5196. }
  5197. b(x, u), x.prototype = u === null ? Object.create(u) : (f.prototype = u.prototype, new f());
  5198. };
  5199. }(), F = y.prototype, R = H.extend, N = H.merge;
  5200. return H = function(b) {
  5201. function x() {
  5202. var u = b !== null && b.apply(this, arguments) || this;
  5203. return u.data = void 0, u.points = void 0, u.options = void 0, u;
  5204. }
  5205. return U(x, b), x.defaultOptions = N(j.defaultOptions, y.defaultOptions), x;
  5206. }(j), R(H.prototype, { getGraphPath: F.getGraphPath, getStackPoints: F.getStackPoints, drawGraph: F.drawGraph, drawLegendSymbol: I.drawRectangle }), Z.registerSeriesType("areaspline", H), H;
  5207. }
  5208. ), T(l, "Series/Column/ColumnSeries.js", [
  5209. l["Core/Animation/AnimationUtilities.js"],
  5210. l["Core/Color/Color.js"],
  5211. l["Core/Globals.js"],
  5212. l["Core/Legend/LegendSymbol.js"],
  5213. l["Core/Series/Series.js"],
  5214. l["Core/Series/SeriesRegistry.js"],
  5215. l["Core/Utilities.js"]
  5216. ], function(y, j, I, Z, H, U, F) {
  5217. var R = this && this.__extends || function() {
  5218. var c = function(p, i) {
  5219. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, s) {
  5220. h.__proto__ = s;
  5221. } || function(h, s) {
  5222. for (var t in s)
  5223. s.hasOwnProperty(t) && (h[t] = s[t]);
  5224. }, c(p, i);
  5225. };
  5226. return function(p, i) {
  5227. function h() {
  5228. this.constructor = p;
  5229. }
  5230. c(p, i), p.prototype = i === null ? Object.create(i) : (h.prototype = i.prototype, new h());
  5231. };
  5232. }(), N = y.animObject, b = j.parse, x = I.hasTouch;
  5233. y = I.noop;
  5234. var u = F.clamp, f = F.css, E = F.defined, O = F.extend, B = F.fireEvent, M = F.isArray, S = F.isNumber, w = F.merge, v = F.pick, a = F.objectEach;
  5235. return F = function(c) {
  5236. function p() {
  5237. var i = c !== null && c.apply(this, arguments) || this;
  5238. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  5239. }
  5240. return R(p, c), p.prototype.animate = function(i) {
  5241. var h = this, s = this.yAxis, t = h.options, o = this.chart.inverted, n = {}, A = o ? "translateX" : "translateY";
  5242. if (i)
  5243. n.scaleY = 1e-3, i = u(s.toPixels(t.threshold), s.pos, s.pos + s.len), o ? n.translateX = i - s.len : n.translateY = i, h.clipBox && h.setClip(), h.group.attr(n);
  5244. else {
  5245. var _ = Number(h.group.attr(A));
  5246. h.group.animate({ scaleY: 1 }, O(N(h.options.animation), { step: function(D, W) {
  5247. h.group && (n[A] = _ + W.pos * (s.pos - _), h.group.attr(n));
  5248. } }));
  5249. }
  5250. }, p.prototype.init = function(i, h) {
  5251. c.prototype.init.apply(this, arguments);
  5252. var s = this;
  5253. i = s.chart, i.hasRendered && i.series.forEach(function(t) {
  5254. t.type === s.type && (t.isDirty = !0);
  5255. });
  5256. }, p.prototype.getColumnMetrics = function() {
  5257. var i = this, h = i.options, s = i.xAxis, t = i.yAxis, o = s.options.reversedStacks;
  5258. o = s.reversed && !o || !s.reversed && o;
  5259. var n = {}, A, _ = 0;
  5260. h.grouping === !1 ? _ = 1 : i.chart.series.forEach(function(X) {
  5261. var g = X.yAxis, m = X.options;
  5262. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === g.len && t.pos === g.pos) {
  5263. if (m.stacking && m.stacking !== "group") {
  5264. A = X.stackKey, typeof n[A] > "u" && (n[A] = _++);
  5265. var L = n[A];
  5266. } else
  5267. m.grouping !== !1 && (L = _++);
  5268. X.columnIndex = L;
  5269. }
  5270. });
  5271. var D = Math.min(Math.abs(s.transA) * (s.ordinal && s.ordinal.slope || h.pointRange || s.closestPointRange || s.tickInterval || 1), s.len), W = D * h.groupPadding, P = (D - 2 * W) / (_ || 1);
  5272. return h = Math.min(h.maxPointWidth || s.len, v(h.pointWidth, P * (1 - 2 * h.pointPadding))), i.columnMetrics = { width: h, offset: (P - h) / 2 + (W + ((i.columnIndex || 0) + (o ? 1 : 0)) * P - D / 2) * (o ? -1 : 1), paddedWidth: P, columnCount: _ }, i.columnMetrics;
  5273. }, p.prototype.crispCol = function(i, h, s, t) {
  5274. var o = this.chart, n = this.borderWidth, A = -(n % 2 ? 0.5 : 0);
  5275. return n = n % 2 ? 0.5 : 1, o.inverted && o.renderer.isVML && (n += 1), this.options.crisp && (s = Math.round(i + s) + A, i = Math.round(i) + A, s -= i), t = Math.round(h + t) + n, A = 0.5 >= Math.abs(h) && 0.5 < t, h = Math.round(h) + n, t -= h, A && t && (--h, t += 1), { x: i, y: h, width: s, height: t };
  5276. }, p.prototype.adjustForMissingColumns = function(i, h, s, t) {
  5277. var o = this, n = this.options.stacking;
  5278. if (!s.isNull && 1 < t.columnCount) {
  5279. var A = 0, _ = 0;
  5280. a(this.yAxis.stacking && this.yAxis.stacking.stacks, function(D) {
  5281. if (typeof s.x == "number" && (D = D[s.x.toString()])) {
  5282. var W = D.points[o.index], P = D.total;
  5283. n ? (W && (A = _), D.hasValidPoints && _++) : M(W) && (A = W[1], _ = P || 0);
  5284. }
  5285. }), i = (s.plotX || 0) + ((_ - 1) * t.paddedWidth + h) / 2 - h - A * t.paddedWidth;
  5286. }
  5287. return i;
  5288. }, p.prototype.translate = function() {
  5289. var i = this, h = i.chart, s = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  5290. t = i.borderWidth = v(s.borderWidth, t ? 0 : 1);
  5291. var o = i.xAxis, n = i.yAxis, A = s.threshold, _ = i.translatedThreshold = n.getThreshold(A), D = v(s.minPointLength, 5), W = i.getColumnMetrics(), P = W.width, X = i.pointXOffset = W.offset, g = i.dataMin, m = i.dataMax, L = i.barW = Math.max(P, 1 + 2 * t);
  5292. h.inverted && (_ -= 0.5), s.pointPadding && (L = Math.ceil(L)), H.prototype.translate.apply(i), i.points.forEach(function(Y) {
  5293. var V = v(Y.yBottom, _), Q = 999 + Math.abs(V), k = Y.plotX || 0;
  5294. Q = u(Y.plotY, -Q, n.len + Q);
  5295. var G = Math.min(Q, V), z = Math.max(Q, V) - G, $ = P, q = k + X, it = L;
  5296. D && Math.abs(z) < D && (z = D, k = !n.reversed && !Y.negative || n.reversed && Y.negative, S(A) && S(m) && Y.y === A && m <= A && (n.min || 0) < A && (g !== m || (n.max || 0) <= A) && (k = !k), G = Math.abs(G - _) > D ? V - D : _ - (k ? D : 0)), E(Y.options.pointWidth) && ($ = it = Math.ceil(Y.options.pointWidth), q -= Math.round(($ - P) / 2)), s.centerInCategory && (q = i.adjustForMissingColumns(q, $, Y, W)), Y.barX = q, Y.pointWidth = $, Y.tooltipPos = h.inverted ? [u(n.len + n.pos - h.plotLeft - Q, n.pos - h.plotLeft, n.len + n.pos - h.plotLeft), o.len + o.pos - h.plotTop - q - it / 2, z] : [o.left - h.plotLeft + q + it / 2, u(Q + n.pos - h.plotTop, n.pos - h.plotTop, n.len + n.pos - h.plotTop), z], Y.shapeType = i.pointClass.prototype.shapeType || "rect", Y.shapeArgs = i.crispCol.apply(i, Y.isNull ? [q, _, it, 0] : [q, G, it, z]);
  5297. });
  5298. }, p.prototype.drawGraph = function() {
  5299. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  5300. }, p.prototype.pointAttribs = function(i, h) {
  5301. var s = this.options, t = this.pointAttrToOptions || {}, o = t.stroke || "borderColor", n = t["stroke-width"] || "borderWidth", A = i && i.color || this.color, _ = i && i[o] || s[o] || A;
  5302. t = i && i.options.dashStyle || s.dashStyle;
  5303. var D = i && i[n] || s[n] || this[n] || 0, W = v(i && i.opacity, s.opacity, 1);
  5304. if (i && this.zones.length) {
  5305. var P = i.getZone();
  5306. A = i.options.color || P && (P.color || i.nonZonedColor) || this.color, P && (_ = P.borderColor || _, t = P.dashStyle || t, D = P.borderWidth || D);
  5307. }
  5308. return h && i && (i = w(s.states[h], i.options.states && i.options.states[h] || {}), h = i.brightness, A = i.color || typeof h < "u" && b(A).brighten(i.brightness).get() || A, _ = i[o] || _, D = i[n] || D, t = i.dashStyle || t, W = v(i.opacity, W)), o = { fill: A, stroke: _, "stroke-width": D, opacity: W }, t && (o.dashstyle = t), o;
  5309. }, p.prototype.drawPoints = function() {
  5310. var i = this, h = this.chart, s = i.options, t = h.renderer, o = s.animationLimit || 250, n;
  5311. i.points.forEach(function(A) {
  5312. var _ = A.graphic, D = !!_, W = _ && h.pointCount < o ? "animate" : "attr";
  5313. S(A.plotY) && A.y !== null ? (n = A.shapeArgs, _ && A.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (A.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), _ || (A.graphic = _ = t[A.shapeType](n).add(A.group || i.group)) && i.enabledDataSorting && h.hasRendered && h.pointCount < o && (_.attr({ x: A.startXPos }), D = !0, W = "animate"), _ && D && _[W](w(n)), s.borderRadius && _[W]({ r: s.borderRadius }), h.styledMode || _[W](i.pointAttribs(A, A.selected && "select")).shadow(A.allowShadow !== !1 && s.shadow, null, s.stacking && !s.borderRadius), _ && (_.addClass(A.getClassName(), !0), _.attr({ visibility: A.visible ? "inherit" : "hidden" }))) : _ && (A.graphic = _.destroy());
  5314. });
  5315. }, p.prototype.drawTracker = function() {
  5316. var i = this, h = i.chart, s = h.pointer, t = function(n) {
  5317. var A = s.getPointFromEvent(n);
  5318. typeof A < "u" && (s.isDirectTouch = !0, A.onMouseOver(n));
  5319. }, o;
  5320. i.points.forEach(function(n) {
  5321. o = M(n.dataLabels) ? n.dataLabels : n.dataLabel ? [n.dataLabel] : [], n.graphic && (n.graphic.element.point = n), o.forEach(function(A) {
  5322. A.div ? A.div.point = n : A.element.point = n;
  5323. });
  5324. }), i._hasTracking || (i.trackerGroups.forEach(function(n) {
  5325. i[n] && (i[n].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(A) {
  5326. s.onTrackerMouseOut(A);
  5327. }), x && i[n].on(
  5328. "touchstart",
  5329. t
  5330. ), !h.styledMode && i.options.cursor && i[n].css(f).css({ cursor: i.options.cursor }));
  5331. }), i._hasTracking = !0), B(this, "afterDrawTracker");
  5332. }, p.prototype.remove = function() {
  5333. var i = this, h = i.chart;
  5334. h.hasRendered && h.series.forEach(function(s) {
  5335. s.type === i.type && (s.isDirty = !0);
  5336. }), H.prototype.remove.apply(i, arguments);
  5337. }, p.defaultOptions = w(H.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  5338. hover: { halo: !1, brightness: 0.1 },
  5339. select: { color: "#cccccc", borderColor: "#000000" }
  5340. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), p;
  5341. }(H), O(F.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: Z.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), U.registerSeriesType("column", F), F;
  5342. }), T(l, "Core/Series/DataLabel.js", [
  5343. l["Core/Animation/AnimationUtilities.js"],
  5344. l["Core/FormatUtilities.js"],
  5345. l["Core/Utilities.js"]
  5346. ], function(y, j, I) {
  5347. var Z = y.getDeferredAnimation, H = j.format, U = I.defined, F = I.extend, R = I.fireEvent, N = I.isArray, b = I.merge, x = I.objectEach, u = I.pick, f = I.splat, E;
  5348. return function(O) {
  5349. function B(p, i, h, s, t) {
  5350. var o = this, n = this.chart, A = this.isCartesian && n.inverted, _ = this.enabledDataSorting, D = u(p.dlBox && p.dlBox.centerX, p.plotX, -9999), W = u(p.plotY, -9999), P = i.getBBox(), X = h.rotation, g = h.align, m = n.isInsidePlot(D, Math.round(W), { inverted: A, paneCoordinates: !0, series: o }), L = function(k) {
  5351. _ && o.xAxis && !Y && o.setDataLabelStartPos(
  5352. p,
  5353. i,
  5354. t,
  5355. m,
  5356. k
  5357. );
  5358. }, Y = u(h.overflow, _ ? "none" : "justify") === "justify", V = this.visible && p.visible !== !1 && (p.series.forceDL || _ && !Y || m || u(h.inside, !!this.options.stacking) && s && n.isInsidePlot(D, A ? s.x + 1 : s.y + s.height - 1, { inverted: A, paneCoordinates: !0, series: o }));
  5359. if (V) {
  5360. var Q = n.renderer.fontMetrics(n.styledMode ? void 0 : h.style.fontSize, i).b;
  5361. s = F({ x: A ? this.yAxis.len - W : D, y: Math.round(A ? this.xAxis.len - D : W), width: 0, height: 0 }, s), F(h, { width: P.width, height: P.height }), X ? (Y = !1, D = n.renderer.rotCorr(Q, X), D = { x: s.x + (h.x || 0) + s.width / 2 + D.x, y: s.y + (h.y || 0) + { top: 0, middle: 0.5, bottom: 1 }[h.verticalAlign] * s.height }, L(D), i[t ? "attr" : "animate"](D).attr({ align: g }), L = (X + 720) % 360, L = 180 < L && 360 > L, g === "left" ? D.y -= L ? P.height : 0 : g === "center" ? (D.x -= P.width / 2, D.y -= P.height / 2) : g === "right" && (D.x -= P.width, D.y -= L ? 0 : P.height), i.placed = !0, i.alignAttr = D) : (L(s), i.align(h, void 0, s), D = i.alignAttr), Y && 0 <= s.height ? this.justifyDataLabel(i, h, D, P, s, t) : u(h.crop, !0) && (V = n.isInsidePlot(D.x, D.y, { paneCoordinates: !0, series: o }) && n.isInsidePlot(D.x + P.width, D.y + P.height, {
  5362. paneCoordinates: !0,
  5363. series: o
  5364. })), h.shape && !X && i[t ? "attr" : "animate"]({ anchorX: A ? n.plotWidth - p.plotY : p.plotX, anchorY: A ? n.plotHeight - p.plotX : p.plotY });
  5365. }
  5366. t && _ && (i.placed = !1), V || _ && !Y || (i.hide(!0), i.placed = !1);
  5367. }
  5368. function M(p, i) {
  5369. var h = i.filter;
  5370. return h ? (i = h.operator, p = p[h.property], h = h.value, i === ">" && p > h || i === "<" && p < h || i === ">=" && p >= h || i === "<=" && p <= h || i === "==" && p == h || i === "===" && p === h) : !0;
  5371. }
  5372. function S() {
  5373. var p = this, i = p.chart, h = p.options, s = p.points, t = p.hasRendered || 0, o = i.renderer, n = h.dataLabels, A, _ = n.animation;
  5374. if (_ = n.defer ? Z(
  5375. i,
  5376. _,
  5377. p
  5378. ) : { defer: 0, duration: 0 }, n = v(v(i.options.plotOptions && i.options.plotOptions.series && i.options.plotOptions.series.dataLabels, i.options.plotOptions && i.options.plotOptions[p.type] && i.options.plotOptions[p.type].dataLabels), n), R(this, "drawDataLabels"), N(n) || n.enabled || p._hasPointLabels) {
  5379. var D = p.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", n.zIndex || 6);
  5380. D.attr({ opacity: +t }), !t && (t = p.dataLabelsGroup) && (p.visible && D.show(!0), t[h.animation ? "animate" : "attr"]({ opacity: 1 }, _)), s.forEach(function(W) {
  5381. A = f(v(n, W.dlOptions || W.options && W.options.dataLabels)), A.forEach(function(P, X) {
  5382. var g = P.enabled && (!W.isNull || W.dataLabelOnNull) && M(W, P), m = W.connectors ? W.connectors[X] : W.connector, L = W.dataLabels ? W.dataLabels[X] : W.dataLabel, Y = u(P.distance, W.labelDistance), V = !L;
  5383. if (g) {
  5384. var Q = W.getLabelConfig(), k = u(P[W.formatPrefix + "Format"], P.format);
  5385. Q = U(k) ? H(k, Q, i) : (P[W.formatPrefix + "Formatter"] || P.formatter).call(Q, P), k = P.style;
  5386. var G = P.rotation;
  5387. i.styledMode || (k.color = u(P.color, k.color, p.color, "#000000"), k.color === "contrast" ? (W.contrastColor = o.getContrast(W.color || p.color), k.color = !U(Y) && P.inside || 0 > Y || h.stacking ? W.contrastColor : "#000000") : delete W.contrastColor, h.cursor && (k.cursor = h.cursor));
  5388. var z = { r: P.borderRadius || 0, rotation: G, padding: P.padding, zIndex: 1 };
  5389. i.styledMode || (z.fill = P.backgroundColor, z.stroke = P.borderColor, z["stroke-width"] = P.borderWidth), x(z, function($, q) {
  5390. typeof $ > "u" && delete z[q];
  5391. });
  5392. }
  5393. !L || g && U(Q) && !!L.div == !!P.useHTML || (W.dataLabel = L = W.dataLabel && W.dataLabel.destroy(), W.dataLabels && (W.dataLabels.length === 1 ? delete W.dataLabels : delete W.dataLabels[X]), X || delete W.dataLabel, m && (W.connector = W.connector.destroy(), W.connectors && (W.connectors.length === 1 ? delete W.connectors : delete W.connectors[X]))), g && U(Q) && (L ? z.text = Q : (W.dataLabels = W.dataLabels || [], L = W.dataLabels[X] = G ? o.text(Q, 0, -9999, P.useHTML).addClass("highcharts-data-label") : o.label(Q, 0, -9999, P.shape, null, null, P.useHTML, null, "data-label"), X || (W.dataLabel = L), L.addClass(" highcharts-data-label-color-" + W.colorIndex + " " + (P.className || "") + (P.useHTML ? " highcharts-tracker" : ""))), L.options = P, L.attr(z), i.styledMode || L.css(k).shadow(P.shadow), L.added || L.add(D), P.textPath && !P.useHTML && (L.setTextPath(W.getDataLabelPath && W.getDataLabelPath(L) || W.graphic, P.textPath), W.dataLabelPath && !P.textPath.enabled && (W.dataLabelPath = W.dataLabelPath.destroy())), p.alignDataLabel(W, L, P, null, V));
  5394. });
  5395. });
  5396. }
  5397. R(this, "afterDrawDataLabels");
  5398. }
  5399. function w(p, i, h, s, t, o) {
  5400. var n = this.chart, A = i.align, _ = i.verticalAlign, D = p.box ? 0 : p.padding || 0, W = i.x;
  5401. W = W === void 0 ? 0 : W;
  5402. var P = i.y;
  5403. P = P === void 0 ? 0 : P;
  5404. var X = (h.x || 0) + D;
  5405. if (0 > X) {
  5406. A === "right" && 0 <= W ? (i.align = "left", i.inside = !0) : W -= X;
  5407. var g = !0;
  5408. }
  5409. return X = (h.x || 0) + s.width - D, X > n.plotWidth && (A === "left" && 0 >= W ? (i.align = "right", i.inside = !0) : W += n.plotWidth - X, g = !0), X = h.y + D, 0 > X && (_ === "bottom" && 0 <= P ? (i.verticalAlign = "top", i.inside = !0) : P -= X, g = !0), X = (h.y || 0) + s.height - D, X > n.plotHeight && (_ === "top" && 0 >= P ? (i.verticalAlign = "bottom", i.inside = !0) : P += n.plotHeight - X, g = !0), g && (i.x = W, i.y = P, p.placed = !o, p.align(i, void 0, t)), g;
  5410. }
  5411. function v(p, i) {
  5412. var h = [], s;
  5413. if (N(p) && !N(i))
  5414. h = p.map(function(t) {
  5415. return b(t, i);
  5416. });
  5417. else if (N(i) && !N(p))
  5418. h = i.map(function(t) {
  5419. return b(p, t);
  5420. });
  5421. else if (N(p) || N(i))
  5422. for (s = Math.max(p.length, i.length); s--; )
  5423. h[s] = b(p[s], i[s]);
  5424. else
  5425. h = b(p, i);
  5426. return h;
  5427. }
  5428. function a(p, i, h, s, t) {
  5429. var o = this.chart, n = o.inverted, A = this.xAxis, _ = A.reversed, D = n ? i.height / 2 : i.width / 2;
  5430. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = n ? t.x : _ ? -D - p : A.width - D + p, i.startYPos = n ? _ ? this.yAxis.height - D + p : -D - p : t.y, s ? i.visibility === "hidden" && (i.show(), i.attr({ opacity: 0 }).animate({ opacity: 1 })) : i.attr({ opacity: 1 }).animate(
  5431. { opacity: 0 },
  5432. void 0,
  5433. i.hide
  5434. ), o.hasRendered && (h && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  5435. }
  5436. var c = [];
  5437. O.compose = function(p) {
  5438. if (c.indexOf(p) === -1) {
  5439. var i = p.prototype;
  5440. c.push(p), i.alignDataLabel = B, i.drawDataLabels = S, i.justifyDataLabel = w, i.setDataLabelStartPos = a;
  5441. }
  5442. };
  5443. }(E || (E = {})), E;
  5444. }), T(l, "Series/Column/ColumnDataLabel.js", [l["Core/Series/DataLabel.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5445. var Z = j.series, H = I.merge, U = I.pick, F;
  5446. return function(R) {
  5447. function N(x, u, f, E, O) {
  5448. var B = this.chart.inverted, M = x.series, S = (M.xAxis ? M.xAxis.len : this.chart.plotSizeX) || 0;
  5449. M = (M.yAxis ? M.yAxis.len : this.chart.plotSizeY) || 0;
  5450. var w = x.dlBox || x.shapeArgs, v = U(x.below, x.plotY > U(this.translatedThreshold, M)), a = U(f.inside, !!this.options.stacking);
  5451. w && (E = H(w), 0 > E.y && (E.height += E.y, E.y = 0), w = E.y + E.height - M, 0 < w && w < E.height && (E.height -= w), B && (E = { x: M - E.y - E.height, y: S - E.x - E.width, width: E.height, height: E.width }), a || (B ? (E.x += v ? 0 : E.width, E.width = 0) : (E.y += v ? E.height : 0, E.height = 0))), f.align = U(f.align, !B || a ? "center" : v ? "right" : "left"), f.verticalAlign = U(f.verticalAlign, B || a ? "middle" : v ? "top" : "bottom"), Z.prototype.alignDataLabel.call(this, x, u, f, E, O), f.inside && x.contrastColor && u.css({ color: x.contrastColor });
  5452. }
  5453. var b = [];
  5454. R.compose = function(x) {
  5455. y.compose(Z), b.indexOf(x) === -1 && (b.push(x), x.prototype.alignDataLabel = N);
  5456. };
  5457. }(F || (F = {})), F;
  5458. }), T(l, "Series/Bar/BarSeries.js", [l["Series/Column/ColumnSeries.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5459. var Z = this && this.__extends || function() {
  5460. var F = function(R, N) {
  5461. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, x) {
  5462. b.__proto__ = x;
  5463. } || function(b, x) {
  5464. for (var u in x)
  5465. x.hasOwnProperty(u) && (b[u] = x[u]);
  5466. }, F(R, N);
  5467. };
  5468. return function(R, N) {
  5469. function b() {
  5470. this.constructor = R;
  5471. }
  5472. F(R, N), R.prototype = N === null ? Object.create(N) : (b.prototype = N.prototype, new b());
  5473. };
  5474. }(), H = I.extend, U = I.merge;
  5475. return I = function(F) {
  5476. function R() {
  5477. var N = F !== null && F.apply(this, arguments) || this;
  5478. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  5479. }
  5480. return Z(R, F), R.defaultOptions = U(
  5481. y.defaultOptions,
  5482. {}
  5483. ), R;
  5484. }(y), H(I.prototype, { inverted: !0 }), j.registerSeriesType("bar", I), I;
  5485. }), T(l, "Series/Scatter/ScatterSeries.js", [l["Series/Column/ColumnSeries.js"], l["Series/Line/LineSeries.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  5486. var H = this && this.__extends || function() {
  5487. var N = function(b, x) {
  5488. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, f) {
  5489. u.__proto__ = f;
  5490. } || function(u, f) {
  5491. for (var E in f)
  5492. f.hasOwnProperty(E) && (u[E] = f[E]);
  5493. }, N(b, x);
  5494. };
  5495. return function(b, x) {
  5496. function u() {
  5497. this.constructor = b;
  5498. }
  5499. N(b, x), b.prototype = x === null ? Object.create(x) : (u.prototype = x.prototype, new u());
  5500. };
  5501. }(), U = Z.addEvent, F = Z.extend, R = Z.merge;
  5502. return Z = function(N) {
  5503. function b() {
  5504. var x = N !== null && N.apply(this, arguments) || this;
  5505. return x.data = void 0, x.options = void 0, x.points = void 0, x;
  5506. }
  5507. return H(b, N), b.prototype.applyJitter = function() {
  5508. var x = this, u = this.options.jitter, f = this.points.length;
  5509. u && this.points.forEach(function(E, O) {
  5510. ["x", "y"].forEach(function(B, M) {
  5511. var S = "plot" + B.toUpperCase();
  5512. if (u[B] && !E.isNull) {
  5513. var w = x[B + "Axis"], v = u[B] * w.transA;
  5514. if (w && !w.isLog) {
  5515. var a = Math.max(0, E[S] - v);
  5516. w = Math.min(w.len, E[S] + v), M = 1e4 * Math.sin(O + M * f), E[S] = a + (w - a) * (M - Math.floor(M)), B === "x" && (E.clientX = E.plotX);
  5517. }
  5518. }
  5519. });
  5520. });
  5521. }, b.prototype.drawGraph = function() {
  5522. this.options.lineWidth ? N.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  5523. }, b.defaultOptions = R(j.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  5524. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  5525. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  5526. } }), b;
  5527. }(j), F(Z.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), U(Z, "afterTranslate", function() {
  5528. this.applyJitter();
  5529. }), I.registerSeriesType("scatter", Z), Z;
  5530. }), T(l, "Series/CenteredUtilities.js", [l["Core/Globals.js"], l["Core/Series/Series.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5531. var Z = y.deg2rad, H = I.isNumber, U = I.pick, F = I.relativeLength, R;
  5532. return function(N) {
  5533. N.getCenter = function() {
  5534. var b = this.options, x = this.chart, u = 2 * (b.slicedOffset || 0), f = x.plotWidth - 2 * u, E = x.plotHeight - 2 * u, O = b.center, B = Math.min(f, E), M = b.size, S = b.innerSize || 0;
  5535. for (typeof M == "string" && (M = parseFloat(M)), typeof S == "string" && (S = parseFloat(S)), b = [U(O[0], "50%"), U(O[1], "50%"), U(M && 0 > M ? void 0 : b.size, "100%"), U(S && 0 > S ? void 0 : b.innerSize || 0, "0%")], !x.angular || this instanceof j || (b[3] = 0), O = 0; 4 > O; ++O)
  5536. M = b[O], x = 2 > O || O === 2 && /%$/.test(M), b[O] = F(M, [f, E, B, b[2]][O]) + (x ? u : 0);
  5537. return b[3] > b[2] && (b[3] = b[2]), b;
  5538. }, N.getStartAndEndRadians = function(b, x) {
  5539. return b = H(b) ? b : 0, x = H(x) && x > b && 360 > x - b ? x : b + 360, { start: Z * (b + -90), end: Z * (x + -90) };
  5540. };
  5541. }(R || (R = {})), R;
  5542. }), T(l, "Series/Pie/PiePoint.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Series/Point.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5543. var Z = this && this.__extends || function() {
  5544. var x = function(u, f) {
  5545. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(E, O) {
  5546. E.__proto__ = O;
  5547. } || function(E, O) {
  5548. for (var B in O)
  5549. O.hasOwnProperty(B) && (E[B] = O[B]);
  5550. }, x(u, f);
  5551. };
  5552. return function(u, f) {
  5553. function E() {
  5554. this.constructor = u;
  5555. }
  5556. x(u, f), u.prototype = f === null ? Object.create(f) : (E.prototype = f.prototype, new E());
  5557. };
  5558. }(), H = y.setAnimation, U = I.addEvent, F = I.defined;
  5559. y = I.extend;
  5560. var R = I.isNumber, N = I.pick, b = I.relativeLength;
  5561. return j = function(x) {
  5562. function u() {
  5563. var f = x !== null && x.apply(this, arguments) || this;
  5564. return f.labelDistance = void 0, f.options = void 0, f.series = void 0, f;
  5565. }
  5566. return Z(u, x), u.prototype.getConnectorPath = function() {
  5567. var f = this.labelPosition, E = this.series.options.dataLabels, O = this.connectorShapes, B = E.connectorShape;
  5568. return O[B] && (B = O[B]), B.call(this, { x: f.final.x, y: f.final.y, alignment: f.alignment }, f.connectorPosition, E);
  5569. }, u.prototype.getTranslate = function() {
  5570. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  5571. }, u.prototype.haloPath = function(f) {
  5572. var E = this.shapeArgs;
  5573. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(E.x, E.y, E.r + f, E.r + f, { innerR: E.r - 1, start: E.start, end: E.end });
  5574. }, u.prototype.init = function() {
  5575. var f = this;
  5576. x.prototype.init.apply(
  5577. this,
  5578. arguments
  5579. ), this.name = N(this.name, "Slice");
  5580. var E = function(O) {
  5581. f.slice(O.type === "select");
  5582. };
  5583. return U(this, "select", E), U(this, "unselect", E), this;
  5584. }, u.prototype.isValid = function() {
  5585. return R(this.y) && 0 <= this.y;
  5586. }, u.prototype.setVisible = function(f, E) {
  5587. var O = this, B = this.series, M = B.chart, S = B.options.ignoreHiddenPoint;
  5588. E = N(E, S), f !== this.visible && (this.visible = this.options.visible = f = typeof f > "u" ? !this.visible : f, B.options.data[B.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(w) {
  5589. O[w] && O[w][f ? "show" : "hide"](f);
  5590. }), this.legendItem && M.legend.colorizeItem(this, f), f || this.state !== "hover" || this.setState(""), S && (B.isDirty = !0), E && M.redraw());
  5591. }, u.prototype.slice = function(f, E, O) {
  5592. var B = this.series;
  5593. H(O, B.chart), N(E, !0), this.sliced = this.options.sliced = F(f) ? f : !this.sliced, B.options.data[B.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  5594. }, u;
  5595. }(j), y(j.prototype, { connectorShapes: { fixedOffset: function(x, u, f) {
  5596. var E = u.breakAt;
  5597. return u = u.touchingSliceAt, [["M", x.x, x.y], f.softConnector ? ["C", x.x + (x.alignment === "left" ? -5 : 5), x.y, 2 * E.x - u.x, 2 * E.y - u.y, E.x, E.y] : ["L", E.x, E.y], ["L", u.x, u.y]];
  5598. }, straight: function(x, u) {
  5599. return u = u.touchingSliceAt, [["M", x.x, x.y], ["L", u.x, u.y]];
  5600. }, crookedLine: function(x, u, f) {
  5601. u = u.touchingSliceAt;
  5602. var E = this.series, O = E.center[0], B = E.chart.plotWidth, M = E.chart.plotLeft;
  5603. E = x.alignment;
  5604. var S = this.shapeArgs.r;
  5605. return f = b(f.crookDistance, 1), B = E === "left" ? O + S + (B + M - O - S) * (1 - f) : M + (O - S) * f, f = ["L", B, x.y], O = !0, (E === "left" ? B > x.x || B < u.x : B < x.x || B > u.x) && (O = !1), x = [["M", x.x, x.y]], O && x.push(f), x.push(["L", u.x, u.y]), x;
  5606. } } }), j;
  5607. }), T(l, "Series/Pie/PieSeries.js", [l["Series/CenteredUtilities.js"], l["Series/Column/ColumnSeries.js"], l["Core/Globals.js"], l["Core/Legend/LegendSymbol.js"], l["Series/Pie/PiePoint.js"], l["Core/Series/Series.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Renderer/SVG/Symbols.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F, R, N) {
  5608. var b = this && this.__extends || function() {
  5609. var S = function(w, v) {
  5610. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, c) {
  5611. a.__proto__ = c;
  5612. } || function(a, c) {
  5613. for (var p in c)
  5614. c.hasOwnProperty(p) && (a[p] = c[p]);
  5615. }, S(w, v);
  5616. };
  5617. return function(w, v) {
  5618. function a() {
  5619. this.constructor = w;
  5620. }
  5621. S(w, v), w.prototype = v === null ? Object.create(v) : (a.prototype = v.prototype, new a());
  5622. };
  5623. }(), x = y.getStartAndEndRadians;
  5624. I = I.noop;
  5625. var u = N.clamp, f = N.extend, E = N.fireEvent, O = N.merge, B = N.pick, M = N.relativeLength;
  5626. return N = function(S) {
  5627. function w() {
  5628. var v = S !== null && S.apply(this, arguments) || this;
  5629. return v.center = void 0, v.data = void 0, v.maxLabelDistance = void 0, v.options = void 0, v.points = void 0, v;
  5630. }
  5631. return b(w, S), w.prototype.animate = function(v) {
  5632. var a = this, c = a.points, p = a.startAngleRad;
  5633. v || c.forEach(function(i) {
  5634. var h = i.graphic, s = i.shapeArgs;
  5635. h && s && (h.attr({ r: B(i.startR, a.center && a.center[3] / 2), start: p, end: p }), h.animate({ r: s.r, start: s.start, end: s.end }, a.options.animation));
  5636. });
  5637. }, w.prototype.drawEmpty = function() {
  5638. var v = this.startAngleRad, a = this.endAngleRad, c = this.options;
  5639. if (this.total === 0 && this.center) {
  5640. var p = this.center[0], i = this.center[1];
  5641. this.graph || (this.graph = this.chart.renderer.arc(p, i, this.center[1] / 2, 0, v, a).addClass("highcharts-empty-series").add(this.group)), this.graph.attr({ d: R.arc(p, i, this.center[2] / 2, 0, { start: v, end: a, innerR: this.center[3] / 2 }) }), this.chart.styledMode || this.graph.attr({ "stroke-width": c.borderWidth, fill: c.fillColor || "none", stroke: c.color || "#cccccc" });
  5642. } else
  5643. this.graph && (this.graph = this.graph.destroy());
  5644. }, w.prototype.drawPoints = function() {
  5645. var v = this.chart.renderer;
  5646. this.points.forEach(function(a) {
  5647. a.graphic && a.hasNewShapeType() && (a.graphic = a.graphic.destroy()), a.graphic || (a.graphic = v[a.shapeType](a.shapeArgs).add(a.series.group), a.delayedRendering = !0);
  5648. });
  5649. }, w.prototype.generatePoints = function() {
  5650. S.prototype.generatePoints.call(this), this.updateTotals();
  5651. }, w.prototype.getX = function(v, a, c) {
  5652. var p = this.center, i = this.radii ? this.radii[c.index] || 0 : p[2] / 2;
  5653. return v = Math.asin(u((v - p[1]) / (i + c.labelDistance), -1, 1)), p[0] + (a ? -1 : 1) * Math.cos(v) * (i + c.labelDistance) + (0 < c.labelDistance ? (a ? -1 : 1) * this.options.dataLabels.padding : 0);
  5654. }, w.prototype.hasData = function() {
  5655. return !!this.processedXData.length;
  5656. }, w.prototype.redrawPoints = function() {
  5657. var v = this, a = v.chart, c = a.renderer, p = v.options.shadow, i, h, s, t;
  5658. this.drawEmpty(), !p || v.shadowGroup || a.styledMode || (v.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(v.group)), v.points.forEach(function(o) {
  5659. var n = {};
  5660. if (h = o.graphic, !o.isNull && h) {
  5661. var A = void 0;
  5662. t = o.shapeArgs, i = o.getTranslate(), a.styledMode || (A = o.shadowGroup, p && !A && (A = o.shadowGroup = c.g("shadow").add(v.shadowGroup)), A && A.attr(i), s = v.pointAttribs(o, o.selected && "select")), o.delayedRendering ? (h.setRadialReference(v.center).attr(t).attr(i), a.styledMode || h.attr(s).attr({ "stroke-linejoin": "round" }).shadow(p, A), o.delayedRendering = !1) : (h.setRadialReference(v.center), a.styledMode || O(!0, n, s), O(!0, n, t, i), h.animate(n)), h.attr({ visibility: o.visible ? "inherit" : "hidden" }), h.addClass(o.getClassName(), !0);
  5663. } else
  5664. h && (o.graphic = h.destroy());
  5665. });
  5666. }, w.prototype.sortByAngle = function(v, a) {
  5667. v.sort(function(c, p) {
  5668. return typeof c.angle < "u" && (p.angle - c.angle) * a;
  5669. });
  5670. }, w.prototype.translate = function(v) {
  5671. this.generatePoints();
  5672. var a = this.options, c = a.slicedOffset, p = c + (a.borderWidth || 0), i = x(a.startAngle, a.endAngle), h = this.startAngleRad = i.start;
  5673. i = (this.endAngleRad = i.end) - h;
  5674. var s = this.points, t = a.dataLabels.distance;
  5675. a = a.ignoreHiddenPoint;
  5676. var o = s.length, n, A = 0;
  5677. for (v || (this.center = v = this.getCenter()), n = 0; n < o; n++) {
  5678. var _ = s[n], D = h + A * i;
  5679. !_.isValid() || a && !_.visible || (A += _.percentage / 100);
  5680. var W = h + A * i, P = { x: v[0], y: v[1], r: v[2] / 2, innerR: v[3] / 2, start: Math.round(1e3 * D) / 1e3, end: Math.round(1e3 * W) / 1e3 };
  5681. _.shapeType = "arc", _.shapeArgs = P, _.labelDistance = B(_.options.dataLabels && _.options.dataLabels.distance, t), _.labelDistance = M(_.labelDistance, P.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, _.labelDistance), W = (W + D) / 2, W > 1.5 * Math.PI ? W -= 2 * Math.PI : W < -Math.PI / 2 && (W += 2 * Math.PI), _.slicedTranslation = { translateX: Math.round(Math.cos(W) * c), translateY: Math.round(Math.sin(W) * c) }, P = Math.cos(W) * v[2] / 2;
  5682. var X = Math.sin(W) * v[2] / 2;
  5683. _.tooltipPos = [v[0] + 0.7 * P, v[1] + 0.7 * X], _.half = W < -Math.PI / 2 || W > Math.PI / 2 ? 1 : 0, _.angle = W, D = Math.min(p, _.labelDistance / 5), _.labelPosition = { natural: { x: v[0] + P + Math.cos(W) * _.labelDistance, y: v[1] + X + Math.sin(W) * _.labelDistance }, final: {}, alignment: 0 > _.labelDistance ? "center" : _.half ? "right" : "left", connectorPosition: { breakAt: { x: v[0] + P + Math.cos(W) * D, y: v[1] + X + Math.sin(W) * D }, touchingSliceAt: { x: v[0] + P, y: v[1] + X } } };
  5684. }
  5685. E(this, "afterTranslate");
  5686. }, w.prototype.updateTotals = function() {
  5687. var v = this.points, a = v.length, c = this.options.ignoreHiddenPoint, p, i = 0;
  5688. for (p = 0; p < a; p++) {
  5689. var h = v[p];
  5690. !h.isValid() || c && !h.visible || (i += h.y);
  5691. }
  5692. for (this.total = i, p = 0; p < a; p++)
  5693. h = v[p], h.percentage = 0 < i && (h.visible || !c) ? h.y / i * 100 : 0, h.total = i;
  5694. }, w.defaultOptions = O(U.defaultOptions, {
  5695. center: [null, null],
  5696. clip: !1,
  5697. colorByPoint: !0,
  5698. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  5699. return this.point.isNull ? void 0 : this.point.name;
  5700. }, softConnector: !0, x: 0 },
  5701. fillColor: void 0,
  5702. ignoreHiddenPoint: !0,
  5703. inactiveOtherPoints: !0,
  5704. legendType: "point",
  5705. marker: null,
  5706. size: null,
  5707. showInLegend: !1,
  5708. slicedOffset: 10,
  5709. stickyTracking: !1,
  5710. tooltip: { followPointer: !0 },
  5711. borderColor: "#ffffff",
  5712. borderWidth: 1,
  5713. lineWidth: void 0,
  5714. states: { hover: { brightness: 0.1 } }
  5715. }), w;
  5716. }(U), f(N.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: Z.drawRectangle, drawTracker: j.prototype.drawTracker, getCenter: y.getCenter, getSymbol: I, isCartesian: !1, noSharedTooltip: !0, pointAttribs: j.prototype.pointAttribs, pointClass: H, requireSorting: !1, searchPoint: I, trackerGroups: ["group", "dataLabelsGroup"] }), F.registerSeriesType("pie", N), N;
  5717. }), T(l, "Series/Pie/PieDataLabel.js", [
  5718. l["Core/Series/DataLabel.js"],
  5719. l["Core/Globals.js"],
  5720. l["Core/Renderer/RendererUtilities.js"],
  5721. l["Core/Series/SeriesRegistry.js"],
  5722. l["Core/Utilities.js"]
  5723. ], function(y, j, I, Z, H) {
  5724. var U = j.noop, F = I.distribute, R = Z.series, N = H.arrayMax, b = H.clamp, x = H.defined, u = H.merge, f = H.pick, E = H.relativeLength, O;
  5725. return function(B) {
  5726. function M() {
  5727. var c = this, p = c.data, i = c.chart, h = c.options.dataLabels || {}, s = h.connectorPadding, t = i.plotWidth, o = i.plotHeight, n = i.plotLeft, A = Math.round(i.chartWidth / 3), _ = c.center, D = _[2] / 2, W = _[1], P = [[], []], X = [0, 0, 0, 0], g = c.dataLabelPositioners, m, L, Y, V, Q, k, G, z, $, q, it, et;
  5728. c.visible && (h.enabled || c._hasPointLabels) && (p.forEach(function(nt) {
  5729. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  5730. }), R.prototype.drawDataLabels.apply(c), p.forEach(function(nt) {
  5731. nt.dataLabel && (nt.visible ? (P[nt.half].push(nt), nt.dataLabel._pos = null, !x(h.style.width) && !x(nt.options.dataLabels && nt.options.dataLabels.style && nt.options.dataLabels.style.width) && nt.dataLabel.getBBox().width > A && (nt.dataLabel.css({ width: Math.round(0.7 * A) + "px" }), nt.dataLabel.shortened = !0)) : (nt.dataLabel = nt.dataLabel.destroy(), nt.dataLabels && nt.dataLabels.length === 1 && delete nt.dataLabels));
  5732. }), P.forEach(function(nt, rt) {
  5733. var ct = nt.length, gt = [], dt;
  5734. if (ct) {
  5735. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  5736. var ht = Math.max(0, W - D - c.maxLabelDistance), at = Math.min(W + D + c.maxLabelDistance, i.plotHeight);
  5737. nt.forEach(function(J) {
  5738. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, W - D - J.labelDistance), J.bottom = Math.min(W + D + J.labelDistance, i.plotHeight), dt = J.dataLabel.getBBox().height || 21, J.distributeBox = { target: J.labelPosition.natural.y - J.top + dt / 2, size: dt, rank: J.y }, gt.push(J.distributeBox));
  5739. }), ht = at + dt - ht, F(gt, ht, ht / 5);
  5740. }
  5741. for (it = 0; it < ct; it++) {
  5742. if (m = nt[it], k = m.labelPosition, V = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", $ = ht = k.natural.y, gt && x(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (G = m.distributeBox.size, $ = g.radialDistributionY(m))), delete m.positionIndex, h.justify)
  5743. z = g.justify(m, D, _);
  5744. else
  5745. switch (h.alignTo) {
  5746. case "connectors":
  5747. z = g.alignToConnectors(nt, rt, t, n);
  5748. break;
  5749. case "plotEdges":
  5750. z = g.alignToPlotEdges(V, rt, t, n);
  5751. break;
  5752. default:
  5753. z = g.radialDistributionX(c, m, $, ht);
  5754. }
  5755. V._attr = { visibility: q, align: k.alignment }, et = m.options.dataLabels || {}, V._pos = { x: z + f(et.x, h.x) + ({ left: s, right: -s }[k.alignment] || 0), y: $ + f(et.y, h.y) - 10 }, k.final.x = z, k.final.y = $, f(h.crop, !0) && (Q = V.getBBox().width, ht = null, z - Q < s && rt === 1 ? (ht = Math.round(Q - z + s), X[3] = Math.max(ht, X[3])) : z + Q > t - s && rt === 0 && (ht = Math.round(z + Q - t + s), X[1] = Math.max(ht, X[1])), 0 > $ - G / 2 ? X[0] = Math.max(Math.round(-$ + G / 2), X[0]) : $ + G / 2 > o && (X[2] = Math.max(Math.round($ + G / 2 - o), X[2])), V.sideOverflow = ht);
  5756. }
  5757. }
  5758. }), N(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  5759. if (et = u(h, nt.options.dataLabels), L = f(et.connectorWidth, 1)) {
  5760. var rt;
  5761. Y = nt.connector, (V = nt.dataLabel) && V._pos && nt.visible && 0 < nt.labelDistance ? (q = V._attr.visibility, (rt = !Y) && (nt.connector = Y = i.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + nt.colorIndex + (nt.className ? " " + nt.className : "")).add(c.dataLabelsGroup), i.styledMode || Y.attr({ "stroke-width": L, stroke: et.connectorColor || nt.color || "#666666" })), Y[rt ? "attr" : "animate"]({ d: nt.getConnectorPath() }), Y.attr("visibility", q)) : Y && (nt.connector = Y.destroy());
  5762. }
  5763. }));
  5764. }
  5765. function S() {
  5766. this.points.forEach(function(c) {
  5767. var p = c.dataLabel, i;
  5768. p && c.visible && ((i = p._pos) ? (p.sideOverflow && (p._attr.width = Math.max(p.getBBox().width - p.sideOverflow, 0), p.css({ width: p._attr.width + "px", textOverflow: (this.options.dataLabels.style || {}).textOverflow || "ellipsis" }), p.shortened = !0), p.attr(p._attr), p[p.moved ? "animate" : "attr"](i), p.moved = !0) : p && p.attr({ y: -9999 })), delete c.distributeBox;
  5769. }, this);
  5770. }
  5771. function w(c) {
  5772. var p = this.center, i = this.options, h = i.center, s = i.minSize || 80, t = i.size !== null;
  5773. if (!t) {
  5774. if (h[0] !== null)
  5775. var o = Math.max(p[2] - Math.max(c[1], c[3]), s);
  5776. else
  5777. o = Math.max(p[2] - c[1] - c[3], s), p[0] += (c[3] - c[1]) / 2;
  5778. h[1] !== null ? o = b(o, s, p[2] - Math.max(c[0], c[2])) : (o = b(o, s, p[2] - c[0] - c[2]), p[1] += (c[0] - c[2]) / 2), o < p[2] ? (p[2] = o, p[3] = Math.min(E(i.innerSize || 0, o), o), this.translate(p), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  5779. }
  5780. return t;
  5781. }
  5782. var v = [], a = { radialDistributionY: function(c) {
  5783. return c.top + c.distributeBox.pos;
  5784. }, radialDistributionX: function(c, p, i, h) {
  5785. return c.getX(i < p.top + 2 || i > p.bottom - 2 ? h : i, p.half, p);
  5786. }, justify: function(c, p, i) {
  5787. return i[0] + (c.half ? -1 : 1) * (p + c.labelDistance);
  5788. }, alignToPlotEdges: function(c, p, i, h) {
  5789. return c = c.getBBox().width, p ? c + h : i - c - h;
  5790. }, alignToConnectors: function(c, p, i, h) {
  5791. var s = 0, t;
  5792. return c.forEach(function(o) {
  5793. t = o.dataLabel.getBBox().width, t > s && (s = t);
  5794. }), p ? s + h : i - s - h;
  5795. } };
  5796. B.compose = function(c) {
  5797. y.compose(R), v.indexOf(c) === -1 && (v.push(c), c = c.prototype, c.dataLabelPositioners = a, c.alignDataLabel = U, c.drawDataLabels = M, c.placeDataLabels = S, c.verifyDataLabelOverflow = w);
  5798. };
  5799. }(O || (O = {})), O;
  5800. }), T(l, "Extensions/OverlappingDataLabels.js", [l["Core/Chart/Chart.js"], l["Core/Utilities.js"]], function(y, j) {
  5801. function I(b, x) {
  5802. var u = !1;
  5803. if (b) {
  5804. var f = b.newOpacity;
  5805. b.oldOpacity !== f && (b.alignAttr && b.placed ? (b[f ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), u = !0, b.alignAttr.opacity = f, b[b.isOld ? "animate" : "attr"](b.alignAttr, null, function() {
  5806. x.styledMode || b.css({ pointerEvents: f ? "auto" : "none" });
  5807. }), H(x, "afterHideOverlappingLabel")) : b.attr({ opacity: f })), b.isOld = !0;
  5808. }
  5809. return u;
  5810. }
  5811. var Z = j.addEvent, H = j.fireEvent, U = j.isArray, F = j.isNumber, R = j.objectEach, N = j.pick;
  5812. Z(y, "render", function() {
  5813. var b = this, x = [];
  5814. (this.labelCollectors || []).forEach(function(u) {
  5815. x = x.concat(u());
  5816. }), (this.yAxis || []).forEach(function(u) {
  5817. u.stacking && u.options.stackLabels && !u.options.stackLabels.allowOverlap && R(u.stacking.stacks, function(f) {
  5818. R(f, function(E) {
  5819. E.label && E.label.visibility !== "hidden" && x.push(E.label);
  5820. });
  5821. });
  5822. }), (this.series || []).forEach(function(u) {
  5823. var f = u.options.dataLabels;
  5824. u.visible && (f.enabled !== !1 || u._hasPointLabels) && (f = function(E) {
  5825. return E.forEach(function(O) {
  5826. O.visible && (U(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(B) {
  5827. var M = B.options;
  5828. B.labelrank = N(M.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), M.allowOverlap ? (B.oldOpacity = B.opacity, B.newOpacity = 1, I(B, b)) : x.push(B);
  5829. });
  5830. });
  5831. }, f(u.nodes || []), f(u.points));
  5832. }), this.hideOverlappingLabels(x);
  5833. }), y.prototype.hideOverlappingLabels = function(b) {
  5834. var x = this, u = b.length, f = x.renderer, E, O, B, M = !1, S = function(a) {
  5835. var c, p = a.box ? 0 : a.padding || 0, i = c = 0, h;
  5836. if (a && (!a.alignAttr || a.placed)) {
  5837. var s = a.alignAttr || { x: a.attr("x"), y: a.attr("y") }, t = a.parentGroup;
  5838. a.width || (c = a.getBBox(), a.width = c.width, a.height = c.height, c = f.fontMetrics(null, a.element).h);
  5839. var o = a.width - 2 * p;
  5840. return (h = { left: "0", center: "0.5", right: "1" }[a.alignValue]) ? i = +h * o : F(a.x) && Math.round(a.x) !== a.translateX && (i = a.x - a.translateX), { x: s.x + (t.translateX || 0) + p - (i || 0), y: s.y + (t.translateY || 0) + p - c, width: a.width - 2 * p, height: a.height - 2 * p };
  5841. }
  5842. };
  5843. for (O = 0; O < u; O++)
  5844. (E = b[O]) && (E.oldOpacity = E.opacity, E.newOpacity = 1, E.absoluteBox = S(E));
  5845. for (b.sort(function(a, c) {
  5846. return (c.labelrank || 0) - (a.labelrank || 0);
  5847. }), O = 0; O < u; O++) {
  5848. var w = (S = b[O]) && S.absoluteBox;
  5849. for (E = O + 1; E < u; ++E) {
  5850. var v = (B = b[E]) && B.absoluteBox;
  5851. !w || !v || S === B || S.newOpacity === 0 || B.newOpacity === 0 || v.x >= w.x + w.width || v.x + v.width <= w.x || v.y >= w.y + w.height || v.y + v.height <= w.y || ((S.labelrank < B.labelrank ? S : B).newOpacity = 0);
  5852. }
  5853. }
  5854. b.forEach(function(a) {
  5855. I(a, x) && (M = !0);
  5856. }), M && H(x, "afterHideAllOverlappingLabels");
  5857. };
  5858. }), T(
  5859. l,
  5860. "Core/Responsive.js",
  5861. [l["Core/Utilities.js"]],
  5862. function(y) {
  5863. var j = y.extend, I = y.find, Z = y.isArray, H = y.isObject, U = y.merge, F = y.objectEach, R = y.pick, N = y.splat, b = y.uniqueKey, x;
  5864. return function(u) {
  5865. var f = [];
  5866. u.compose = function(O) {
  5867. return f.indexOf(O) === -1 && (f.push(O), j(O.prototype, E.prototype)), O;
  5868. };
  5869. var E = function() {
  5870. function O() {
  5871. }
  5872. return O.prototype.currentOptions = function(B) {
  5873. function M(v, a, c, p) {
  5874. var i;
  5875. F(v, function(h, s) {
  5876. if (!p && -1 < S.collectionsWithUpdate.indexOf(s) && a[s])
  5877. for (h = N(h), c[s] = [], i = 0; i < Math.max(h.length, a[s].length); i++)
  5878. a[s][i] && (h[i] === void 0 ? c[s][i] = a[s][i] : (c[s][i] = {}, M(h[i], a[s][i], c[s][i], p + 1)));
  5879. else
  5880. H(h) ? (c[s] = Z(h) ? [] : {}, M(h, a[s] || {}, c[s], p + 1)) : c[s] = typeof a[s] > "u" ? null : a[s];
  5881. });
  5882. }
  5883. var S = this, w = {};
  5884. return M(B, this.options, w, 0), w;
  5885. }, O.prototype.matchResponsiveRule = function(B, M) {
  5886. var S = B.condition;
  5887. (S.callback || function() {
  5888. return this.chartWidth <= R(S.maxWidth, Number.MAX_VALUE) && this.chartHeight <= R(S.maxHeight, Number.MAX_VALUE) && this.chartWidth >= R(S.minWidth, 0) && this.chartHeight >= R(S.minHeight, 0);
  5889. }).call(this) && M.push(B._id);
  5890. }, O.prototype.setResponsive = function(B, M) {
  5891. var S = this, w = this.options.responsive, v = this.currentResponsive, a = [];
  5892. !M && w && w.rules && w.rules.forEach(function(c) {
  5893. typeof c._id > "u" && (c._id = b()), S.matchResponsiveRule(c, a);
  5894. }, this), M = U.apply(void 0, a.map(function(c) {
  5895. return I((w || {}).rules || [], function(p) {
  5896. return p._id === c;
  5897. });
  5898. }).map(function(c) {
  5899. return c && c.chartOptions;
  5900. })), M.isResponsiveOptions = !0, a = a.toString() || void 0, a !== (v && v.ruleIds) && (v && this.update(v.undoOptions, B, !0), a ? (v = this.currentOptions(M), v.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: a, mergedOptions: M, undoOptions: v }, this.update(M, B, !0)) : this.currentResponsive = void 0);
  5901. }, O;
  5902. }();
  5903. }(x || (x = {})), x;
  5904. }
  5905. ), T(l, "masters/highcharts.src.js", [
  5906. l["Core/Globals.js"],
  5907. l["Core/Utilities.js"],
  5908. l["Core/DefaultOptions.js"],
  5909. l["Core/Animation/Fx.js"],
  5910. l["Core/Animation/AnimationUtilities.js"],
  5911. l["Core/Renderer/HTML/AST.js"],
  5912. l["Core/FormatUtilities.js"],
  5913. l["Core/Renderer/RendererUtilities.js"],
  5914. l["Core/Renderer/SVG/SVGElement.js"],
  5915. l["Core/Renderer/SVG/SVGRenderer.js"],
  5916. l["Core/Renderer/HTML/HTMLElement.js"],
  5917. l["Core/Renderer/HTML/HTMLRenderer.js"],
  5918. l["Core/Axis/Axis.js"],
  5919. l["Core/Axis/DateTimeAxis.js"],
  5920. l["Core/Axis/LogarithmicAxis.js"],
  5921. l["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  5922. l["Core/Axis/Tick.js"],
  5923. l["Core/Tooltip.js"],
  5924. l["Core/Series/Point.js"],
  5925. l["Core/Pointer.js"],
  5926. l["Core/MSPointer.js"],
  5927. l["Core/Legend/Legend.js"],
  5928. l["Core/Chart/Chart.js"],
  5929. l["Core/Series/Series.js"],
  5930. l["Core/Series/SeriesRegistry.js"],
  5931. l["Series/Column/ColumnSeries.js"],
  5932. l["Series/Column/ColumnDataLabel.js"],
  5933. l["Series/Pie/PieSeries.js"],
  5934. l["Series/Pie/PieDataLabel.js"],
  5935. l["Core/Series/DataLabel.js"],
  5936. l["Core/Responsive.js"],
  5937. l["Core/Color/Color.js"],
  5938. l["Core/Time.js"]
  5939. ], function(y, j, I, Z, H, U, F, R, N, b, x, u, f, E, O, B, M, S, w, v, a, c, p, i, h, s, t, o, n, A, _, D, W) {
  5940. return y.animate = H.animate, y.animObject = H.animObject, y.getDeferredAnimation = H.getDeferredAnimation, y.setAnimation = H.setAnimation, y.stop = H.stop, y.timers = Z.timers, y.AST = U, y.Axis = f, y.Chart = p, y.chart = p.chart, y.Fx = Z, y.Legend = c, y.PlotLineOrBand = B, y.Point = w, y.Pointer = a.isRequired() ? a : v, y.Series = i, y.SVGElement = N, y.SVGRenderer = b, y.Tick = M, y.Time = W, y.Tooltip = S, y.Color = D, y.color = D.parse, u.compose(b), x.compose(N), y.defaultOptions = I.defaultOptions, y.getOptions = I.getOptions, y.time = I.defaultTime, y.setOptions = I.setOptions, y.dateFormat = F.dateFormat, y.format = F.format, y.numberFormat = F.numberFormat, y.addEvent = j.addEvent, y.arrayMax = j.arrayMax, y.arrayMin = j.arrayMin, y.attr = j.attr, y.clearTimeout = j.clearTimeout, y.correctFloat = j.correctFloat, y.createElement = j.createElement, y.css = j.css, y.defined = j.defined, y.destroyObjectProperties = j.destroyObjectProperties, y.discardElement = j.discardElement, y.distribute = R.distribute, y.erase = j.erase, y.error = j.error, y.extend = j.extend, y.extendClass = j.extendClass, y.find = j.find, y.fireEvent = j.fireEvent, y.getMagnitude = j.getMagnitude, y.getStyle = j.getStyle, y.inArray = j.inArray, y.isArray = j.isArray, y.isClass = j.isClass, y.isDOMElement = j.isDOMElement, y.isFunction = j.isFunction, y.isNumber = j.isNumber, y.isObject = j.isObject, y.isString = j.isString, y.keys = j.keys, y.merge = j.merge, y.normalizeTickInterval = j.normalizeTickInterval, y.objectEach = j.objectEach, y.offset = j.offset, y.pad = j.pad, y.pick = j.pick, y.pInt = j.pInt, y.relativeLength = j.relativeLength, y.removeEvent = j.removeEvent, y.seriesType = h.seriesType, y.splat = j.splat, y.stableSort = j.stableSort, y.syncTimeout = j.syncTimeout, y.timeUnits = j.timeUnits, y.uniqueKey = j.uniqueKey, y.useSerialIds = j.useSerialIds, y.wrap = j.wrap, t.compose(s), A.compose(i), E.compose(f), O.compose(f), n.compose(o), B.compose(f), _.compose(p), y;
  5941. }), T(l, "Core/Axis/OrdinalAxis.js", [
  5942. l["Core/Axis/Axis.js"],
  5943. l["Core/Globals.js"],
  5944. l["Core/Series/Series.js"],
  5945. l["Core/Utilities.js"]
  5946. ], function(y, j, I, Z) {
  5947. var H = Z.addEvent, U = Z.correctFloat, F = Z.css, R = Z.defined, N = Z.error, b = Z.pick, x = Z.timeUnits, u = [], f;
  5948. return function(E) {
  5949. function O(t, o, n, A, _, D, W) {
  5950. _ === void 0 && (_ = []), D === void 0 && (D = 0);
  5951. var P = {}, X = this.options.tickPixelInterval, g = this.chart.time, m = [], L, Y, V = 0, Q = [], k = -Number.MAX_VALUE;
  5952. if (!this.options.ordinal && !this.options.breaks || !_ || 3 > _.length || typeof o > "u")
  5953. return g.getTimeTicks.apply(g, arguments);
  5954. var G = _.length;
  5955. for (L = 0; L < G; L++) {
  5956. var z = L && _[L - 1] > n;
  5957. if (_[L] < o && (V = L), L === G - 1 || _[L + 1] - _[L] > 5 * D || z) {
  5958. if (_[L] > k) {
  5959. for (Y = g.getTimeTicks(t, _[V], _[L], A); Y.length && Y[0] <= k; )
  5960. Y.shift();
  5961. Y.length && (k = Y[Y.length - 1]), m.push(Q.length), Q = Q.concat(Y);
  5962. }
  5963. V = L + 1;
  5964. }
  5965. if (z)
  5966. break;
  5967. }
  5968. if (Y) {
  5969. if (Y = Y.info, W && Y.unitRange <= x.hour) {
  5970. for (L = Q.length - 1, V = 1; V < L; V++)
  5971. if (g.dateFormat("%d", Q[V]) !== g.dateFormat("%d", Q[V - 1])) {
  5972. P[Q[V]] = "day";
  5973. var $ = !0;
  5974. }
  5975. $ && (P[Q[0]] = "day"), Y.higherRanks = P;
  5976. }
  5977. Y.segmentStarts = m, Q.info = Y;
  5978. } else
  5979. N(12, !1, this.chart);
  5980. if (W && R(X)) {
  5981. for (Y = Q.length, g = [], V = [], L = void 0, $ = Y; $--; )
  5982. m = this.translate(Q[$]), L && (V[$] = L - m), g[$] = L = m;
  5983. for (V.sort(), V = V[Math.floor(V.length / 2)], V < 0.6 * X && (V = null), $ = Q[Y - 1] > n ? Y - 1 : Y, L = void 0; $--; )
  5984. m = g[$], Y = Math.abs(L - m), L && Y < 0.8 * X && (V === null || Y < 0.8 * V) ? (P[Q[$]] && !P[Q[$ + 1]] ? (Y = $ + 1, L = m) : Y = $, Q.splice(Y, 1)) : L = m;
  5985. }
  5986. return Q;
  5987. }
  5988. function B(t) {
  5989. var o = this.ordinal.positions;
  5990. if (!o)
  5991. return t;
  5992. var n = o.length - 1;
  5993. if (0 > t)
  5994. t = o[0];
  5995. else if (t > n)
  5996. t = o[n];
  5997. else {
  5998. n = Math.floor(t);
  5999. var A = t - n;
  6000. }
  6001. return typeof A < "u" && typeof o[n] < "u" ? o[n] + (A ? A * (o[n + 1] - o[n]) : 0) : t;
  6002. }
  6003. function M(t) {
  6004. var o = this.ordinal, n = o.positions;
  6005. if (!n)
  6006. return t;
  6007. var A = (t - (this.old ? this.old.min : this.min)) * (this.old ? this.old.transA : this.transA) + this.minPixelPadding;
  6008. if (0 < A && A < this.left + this.len || (o.extendedOrdinalPositions || (o.extendedOrdinalPositions = o.getExtendedPositions()), n = o.extendedOrdinalPositions), n && n.length) {
  6009. if (t = o.getIndexOfPoint(A, n), o = U(t % 1), 0 <= t && t < n.length - 1)
  6010. return n[Math.floor(t)] + o * (n[Math.ceil(t)] - n[Math.floor(t)]);
  6011. o = n.length, A = n[0], n = n[o - 1];
  6012. var _ = (n - A) / (o - 1);
  6013. return 0 > t ? A + _ * t : n + _ * (t - o);
  6014. }
  6015. return t;
  6016. }
  6017. function S(t, o) {
  6018. var n = E.Additions.findIndexOf(t, o, !0);
  6019. return t[n] === o ? n : n + (o - t[n]) / (t[n + 1] - t[n]);
  6020. }
  6021. function w() {
  6022. this.ordinal || (this.ordinal = new E.Additions(this));
  6023. }
  6024. function v() {
  6025. this.isXAxis && R(this.options.overscroll) && this.max === this.dataMax && (!this.chart.mouseIsDown || this.isInternal) && (!this.eventArgs || this.eventArgs && this.eventArgs.trigger !== "navigator") && (this.max += this.options.overscroll, !this.isInternal && R(this.userMin) && (this.min += this.options.overscroll));
  6026. }
  6027. function a() {
  6028. this.horiz && !this.isDirty && (this.isDirty = this.isOrdinal && this.chart.navigator && !this.chart.navigator.adaptToUpdatedData);
  6029. }
  6030. function c() {
  6031. this.ordinal && (this.ordinal.beforeSetTickPositions(), this.tickInterval = this.ordinal.postProcessTickInterval(this.tickInterval));
  6032. }
  6033. function p(t) {
  6034. var o = this.xAxis[0], n = o.options.overscroll, A = t.originalEvent.chartX, _ = this.options.chart.panning, D = !1;
  6035. if (_ && _.type !== "y" && o.options.ordinal && o.series.length) {
  6036. var W = this.mouseDownX, P = o.getExtremes(), X = P.dataMax, g = P.min, m = P.max, L = this.hoverPoints, Y = o.closestPointRange || o.ordinal && o.ordinal.overscrollPointsRange;
  6037. W = (W - A) / (o.translationSlope * (o.ordinal.slope || Y)), Y = { ordinal: { positions: o.ordinal.getExtendedPositions() } };
  6038. var V = o.index2val, Q = o.val2lin, k = void 0, G = k = void 0, z = void 0;
  6039. Y.ordinal.positions ? 1 < Math.abs(W) && (L && L.forEach(function($) {
  6040. $.setState();
  6041. }), 0 > W ? (G = Y, z = o.ordinal.positions ? o : Y) : (G = o.ordinal.positions ? o : Y, z = Y), k = z.ordinal.positions, X > k[k.length - 1] && k.push(X), this.fixedRange = m - g, k = o.navigatorAxis.toFixedRange(void 0, void 0, V.apply(G, [Q.apply(G, [g, !0]) + W]), V.apply(z, [Q.apply(z, [m, !0]) + W])), k.min >= Math.min(
  6042. P.dataMin,
  6043. g
  6044. ) && k.max <= Math.max(X, m) + n && o.setExtremes(k.min, k.max, !0, !1, { trigger: "pan" }), this.mouseDownX = A, F(this.container, { cursor: "move" })) : D = !0;
  6045. } else
  6046. D = !0;
  6047. D || _ && /y/.test(_.type) ? n && (o.max = o.dataMax + n) : t.preventDefault();
  6048. }
  6049. function i() {
  6050. var t = this.xAxis;
  6051. t && t.options.ordinal && (delete t.ordinal.index, delete t.ordinal.extendedOrdinalPositions);
  6052. }
  6053. function h(t, o) {
  6054. var n = this.ordinal, A = n.positions, _ = n.slope, D = n.extendedOrdinalPositions;
  6055. if (!A)
  6056. return t;
  6057. var W = A.length;
  6058. if (A[0] <= t && A[W - 1] >= t)
  6059. t = S(A, t);
  6060. else {
  6061. if (D || (D = n.getExtendedPositions && n.getExtendedPositions(), n.extendedOrdinalPositions = D), !D || !D.length)
  6062. return t;
  6063. W = D.length, _ || (_ = (D[W - 1] - D[0]) / W), A = S(D, A[0]), t >= D[0] && t <= D[W - 1] ? t = S(D, t) - A : t < D[0] ? (t = D[0] - t, t = -A - t / _) : (t -= D[W - 1], t = t / _ + W - A);
  6064. }
  6065. return o ? t : _ * (t || 0) + n.offset;
  6066. }
  6067. E.compose = function(t, o, n) {
  6068. if (u.indexOf(t) === -1) {
  6069. u.push(t);
  6070. var A = t.prototype;
  6071. A.getTimeTicks = O, A.index2val = B, A.lin2val = M, A.val2lin = h, A.ordinal2lin = A.val2lin, H(t, "afterInit", w), H(t, "foundExtremes", v), H(t, "afterSetScale", a), H(t, "initialAxisTranslation", c);
  6072. }
  6073. return u.indexOf(n) === -1 && (u.push(n), H(n, "pan", p)), u.indexOf(o) === -1 && (u.push(o), H(o, "updatedData", i)), t;
  6074. };
  6075. var s = function() {
  6076. function t(o) {
  6077. this.index = {}, this.axis = o;
  6078. }
  6079. return t.prototype.beforeSetTickPositions = function() {
  6080. var o = this.axis, n = o.ordinal, A = o.getExtremes(), _ = A.min, D = A.max, W = o.isXAxis && !!o.options.breaks;
  6081. A = o.options.ordinal;
  6082. var P = o.chart.options.chart.ignoreHiddenSeries, X, g, m = [], L = Number.MAX_VALUE, Y = !1;
  6083. if (A || W) {
  6084. o.series.forEach(function(k, G) {
  6085. if (X = [], !(P && k.visible === !1 || k.takeOrdinalPosition === !1 && !W) && (m = m.concat(k.processedXData), V = m.length, m.sort(function(z, $) {
  6086. return z - $;
  6087. }), L = Math.min(L, b(k.closestPointRange, L)), V)) {
  6088. for (G = 0; G < V - 1; )
  6089. m[G] !== m[G + 1] && X.push(m[G + 1]), G++;
  6090. X[0] !== m[0] && X.unshift(m[0]), m = X;
  6091. }
  6092. });
  6093. var V = m.length;
  6094. if (2 < V) {
  6095. var Q = m[1] - m[0];
  6096. for (g = V - 1; g-- && !Y; )
  6097. m[g + 1] - m[g] !== Q && (Y = !0);
  6098. !o.options.keepOrdinalPadding && (m[0] - _ > Q || D - m[m.length - 1] > Q) && (Y = !0);
  6099. } else
  6100. o.options.overscroll && (V === 2 ? L = m[1] - m[0] : V === 1 ? (L = o.options.overscroll, m = [m[0], m[0] + L]) : L = n.overscrollPointsRange);
  6101. Y || o.forceOrdinal ? (o.options.overscroll && (n.overscrollPointsRange = L, m = m.concat(n.getOverscrollPositions())), n.positions = m, Q = o.ordinal2lin(Math.max(_, m[0]), !0), g = Math.max(o.ordinal2lin(Math.min(D, m[m.length - 1]), !0), 1), n.slope = D = (D - _) / (g - Q), n.offset = _ - Q * D) : (n.overscrollPointsRange = b(o.closestPointRange, n.overscrollPointsRange), n.positions = o.ordinal.slope = n.offset = void 0);
  6102. }
  6103. o.isOrdinal = A && Y, n.groupIntervalFactor = null;
  6104. }, t.findIndexOf = function(o, n, A) {
  6105. for (var _ = 0, D = o.length - 1, W; _ < D; )
  6106. W = Math.ceil((_ + D) / 2), o[W] <= n ? _ = W : D = W - 1;
  6107. return o[_] === n || A ? _ : -1;
  6108. }, t.prototype.getExtendedPositions = function() {
  6109. var o = this, n = o.axis, A = n.constructor.prototype, _ = n.chart, D = n.series[0].currentDataGrouping, W = D ? D.count + D.unitName : "raw", P = n.options.overscroll, X = n.getExtremes(), g = void 0, m = o.index;
  6110. if (m || (m = o.index = {}), !m[W]) {
  6111. var L = {
  6112. series: [],
  6113. chart: _,
  6114. forceOrdinal: !1,
  6115. getExtremes: function() {
  6116. return { min: X.dataMin, max: X.dataMax + P };
  6117. },
  6118. getGroupPixelWidth: A.getGroupPixelWidth,
  6119. getTimeTicks: A.getTimeTicks,
  6120. options: { ordinal: !0 },
  6121. ordinal: { getGroupIntervalFactor: this.getGroupIntervalFactor },
  6122. ordinal2lin: A.ordinal2lin,
  6123. getIndexOfPoint: A.getIndexOfPoint,
  6124. val2lin: A.val2lin
  6125. };
  6126. L.ordinal.axis = L, n.series.forEach(function(Y) {
  6127. g = { xAxis: L, xData: Y.xData.slice(), chart: _, destroyGroupedData: j.noop, getProcessedData: I.prototype.getProcessedData, applyGrouping: I.prototype.applyGrouping }, g.xData = g.xData.concat(o.getOverscrollPositions()), g.options = { dataGrouping: D ? { firstAnchor: "firstPoint", anchor: "middle", lastAnchor: "lastPoint", enabled: !0, forced: !0, approximation: "open", units: [[D.unitName, [D.count]]] } : { enabled: !1 } }, L.series.push(g), Y.processData.apply(g);
  6128. }), g.closestPointRange !== g.basePointRange && g.currentDataGrouping && (L.forceOrdinal = !0), n.ordinal.beforeSetTickPositions.apply({ axis: L }), m[W] = L.ordinal.positions;
  6129. }
  6130. return m[W];
  6131. }, t.prototype.getGroupIntervalFactor = function(o, n, A) {
  6132. A = A.processedXData;
  6133. var _ = A.length, D = [], W = this.groupIntervalFactor;
  6134. if (!W) {
  6135. for (W = 0; W < _ - 1; W++)
  6136. D[W] = A[W + 1] - A[W];
  6137. D.sort(function(P, X) {
  6138. return P - X;
  6139. }), D = D[Math.floor(_ / 2)], o = Math.max(o, A[0]), n = Math.min(n, A[_ - 1]), this.groupIntervalFactor = W = _ * D / (n - o);
  6140. }
  6141. return W;
  6142. }, t.prototype.getIndexOfPoint = function(o, n) {
  6143. var A = this.axis, _ = this.positions ? this.positions[0] : 0, D = A.series[0].points && A.series[0].points[0] && A.series[0].points[0].plotX || A.minPixelPadding;
  6144. return 1 < A.series.length && A.series.forEach(function(W) {
  6145. W.points && R(W.points[0]) && R(W.points[0].plotX) && W.points[0].plotX < D && (D = W.points[0].plotX);
  6146. }), o = (o - D) / (A.translationSlope * (this.slope || A.closestPointRange || this.overscrollPointsRange)), t.findIndexOf(n, _) + o;
  6147. }, t.prototype.getOverscrollPositions = function() {
  6148. var o = this.axis, n = o.options.overscroll, A = this.overscrollPointsRange, _ = [], D = o.dataMax;
  6149. if (R(A))
  6150. for (; D <= o.dataMax + n; )
  6151. D += A, _.push(D);
  6152. return _;
  6153. }, t.prototype.postProcessTickInterval = function(o) {
  6154. var n = this.axis, A = this.slope;
  6155. return A ? n.options.breaks ? n.closestPointRange || o : o / (A / n.closestPointRange) : o;
  6156. }, t;
  6157. }();
  6158. E.Additions = s;
  6159. }(f || (f = {})), f;
  6160. }), T(l, "Series/DataModifyComposition.js", [l["Core/Axis/Axis.js"], l["Core/Series/Point.js"], l["Core/Series/Series.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  6161. var H = j.prototype.tooltipFormatter, U = Z.addEvent, F = Z.arrayMax, R = Z.arrayMin, N = Z.correctFloat, b = Z.defined, x = Z.isArray, u = Z.isNumber, f = Z.isString, E = Z.pick, O;
  6162. return function(B) {
  6163. function M(o, n, A) {
  6164. this.isXAxis || (this.series.forEach(function(_) {
  6165. o === "compare" && typeof n != "boolean" ? _.setCompare(n, !1) : o !== "cumulative" || f(n) || _.setCumulative(n, !1);
  6166. }), E(A, !0) && this.chart.redraw());
  6167. }
  6168. function S(o) {
  6169. var n = this, A = n.series.chart.numberFormatter, _ = function(D) {
  6170. o = o.replace("{point." + D + "}", (0 < n[D] && D === "change" ? "+" : "") + A(n[D], E(n.series.tooltipOptions.changeDecimals, 2)));
  6171. };
  6172. return b(n.change) && _("change"), b(n.cumulativeSum) && _("cumulativeSum"), H.apply(this, [o]);
  6173. }
  6174. function w() {
  6175. var o = this.options.compare;
  6176. if (o === "percent" || o === "value" || this.options.cumulative) {
  6177. var n = new t(this);
  6178. o === "percent" || o === "value" ? n.initCompare(o) : n.initCumulative();
  6179. }
  6180. this.dataModify = n;
  6181. }
  6182. function v(o) {
  6183. o = o.dataExtremes;
  6184. var n = o.activeYData;
  6185. if (this.dataModify && o) {
  6186. var A = void 0;
  6187. this.options.compare ? A = [this.dataModify.modifyValue(o.dataMin), this.dataModify.modifyValue(o.dataMax)] : this.options.cumulative && x(n) && 2 <= n.length && (A = t.getCumulativeExtremes(n)), A && (o.dataMin = R(A), o.dataMax = F(A));
  6188. }
  6189. }
  6190. function a(o, n) {
  6191. this.options.compare = this.userOptions.compare = o, this.update({}, E(n, !0)), !this.dataModify || o !== "value" && o !== "percent" ? this.points.forEach(function(A) {
  6192. delete A.change;
  6193. }) : this.dataModify.initCompare(o);
  6194. }
  6195. function c() {
  6196. if (this.xAxis && this.processedYData && this.dataModify) {
  6197. var o = this.processedXData, n = this.processedYData, A = n.length, _ = this.options.compareStart === !0 ? 0 : 1, D = -1, W;
  6198. for (this.pointArrayMap && (D = this.pointArrayMap.indexOf(this.options.pointValKey || this.pointValKey || "y")), W = 0; W < A - _; W++) {
  6199. var P = n[W] && -1 < D ? n[W][D] : n[W];
  6200. if (u(P) && P !== 0 && o[W + _] >= (this.xAxis.min || 0)) {
  6201. this.dataModify.compareValue = P;
  6202. break;
  6203. }
  6204. }
  6205. }
  6206. }
  6207. function p(o, n) {
  6208. this.setModifier("compare", o, n);
  6209. }
  6210. function i(o, n) {
  6211. o = E(o, !1), this.options.cumulative = this.userOptions.cumulative = o, this.update({}, E(n, !0)), this.dataModify ? this.dataModify.initCumulative() : this.points.forEach(function(A) {
  6212. delete A.cumulativeSum;
  6213. });
  6214. }
  6215. function h(o, n) {
  6216. this.setModifier("cumulative", o, n);
  6217. }
  6218. var s = [];
  6219. B.compose = function(o, n, A) {
  6220. if (s.indexOf(o) === -1) {
  6221. s.push(o);
  6222. var _ = o.prototype;
  6223. _.setCompare = a, _.setCumulative = i, U(o, "afterInit", w), U(o, "afterGetExtremes", v), U(o, "afterProcessData", c);
  6224. }
  6225. return s.indexOf(n) === -1 && (s.push(n), n = n.prototype, n.setCompare = p, n.setModifier = M, n.setCumulative = h), s.indexOf(A) === -1 && (s.push(A), A.prototype.tooltipFormatter = S), o;
  6226. };
  6227. var t = function() {
  6228. function o(n) {
  6229. this.series = n;
  6230. }
  6231. return o.prototype.modifyValue = function() {
  6232. return 0;
  6233. }, o.getCumulativeExtremes = function(n) {
  6234. var A = 1 / 0, _ = -1 / 0;
  6235. return n.reduce(function(D, W) {
  6236. return W = D + W, A = Math.min(A, W, D), _ = Math.max(
  6237. _,
  6238. W,
  6239. D
  6240. ), W;
  6241. }), [A, _];
  6242. }, o.prototype.initCompare = function(n) {
  6243. this.modifyValue = function(A, _) {
  6244. A === null && (A = 0);
  6245. var D = this.compareValue;
  6246. return typeof A < "u" && typeof D < "u" ? (A = n === "value" ? A - D : A / D * 100 - (this.series.options.compareBase === 100 ? 0 : 100), typeof _ < "u" && (_ = this.series.points[_]) && (_.change = A), A) : 0;
  6247. };
  6248. }, o.prototype.initCumulative = function() {
  6249. this.modifyValue = function(n, A) {
  6250. if (n === null && (n = 0), n !== void 0 && A !== void 0) {
  6251. var _ = 0 < A ? this.series.points[A - 1] : null;
  6252. return _ && _.cumulativeSum && (n = N(_.cumulativeSum + n)), (A = this.series.points[A]) && (A.cumulativeSum = n), n;
  6253. }
  6254. return 0;
  6255. };
  6256. }, o;
  6257. }();
  6258. B.Additions = t;
  6259. }(O || (O = {})), O;
  6260. }), T(l, "Core/Axis/BrokenAxis.js", [l["Extensions/Stacking.js"], l["Core/Utilities.js"]], function(y, j) {
  6261. var I = j.addEvent, Z = j.find, H = j.fireEvent, U = j.isArray, F = j.isNumber, R = j.pick, N;
  6262. return function(b) {
  6263. function x() {
  6264. typeof this.brokenAxis < "u" && this.brokenAxis.setBreaks(this.options.breaks, !1);
  6265. }
  6266. function u() {
  6267. this.brokenAxis && this.brokenAxis.hasBreaks && (this.options.ordinal = !1);
  6268. }
  6269. function f() {
  6270. var a = this.brokenAxis;
  6271. if (a && a.hasBreaks) {
  6272. for (var c = this.tickPositions, p = this.tickPositions.info, i = [], h = 0; h < c.length; h++)
  6273. a.isInAnyBreak(c[h]) || i.push(c[h]);
  6274. this.tickPositions = i, this.tickPositions.info = p;
  6275. }
  6276. }
  6277. function E() {
  6278. this.brokenAxis || (this.brokenAxis = new v(this));
  6279. }
  6280. function O() {
  6281. var a = this.options.connectNulls, c = this.points, p = this.xAxis, i = this.yAxis;
  6282. if (this.isDirty)
  6283. for (var h = c.length; h--; ) {
  6284. var s = c[h], t = !(s.y === null && a === !1) && (p && p.brokenAxis && p.brokenAxis.isInAnyBreak(s.x, !0) || i && i.brokenAxis && i.brokenAxis.isInAnyBreak(s.y, !0));
  6285. s.visible = t ? !1 : s.options.visible !== !1;
  6286. }
  6287. }
  6288. function B() {
  6289. this.drawBreaks(this.xAxis, ["x"]), this.drawBreaks(this.yAxis, R(this.pointArrayMap, ["y"]));
  6290. }
  6291. function M(a, c) {
  6292. var p = this, i = p.points, h, s, t, o;
  6293. if (a && a.brokenAxis && a.brokenAxis.hasBreaks) {
  6294. var n = a.brokenAxis;
  6295. c.forEach(function(A) {
  6296. h = n && n.breakArray || [], s = a.isXAxis ? a.min : R(p.options.threshold, a.min), i.forEach(function(_) {
  6297. o = R(_["stack" + A.toUpperCase()], _[A]), h.forEach(function(D) {
  6298. F(s) && F(o) && (t = !1, s < D.from && o > D.to || s > D.from && o < D.from ? t = "pointBreak" : (s < D.from && o > D.from && o < D.to || s > D.from && o > D.to && o < D.from) && (t = "pointInBreak"), t && H(a, t, { point: _, brk: D }));
  6299. });
  6300. });
  6301. });
  6302. }
  6303. }
  6304. function S() {
  6305. var a = this.currentDataGrouping, c = a && a.gapSize;
  6306. a = this.points.slice();
  6307. var p = this.yAxis, i = this.options.gapSize, h = a.length - 1, s;
  6308. if (i && 0 < h)
  6309. for (this.options.gapUnit !== "value" && (i *= this.basePointRange), c && c > i && c >= this.basePointRange && (i = c), s = void 0; h--; )
  6310. s && s.visible !== !1 || (s = a[h + 1]), c = a[h], s.visible !== !1 && c.visible !== !1 && (s.x - c.x > i && (s = (c.x + s.x) / 2, a.splice(h + 1, 0, { isNull: !0, x: s }), p.stacking && this.options.stacking && (s = p.stacking.stacks[this.stackKey][s] = new y(p, p.options.stackLabels, !1, s, this.stack), s.total = 0)), s = c);
  6311. return this.getGraphPath(a);
  6312. }
  6313. var w = [];
  6314. b.compose = function(a, c) {
  6315. if (w.indexOf(a) === -1 && (w.push(a), a.keepProps.push("brokenAxis"), I(a, "init", E), I(a, "afterInit", x), I(a, "afterSetTickPositions", f), I(a, "afterSetOptions", u)), w.indexOf(c) === -1) {
  6316. w.push(c);
  6317. var p = c.prototype;
  6318. p.drawBreaks = M, p.gappedPath = S, I(c, "afterGeneratePoints", O), I(
  6319. c,
  6320. "afterRender",
  6321. B
  6322. );
  6323. }
  6324. return a;
  6325. };
  6326. var v = function() {
  6327. function a(c) {
  6328. this.hasBreaks = !1, this.axis = c;
  6329. }
  6330. return a.isInBreak = function(c, p) {
  6331. var i = c.repeat || 1 / 0, h = c.from, s = c.to - c.from;
  6332. return p = p >= h ? (p - h) % i : i - (h - p) % i, c.inclusive ? p <= s : p < s && p !== 0;
  6333. }, a.lin2Val = function(c) {
  6334. var p = this.brokenAxis;
  6335. if (p = p && p.breakArray, !p || !F(c))
  6336. return c;
  6337. var i;
  6338. for (i = 0; i < p.length; i++) {
  6339. var h = p[i];
  6340. if (h.from >= c)
  6341. break;
  6342. (h.to < c || a.isInBreak(h, c)) && (c += h.len);
  6343. }
  6344. return c;
  6345. }, a.val2Lin = function(c) {
  6346. var p = this.brokenAxis;
  6347. if (p = p && p.breakArray, !p || !F(c))
  6348. return c;
  6349. var i = c, h;
  6350. for (h = 0; h < p.length; h++) {
  6351. var s = p[h];
  6352. if (s.to <= c)
  6353. i -= s.len;
  6354. else {
  6355. if (s.from >= c)
  6356. break;
  6357. if (a.isInBreak(s, c)) {
  6358. i -= c - s.from;
  6359. break;
  6360. }
  6361. }
  6362. }
  6363. return i;
  6364. }, a.prototype.findBreakAt = function(c, p) {
  6365. return Z(p, function(i) {
  6366. return i.from < c && c < i.to;
  6367. });
  6368. }, a.prototype.isInAnyBreak = function(c, p) {
  6369. var i = this.axis, h = i.options.breaks || [], s = h.length, t;
  6370. if (s && F(c)) {
  6371. for (; s--; )
  6372. if (a.isInBreak(h[s], c)) {
  6373. var o = !0;
  6374. t || (t = R(h[s].showPoints, !i.isXAxis));
  6375. }
  6376. var n = o && p ? o && !t : o;
  6377. }
  6378. return n;
  6379. }, a.prototype.setBreaks = function(c, p) {
  6380. var i = this, h = i.axis, s = U(c) && !!c.length;
  6381. h.isDirty = i.hasBreaks !== s, i.hasBreaks = s, h.options.breaks = h.userOptions.breaks = c, h.forceRedraw = !0, h.series.forEach(function(t) {
  6382. t.isDirty = !0;
  6383. }), s || h.val2lin !== a.val2Lin || (delete h.val2lin, delete h.lin2val), s && (h.userOptions.ordinal = !1, h.lin2val = a.lin2Val, h.val2lin = a.val2Lin, h.setExtremes = function(t, o, n, A, _) {
  6384. if (i.hasBreaks) {
  6385. for (var D = this.options.breaks || [], W; W = i.findBreakAt(t, D); )
  6386. t = W.to;
  6387. for (; W = i.findBreakAt(o, D); )
  6388. o = W.from;
  6389. o < t && (o = t);
  6390. }
  6391. h.constructor.prototype.setExtremes.call(this, t, o, n, A, _);
  6392. }, h.setAxisTranslation = function() {
  6393. if (h.constructor.prototype.setAxisTranslation.call(this), i.unitLength = void 0, i.hasBreaks) {
  6394. var t = h.options.breaks || [], o = [], n = [], A = R(h.pointRangePadding, 0), _ = 0, D, W = h.userMin || h.min, P = h.userMax || h.max, X;
  6395. t.forEach(function(L) {
  6396. D = L.repeat || 1 / 0, F(W) && F(P) && (a.isInBreak(L, W) && (W += L.to % D - W % D), a.isInBreak(L, P) && (P -= P % D - L.from % D));
  6397. }), t.forEach(function(L) {
  6398. if (m = L.from, D = L.repeat || 1 / 0, F(W) && F(P)) {
  6399. for (; m - D > W; )
  6400. m -= D;
  6401. for (; m < W; )
  6402. m += D;
  6403. for (X = m; X < P; X += D)
  6404. o.push({ value: X, move: "in" }), o.push({ value: X + L.to - L.from, move: "out", size: L.breakSize });
  6405. }
  6406. }), o.sort(function(L, Y) {
  6407. return L.value === Y.value ? (L.move === "in" ? 0 : 1) - (Y.move === "in" ? 0 : 1) : L.value - Y.value;
  6408. });
  6409. var g = 0, m = W;
  6410. o.forEach(function(L) {
  6411. g += L.move === "in" ? 1 : -1, g === 1 && L.move === "in" && (m = L.value), g === 0 && F(m) && (n.push({ from: m, to: L.value, len: L.value - m - (L.size || 0) }), _ += L.value - m - (L.size || 0));
  6412. }), i.breakArray = n, F(W) && F(P) && F(h.min) && (i.unitLength = P - W - _ + A, H(h, "afterBreaks"), h.staticScale ? h.transA = h.staticScale : i.unitLength && (h.transA *= (P - h.min + A) / i.unitLength), A && (h.minPixelPadding = h.transA * (h.minPointOffset || 0)), h.min = W, h.max = P);
  6413. }
  6414. }), R(p, !0) && h.chart.redraw();
  6415. }, a;
  6416. }();
  6417. b.Additions = v;
  6418. }(N || (N = {})), N;
  6419. }), T(l, "masters/modules/broken-axis.src.js", [l["Core/Globals.js"], l["Core/Axis/BrokenAxis.js"]], function(y, j) {
  6420. j.compose(y.Axis, y.Series);
  6421. }), T(l, "Extensions/DataGrouping.js", [
  6422. l["Core/Axis/Axis.js"],
  6423. l["Core/Axis/DateTimeAxis.js"],
  6424. l["Core/FormatUtilities.js"],
  6425. l["Core/Globals.js"],
  6426. l["Core/Series/Point.js"],
  6427. l["Core/Series/Series.js"],
  6428. l["Core/Tooltip.js"],
  6429. l["Core/DefaultOptions.js"],
  6430. l["Core/Utilities.js"]
  6431. ], function(y, j, I, Z, H, U, F, R, N) {
  6432. var b = I.format, x = U.prototype;
  6433. I = N.addEvent;
  6434. var u = N.arrayMax, f = N.arrayMin, E = N.correctFloat, O = N.defined, B = N.error, M = N.extend, S = N.isNumber, w = N.merge, v = N.pick, a = Z.approximations = {
  6435. sum: function(t) {
  6436. var o = t.length;
  6437. if (!o && t.hasNulls)
  6438. var n = null;
  6439. else if (o)
  6440. for (n = 0; o--; )
  6441. n += t[o];
  6442. return n;
  6443. },
  6444. average: function(t) {
  6445. var o = t.length;
  6446. return t = a.sum(t), S(t) && o && (t = E(t / o)), t;
  6447. },
  6448. averages: function() {
  6449. var t = [];
  6450. return [].forEach.call(arguments, function(o) {
  6451. t.push(a.average(o));
  6452. }), typeof t[0] > "u" ? void 0 : t;
  6453. },
  6454. open: function(t) {
  6455. return t.length ? t[0] : t.hasNulls ? null : void 0;
  6456. },
  6457. high: function(t) {
  6458. return t.length ? u(t) : t.hasNulls ? null : void 0;
  6459. },
  6460. low: function(t) {
  6461. return t.length ? f(t) : t.hasNulls ? null : void 0;
  6462. },
  6463. close: function(t) {
  6464. return t.length ? t[t.length - 1] : t.hasNulls ? null : void 0;
  6465. },
  6466. hlc: function(t, o, n) {
  6467. if (t = a.high(t), o = a.low(o), n = a.close(n), S(t) || S(o) || S(n))
  6468. return [t, o, n];
  6469. },
  6470. ohlc: function(t, o, n, A) {
  6471. if (t = a.open(t), o = a.high(o), n = a.low(n), A = a.close(A), S(t) || S(o) || S(n) || S(A))
  6472. return [t, o, n, A];
  6473. },
  6474. range: function(t, o) {
  6475. if (t = a.low(t), o = a.high(o), S(t) || S(o))
  6476. return [t, o];
  6477. if (t === null && o === null)
  6478. return null;
  6479. }
  6480. };
  6481. N = function(t, o, n, A) {
  6482. var _ = this, D = _.data, W = _.options && _.options.data, P = [], X = [], g = [], m = t.length, L = !!o, Y = [], V = _.pointArrayMap, Q = V && V.length, k = ["x"].concat(V || ["y"]), G = this.options.dataGrouping && this.options.dataGrouping.groupAll, z = 0, $ = 0, q;
  6483. A = typeof A == "function" ? A : a[A] ? a[A] : a[_.getDGApproximation && _.getDGApproximation() || "average"], Q ? V.forEach(function() {
  6484. Y.push([]);
  6485. }) : Y.push([]);
  6486. var it = Q || 1;
  6487. for (q = 0; q <= m && !(t[q] >= n[0]); q++)
  6488. ;
  6489. for (q; q <= m; q++) {
  6490. for (; typeof n[z + 1] < "u" && t[q] >= n[z + 1] || q === m; ) {
  6491. var et = n[z];
  6492. _.dataGroupInfo = { start: G ? $ : _.cropStart + $, length: Y[0].length };
  6493. var nt = A.apply(_, Y);
  6494. for (_.pointClass && !O(_.dataGroupInfo.options) && (_.dataGroupInfo.options = w(_.pointClass.prototype.optionsToObject.call({ series: _ }, _.options.data[_.cropStart + $])), k.forEach(function(ct) {
  6495. delete _.dataGroupInfo.options[ct];
  6496. })), typeof nt < "u" && (P.push(et), X.push(nt), g.push(_.dataGroupInfo)), $ = q, et = 0; et < it; et++)
  6497. Y[et].length = 0, Y[et].hasNulls = !1;
  6498. if (z += 1, q === m)
  6499. break;
  6500. }
  6501. if (q === m)
  6502. break;
  6503. if (V) {
  6504. et = _.options.dataGrouping && _.options.dataGrouping.groupAll ? q : _.cropStart + q, nt = D && D[et] || _.pointClass.prototype.applyOptions.apply({ series: _ }, [W[et]]);
  6505. var rt = void 0;
  6506. for (et = 0; et < Q; et++)
  6507. rt = nt[V[et]], S(rt) ? Y[et].push(rt) : rt === null && (Y[et].hasNulls = !0);
  6508. } else
  6509. et = L ? o[q] : null, S(et) ? Y[0].push(et) : et === null && (Y[0].hasNulls = !0);
  6510. }
  6511. return { groupedXData: P, groupedYData: X, groupMap: g };
  6512. };
  6513. var c = { approximations: a, groupData: N }, p = x.generatePoints, i = { groupPixelWidth: 2, dateTimeLabelFormats: { millisecond: [
  6514. "%A, %b %e, %H:%M:%S.%L",
  6515. "%A, %b %e, %H:%M:%S.%L",
  6516. "-%H:%M:%S.%L"
  6517. ], second: ["%A, %b %e, %H:%M:%S", "%A, %b %e, %H:%M:%S", "-%H:%M:%S"], minute: ["%A, %b %e, %H:%M", "%A, %b %e, %H:%M", "-%H:%M"], hour: ["%A, %b %e, %H:%M", "%A, %b %e, %H:%M", "-%H:%M"], day: ["%A, %b %e, %Y", "%A, %b %e", "-%A, %b %e, %Y"], week: ["Week from %A, %b %e, %Y", "%A, %b %e", "-%A, %b %e, %Y"], month: ["%B %Y", "%B", "-%B %Y"], year: ["%Y", "%Y", "-%Y"] } }, h = {
  6518. line: {},
  6519. spline: {},
  6520. area: {},
  6521. areaspline: {},
  6522. arearange: {},
  6523. column: { groupPixelWidth: 10 },
  6524. columnrange: { groupPixelWidth: 10 },
  6525. candlestick: { groupPixelWidth: 10 },
  6526. ohlc: { groupPixelWidth: 5 },
  6527. hlc: { groupPixelWidth: 5 },
  6528. heikinashi: { groupPixelWidth: 10 }
  6529. }, s = Z.defaultDataGroupingUnits = [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1]], ["week", [1]], ["month", [1, 3, 6]], ["year", null]];
  6530. return x.getDGApproximation = function() {
  6531. return this.is("arearange") ? "range" : this.is("ohlc") ? "ohlc" : this.is("hlc") ? "hlc" : this.is("column") ? "sum" : "average";
  6532. }, x.groupData = N, x.applyGrouping = function(t) {
  6533. var o = this.chart, n = this.options.dataGrouping, A = this.allowDG !== !1 && n && v(n.enabled, o.options.isStock), _ = this.visible || !o.options.chart.ignoreHiddenSeries, D, W = this.currentDataGrouping, P = !1;
  6534. if (A && !this.requireSorting && (this.requireSorting = P = !0), t = !!(this.isCartesian && !this.isDirty && !this.xAxis.isDirty && !this.yAxis.isDirty && !t) || !A, P && (this.requireSorting = !1), !t) {
  6535. this.destroyGroupedData(), A = n.groupAll ? this.xData : this.processedXData;
  6536. var X = n.groupAll ? this.yData : this.processedYData;
  6537. t = o.plotSizeX, P = this.xAxis;
  6538. var g = P.options.ordinal, m = this.groupPixelWidth;
  6539. if (m && A && A.length) {
  6540. this.isDirty = D = !0, this.points = null;
  6541. var L = P.getExtremes(), Y = L.min;
  6542. L = L.max, g = g && P.ordinal && P.ordinal.getGroupIntervalFactor(Y, L, this) || 1, t = P.getTimeTicks(j.Additions.prototype.normalizeTimeTickInterval(m * (L - Y) / t * g, n.units || s), Math.min(Y, A[0]), Math.max(L, A[A.length - 1]), P.options.startOfWeek, A, this.closestPointRange), m = x.groupData.apply(this, [A, X, t, n.approximation]), A = m.groupedXData, X = m.groupedYData, g = 0, n && n.smoothed && A.length && (n.firstAnchor = "firstPoint", n.anchor = "middle", n.lastAnchor = "lastPoint", B(32, !1, o, { "dataGrouping.smoothed": "use dataGrouping.anchor" })), o = A;
  6543. var V = this.options.dataGrouping;
  6544. if (Y = this.currentDataGrouping && this.currentDataGrouping.gapSize, V && this.xData && Y && this.groupMap) {
  6545. var Q = o.length - 1, k = V.anchor, G = v(V.firstAnchor, k);
  6546. if (V = v(V.lastAnchor, k), k && k !== "start") {
  6547. var z = Y * { middle: 0.5, end: 1 }[k];
  6548. for (k = o.length - 1; k-- && 0 < k; )
  6549. o[k] += z;
  6550. }
  6551. if (G && G !== "start" && this.xData[0] >= o[0]) {
  6552. k = this.groupMap[0].start, z = this.groupMap[0].length;
  6553. var $ = void 0;
  6554. S(k) && S(z) && ($ = k + (z - 1)), o[0] = { middle: o[0] + 0.5 * Y, end: o[0] + Y, firstPoint: this.xData[0], lastPoint: $ && this.xData[$] }[G];
  6555. }
  6556. V && V !== "start" && Y && o[Q] >= L - Y && (L = this.groupMap[this.groupMap.length - 1].start, o[Q] = { middle: o[Q] + 0.5 * Y, end: o[Q] + Y, firstPoint: L && this.xData[L], lastPoint: this.xData[this.xData.length - 1] }[V]);
  6557. }
  6558. for (L = 1; L < t.length; L++)
  6559. t.info.segmentStarts && t.info.segmentStarts.indexOf(L) !== -1 || (g = Math.max(t[L] - t[L - 1], g));
  6560. L = t.info, L.gapSize = g, this.closestPointRange = t.info.totalRange, this.groupMap = m.groupMap, _ && (_ = A, O(_[0]) && S(P.min) && S(P.dataMin) && _[0] < P.min && ((!O(P.options.min) && P.min <= P.dataMin || P.min === P.dataMin) && (P.min = Math.min(_[0], P.min)), P.dataMin = Math.min(_[0], P.dataMin)), O(_[_.length - 1]) && S(P.max) && S(P.dataMax) && _[_.length - 1] > P.max && ((!O(P.options.max) && S(P.dataMax) && P.max >= P.dataMax || P.max === P.dataMax) && (P.max = Math.max(_[_.length - 1], P.max)), P.dataMax = Math.max(_[_.length - 1], P.dataMax))), n.groupAll && (this.allGroupedData = X, n = this.cropData(A, X, P.min, P.max, 1), A = n.xData, X = n.yData, this.cropStart = n.start), this.processedXData = A, this.processedYData = X;
  6561. } else
  6562. this.groupMap = null;
  6563. this.hasGroupedData = D, this.currentDataGrouping = L, this.preventGraphAnimation = (W && W.totalRange) !== (L && L.totalRange);
  6564. }
  6565. }, x.destroyGroupedData = function() {
  6566. this.groupedData && (this.groupedData.forEach(function(t, o) {
  6567. t && (this.groupedData[o] = t.destroy ? t.destroy() : null);
  6568. }, this), this.groupedData.length = 0);
  6569. }, x.generatePoints = function() {
  6570. p.apply(this), this.destroyGroupedData(), this.groupedData = this.hasGroupedData ? this.points : null;
  6571. }, y.prototype.applyGrouping = function(t) {
  6572. var o = this;
  6573. o.series.forEach(function(n) {
  6574. n.groupPixelWidth = void 0, n.groupPixelWidth = o.getGroupPixelWidth && o.getGroupPixelWidth(), n.groupPixelWidth && (n.hasProcessed = !0), n.applyGrouping(!!t.hasExtemesChanged);
  6575. });
  6576. }, y.prototype.getGroupPixelWidth = function() {
  6577. var t = this.series, o = t.length, n, A = 0, _ = !1, D;
  6578. for (n = o; n--; )
  6579. (D = t[n].options.dataGrouping) && (A = Math.max(A, v(D.groupPixelWidth, i.groupPixelWidth)));
  6580. for (n = o; n--; )
  6581. (D = t[n].options.dataGrouping) && (o = (t[n].processedXData || t[n].data).length, (t[n].groupPixelWidth || o > this.chart.plotSizeX / A || o && D.forced) && (_ = !0));
  6582. return _ ? A : 0;
  6583. }, y.prototype.setDataGrouping = function(t, o) {
  6584. var n;
  6585. if (o = v(o, !0), t || (t = { forced: !1, units: null }), this instanceof y)
  6586. for (n = this.series.length; n--; )
  6587. this.series[n].update({ dataGrouping: t }, !1);
  6588. else
  6589. this.chart.options.series.forEach(function(A) {
  6590. A.dataGrouping = t;
  6591. }, !1);
  6592. this.ordinal && (this.ordinal.slope = void 0), o && this.chart.redraw();
  6593. }, I(y, "postProcessData", y.prototype.applyGrouping), I(H, "update", function() {
  6594. if (this.dataGroup)
  6595. return B(
  6596. 24,
  6597. !1,
  6598. this.series.chart
  6599. ), !1;
  6600. }), I(F, "headerFormatter", function(t) {
  6601. var o = this.chart, n = o.time, A = t.labelConfig, _ = A.series, D = _.tooltipOptions, W = _.options.dataGrouping, P = D.xDateFormat, X = _.xAxis, g = D[t.isFooter ? "footerFormat" : "headerFormat"];
  6602. if (X && X.options.type === "datetime" && W && S(A.key)) {
  6603. var m = _.currentDataGrouping;
  6604. if (W = W.dateTimeLabelFormats || i.dateTimeLabelFormats, m)
  6605. if (D = W[m.unitName], m.count === 1)
  6606. P = D[0];
  6607. else {
  6608. P = D[1];
  6609. var L = D[2];
  6610. }
  6611. else
  6612. !P && W && X.dateTime && (P = X.dateTime.getXDateFormat(A.x, D.dateTimeLabelFormats));
  6613. P = n.dateFormat(P, A.key), L && (P += n.dateFormat(L, A.key + m.totalRange - 1)), _.chart.styledMode && (g = this.styledModeFormat(g)), t.text = b(g, { point: M(A.point, { key: P }), series: _ }, o), t.preventDefault();
  6614. }
  6615. }), I(U, "destroy", x.destroyGroupedData), I(U, "afterSetOptions", function(t) {
  6616. t = t.options;
  6617. var o = this.type, n = this.chart.options.plotOptions, A = R.defaultOptions.plotOptions[o].dataGrouping, _ = this.useCommonDataGrouping && i;
  6618. if (n && (h[o] || _)) {
  6619. A || (A = w(i, h[o]));
  6620. var D = this.chart.rangeSelector;
  6621. t.dataGrouping = w(
  6622. _,
  6623. A,
  6624. n.series && n.series.dataGrouping,
  6625. n[o].dataGrouping,
  6626. this.userOptions.dataGrouping,
  6627. !t.isInternal && D && S(D.selected) && D.buttonOptions[D.selected].dataGrouping
  6628. );
  6629. }
  6630. }), I(y, "afterSetScale", function() {
  6631. this.series.forEach(function(t) {
  6632. t.hasProcessed = !1;
  6633. });
  6634. }), Z.dataGrouping = c, c;
  6635. }), T(l, "Series/HLC/HLCPoint.js", [l["Core/Series/SeriesRegistry.js"]], function(y) {
  6636. var j = this && this.__extends || function() {
  6637. var I = function(Z, H) {
  6638. return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(U, F) {
  6639. U.__proto__ = F;
  6640. } || function(U, F) {
  6641. for (var R in F)
  6642. F.hasOwnProperty(R) && (U[R] = F[R]);
  6643. }, I(Z, H);
  6644. };
  6645. return function(Z, H) {
  6646. function U() {
  6647. this.constructor = Z;
  6648. }
  6649. I(Z, H), Z.prototype = H === null ? Object.create(H) : (U.prototype = H.prototype, new U());
  6650. };
  6651. }();
  6652. return function(I) {
  6653. function Z() {
  6654. var H = I !== null && I.apply(this, arguments) || this;
  6655. return H.close = void 0, H.high = void 0, H.low = void 0, H.options = void 0, H.plotClose = void 0, H.series = void 0, H;
  6656. }
  6657. return j(Z, I), Z;
  6658. }(y.seriesTypes.column.prototype.pointClass);
  6659. }), T(
  6660. l,
  6661. "Series/HLC/HLCSeries.js",
  6662. [l["Series/HLC/HLCPoint.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]],
  6663. function(y, j, I) {
  6664. var Z = this && this.__extends || function() {
  6665. var R = function(N, b) {
  6666. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, u) {
  6667. x.__proto__ = u;
  6668. } || function(x, u) {
  6669. for (var f in u)
  6670. u.hasOwnProperty(f) && (x[f] = u[f]);
  6671. }, R(N, b);
  6672. };
  6673. return function(N, b) {
  6674. function x() {
  6675. this.constructor = N;
  6676. }
  6677. R(N, b), N.prototype = b === null ? Object.create(b) : (x.prototype = b.prototype, new x());
  6678. };
  6679. }(), H = j.seriesTypes.column, U = I.extend, F = I.merge;
  6680. return I = function(R) {
  6681. function N() {
  6682. var b = R !== null && R.apply(this, arguments) || this;
  6683. return b.data = void 0, b.options = void 0, b.points = void 0, b.yData = void 0, b;
  6684. }
  6685. return Z(N, R), N.prototype.extendStem = function(b, x, u) {
  6686. var f = b[0];
  6687. b = b[1], typeof f[2] == "number" && (f[2] = Math.max(u + x, f[2])), typeof b[2] == "number" && (b[2] = Math.min(u - x, b[2]));
  6688. }, N.prototype.getPointPath = function(b, x) {
  6689. x = x.strokeWidth();
  6690. var u = b.series, f = x % 2 / 2, E = Math.round(b.plotX) - f, O = Math.round(b.shapeArgs.width / 2), B = [["M", E, Math.round(b.yBottom)], ["L", E, Math.round(b.plotHigh)]];
  6691. return b.close !== null && (b = Math.round(b.plotClose) + f, B.push(["M", E, b], ["L", E + O, b]), u.extendStem(B, x / 2, b)), B;
  6692. }, N.prototype.drawSinglePoint = function(b) {
  6693. var x = b.series, u = x.chart, f = b.graphic, E = !f;
  6694. typeof b.plotY < "u" && (f || (b.graphic = f = u.renderer.path().add(x.group)), u.styledMode || f.attr(x.pointAttribs(b, b.selected && "select")), x = x.getPointPath(b, f), f[E ? "attr" : "animate"]({ d: x }).addClass(b.getClassName(), !0));
  6695. }, N.prototype.drawPoints = function() {
  6696. this.points.forEach(this.drawSinglePoint);
  6697. }, N.prototype.init = function() {
  6698. R.prototype.init.apply(this, arguments), this.options.stacking = void 0;
  6699. }, N.prototype.pointAttribs = function(b, x) {
  6700. return b = R.prototype.pointAttribs.call(this, b, x), delete b.fill, b;
  6701. }, N.prototype.toYData = function(b) {
  6702. return [b.high, b.low, b.close];
  6703. }, N.prototype.translate = function() {
  6704. var b = this, x = b.yAxis, u = this.pointArrayMap && this.pointArrayMap.slice() || [], f = u.map(function(E) {
  6705. return "plot" + (E.charAt(0).toUpperCase() + E.slice(1));
  6706. });
  6707. f.push("yBottom"), u.push("low"), R.prototype.translate.apply(b), b.points.forEach(function(E) {
  6708. u.forEach(function(O, B) {
  6709. O = E[O], O !== null && (b.dataModify && (O = b.dataModify.modifyValue(O)), E[f[B]] = x.toPixels(O, !0));
  6710. }), E.tooltipPos[1] = E.plotHigh + x.pos - b.chart.plotTop;
  6711. });
  6712. }, N.defaultOptions = F(H.defaultOptions, { lineWidth: 1, tooltip: { pointFormat: '<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>' }, threshold: null, states: { hover: { lineWidth: 3 } }, stickyTracking: !0 }), N;
  6713. }(H), U(I.prototype, { animate: null, directTouch: !1, pointArrayMap: ["high", "low", "close"], pointAttrToOptions: {
  6714. stroke: "color",
  6715. "stroke-width": "lineWidth"
  6716. }, pointValKey: "close" }), I.prototype.pointClass = y, j.registerSeriesType("hlc", I), I;
  6717. }
  6718. ), T(l, "Series/OHLC/OHLCPoint.js", [l["Core/Series/SeriesRegistry.js"]], function(y) {
  6719. var j = this && this.__extends || function() {
  6720. var I = function(Z, H) {
  6721. return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(U, F) {
  6722. U.__proto__ = F;
  6723. } || function(U, F) {
  6724. for (var R in F)
  6725. F.hasOwnProperty(R) && (U[R] = F[R]);
  6726. }, I(Z, H);
  6727. };
  6728. return function(Z, H) {
  6729. function U() {
  6730. this.constructor = Z;
  6731. }
  6732. I(Z, H), Z.prototype = H === null ? Object.create(H) : (U.prototype = H.prototype, new U());
  6733. };
  6734. }();
  6735. return function(I) {
  6736. function Z() {
  6737. var H = I !== null && I.apply(this, arguments) || this;
  6738. return H.open = void 0, H.options = void 0, H.plotOpen = void 0, H.series = void 0, H;
  6739. }
  6740. return j(Z, I), Z.prototype.getClassName = function() {
  6741. return I.prototype.getClassName.call(this) + (this.open < this.close ? " highcharts-point-up" : " highcharts-point-down");
  6742. }, Z.prototype.resolveUpColor = function() {
  6743. this.open < this.close && !this.options.color && this.series.options.upColor && (this.color = this.series.options.upColor);
  6744. }, Z.prototype.resolveColor = function() {
  6745. I.prototype.resolveColor.call(this), this.resolveUpColor();
  6746. }, Z.prototype.getZone = function() {
  6747. var H = I.prototype.getZone.call(this);
  6748. return this.resolveUpColor(), H;
  6749. }, Z.prototype.applyOptions = function() {
  6750. return I.prototype.applyOptions.apply(this, arguments), this.resolveColor && this.resolveColor(), this;
  6751. }, Z;
  6752. }(y.seriesTypes.hlc.prototype.pointClass);
  6753. }), T(
  6754. l,
  6755. "Series/OHLC/OHLCSeries.js",
  6756. [l["Series/OHLC/OHLCPoint.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]],
  6757. function(y, j, I) {
  6758. var Z = this && this.__extends || function() {
  6759. var x = function(u, f) {
  6760. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(E, O) {
  6761. E.__proto__ = O;
  6762. } || function(E, O) {
  6763. for (var B in O)
  6764. O.hasOwnProperty(B) && (E[B] = O[B]);
  6765. }, x(u, f);
  6766. };
  6767. return function(u, f) {
  6768. function E() {
  6769. this.constructor = u;
  6770. }
  6771. x(u, f), u.prototype = f === null ? Object.create(f) : (E.prototype = f.prototype, new E());
  6772. };
  6773. }(), H = j.series, U = j.seriesTypes.hlc, F = I.addEvent, R = I.extend, N = I.merge, b = function(x) {
  6774. function u() {
  6775. var f = x !== null && x.apply(this, arguments) || this;
  6776. return f.data = void 0, f.options = void 0, f.points = void 0, f;
  6777. }
  6778. return Z(u, x), u.prototype.getPointPath = function(f, E) {
  6779. var O = x.prototype.getPointPath.call(this, f, E);
  6780. E = E.strokeWidth();
  6781. var B = E % 2 / 2, M = Math.round(f.plotX) - B, S = Math.round(f.shapeArgs.width / 2);
  6782. return f.open !== null && (f = Math.round(f.plotOpen) + B, O.push(["M", M, f], ["L", M - S, f]), x.prototype.extendStem.call(this, O, E / 2, f)), O;
  6783. }, u.prototype.pointAttribs = function(f, E) {
  6784. E = x.prototype.pointAttribs.call(this, f, E);
  6785. var O = this.options;
  6786. return delete E.fill, !f.options.color && O.upColor && f.open < f.close && (E.stroke = O.upColor), E;
  6787. }, u.prototype.toYData = function(f) {
  6788. return [f.open, f.high, f.low, f.close];
  6789. }, u.defaultOptions = N(U.defaultOptions, { tooltip: { pointFormat: '<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>' } }), u;
  6790. }(U);
  6791. return R(b.prototype, { pointArrayMap: ["open", "high", "low", "close"] }), b.prototype.pointClass = y, j.registerSeriesType("ohlc", b), F(H, "init", function(x) {
  6792. x = x.options, x.useOhlcData && x.id !== "highcharts-navigator-series" && R(this, { pointValKey: b.prototype.pointValKey, pointArrayMap: b.prototype.pointArrayMap, toYData: b.prototype.toYData });
  6793. }), F(H, "afterSetOptions", function(x) {
  6794. x = x.options;
  6795. var u = x.dataGrouping;
  6796. u && x.useOhlcData && x.id !== "highcharts-navigator-series" && (u.approximation = "ohlc");
  6797. }), b;
  6798. }
  6799. ), T(l, "Series/Candlestick/CandlestickSeries.js", [l["Core/DefaultOptions.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  6800. var Z = this && this.__extends || function() {
  6801. var N = function(b, x) {
  6802. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, f) {
  6803. u.__proto__ = f;
  6804. } || function(u, f) {
  6805. for (var E in f)
  6806. f.hasOwnProperty(E) && (u[E] = f[E]);
  6807. }, N(b, x);
  6808. };
  6809. return function(b, x) {
  6810. function u() {
  6811. this.constructor = b;
  6812. }
  6813. N(b, x), b.prototype = x === null ? Object.create(x) : (u.prototype = x.prototype, new u());
  6814. };
  6815. }(), H = y.defaultOptions;
  6816. y = j.seriesTypes;
  6817. var U = y.column, F = y.ohlc, R = I.merge;
  6818. return I = function(N) {
  6819. function b() {
  6820. var x = N !== null && N.apply(this, arguments) || this;
  6821. return x.data = void 0, x.options = void 0, x.points = void 0, x;
  6822. }
  6823. return Z(b, N), b.prototype.pointAttribs = function(x, u) {
  6824. var f = U.prototype.pointAttribs.call(this, x, u), E = this.options, O = x.open < x.close, B = E.lineColor || this.color, M = x.color || this.color;
  6825. return f["stroke-width"] = E.lineWidth, f.fill = x.options.color || O && E.upColor || M, f.stroke = x.options.lineColor || O && E.upLineColor || B, u && (x = E.states[u], f.fill = x.color || f.fill, f.stroke = x.lineColor || f.stroke, f["stroke-width"] = x.lineWidth || f["stroke-width"]), f;
  6826. }, b.prototype.drawPoints = function() {
  6827. var x = this, u = x.chart, f = x.yAxis.reversed;
  6828. x.points.forEach(function(E) {
  6829. var O = E.graphic, B = !O;
  6830. if (typeof E.plotY < "u") {
  6831. O || (E.graphic = O = u.renderer.path().add(x.group)), x.chart.styledMode || O.attr(x.pointAttribs(E, E.selected && "select")).shadow(x.options.shadow);
  6832. var M = O.strokeWidth() % 2 / 2, S = Math.round(E.plotX) - M, w = E.plotOpen, v = E.plotClose, a = Math.min(w, v);
  6833. w = Math.max(w, v);
  6834. var c = Math.round(E.shapeArgs.width / 2);
  6835. v = f ? w !== E.yBottom : Math.round(a) !== Math.round(E.plotHigh);
  6836. var p = f ? Math.round(a) !== Math.round(E.plotHigh) : w !== E.yBottom;
  6837. a = Math.round(a) + M, w = Math.round(w) + M, M = [], M.push(["M", S - c, w], ["L", S - c, a], ["L", S + c, a], ["L", S + c, w], ["Z"], ["M", S, a], ["L", S, v ? Math.round(f ? E.yBottom : E.plotHigh) : a], ["M", S, w], ["L", S, p ? Math.round(f ? E.plotHigh : E.yBottom) : w]), O[B ? "attr" : "animate"]({ d: M }).addClass(E.getClassName(), !0);
  6838. }
  6839. });
  6840. }, b.defaultOptions = R(F.defaultOptions, H.plotOptions, { states: { hover: { lineWidth: 2 } }, tooltip: H.plotOptions.ohlc.tooltip, threshold: null, lineColor: "#000000", lineWidth: 1, upColor: "#ffffff", stickyTracking: !0 }), b;
  6841. }(F), j.registerSeriesType("candlestick", I), I;
  6842. }), T(l, "Series/Flags/FlagsPoint.js", [l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j) {
  6843. var I = this && this.__extends || function() {
  6844. var H = function(U, F) {
  6845. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(R, N) {
  6846. R.__proto__ = N;
  6847. } || function(R, N) {
  6848. for (var b in N)
  6849. N.hasOwnProperty(b) && (R[b] = N[b]);
  6850. }, H(U, F);
  6851. };
  6852. return function(U, F) {
  6853. function R() {
  6854. this.constructor = U;
  6855. }
  6856. H(U, F), U.prototype = F === null ? Object.create(F) : (R.prototype = F.prototype, new R());
  6857. };
  6858. }(), Z = j.isNumber;
  6859. return function(H) {
  6860. function U() {
  6861. var F = H !== null && H.apply(this, arguments) || this;
  6862. return F.options = void 0, F.series = void 0, F;
  6863. }
  6864. return I(U, H), U.prototype.isValid = function() {
  6865. return Z(this.y) || typeof this.y > "u";
  6866. }, U.prototype.hasNewShapeType = function() {
  6867. var F = this.options.shape || this.series.options.shape;
  6868. return this.graphic && F && F !== this.graphic.symbolKey;
  6869. }, U;
  6870. }(y.seriesTypes.column.prototype.pointClass);
  6871. }), T(l, "Series/OnSeriesComposition.js", [
  6872. l["Series/Column/ColumnSeries.js"],
  6873. l["Core/Series/Series.js"],
  6874. l["Core/Utilities.js"]
  6875. ], function(y, j, I) {
  6876. var Z = y.prototype, H = j.prototype, U = I.defined, F = I.stableSort, R;
  6877. return function(N) {
  6878. function b() {
  6879. return H.getPlotBox.call(this.options.onSeries && this.chart.get(this.options.onSeries) || this);
  6880. }
  6881. function x() {
  6882. Z.translate.apply(this);
  6883. var f = this, E = f.options, O = f.chart, B = f.points, M = E.onSeries, S = (M = M && O.get(M)) && M.options.step, w = M && M.points, v = O.inverted, a = f.xAxis, c = f.yAxis;
  6884. O = B.length - 1;
  6885. var p;
  6886. E = E.onKey || "y";
  6887. var i = w && w.length, h = 0, s;
  6888. if (M && M.visible && i) {
  6889. h = (M.pointXOffset || 0) + (M.barW || 0) / 2;
  6890. var t = M.currentDataGrouping, o = w[i - 1].x + (t ? t.totalRange : 0);
  6891. for (F(B, function(_, D) {
  6892. return _.x - D.x;
  6893. }), E = "plot" + E[0].toUpperCase() + E.substr(1); i-- && B[O]; ) {
  6894. var n = w[i];
  6895. if (t = B[O], t.y = n.y, n.x <= t.x && typeof n[E] < "u") {
  6896. if (t.x <= o && (t.plotY = n[E], n.x < t.x && !S && (s = w[i + 1]) && typeof s[E] < "u")) {
  6897. var A = (t.x - n.x) / (s.x - n.x);
  6898. t.plotY += A * (s[E] - n[E]), t.y += A * (s.y - n.y);
  6899. }
  6900. if (O--, i++, 0 > O)
  6901. break;
  6902. }
  6903. }
  6904. }
  6905. B.forEach(function(_, D) {
  6906. if (_.plotX += h, (typeof _.plotY > "u" || v) && (0 <= _.plotX && _.plotX <= a.len ? v ? (_.plotY = a.translate(_.x, 0, 1, 0, 1), _.plotX = U(_.y) ? c.translate(_.y, 0, 0, 0, 1) : 0) : _.plotY = (a.opposite ? 0 : f.yAxis.len) + a.offset : _.shapeArgs = {}), (p = B[D - 1]) && p.plotX === _.plotX) {
  6907. typeof p.stackIndex > "u" && (p.stackIndex = 0);
  6908. var W = p.stackIndex + 1;
  6909. }
  6910. _.stackIndex = W;
  6911. }), this.onSeries = M;
  6912. }
  6913. var u = [];
  6914. N.compose = function(f) {
  6915. if (u.indexOf(f) === -1) {
  6916. u.push(f);
  6917. var E = f.prototype;
  6918. E.getPlotBox = b, E.translate = x;
  6919. }
  6920. return f;
  6921. }, N.getPlotBox = b, N.translate = x;
  6922. }(R || (R = {})), R;
  6923. }), T(
  6924. l,
  6925. "Series/Flags/FlagsSymbols.js",
  6926. [l["Core/Renderer/RendererRegistry.js"], l["Core/Renderer/SVG/SVGRenderer.js"]],
  6927. function(y, j) {
  6928. function I(H) {
  6929. Z[H + "pin"] = function(U, F, R, N, b) {
  6930. var x = b && b.anchorX;
  6931. b = b && b.anchorY, H === "circle" && N > R && (U -= Math.round((N - R) / 2), R = N);
  6932. var u = Z[H](U, F, R, N);
  6933. if (x && b) {
  6934. var f = x;
  6935. H === "circle" ? f = U + R / 2 : (U = u[0], R = u[1], U[0] === "M" && R[0] === "L" && (f = (U[1] + R[1]) / 2)), u.push(["M", f, F > b ? F : F + N], ["L", x, b]), u = u.concat(Z.circle(x - 1, b - 1, 2, 2));
  6936. }
  6937. return u;
  6938. };
  6939. }
  6940. var Z = j.prototype.symbols;
  6941. return Z.flag = function(H, U, F, R, N) {
  6942. var b = N && N.anchorX || H;
  6943. N = N && N.anchorY || U;
  6944. var x = Z.circle(b - 1, N - 1, 2, 2);
  6945. return x.push(["M", b, N], ["L", H, U + R], ["L", H, U], ["L", H + F, U], ["L", H + F, U + R], ["L", H, U + R], ["Z"]), x;
  6946. }, I("circle"), I("square"), y = y.getRendererType(), y !== j && (y.prototype.symbols.circlepin = Z.circlepin, y.prototype.symbols.flag = Z.flag, y.prototype.symbols.squarepin = Z.squarepin), Z;
  6947. }
  6948. ), T(l, "Series/Flags/FlagsSeries.js", [
  6949. l["Series/Flags/FlagsPoint.js"],
  6950. l["Core/Globals.js"],
  6951. l["Series/OnSeriesComposition.js"],
  6952. l["Core/Renderer/RendererUtilities.js"],
  6953. l["Core/Series/SeriesRegistry.js"],
  6954. l["Core/Renderer/SVG/SVGElement.js"],
  6955. l["Core/Utilities.js"]
  6956. ], function(y, j, I, Z, H, U, F) {
  6957. var R = this && this.__extends || function() {
  6958. var M = function(S, w) {
  6959. return M = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, a) {
  6960. v.__proto__ = a;
  6961. } || function(v, a) {
  6962. for (var c in a)
  6963. a.hasOwnProperty(c) && (v[c] = a[c]);
  6964. }, M(S, w);
  6965. };
  6966. return function(S, w) {
  6967. function v() {
  6968. this.constructor = S;
  6969. }
  6970. M(S, w), S.prototype = w === null ? Object.create(w) : (v.prototype = w.prototype, new v());
  6971. };
  6972. }();
  6973. j = j.noop;
  6974. var N = Z.distribute, b = H.series, x = H.seriesTypes.column, u = F.addEvent, f = F.defined;
  6975. Z = F.extend;
  6976. var E = F.merge, O = F.objectEach, B = F.wrap;
  6977. return F = function(M) {
  6978. function S() {
  6979. var w = M !== null && M.apply(this, arguments) || this;
  6980. return w.data = void 0, w.options = void 0, w.points = void 0, w;
  6981. }
  6982. return R(S, M), S.prototype.animate = function(w) {
  6983. w && this.setClip();
  6984. }, S.prototype.drawPoints = function() {
  6985. var w = this.points, v = this.chart, a = v.renderer, c = v.inverted, p = this.options, i = p.y, h, s = this.yAxis, t = {}, o = [];
  6986. for (h = w.length; h--; ) {
  6987. var n = w[h], A = (c ? n.plotY : n.plotX) > this.xAxis.len, _ = n.plotX, D = n.stackIndex, W = n.options.shape || p.shape, P = n.plotY;
  6988. typeof P < "u" && (P = n.plotY + i - (typeof D < "u" && D * p.stackDistance)), n.anchorX = D ? void 0 : n.plotX;
  6989. var X = D ? void 0 : n.plotY, g = W !== "flag";
  6990. D = n.graphic, typeof P < "u" && 0 <= _ && !A ? (D && n.hasNewShapeType() && (D = D.destroy()), D || (D = n.graphic = a.label("", null, null, W, null, null, p.useHTML).addClass("highcharts-point").add(this.markerGroup), n.graphic.div && (n.graphic.div.point = n), D.isNew = !0), D.attr({
  6991. align: g ? "center" : "left",
  6992. width: p.width,
  6993. height: p.height,
  6994. "text-align": p.textAlign
  6995. }), v.styledMode || D.attr(this.pointAttribs(n)).css(E(p.style, n.style)).shadow(p.shadow), 0 < _ && (_ -= D.strokeWidth() % 2), W = { y: P, anchorY: X }, p.allowOverlapX && (W.x = _, W.anchorX = n.anchorX), D.attr({ text: n.options.title || p.title || "A" })[D.isNew ? "attr" : "animate"](W), p.allowOverlapX || (t[n.plotX] ? t[n.plotX].size = Math.max(t[n.plotX].size, D.width) : t[n.plotX] = { align: g ? 0.5 : 0, size: D.width, target: _, anchorX: _ }), n.tooltipPos = [_, P + s.pos - v.plotTop]) : D && (n.graphic = D.destroy());
  6996. }
  6997. if (!p.allowOverlapX) {
  6998. var m = 100;
  6999. O(t, function(L) {
  7000. L.plotX = L.anchorX, o.push(L), m = Math.max(L.size, m);
  7001. }), N(o, c ? s.len : this.xAxis.len, m), w.forEach(function(L) {
  7002. var Y = L.graphic && t[L.plotX];
  7003. Y && (L.graphic[L.graphic.isNew ? "attr" : "animate"]({ x: Y.pos + Y.align * Y.size, anchorX: L.anchorX }), f(Y.pos) ? L.graphic.isNew = !1 : (L.graphic.attr({ x: -9999, anchorX: -9999 }), L.graphic.isNew = !0));
  7004. });
  7005. }
  7006. p.useHTML && B(this.markerGroup, "on", function(L) {
  7007. return U.prototype.on.apply(L.apply(this, [].slice.call(arguments, 1)), [].slice.call(arguments, 1));
  7008. });
  7009. }, S.prototype.drawTracker = function() {
  7010. var w = this.points;
  7011. M.prototype.drawTracker.call(this), w.forEach(function(v) {
  7012. var a = v.graphic;
  7013. a && (v.unbindMouseOver && v.unbindMouseOver(), v.unbindMouseOver = u(a.element, "mouseover", function() {
  7014. 0 < v.stackIndex && !v.raised && (v._y = a.y, a.attr({ y: v._y - 8 }), v.raised = !0), w.forEach(function(c) {
  7015. c !== v && c.raised && c.graphic && (c.graphic.attr({ y: c._y }), c.raised = !1);
  7016. });
  7017. }));
  7018. });
  7019. }, S.prototype.pointAttribs = function(w, v) {
  7020. var a = this.options, c = w && w.color || this.color, p = a.lineColor, i = w && w.lineWidth;
  7021. return w = w && w.fillColor || a.fillColor, v && (w = a.states[v].fillColor, p = a.states[v].lineColor, i = a.states[v].lineWidth), { fill: w || c, stroke: p || c, "stroke-width": i || a.lineWidth || 0 };
  7022. }, S.prototype.setClip = function() {
  7023. b.prototype.setClip.apply(this, arguments), this.options.clip !== !1 && this.sharedClipKey && this.markerGroup && this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey]);
  7024. }, S.defaultOptions = E(x.defaultOptions, {
  7025. pointRange: 0,
  7026. allowOverlapX: !1,
  7027. shape: "flag",
  7028. stackDistance: 12,
  7029. textAlign: "center",
  7030. tooltip: { pointFormat: "{point.text}" },
  7031. threshold: null,
  7032. y: -30,
  7033. fillColor: "#ffffff",
  7034. lineWidth: 1,
  7035. states: { hover: { lineColor: "#000000", fillColor: "#ccd6eb" } },
  7036. style: { fontSize: "11px", fontWeight: "bold" }
  7037. }), S;
  7038. }(x), I.compose(F), Z(F.prototype, { allowDG: !1, forceCrop: !0, invertible: !1, noSharedTooltip: !0, pointClass: y, sorted: !1, takeOrdinalPosition: !1, trackerGroups: ["markerGroup"], buildKDTree: j, init: b.prototype.init, invertGroups: j }), H.registerSeriesType("flags", F), F;
  7039. }), T(l, "Core/Axis/ScrollbarAxis.js", [l["Core/Utilities.js"]], function(y) {
  7040. var j = y.addEvent, I = y.defined, Z = y.pick;
  7041. return function() {
  7042. function H() {
  7043. }
  7044. return H.compose = function(U, F) {
  7045. if (H.composed.indexOf(U) === -1)
  7046. H.composed.push(U);
  7047. else
  7048. return U;
  7049. var R = function(N) {
  7050. var b = Z(N.options && N.options.min, N.min), x = Z(N.options && N.options.max, N.max);
  7051. return { axisMin: b, axisMax: x, scrollMin: I(N.dataMin) ? Math.min(b, N.min, N.dataMin, Z(N.threshold, 1 / 0)) : b, scrollMax: I(N.dataMax) ? Math.max(x, N.max, N.dataMax, Z(N.threshold, -1 / 0)) : x };
  7052. };
  7053. return j(U, "afterInit", function() {
  7054. var N = this;
  7055. N.options && N.options.scrollbar && N.options.scrollbar.enabled && (N.options.scrollbar.vertical = !N.horiz, N.options.startOnTick = N.options.endOnTick = !1, N.scrollbar = new F(N.chart.renderer, N.options.scrollbar, N.chart), j(N.scrollbar, "changed", function(b) {
  7056. var x = R(N), u = x.axisMax, f = x.scrollMin, E = x.scrollMax - f;
  7057. I(x.axisMin) && I(u) && (N.horiz && !N.reversed || !N.horiz && N.reversed ? (x = f + E * this.to, f += E * this.from) : (x = f + E * (1 - this.from), f += E * (1 - this.to)), this.shouldUpdateExtremes(b.DOMType) ? N.setExtremes(f, x, !0, b.DOMType !== "mousemove" && b.DOMType !== "touchmove", b) : this.setRange(
  7058. this.from,
  7059. this.to
  7060. ));
  7061. }));
  7062. }), j(U, "afterRender", function() {
  7063. var N = R(this), b = N.scrollMin, x = N.scrollMax;
  7064. N = this.scrollbar;
  7065. var u = this.axisTitleMargin + (this.titleOffset || 0), f = this.chart.scrollbarsOffsets, E = this.options.margin || 0;
  7066. N && (this.horiz ? (this.opposite || (f[1] += u), N.position(this.left, this.top + this.height + 2 + f[1] - (this.opposite ? E : 0), this.width, this.height), this.opposite || (f[1] += E), u = 1) : (this.opposite && (f[0] += u), N.position(
  7067. N.options.opposite ? this.left + this.width + 2 + f[0] - (this.opposite ? 0 : E) : this.opposite ? 0 : E,
  7068. this.top,
  7069. this.width,
  7070. this.height
  7071. ), this.opposite && (f[0] += E), u = 0), f[u] += N.size + N.options.margin, isNaN(b) || isNaN(x) || !I(this.min) || !I(this.max) || this.min === this.max ? N.setRange(0, 1) : (f = (this.min - b) / (x - b), b = (this.max - b) / (x - b), this.horiz && !this.reversed || !this.horiz && this.reversed ? N.setRange(f, b) : N.setRange(1 - b, 1 - f)));
  7072. }), j(U, "afterGetOffset", function() {
  7073. var N = this.scrollbar && !this.scrollbar.options.opposite;
  7074. N = this.horiz ? 2 : N ? 3 : 1;
  7075. var b = this.scrollbar;
  7076. b && (this.chart.scrollbarsOffsets = [0, 0], this.chart.axisOffset[N] += b.size + b.options.margin);
  7077. }), U;
  7078. }, H.composed = [], H;
  7079. }();
  7080. }), T(l, "Core/ScrollbarDefaults.js", [l["Core/Globals.js"]], function(y) {
  7081. return {
  7082. height: y.isTouchDevice ? 20 : 14,
  7083. barBorderRadius: 0,
  7084. buttonBorderRadius: 0,
  7085. liveRedraw: void 0,
  7086. margin: 10,
  7087. minWidth: 6,
  7088. opposite: !0,
  7089. step: 0.2,
  7090. zIndex: 3,
  7091. barBackgroundColor: "#cccccc",
  7092. barBorderWidth: 1,
  7093. barBorderColor: "#cccccc",
  7094. buttonArrowColor: "#333333",
  7095. buttonBackgroundColor: "#e6e6e6",
  7096. buttonBorderColor: "#cccccc",
  7097. buttonBorderWidth: 1,
  7098. rifleColor: "#333333",
  7099. trackBackgroundColor: "#f2f2f2",
  7100. trackBorderColor: "#f2f2f2",
  7101. trackBorderWidth: 1
  7102. };
  7103. }), T(l, "Core/Scrollbar.js", [l["Core/DefaultOptions.js"], l["Core/Globals.js"], l["Core/Axis/ScrollbarAxis.js"], l["Core/ScrollbarDefaults.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  7104. var U = y.defaultOptions, F = H.addEvent, R = H.correctFloat, N = H.defined, b = H.destroyObjectProperties, x = H.fireEvent, u = H.merge, f = H.pick, E = H.removeEvent;
  7105. return y = function() {
  7106. function O(B, M, S) {
  7107. this._events = [], this.chart = void 0, this.from = this.chartY = this.chartX = 0, this.scrollbar = this.renderer = this.options = this.group = void 0, this.scrollbarButtons = [], this.scrollbarGroup = void 0, this.scrollbarLeft = 0, this.scrollbarRifles = void 0, this.scrollbarStrokeWidth = 1, this.to = this.size = this.scrollbarTop = 0, this.track = void 0, this.trackBorderWidth = 1, this.userOptions = void 0, this.y = this.x = 0, this.init(B, M, S);
  7108. }
  7109. return O.compose = function(B) {
  7110. I.compose(B, O);
  7111. }, O.swapXY = function(B, M) {
  7112. return M && B.forEach(function(S) {
  7113. for (var w = S.length, v, a = 0; a < w; a += 2)
  7114. v = S[a + 1], typeof v == "number" && (S[a + 1] = S[a + 2], S[a + 2] = v);
  7115. }), B;
  7116. }, O.prototype.addEvents = function() {
  7117. var B = this.options.inverted ? [1, 0] : [0, 1], M = this.scrollbarButtons, S = this.scrollbarGroup.element, w = this.track.element, v = this.mouseDownHandler.bind(this), a = this.mouseMoveHandler.bind(this), c = this.mouseUpHandler.bind(this);
  7118. B = [[M[B[0]].element, "click", this.buttonToMinClick.bind(this)], [M[B[1]].element, "click", this.buttonToMaxClick.bind(this)], [w, "click", this.trackClick.bind(this)], [S, "mousedown", v], [S.ownerDocument, "mousemove", a], [S.ownerDocument, "mouseup", c]], j.hasTouch && B.push(
  7119. [S, "touchstart", v],
  7120. [S.ownerDocument, "touchmove", a],
  7121. [S.ownerDocument, "touchend", c]
  7122. ), B.forEach(function(p) {
  7123. F.apply(null, p);
  7124. }), this._events = B;
  7125. }, O.prototype.buttonToMaxClick = function(B) {
  7126. var M = (this.to - this.from) * f(this.options.step, 0.2);
  7127. this.updatePosition(this.from + M, this.to + M), x(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMEvent: B });
  7128. }, O.prototype.buttonToMinClick = function(B) {
  7129. var M = R(this.to - this.from) * f(this.options.step, 0.2);
  7130. this.updatePosition(R(this.from - M), R(this.to - M)), x(this, "changed", {
  7131. from: this.from,
  7132. to: this.to,
  7133. trigger: "scrollbar",
  7134. DOMEvent: B
  7135. });
  7136. }, O.prototype.cursorToScrollbarPosition = function(B) {
  7137. var M = this.options;
  7138. return M = M.minWidth > this.calculatedWidth ? M.minWidth : 0, { chartX: (B.chartX - this.x - this.xOffset) / (this.barWidth - M), chartY: (B.chartY - this.y - this.yOffset) / (this.barWidth - M) };
  7139. }, O.prototype.destroy = function() {
  7140. var B = this, M = B.chart.scroller;
  7141. B.removeEvents(), ["track", "scrollbarRifles", "scrollbar", "scrollbarGroup", "group"].forEach(function(S) {
  7142. B[S] && B[S].destroy && (B[S] = B[S].destroy());
  7143. }), M && B === M.scrollbar && (M.scrollbar = null, b(M.scrollbarButtons));
  7144. }, O.prototype.drawScrollbarButton = function(B) {
  7145. var M = this.renderer, S = this.scrollbarButtons, w = this.options, v = this.size, a = M.g().add(this.group);
  7146. S.push(a), a = M.rect().addClass("highcharts-scrollbar-button").add(a), this.chart.styledMode || a.attr({ stroke: w.buttonBorderColor, "stroke-width": w.buttonBorderWidth, fill: w.buttonBackgroundColor }), a.attr(a.crisp({ x: -0.5, y: -0.5, width: v + 1, height: v + 1, r: w.buttonBorderRadius }, a.strokeWidth())), a = M.path(O.swapXY([["M", v / 2 + (B ? -1 : 1), v / 2 - 3], ["L", v / 2 + (B ? -1 : 1), v / 2 + 3], ["L", v / 2 + (B ? 2 : -2), v / 2]], w.vertical)).addClass("highcharts-scrollbar-arrow").add(S[B]), this.chart.styledMode || a.attr({ fill: w.buttonArrowColor });
  7147. }, O.prototype.init = function(B, M, S) {
  7148. this.scrollbarButtons = [], this.renderer = B, this.userOptions = M, this.options = u(Z, U.scrollbar, M), this.chart = S, this.size = f(this.options.size, this.options.height), M.enabled && (this.render(), this.addEvents());
  7149. }, O.prototype.mouseDownHandler = function(B) {
  7150. B = this.chart.pointer.normalize(B), B = this.cursorToScrollbarPosition(B), this.chartX = B.chartX, this.chartY = B.chartY, this.initPositions = [this.from, this.to], this.grabbedCenter = !0;
  7151. }, O.prototype.mouseMoveHandler = function(B) {
  7152. var M = this.chart.pointer.normalize(B), S = this.options.vertical ? "chartY" : "chartX", w = this.initPositions || [];
  7153. !this.grabbedCenter || B.touches && B.touches[0][S] === 0 || (M = this.cursorToScrollbarPosition(M)[S], S = this[S], S = M - S, this.hasDragged = !0, this.updatePosition(w[0] + S, w[1] + S), this.hasDragged && x(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: B.type, DOMEvent: B }));
  7154. }, O.prototype.mouseUpHandler = function(B) {
  7155. this.hasDragged && x(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: B.type, DOMEvent: B }), this.grabbedCenter = this.hasDragged = this.chartX = this.chartY = null;
  7156. }, O.prototype.position = function(B, M, S, w) {
  7157. var v = this.options.vertical, a = this.rendered ? "animate" : "attr", c = 0;
  7158. this.x = B, this.y = M + this.trackBorderWidth, this.width = S, this.xOffset = this.height = w, this.yOffset = c, v ? (this.width = this.yOffset = S = c = this.size, this.xOffset = M = 0, this.barWidth = w - 2 * S, this.x = B += this.options.margin) : (this.height = this.xOffset = w = M = this.size, this.barWidth = S - 2 * w, this.y += this.options.margin), this.group[a]({ translateX: B, translateY: this.y }), this.track[a]({ width: S, height: w }), this.scrollbarButtons[1][a]({ translateX: v ? 0 : S - M, translateY: v ? w - c : 0 });
  7159. }, O.prototype.removeEvents = function() {
  7160. this._events.forEach(function(B) {
  7161. E.apply(null, B);
  7162. }), this._events.length = 0;
  7163. }, O.prototype.render = function() {
  7164. var B = this.renderer, M = this.options, S = this.size, w = this.chart.styledMode, v = B.g("scrollbar").attr({ zIndex: M.zIndex, translateY: -99999 }).add();
  7165. this.group = v, this.track = B.rect().addClass("highcharts-scrollbar-track").attr({ x: 0, r: M.trackBorderRadius || 0, height: S, width: S }).add(v), w || this.track.attr({ fill: M.trackBackgroundColor, stroke: M.trackBorderColor, "stroke-width": M.trackBorderWidth }), this.trackBorderWidth = this.track.strokeWidth(), this.track.attr({ y: -this.trackBorderWidth % 2 / 2 }), this.scrollbarGroup = B.g().add(v), this.scrollbar = B.rect().addClass("highcharts-scrollbar-thumb").attr({ height: S, width: S, r: M.barBorderRadius || 0 }).add(this.scrollbarGroup), this.scrollbarRifles = B.path(O.swapXY([["M", -3, S / 4], ["L", -3, 2 * S / 3], ["M", 0, S / 4], ["L", 0, 2 * S / 3], ["M", 3, S / 4], ["L", 3, 2 * S / 3]], M.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup), w || (this.scrollbar.attr({ fill: M.barBackgroundColor, stroke: M.barBorderColor, "stroke-width": M.barBorderWidth }), this.scrollbarRifles.attr({ stroke: M.rifleColor, "stroke-width": 1 })), this.scrollbarStrokeWidth = this.scrollbar.strokeWidth(), this.scrollbarGroup.translate(-this.scrollbarStrokeWidth % 2 / 2, -this.scrollbarStrokeWidth % 2 / 2), this.drawScrollbarButton(0), this.drawScrollbarButton(1);
  7166. }, O.prototype.setRange = function(B, M) {
  7167. var S = this.options, w = S.vertical, v = S.minWidth, a = this.barWidth, c = !this.rendered || this.hasDragged || this.chart.navigator && this.chart.navigator.hasDragged ? "attr" : "animate";
  7168. if (N(a)) {
  7169. var p = a * Math.min(M, 1);
  7170. B = Math.max(B, 0);
  7171. var i = Math.ceil(a * B);
  7172. this.calculatedWidth = p = R(p - i), p < v && (i = (a - v + p) * B, p = v), v = Math.floor(i + this.xOffset + this.yOffset), a = p / 2 - 0.5, this.from = B, this.to = M, w ? (this.scrollbarGroup[c]({ translateY: v }), this.scrollbar[c]({ height: p }), this.scrollbarRifles[c]({ translateY: a }), this.scrollbarTop = v, this.scrollbarLeft = 0) : (this.scrollbarGroup[c]({ translateX: v }), this.scrollbar[c]({ width: p }), this.scrollbarRifles[c]({ translateX: a }), this.scrollbarLeft = v, this.scrollbarTop = 0), 12 >= p ? this.scrollbarRifles.hide() : this.scrollbarRifles.show(!0), S.showFull === !1 && (0 >= B && 1 <= M ? this.group.hide() : this.group.show()), this.rendered = !0;
  7173. }
  7174. }, O.prototype.shouldUpdateExtremes = function(B) {
  7175. return f(this.options.liveRedraw, j.svg && !j.isTouchDevice && !this.chart.isBoosting) || B === "mouseup" || B === "touchend" || !N(B);
  7176. }, O.prototype.trackClick = function(B) {
  7177. var M = this.chart.pointer.normalize(B), S = this.to - this.from, w = this.y + this.scrollbarTop, v = this.x + this.scrollbarLeft;
  7178. this.options.vertical && M.chartY > w || !this.options.vertical && M.chartX > v ? this.updatePosition(this.from + S, this.to + S) : this.updatePosition(this.from - S, this.to - S), x(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMEvent: B });
  7179. }, O.prototype.update = function(B) {
  7180. this.destroy(), this.init(this.chart.renderer, u(
  7181. !0,
  7182. this.options,
  7183. B
  7184. ), this.chart);
  7185. }, O.prototype.updatePosition = function(B, M) {
  7186. 1 < M && (B = R(1 - R(M - B)), M = 1), 0 > B && (M = R(M - B), B = 0), this.from = B, this.to = M;
  7187. }, O.defaultOptions = Z, O;
  7188. }(), U.scrollbar = u(!0, y.defaultOptions, U.scrollbar), y;
  7189. }), T(l, "Core/Axis/NavigatorAxis.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  7190. var I = y.isTouchDevice, Z = j.addEvent, H = j.correctFloat, U = j.defined, F = j.isNumber, R = j.pick, N = function() {
  7191. function b(x) {
  7192. this.axis = x;
  7193. }
  7194. return b.prototype.destroy = function() {
  7195. this.axis = void 0;
  7196. }, b.prototype.toFixedRange = function(x, u, f, E) {
  7197. var O = this.axis, B = O.chart;
  7198. B = B && B.fixedRange;
  7199. var M = (O.pointRange || 0) / 2;
  7200. return x = R(f, O.translate(x, !0, !O.horiz)), u = R(E, O.translate(u, !0, !O.horiz)), O = B && (u - x) / B, U(f) || (x = H(x + M)), U(E) || (u = H(u - M)), 0.7 < O && 1.3 > O && (E ? x = u - B : u = x + B), F(x) && F(u) || (x = u = void 0), { min: x, max: u };
  7201. }, b;
  7202. }();
  7203. return function() {
  7204. function b() {
  7205. }
  7206. return b.compose = function(x) {
  7207. x.keepProps.push("navigatorAxis"), Z(x, "init", function() {
  7208. this.navigatorAxis || (this.navigatorAxis = new N(this));
  7209. }), Z(x, "zoom", function(u) {
  7210. var f = this.chart.options, E = f.navigator, O = this.navigatorAxis, B = f.chart.pinchType, M = f.rangeSelector;
  7211. f = f.chart.zoomType, this.isXAxis && (E && E.enabled || M && M.enabled) && (f === "y" ? u.zoomed = !1 : (!I && f === "xy" || I && B === "xy") && this.options.range && (E = O.previousZoom, U(u.newMin) ? O.previousZoom = [this.min, this.max] : E && (u.newMin = E[0], u.newMax = E[1], O.previousZoom = void 0))), typeof u.zoomed < "u" && u.preventDefault();
  7212. });
  7213. }, b.AdditionsClass = N, b;
  7214. }();
  7215. }), T(l, "Core/Navigator.js", [
  7216. l["Core/Axis/Axis.js"],
  7217. l["Core/Chart/Chart.js"],
  7218. l["Core/Color/Color.js"],
  7219. l["Core/Globals.js"],
  7220. l["Core/Axis/NavigatorAxis.js"],
  7221. l["Core/DefaultOptions.js"],
  7222. l["Core/Renderer/RendererRegistry.js"],
  7223. l["Core/Scrollbar.js"],
  7224. l["Core/Series/Series.js"],
  7225. l["Core/Series/SeriesRegistry.js"],
  7226. l["Core/Utilities.js"]
  7227. ], function(y, j, I, Z, H, U, F, R, N, b, x) {
  7228. I = I.parse;
  7229. var u = Z.hasTouch, f = Z.isTouchDevice, E = U.defaultOptions, O = x.addEvent, B = x.clamp, M = x.correctFloat, S = x.defined, w = x.destroyObjectProperties, v = x.erase, a = x.extend, c = x.find, p = x.isArray, i = x.isNumber, h = x.merge, s = x.pick, t = x.removeEvent, o = x.splat, n = function(_) {
  7230. for (var D = [], W = 1; W < arguments.length; W++)
  7231. D[W - 1] = arguments[W];
  7232. if (D = [].filter.call(D, i), D.length)
  7233. return Math[_].apply(0, D);
  7234. };
  7235. U = typeof b.seriesTypes.areaspline > "u" ? "line" : "areaspline", a(E, { navigator: { height: 40, margin: 25, maskInside: !0, handles: { width: 7, height: 15, symbols: ["navigator-handle", "navigator-handle"], enabled: !0, lineWidth: 1, backgroundColor: "#f2f2f2", borderColor: "#999999" }, maskFill: I("#6685c2").setOpacity(0.3).get(), outlineColor: "#cccccc", outlineWidth: 1, series: {
  7236. type: U,
  7237. fillOpacity: 0.05,
  7238. lineWidth: 1,
  7239. compare: null,
  7240. dataGrouping: { approximation: "average", enabled: !0, groupPixelWidth: 2, firstAnchor: "firstPoint", anchor: "middle", lastAnchor: "lastPoint", units: [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2, 3, 4]], ["week", [1, 2, 3]], ["month", [1, 3, 6]], ["year", null]] },
  7241. dataLabels: { enabled: !1, zIndex: 2 },
  7242. id: "highcharts-navigator-series",
  7243. className: "highcharts-navigator-series",
  7244. lineColor: null,
  7245. marker: { enabled: !1 },
  7246. threshold: null
  7247. }, xAxis: { overscroll: 0, className: "highcharts-navigator-xaxis", tickLength: 0, lineWidth: 0, gridLineColor: "#e6e6e6", gridLineWidth: 1, tickPixelInterval: 200, labels: { align: "left", style: { color: "#999999" }, x: 3, y: -4 }, crosshair: !1 }, yAxis: { className: "highcharts-navigator-yaxis", gridLineWidth: 0, startOnTick: !1, endOnTick: !1, minPadding: 0.1, maxPadding: 0.1, labels: { enabled: !1 }, crosshair: !1, title: { text: null }, tickLength: 0, tickWidth: 0 } } }), F.getRendererType().prototype.symbols["navigator-handle"] = function(_, D, W, P, X) {
  7248. return _ = (X && X.width || 0) / 2, D = Math.round(_ / 3) + 0.5, X = X && X.height || 0, [["M", -_ - 1, 0.5], ["L", _, 0.5], ["L", _, X + 0.5], ["L", -_ - 1, X + 0.5], ["L", -_ - 1, 0.5], ["M", -D, 4], ["L", -D, X - 3], ["M", D - 1, 4], ["L", D - 1, X - 3]];
  7249. };
  7250. var A = function() {
  7251. function _(D) {
  7252. this.zoomedMin = this.zoomedMax = this.yAxis = this.xAxis = this.top = this.size = this.shades = this.rendered = this.range = this.outlineHeight = this.outline = this.opposite = this.navigatorSize = this.navigatorSeries = this.navigatorOptions = this.navigatorGroup = this.navigatorEnabled = this.left = this.height = this.handles = this.chart = this.baseSeries = void 0, this.init(D);
  7253. }
  7254. return _.prototype.drawHandle = function(D, W, P, X) {
  7255. var g = this.navigatorOptions.handles.height;
  7256. this.handles[W][X](P ? { translateX: Math.round(this.left + this.height / 2), translateY: Math.round(this.top + parseInt(D, 10) + 0.5 - g) } : { translateX: Math.round(this.left + parseInt(D, 10)), translateY: Math.round(this.top + this.height / 2 - g / 2 - 1) });
  7257. }, _.prototype.drawOutline = function(D, W, P, X) {
  7258. var g = this.navigatorOptions.maskInside, m = this.outline.strokeWidth(), L = m / 2, Y = m % 2 / 2;
  7259. m = this.outlineHeight;
  7260. var V = this.scrollbarHeight || 0, Q = this.size, k = this.left - V, G = this.top;
  7261. P ? (k -= L, P = G + W + Y, W = G + D + Y, Y = [["M", k + m, G - V - Y], ["L", k + m, P], ["L", k, P], ["L", k, W], ["L", k + m, W], ["L", k + m, G + Q + V]], g && Y.push(["M", k + m, P - L], ["L", k + m, W + L])) : (D += k + V - Y, W += k + V - Y, G += L, Y = [["M", k, G], ["L", D, G], ["L", D, G + m], ["L", W, G + m], ["L", W, G], ["L", k + Q + 2 * V, G]], g && Y.push(["M", D - L, G], ["L", W + L, G])), this.outline[X]({ d: Y });
  7262. }, _.prototype.drawMasks = function(D, W, P, X) {
  7263. var g = this.left, m = this.top, L = this.height;
  7264. if (P)
  7265. var Y = [g, g, g], V = [m, m + D, m + W], Q = [L, L, L], k = [D, W - D, this.size - W];
  7266. else
  7267. Y = [g, g + D, g + W], V = [m, m, m], Q = [D, W - D, this.size - W], k = [L, L, L];
  7268. this.shades.forEach(function(G, z) {
  7269. G[X]({ x: Y[z], y: V[z], width: Q[z], height: k[z] });
  7270. });
  7271. }, _.prototype.renderElements = function() {
  7272. var D = this, W = D.navigatorOptions, P = W.maskInside, X = D.chart, g = X.renderer, m, L = { cursor: X.inverted ? "ns-resize" : "ew-resize" };
  7273. D.navigatorGroup = m = g.g("navigator").attr({ zIndex: 8, visibility: "hidden" }).add(), [!P, P, !P].forEach(function(Y, V) {
  7274. D.shades[V] = g.rect().addClass("highcharts-navigator-mask" + (V === 1 ? "-inside" : "-outside")).add(m), X.styledMode || D.shades[V].attr({ fill: Y ? W.maskFill : "rgba(0,0,0,0)" }).css(V === 1 && L);
  7275. }), D.outline = g.path().addClass("highcharts-navigator-outline").add(m), X.styledMode || D.outline.attr({ "stroke-width": W.outlineWidth, stroke: W.outlineColor }), W.handles.enabled && [0, 1].forEach(function(Y) {
  7276. if (W.handles.inverted = X.inverted, D.handles[Y] = g.symbol(W.handles.symbols[Y], -W.handles.width / 2 - 1, 0, W.handles.width, W.handles.height, W.handles), D.handles[Y].attr({ zIndex: 7 - Y }).addClass("highcharts-navigator-handle highcharts-navigator-handle-" + ["left", "right"][Y]).add(m), !X.styledMode) {
  7277. var V = W.handles;
  7278. D.handles[Y].attr({ fill: V.backgroundColor, stroke: V.borderColor, "stroke-width": V.lineWidth }).css(L);
  7279. }
  7280. });
  7281. }, _.prototype.update = function(D) {
  7282. (this.series || []).forEach(function(W) {
  7283. W.baseSeries && delete W.baseSeries.navigatorSeries;
  7284. }), this.destroy(), h(!0, this.chart.options.navigator, this.options, D), this.init(this.chart);
  7285. }, _.prototype.render = function(D, W, P, X) {
  7286. var g = this.chart, m = this.scrollbarHeight, L, Y = this.xAxis, V = Y.pointRange || 0, Q = Y.navigatorAxis.fake ? g.xAxis[0] : Y, k = this.navigatorEnabled, G, z = this.rendered, $ = g.inverted, q = g.xAxis[0].minRange, it = g.xAxis[0].options.maxRange;
  7287. if (!this.hasDragged || S(P)) {
  7288. if (D = M(D - V / 2), W = M(W + V / 2), !i(D) || !i(W))
  7289. if (z)
  7290. P = 0, X = s(Y.width, Q.width);
  7291. else
  7292. return;
  7293. this.left = s(Y.left, g.plotLeft + m + ($ ? g.plotWidth : 0)), this.size = G = L = s(Y.len, ($ ? g.plotHeight : g.plotWidth) - 2 * m), g = $ ? m : L + 2 * m, P = s(P, Y.toPixels(D, !0)), X = s(X, Y.toPixels(W, !0)), i(P) && Math.abs(P) !== 1 / 0 || (P = 0, X = g), D = Y.toValue(P, !0), W = Y.toValue(X, !0);
  7294. var et = Math.abs(M(W - D));
  7295. et < q ? this.grabbedLeft ? P = Y.toPixels(W - q - V, !0) : this.grabbedRight && (X = Y.toPixels(D + q + V, !0)) : S(it) && M(et - V) > it && (this.grabbedLeft ? P = Y.toPixels(W - it - V, !0) : this.grabbedRight && (X = Y.toPixels(D + it + V, !0))), this.zoomedMax = B(Math.max(P, X), 0, G), this.zoomedMin = B(this.fixedWidth ? this.zoomedMax - this.fixedWidth : Math.min(P, X), 0, G), this.range = this.zoomedMax - this.zoomedMin, G = Math.round(this.zoomedMax), P = Math.round(this.zoomedMin), k && (this.navigatorGroup.attr({ visibility: "visible" }), z = z && !this.hasDragged ? "animate" : "attr", this.drawMasks(P, G, $, z), this.drawOutline(P, G, $, z), this.navigatorOptions.handles.enabled && (this.drawHandle(P, 0, $, z), this.drawHandle(G, 1, $, z))), this.scrollbar && ($ ? ($ = this.top - m, Q = this.left - m + (k || !Q.opposite ? 0 : (Q.titleOffset || 0) + Q.axisTitleMargin), m = L + 2 * m) : ($ = this.top + (k ? this.height : -m), Q = this.left - m), this.scrollbar.position(Q, $, g, m), this.scrollbar.setRange(this.zoomedMin / (L || 1), this.zoomedMax / (L || 1))), this.rendered = !0;
  7296. }
  7297. }, _.prototype.addMouseEvents = function() {
  7298. var D = this, W = D.chart, P = W.container, X = [], g, m;
  7299. D.mouseMoveHandler = g = function(L) {
  7300. D.onMouseMove(L);
  7301. }, D.mouseUpHandler = m = function(L) {
  7302. D.onMouseUp(L);
  7303. }, X = D.getPartsEvents("mousedown"), X.push(O(W.renderTo, "mousemove", g), O(P.ownerDocument, "mouseup", m)), u && (X.push(O(W.renderTo, "touchmove", g), O(P.ownerDocument, "touchend", m)), X.concat(D.getPartsEvents("touchstart"))), D.eventsToUnbind = X, D.series && D.series[0] && X.push(O(D.series[0].xAxis, "foundExtremes", function() {
  7304. W.navigator.modifyNavigatorAxisExtremes();
  7305. }));
  7306. }, _.prototype.getPartsEvents = function(D) {
  7307. var W = this, P = [];
  7308. return ["shades", "handles"].forEach(function(X) {
  7309. W[X].forEach(function(g, m) {
  7310. P.push(O(g.element, D, function(L) {
  7311. W[X + "Mousedown"](L, m);
  7312. }));
  7313. });
  7314. }), P;
  7315. }, _.prototype.shadesMousedown = function(D, W) {
  7316. D = this.chart.pointer.normalize(D);
  7317. var P = this.chart, X = this.xAxis, g = this.zoomedMin, m = this.left, L = this.size, Y = this.range, V = D.chartX;
  7318. if (P.inverted && (V = D.chartY, m = this.top), W === 1)
  7319. this.grabbedCenter = V, this.fixedWidth = Y, this.dragOffset = V - g;
  7320. else {
  7321. if (D = V - m - Y / 2, W === 0)
  7322. D = Math.max(0, D);
  7323. else if (W === 2 && D + Y >= L)
  7324. if (D = L - Y, this.reversedExtremes) {
  7325. D -= Y;
  7326. var Q = this.getUnionExtremes().dataMin;
  7327. } else
  7328. var k = this.getUnionExtremes().dataMax;
  7329. D !== g && (this.fixedWidth = Y, W = X.navigatorAxis.toFixedRange(D, D + Y, Q, k), S(W.min) && P.xAxis[0].setExtremes(Math.min(W.min, W.max), Math.max(W.min, W.max), !0, null, { trigger: "navigator" }));
  7330. }
  7331. }, _.prototype.handlesMousedown = function(D, W) {
  7332. this.chart.pointer.normalize(D), D = this.chart;
  7333. var P = D.xAxis[0], X = this.reversedExtremes;
  7334. W === 0 ? (this.grabbedLeft = !0, this.otherHandlePos = this.zoomedMax, this.fixedExtreme = X ? P.min : P.max) : (this.grabbedRight = !0, this.otherHandlePos = this.zoomedMin, this.fixedExtreme = X ? P.max : P.min), D.fixedRange = null;
  7335. }, _.prototype.onMouseMove = function(D) {
  7336. var W = this, P = W.chart, X = W.left, g = W.navigatorSize, m = W.range, L = W.dragOffset, Y = P.inverted;
  7337. D.touches && D.touches[0].pageX === 0 || (D = P.pointer.normalize(D), P = D.chartX, Y && (X = W.top, P = D.chartY), W.grabbedLeft ? (W.hasDragged = !0, W.render(0, 0, P - X, W.otherHandlePos)) : W.grabbedRight ? (W.hasDragged = !0, W.render(0, 0, W.otherHandlePos, P - X)) : W.grabbedCenter && (W.hasDragged = !0, P < L ? P = L : P > g + L - m && (P = g + L - m), W.render(0, 0, P - L, P - L + m)), W.hasDragged && W.scrollbar && s(W.scrollbar.options.liveRedraw, Z.svg && !f && !this.chart.isBoosting) && (D.DOMType = D.type, setTimeout(function() {
  7338. W.onMouseUp(D);
  7339. }, 0)));
  7340. }, _.prototype.onMouseUp = function(D) {
  7341. var W = this.chart, P = this.xAxis, X = this.scrollbar, g = D.DOMEvent || D, m = W.inverted, L = this.rendered && !this.hasDragged ? "animate" : "attr";
  7342. if (this.hasDragged && (!X || !X.hasDragged) || D.trigger === "scrollbar") {
  7343. if (X = this.getUnionExtremes(), this.zoomedMin === this.otherHandlePos)
  7344. var Y = this.fixedExtreme;
  7345. else if (this.zoomedMax === this.otherHandlePos)
  7346. var V = this.fixedExtreme;
  7347. this.zoomedMax === this.size && (V = this.reversedExtremes ? X.dataMin : X.dataMax), this.zoomedMin === 0 && (Y = this.reversedExtremes ? X.dataMax : X.dataMin), P = P.navigatorAxis.toFixedRange(this.zoomedMin, this.zoomedMax, Y, V), S(P.min) && W.xAxis[0].setExtremes(Math.min(P.min, P.max), Math.max(P.min, P.max), !0, this.hasDragged ? !1 : null, { trigger: "navigator", triggerOp: "navigator-drag", DOMEvent: g });
  7348. }
  7349. D.DOMType !== "mousemove" && D.DOMType !== "touchmove" && (this.grabbedLeft = this.grabbedRight = this.grabbedCenter = this.fixedWidth = this.fixedExtreme = this.otherHandlePos = this.hasDragged = this.dragOffset = null), this.navigatorEnabled && i(this.zoomedMin) && i(this.zoomedMax) && (W = Math.round(this.zoomedMin), D = Math.round(this.zoomedMax), this.shades && this.drawMasks(W, D, m, L), this.outline && this.drawOutline(W, D, m, L), this.navigatorOptions.handles.enabled && Object.keys(this.handles).length === this.handles.length && (this.drawHandle(W, 0, m, L), this.drawHandle(D, 1, m, L)));
  7350. }, _.prototype.removeEvents = function() {
  7351. this.eventsToUnbind && (this.eventsToUnbind.forEach(function(D) {
  7352. D();
  7353. }), this.eventsToUnbind = void 0), this.removeBaseSeriesEvents();
  7354. }, _.prototype.removeBaseSeriesEvents = function() {
  7355. var D = this.baseSeries || [];
  7356. this.navigatorEnabled && D[0] && (this.navigatorOptions.adaptToUpdatedData !== !1 && D.forEach(function(W) {
  7357. t(W, "updatedData", this.updatedDataHandler);
  7358. }, this), D[0].xAxis && t(D[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes));
  7359. }, _.prototype.init = function(D) {
  7360. var W = D.options, P = W.navigator, X = P.enabled, g = W.scrollbar, m = g.enabled;
  7361. W = X ? P.height : 0;
  7362. var L = m ? g.height : 0;
  7363. this.handles = [], this.shades = [], this.chart = D, this.setBaseSeries(), this.height = W, this.scrollbarHeight = L, this.scrollbarEnabled = m, this.navigatorEnabled = X, this.navigatorOptions = P, this.scrollbarOptions = g, this.outlineHeight = W + L, this.opposite = s(P.opposite, !(X || !D.inverted));
  7364. var Y = this;
  7365. X = Y.baseSeries, g = D.xAxis.length, m = D.yAxis.length;
  7366. var V = X && X[0] && X[0].xAxis || D.xAxis[0] || { options: {} };
  7367. D.isDirtyBox = !0, Y.navigatorEnabled ? (Y.xAxis = new y(D, h(
  7368. { breaks: V.options.breaks, ordinal: V.options.ordinal },
  7369. P.xAxis,
  7370. { id: "navigator-x-axis", yAxis: "navigator-y-axis", isX: !0, type: "datetime", index: g, isInternal: !0, offset: 0, keepOrdinalPadding: !0, startOnTick: !1, endOnTick: !1, minPadding: 0, maxPadding: 0, zoomEnabled: !1 },
  7371. D.inverted ? { offsets: [L, 0, -L, 0], width: W } : { offsets: [0, -L, 0, L], height: W }
  7372. )), Y.yAxis = new y(D, h(P.yAxis, { id: "navigator-y-axis", alignTicks: !1, offset: 0, index: m, isInternal: !0, reversed: s(P.yAxis && P.yAxis.reversed, D.yAxis[0] && D.yAxis[0].reversed, !1), zoomEnabled: !1 }, D.inverted ? { width: W } : { height: W })), X || P.series.data ? Y.updateNavigatorSeries(!1) : D.series.length === 0 && (Y.unbindRedraw = O(D, "beforeRedraw", function() {
  7373. 0 < D.series.length && !Y.series && (Y.setBaseSeries(), Y.unbindRedraw());
  7374. })), Y.reversedExtremes = D.inverted && !Y.xAxis.reversed || !D.inverted && Y.xAxis.reversed, Y.renderElements(), Y.addMouseEvents()) : (Y.xAxis = {
  7375. chart: D,
  7376. navigatorAxis: { fake: !0 },
  7377. translate: function(Q, k) {
  7378. var G = D.xAxis[0], z = G.getExtremes(), $ = G.len - 2 * L, q = n("min", G.options.min, z.dataMin);
  7379. return G = n("max", G.options.max, z.dataMax) - q, k ? Q * G / $ + q : $ * (Q - q) / G;
  7380. },
  7381. toPixels: function(Q) {
  7382. return this.translate(Q);
  7383. },
  7384. toValue: function(Q) {
  7385. return this.translate(Q, !0);
  7386. }
  7387. }, Y.xAxis.navigatorAxis.axis = Y.xAxis, Y.xAxis.navigatorAxis.toFixedRange = H.AdditionsClass.prototype.toFixedRange.bind(Y.xAxis.navigatorAxis)), D.options.scrollbar.enabled && (D.scrollbar = Y.scrollbar = new R(D.renderer, h(D.options.scrollbar, { margin: Y.navigatorEnabled ? 0 : 10, vertical: D.inverted }), D), O(Y.scrollbar, "changed", function(Q) {
  7388. var k = Y.size, G = k * this.to;
  7389. k *= this.from, Y.hasDragged = Y.scrollbar.hasDragged, Y.render(0, 0, k, G), this.shouldUpdateExtremes(Q.DOMType) && setTimeout(function() {
  7390. Y.onMouseUp(Q);
  7391. });
  7392. })), Y.addBaseSeriesEvents(), Y.addChartEvents();
  7393. }, _.prototype.getUnionExtremes = function(D) {
  7394. var W = this.chart.xAxis[0], P = this.xAxis, X = P.options, g = W.options, m;
  7395. return D && W.dataMin === null || (m = { dataMin: s(X && X.min, n("min", g.min, W.dataMin, P.dataMin, P.min)), dataMax: s(X && X.max, n("max", g.max, W.dataMax, P.dataMax, P.max)) }), m;
  7396. }, _.prototype.setBaseSeries = function(D, W) {
  7397. var P = this.chart, X = this.baseSeries = [];
  7398. D = D || P.options && P.options.navigator.baseSeries || (P.series.length ? c(
  7399. P.series,
  7400. function(g) {
  7401. return !g.options.isInternal;
  7402. }
  7403. ).index : 0), (P.series || []).forEach(function(g, m) {
  7404. g.options.isInternal || !g.options.showInNavigator && (m !== D && g.options.id !== D || g.options.showInNavigator === !1) || X.push(g);
  7405. }), this.xAxis && !this.xAxis.navigatorAxis.fake && this.updateNavigatorSeries(!0, W);
  7406. }, _.prototype.updateNavigatorSeries = function(D, W) {
  7407. var P = this, X = P.chart, g = P.baseSeries, m, L, Y = P.navigatorOptions.series, V, Q = {
  7408. enableMouseTracking: !1,
  7409. index: null,
  7410. linkedTo: null,
  7411. group: "nav",
  7412. padXAxis: !1,
  7413. xAxis: "navigator-x-axis",
  7414. yAxis: "navigator-y-axis",
  7415. showInLegend: !1,
  7416. stacking: void 0,
  7417. isInternal: !0,
  7418. states: { inactive: { opacity: 1 } }
  7419. }, k = P.series = (P.series || []).filter(function(G) {
  7420. var z = G.baseSeries;
  7421. return 0 > g.indexOf(z) ? (z && (t(z, "updatedData", P.updatedDataHandler), delete z.navigatorSeries), G.chart && G.destroy(), !1) : !0;
  7422. });
  7423. g && g.length && g.forEach(function(G) {
  7424. var z = G.navigatorSeries, $ = a({ color: G.color, visible: G.visible }, p(Y) ? E.navigator.series : Y);
  7425. z && P.navigatorOptions.adaptToUpdatedData === !1 || (Q.name = "Navigator " + g.length, m = G.options || {}, V = m.navigatorOptions || {}, $.dataLabels = o($.dataLabels), L = h(m, Q, $, V), L.pointRange = s($.pointRange, V.pointRange, E.plotOptions[L.type || "line"].pointRange), $ = V.data || $.data, P.hasNavigatorData = P.hasNavigatorData || !!$, L.data = $ || m.data && m.data.slice(0), z && z.options ? z.update(L, W) : (G.navigatorSeries = X.initSeries(L), G.navigatorSeries.baseSeries = G, k.push(G.navigatorSeries)));
  7426. }), (Y.data && (!g || !g.length) || p(Y)) && (P.hasNavigatorData = !1, Y = o(Y), Y.forEach(function(G, z) {
  7427. Q.name = "Navigator " + (k.length + 1), L = h(
  7428. E.navigator.series,
  7429. { color: X.series[z] && !X.series[z].options.isInternal && X.series[z].color || X.options.colors[z] || X.options.colors[0] },
  7430. Q,
  7431. G
  7432. ), L.data = G.data, L.data && (P.hasNavigatorData = !0, k.push(X.initSeries(L)));
  7433. })), D && this.addBaseSeriesEvents();
  7434. }, _.prototype.addBaseSeriesEvents = function() {
  7435. var D = this, W = D.baseSeries || [];
  7436. W[0] && W[0].xAxis && W[0].eventsToUnbind.push(O(W[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes)), W.forEach(function(P) {
  7437. P.eventsToUnbind.push(O(P, "show", function() {
  7438. this.navigatorSeries && this.navigatorSeries.setVisible(
  7439. !0,
  7440. !1
  7441. );
  7442. })), P.eventsToUnbind.push(O(P, "hide", function() {
  7443. this.navigatorSeries && this.navigatorSeries.setVisible(!1, !1);
  7444. })), this.navigatorOptions.adaptToUpdatedData !== !1 && P.xAxis && P.eventsToUnbind.push(O(P, "updatedData", this.updatedDataHandler)), P.eventsToUnbind.push(O(P, "remove", function() {
  7445. this.navigatorSeries && (v(D.series, this.navigatorSeries), S(this.navigatorSeries.options) && this.navigatorSeries.remove(!1), delete this.navigatorSeries);
  7446. }));
  7447. }, this);
  7448. }, _.prototype.getBaseSeriesMin = function(D) {
  7449. return this.baseSeries.reduce(function(W, P) {
  7450. return Math.min(W, P.xData ? P.xData[0] : W);
  7451. }, D);
  7452. }, _.prototype.modifyNavigatorAxisExtremes = function() {
  7453. var D = this.xAxis, W;
  7454. typeof D.getExtremes < "u" && (!(W = this.getUnionExtremes(!0)) || W.dataMin === D.min && W.dataMax === D.max || (D.min = W.dataMin, D.max = W.dataMax));
  7455. }, _.prototype.modifyBaseAxisExtremes = function() {
  7456. var D = this.chart.navigator, W = this.getExtremes(), P = W.dataMin, X = W.dataMax;
  7457. W = W.max - W.min;
  7458. var g = D.stickToMin, m = D.stickToMax, L = s(this.options.overscroll, 0), Y = D.series && D.series[0], V = !!this.setExtremes;
  7459. if (!this.eventArgs || this.eventArgs.trigger !== "rangeSelectorButton") {
  7460. if (g)
  7461. var Q = P, k = Q + W;
  7462. m && (k = X + L, g || (Q = Math.max(P, k - W, D.getBaseSeriesMin(Y && Y.xData ? Y.xData[0] : -Number.MAX_VALUE)))), V && (g || m) && i(Q) && (this.min = this.userMin = Q, this.max = this.userMax = k);
  7463. }
  7464. D.stickToMin = D.stickToMax = null;
  7465. }, _.prototype.updatedDataHandler = function() {
  7466. var D = this.chart.navigator, W = this.navigatorSeries;
  7467. D.stickToMax = D.reversedExtremes ? Math.round(D.zoomedMin) === 0 : Math.round(D.zoomedMax) >= Math.round(D.size), D.stickToMin = D.shouldStickToMin(
  7468. this,
  7469. D
  7470. ), W && !D.hasNavigatorData && (W.options.pointStart = this.xData[0], W.setData(this.options.data, !1, null, !1));
  7471. }, _.prototype.shouldStickToMin = function(D, W) {
  7472. W = W.getBaseSeriesMin(D.xData[0]);
  7473. var P = D.xAxis;
  7474. D = P.max;
  7475. var X = P.min;
  7476. return P = P.options.range, i(D) && i(X) ? P && 0 < D - W ? D - W < P : X <= W : !1;
  7477. }, _.prototype.addChartEvents = function() {
  7478. this.eventsToUnbind || (this.eventsToUnbind = []), this.eventsToUnbind.push(O(this.chart, "redraw", function() {
  7479. var D = this.navigator, W = D && (D.baseSeries && D.baseSeries[0] && D.baseSeries[0].xAxis || this.xAxis[0]);
  7480. W && D.render(W.min, W.max);
  7481. }), O(this.chart, "getMargins", function() {
  7482. var D = this.navigator, W = D.opposite ? "plotTop" : "marginBottom";
  7483. this.inverted && (W = D.opposite ? "marginRight" : "plotLeft"), this[W] = (this[W] || 0) + (D.navigatorEnabled || !this.inverted ? D.outlineHeight : 0) + D.navigatorOptions.margin;
  7484. }));
  7485. }, _.prototype.destroy = function() {
  7486. this.removeEvents(), this.xAxis && (v(this.chart.xAxis, this.xAxis), v(this.chart.axes, this.xAxis)), this.yAxis && (v(this.chart.yAxis, this.yAxis), v(this.chart.axes, this.yAxis)), (this.series || []).forEach(function(D) {
  7487. D.destroy && D.destroy();
  7488. }), "series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(D) {
  7489. this[D] && this[D].destroy && this[D].destroy(), this[D] = null;
  7490. }, this), [this.handles].forEach(function(D) {
  7491. w(D);
  7492. }, this);
  7493. }, _;
  7494. }();
  7495. return Z.Navigator || (Z.Navigator = A, H.compose(y), O(j, "beforeShowResetZoom", function() {
  7496. var _ = this.options, D = _.navigator, W = _.rangeSelector;
  7497. if ((D && D.enabled || W && W.enabled) && (!f && _.chart.zoomType === "x" || f && _.chart.pinchType === "x"))
  7498. return !1;
  7499. }), O(j, "beforeRender", function() {
  7500. var _ = this.options;
  7501. (_.navigator.enabled || _.scrollbar.enabled) && (this.scroller = this.navigator = new A(this));
  7502. }), O(j, "afterSetChartSize", function() {
  7503. var _ = this.legend, D = this.navigator;
  7504. if (D) {
  7505. var W = _ && _.options, P = D.xAxis, X = D.yAxis, g = D.scrollbarHeight;
  7506. this.inverted ? (D.left = D.opposite ? this.chartWidth - g - D.height : this.spacing[3] + g, D.top = this.plotTop + g) : (D.left = s(P.left, this.plotLeft + g), D.top = D.navigatorOptions.top || this.chartHeight - D.height - g - this.spacing[2] - (this.rangeSelector && this.extraBottomMargin ? this.rangeSelector.getHeight() : 0) - (W && W.verticalAlign === "bottom" && W.layout !== "proximate" && W.enabled && !W.floating ? _.legendHeight + s(W.margin, 10) : 0) - (this.titleOffset ? this.titleOffset[2] : 0)), P && X && (this.inverted ? P.options.left = X.options.left = D.left : P.options.top = X.options.top = D.top, P.setAxisSize(), X.setAxisSize());
  7507. }
  7508. }), O(j, "update", function(_) {
  7509. var D = _.options.navigator || {}, W = _.options.scrollbar || {};
  7510. this.navigator || this.scroller || !D.enabled && !W.enabled || (h(
  7511. !0,
  7512. this.options.navigator,
  7513. D
  7514. ), h(!0, this.options.scrollbar, W), delete _.options.navigator, delete _.options.scrollbar);
  7515. }), O(j, "afterUpdate", function(_) {
  7516. this.navigator || this.scroller || !this.options.navigator.enabled && !this.options.scrollbar.enabled || (this.scroller = this.navigator = new A(this), s(_.redraw, !0) && this.redraw(_.animation));
  7517. }), O(j, "afterAddSeries", function() {
  7518. this.navigator && this.navigator.setBaseSeries(null, !1);
  7519. }), O(N, "afterUpdate", function() {
  7520. this.chart.navigator && !this.options.isInternal && this.chart.navigator.setBaseSeries(
  7521. null,
  7522. !1
  7523. );
  7524. }), j.prototype.callbacks.push(function(_) {
  7525. var D = _.navigator;
  7526. D && _.xAxis[0] && (_ = _.xAxis[0].getExtremes(), D.render(_.min, _.max));
  7527. })), Z.Navigator = A, Z.Navigator;
  7528. }), T(l, "Extensions/RangeSelector.js", [l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/Globals.js"], l["Core/DefaultOptions.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  7529. function F(o) {
  7530. if (o.indexOf("%L") !== -1)
  7531. return "text";
  7532. var n = "aAdewbBmoyY".split("").some(function(_) {
  7533. return o.indexOf("%" + _) !== -1;
  7534. }), A = "HkIlMS".split("").some(function(_) {
  7535. return o.indexOf("%" + _) !== -1;
  7536. });
  7537. return n && A ? "datetime-local" : n ? "date" : A ? "time" : "text";
  7538. }
  7539. var R = Z.defaultOptions, N = U.addEvent, b = U.createElement, x = U.css, u = U.defined, f = U.destroyObjectProperties, E = U.discardElement, O = U.extend, B = U.find, M = U.fireEvent, S = U.isNumber, w = U.merge, v = U.objectEach, a = U.pad, c = U.pick, p = U.pInt, i = U.splat;
  7540. O(R, { rangeSelector: { allButtonsEnabled: !1, buttons: void 0, buttonSpacing: 5, dropdown: "responsive", enabled: void 0, verticalAlign: "top", buttonTheme: {
  7541. width: 28,
  7542. height: 18,
  7543. padding: 2,
  7544. zIndex: 7
  7545. }, floating: !1, x: 0, y: 0, height: void 0, inputBoxBorderColor: "none", inputBoxHeight: 17, inputBoxWidth: void 0, inputDateFormat: "%b %e, %Y", inputDateParser: void 0, inputEditDateFormat: "%Y-%m-%d", inputEnabled: !0, inputPosition: { align: "right", x: 0, y: 0 }, inputSpacing: 5, selected: void 0, buttonPosition: { align: "left", x: 0, y: 0 }, inputStyle: { color: "#335cad", cursor: "pointer" }, labelStyle: { color: "#666666" } } }), O(R.lang, { rangeSelectorZoom: "Zoom", rangeSelectorFrom: "", rangeSelectorTo: "→" });
  7546. var h = function() {
  7547. function o(n) {
  7548. this.buttons = void 0, this.buttonOptions = o.prototype.defaultButtons, this.initialButtonGroupWidth = 0, this.options = void 0, this.chart = n, this.init(n);
  7549. }
  7550. return o.prototype.clickButton = function(n, A) {
  7551. var _ = this.chart, D = this.buttonOptions[n], W = _.xAxis[0], P = _.scroller && _.scroller.getUnionExtremes() || W || {}, X = P.dataMin, g = P.dataMax, m = W && Math.round(Math.min(W.max, c(g, W.max))), L = D.type;
  7552. P = D._range;
  7553. var Y, V = D.dataGrouping;
  7554. if (X !== null && g !== null) {
  7555. if (_.fixedRange = P, this.setSelected(n), V && (this.forcedDataGrouping = !0, y.prototype.setDataGrouping.call(W || { chart: this.chart }, V, !1), this.frozenStates = D.preserveDataGrouping), L === "month" || L === "year")
  7556. if (W) {
  7557. L = { range: D, max: m, chart: _, dataMin: X, dataMax: g };
  7558. var Q = W.minFromRange.call(L);
  7559. S(L.newMax) && (m = L.newMax);
  7560. } else
  7561. P = D;
  7562. else if (P)
  7563. Q = Math.max(m - P, X), m = Math.min(Q + P, g);
  7564. else if (L === "ytd")
  7565. if (W)
  7566. typeof g > "u" && (X = Number.MAX_VALUE, g = Number.MIN_VALUE, _.series.forEach(function($) {
  7567. $ = $.xData, X = Math.min($[0], X), g = Math.max($[$.length - 1], g);
  7568. }), A = !1), m = this.getYTDExtremes(
  7569. g,
  7570. X,
  7571. _.time.useUTC
  7572. ), Q = Y = m.min, m = m.max;
  7573. else {
  7574. this.deferredYTDClick = n;
  7575. return;
  7576. }
  7577. else
  7578. L === "all" && W && (_.navigator && _.navigator.baseSeries[0] && (_.navigator.baseSeries[0].xAxis.options.range = void 0), Q = X, m = g);
  7579. if (u(Q) && (Q += D._offsetMin), u(m) && (m += D._offsetMax), this.dropdown && (this.dropdown.selectedIndex = n + 1), W)
  7580. W.setExtremes(Q, m, c(A, !0), void 0, { trigger: "rangeSelectorButton", rangeSelectorButton: D });
  7581. else {
  7582. var k = i(_.options.xAxis)[0], G = k.range;
  7583. k.range = P;
  7584. var z = k.min;
  7585. k.min = Y, N(_, "load", function() {
  7586. k.range = G, k.min = z;
  7587. });
  7588. }
  7589. M(
  7590. this,
  7591. "afterBtnClick"
  7592. );
  7593. }
  7594. }, o.prototype.setSelected = function(n) {
  7595. this.selected = this.options.selected = n;
  7596. }, o.prototype.init = function(n) {
  7597. var A = this, _ = n.options.rangeSelector, D = _.buttons || A.defaultButtons.slice(), W = _.selected, P = function() {
  7598. var X = A.minInput, g = A.maxInput;
  7599. X && X.blur && M(X, "blur"), g && g.blur && M(g, "blur");
  7600. };
  7601. A.chart = n, A.options = _, A.buttons = [], A.buttonOptions = D, this.eventsToUnbind = [], this.eventsToUnbind.push(N(n.container, "mousedown", P)), this.eventsToUnbind.push(N(n, "resize", P)), D.forEach(A.computeButtonRange), typeof W < "u" && D[W] && this.clickButton(W, !1), this.eventsToUnbind.push(N(n, "load", function() {
  7602. n.xAxis && n.xAxis[0] && N(n.xAxis[0], "setExtremes", function(X) {
  7603. this.max - this.min !== n.fixedRange && X.trigger !== "rangeSelectorButton" && X.trigger !== "updatedData" && A.forcedDataGrouping && !A.frozenStates && this.setDataGrouping(!1, !1);
  7604. });
  7605. }));
  7606. }, o.prototype.updateButtonStates = function() {
  7607. var n = this, A = this.chart, _ = this.dropdown, D = A.xAxis[0], W = Math.round(D.max - D.min), P = !D.hasVisibleSeries, X = A.scroller && A.scroller.getUnionExtremes() || D, g = X.dataMin, m = X.dataMax;
  7608. A = n.getYTDExtremes(m, g, A.time.useUTC);
  7609. var L = A.min, Y = A.max, V = n.selected, Q = S(V), k = n.options.allButtonsEnabled, G = n.buttons;
  7610. n.buttonOptions.forEach(function(z, $) {
  7611. var q = z._range, it = z.type, et = z.count || 1, nt = G[$], rt = 0, ct = z._offsetMax - z._offsetMin;
  7612. z = $ === V;
  7613. var gt = q > m - g, dt = q < D.minRange, ht = !1, at = !1;
  7614. q = q === W, (it === "month" || it === "year") && W + 36e5 >= 864e5 * { month: 28, year: 365 }[it] * et - ct && W - 36e5 <= 864e5 * { month: 31, year: 366 }[it] * et + ct ? q = !0 : it === "ytd" ? (q = Y - L + ct === W, ht = !z) : it === "all" && (q = D.max - D.min >= m - g, at = !z && Q && q), it = !k && (gt || dt || at || P), et = z && q || q && !Q && !ht || z && n.frozenStates, it ? rt = 3 : et && (Q = !0, rt = 2), nt.state !== rt && (nt.setState(rt), _ && (_.options[$ + 1].disabled = it, rt === 2 && (_.selectedIndex = $ + 1)), rt === 0 && V === $ && n.setSelected());
  7615. });
  7616. }, o.prototype.computeButtonRange = function(n) {
  7617. var A = n.type, _ = n.count || 1, D = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5 };
  7618. D[A] ? n._range = D[A] * _ : (A === "month" || A === "year") && (n._range = 864e5 * { month: 30, year: 365 }[A] * _), n._offsetMin = c(n.offsetMin, 0), n._offsetMax = c(n.offsetMax, 0), n._range += n._offsetMax - n._offsetMin;
  7619. }, o.prototype.getInputValue = function(n) {
  7620. n = n === "min" ? this.minInput : this.maxInput;
  7621. var A = this.chart.options.rangeSelector, _ = this.chart.time;
  7622. return n ? (n.type === "text" && A.inputDateParser || this.defaultInputDateParser)(n.value, _.useUTC, _) : 0;
  7623. }, o.prototype.setInputValue = function(n, A) {
  7624. var _ = this.options, D = this.chart.time, W = n === "min" ? this.minInput : this.maxInput;
  7625. if (n = n === "min" ? this.minDateBox : this.maxDateBox, W) {
  7626. var P = W.getAttribute("data-hc-time");
  7627. P = u(P) ? Number(P) : void 0, u(A) && (u(P) && W.setAttribute("data-hc-time-previous", P), W.setAttribute("data-hc-time", A), P = A), W.value = D.dateFormat(this.inputTypeFormats[W.type] || _.inputEditDateFormat, P), n && n.attr({ text: D.dateFormat(_.inputDateFormat, P) });
  7628. }
  7629. }, o.prototype.setInputExtremes = function(n, A, _) {
  7630. if (n = n === "min" ? this.minInput : this.maxInput) {
  7631. var D = this.inputTypeFormats[n.type], W = this.chart.time;
  7632. D && (A = W.dateFormat(D, A), n.min !== A && (n.min = A), _ = W.dateFormat(D, _), n.max !== _ && (n.max = _));
  7633. }
  7634. }, o.prototype.showInput = function(n) {
  7635. var A = n === "min" ? this.minDateBox : this.maxDateBox;
  7636. if ((n = n === "min" ? this.minInput : this.maxInput) && A && this.inputGroup) {
  7637. var _ = n.type === "text", D = this.inputGroup, W = D.translateX;
  7638. D = D.translateY;
  7639. var P = this.options.inputBoxWidth;
  7640. x(n, { width: _ ? A.width + (P ? -2 : 20) + "px" : "auto", height: _ ? A.height - 2 + "px" : "auto", border: "2px solid silver" }), _ && P ? x(n, { left: W + A.x + "px", top: D + "px" }) : x(n, { left: Math.min(Math.round(A.x + W - (n.offsetWidth - A.width) / 2), this.chart.chartWidth - n.offsetWidth) + "px", top: D - (n.offsetHeight - A.height) / 2 + "px" });
  7641. }
  7642. }, o.prototype.hideInput = function(n) {
  7643. (n = n === "min" ? this.minInput : this.maxInput) && x(n, { top: "-9999em", border: 0, width: "1px", height: "1px" });
  7644. }, o.prototype.defaultInputDateParser = function(n, A, _) {
  7645. var D = n.split("/").join("-").split(" ").join("T");
  7646. if (D.indexOf("T") === -1 && (D += "T00:00"), A)
  7647. D += "Z";
  7648. else {
  7649. var W;
  7650. (W = I.isSafari) && (W = D, W = !(6 < W.length && (W.lastIndexOf("-") === W.length - 6 || W.lastIndexOf("+") === W.length - 6))), W && (W = new Date(D).getTimezoneOffset() / 60, D += 0 >= W ? "+" + a(-W) + ":00" : "-" + a(W) + ":00");
  7651. }
  7652. return D = Date.parse(D), S(D) || (n = n.split("-"), D = Date.UTC(p(n[0]), p(n[1]) - 1, p(n[2]))), _ && A && S(D) && (D += _.getTimezoneOffset(D)), D;
  7653. }, o.prototype.drawInput = function(n) {
  7654. function A() {
  7655. var k = P.getInputValue(n), G = _.xAxis[0], z = _.scroller && _.scroller.xAxis ? _.scroller.xAxis : G, $ = z.dataMin;
  7656. z = z.dataMax;
  7657. var q = P.maxInput, it = P.minInput;
  7658. k !== Number(V.getAttribute("data-hc-time-previous")) && S(k) && (V.setAttribute("data-hc-time-previous", k), L && q && S($) ? k > Number(q.getAttribute("data-hc-time")) ? k = void 0 : k < $ && (k = $) : it && S(z) && (k < Number(it.getAttribute("data-hc-time")) ? k = void 0 : k > z && (k = z)), typeof k < "u" && G.setExtremes(L ? k : G.min, L ? G.max : k, void 0, void 0, { trigger: "rangeSelectorInput" }));
  7659. }
  7660. var _ = this.chart, D = this.div, W = this.inputGroup, P = this, X = _.renderer.style || {}, g = _.renderer, m = _.options.rangeSelector, L = n === "min", Y = R.lang[L ? "rangeSelectorFrom" : "rangeSelectorTo"] || "";
  7661. Y = g.label(Y, 0).addClass("highcharts-range-label").attr({ padding: Y ? 2 : 0, height: Y ? m.inputBoxHeight : 0 }).add(W), g = g.label("", 0).addClass("highcharts-range-input").attr({ padding: 2, width: m.inputBoxWidth, height: m.inputBoxHeight, "text-align": "center" }).on(
  7662. "click",
  7663. function() {
  7664. P.showInput(n), P[n + "Input"].focus();
  7665. }
  7666. ), _.styledMode || g.attr({ stroke: m.inputBoxBorderColor, "stroke-width": 1 }), g.add(W);
  7667. var V = b("input", { name: n, className: "highcharts-range-selector" }, void 0, D);
  7668. V.setAttribute("type", F(m.inputDateFormat || "%b %e, %Y")), _.styledMode || (Y.css(w(X, m.labelStyle)), g.css(w({ color: "#333333" }, X, m.inputStyle)), x(V, O({
  7669. position: "absolute",
  7670. border: 0,
  7671. boxShadow: "0 0 15px rgba(0,0,0,0.3)",
  7672. width: "1px",
  7673. height: "1px",
  7674. padding: 0,
  7675. textAlign: "center",
  7676. fontSize: X.fontSize,
  7677. fontFamily: X.fontFamily,
  7678. top: "-9999em"
  7679. }, m.inputStyle))), V.onfocus = function() {
  7680. P.showInput(n);
  7681. }, V.onblur = function() {
  7682. V === I.doc.activeElement && A(), P.hideInput(n), P.setInputValue(n), V.blur();
  7683. };
  7684. var Q = !1;
  7685. return V.onchange = function() {
  7686. Q || (A(), P.hideInput(n), V.blur());
  7687. }, V.onkeypress = function(k) {
  7688. k.keyCode === 13 && A();
  7689. }, V.onkeydown = function(k) {
  7690. Q = !0, k.keyCode !== 38 && k.keyCode !== 40 || A();
  7691. }, V.onkeyup = function() {
  7692. Q = !1;
  7693. }, { dateBox: g, input: V, label: Y };
  7694. }, o.prototype.getPosition = function() {
  7695. var n = this.chart, A = n.options.rangeSelector;
  7696. return n = A.verticalAlign === "top" ? n.plotTop - n.axisOffset[0] : 0, { buttonTop: n + A.buttonPosition.y, inputTop: n + A.inputPosition.y - 10 };
  7697. }, o.prototype.getYTDExtremes = function(n, A, _) {
  7698. var D = this.chart.time, W = new D.Date(n), P = D.get("FullYear", W);
  7699. return _ = _ ? D.Date.UTC(P, 0, 1) : +new D.Date(P, 0, 1), A = Math.max(A, _), W = W.getTime(), { max: Math.min(n || W, W), min: A };
  7700. }, o.prototype.render = function(n, A) {
  7701. var _ = this.chart, D = _.renderer, W = _.container, P = _.options, X = P.rangeSelector, g = c(P.chart.style && P.chart.style.zIndex, 0) + 1;
  7702. if (P = X.inputEnabled, X.enabled !== !1) {
  7703. if (this.rendered || (this.group = D.g("range-selector-group").attr({ zIndex: 7 }).add(), this.div = b("div", void 0, { position: "relative", height: 0, zIndex: g }), this.buttonOptions.length && this.renderButtons(), W.parentNode && W.parentNode.insertBefore(this.div, W), P && (this.inputGroup = D.g("input-group").add(this.group), D = this.drawInput("min"), this.minDateBox = D.dateBox, this.minLabel = D.label, this.minInput = D.input, D = this.drawInput("max"), this.maxDateBox = D.dateBox, this.maxLabel = D.label, this.maxInput = D.input)), P && (this.setInputValue(
  7704. "min",
  7705. n
  7706. ), this.setInputValue("max", A), n = _.scroller && _.scroller.getUnionExtremes() || _.xAxis[0] || {}, u(n.dataMin) && u(n.dataMax) && (_ = _.xAxis[0].minRange || 0, this.setInputExtremes("min", n.dataMin, Math.min(n.dataMax, this.getInputValue("max")) - _), this.setInputExtremes("max", Math.max(n.dataMin, this.getInputValue("min")) + _, n.dataMax)), this.inputGroup)) {
  7707. var m = 0;
  7708. [this.minLabel, this.minDateBox, this.maxLabel, this.maxDateBox].forEach(function(L) {
  7709. if (L) {
  7710. var Y = L.getBBox().width;
  7711. Y && (L.attr({ x: m }), m += Y + X.inputSpacing);
  7712. }
  7713. });
  7714. }
  7715. this.alignElements(), this.rendered = !0;
  7716. }
  7717. }, o.prototype.renderButtons = function() {
  7718. var n = this, A = this.buttons, _ = this.options, D = R.lang, W = this.chart.renderer, P = w(_.buttonTheme), X = P && P.states, g = P.width || 28;
  7719. delete P.width, delete P.states, this.buttonGroup = W.g("range-selector-buttons").add(this.group);
  7720. var m = this.dropdown = b("select", void 0, { position: "absolute", width: "1px", height: "1px", padding: 0, border: 0, top: "-9999em", cursor: "pointer", opacity: 1e-4 }, this.div);
  7721. N(m, "touchstart", function() {
  7722. m.style.fontSize = "16px";
  7723. }), [[I.isMS ? "mouseover" : "mouseenter"], [I.isMS ? "mouseout" : "mouseleave"], ["change", "click"]].forEach(function(L) {
  7724. var Y = L[0], V = L[1];
  7725. N(m, Y, function() {
  7726. var Q = A[n.currentButtonIndex()];
  7727. Q && M(Q.element, V || Y);
  7728. });
  7729. }), this.zoomText = W.label(D && D.rangeSelectorZoom || "", 0).attr({ padding: _.buttonTheme.padding, height: _.buttonTheme.height, paddingLeft: 0, paddingRight: 0 }).add(this.buttonGroup), this.chart.styledMode || (this.zoomText.css(_.labelStyle), P["stroke-width"] = c(P["stroke-width"], 0)), b(
  7730. "option",
  7731. { textContent: this.zoomText.textStr, disabled: !0 },
  7732. void 0,
  7733. m
  7734. ), this.buttonOptions.forEach(function(L, Y) {
  7735. b("option", { textContent: L.title || L.text }, void 0, m), A[Y] = W.button(L.text, 0, 0, function(V) {
  7736. var Q = L.events && L.events.click, k;
  7737. Q && (k = Q.call(L, V)), k !== !1 && n.clickButton(Y), n.isActive = !0;
  7738. }, P, X && X.hover, X && X.select, X && X.disabled).attr({ "text-align": "center", width: g }).add(n.buttonGroup), L.title && A[Y].attr("title", L.title);
  7739. });
  7740. }, o.prototype.alignElements = function() {
  7741. var n = this, A = this.buttonGroup, _ = this.buttons, D = this.chart, W = this.group, P = this.inputGroup, X = this.options, g = this.zoomText, m = D.options, L = m.exporting && m.exporting.enabled !== !1 && m.navigation && m.navigation.buttonOptions;
  7742. m = X.buttonPosition;
  7743. var Y = X.inputPosition, V = X.verticalAlign, Q = function($, q) {
  7744. return L && n.titleCollision(D) && V === "top" && q.align === "right" && q.y - $.getBBox().height - 12 < (L.y || 0) + (L.height || 0) + D.spacing[0] ? -40 : 0;
  7745. }, k = D.plotLeft;
  7746. if (W && m && Y) {
  7747. var G = m.x - D.spacing[3];
  7748. if (A) {
  7749. if (this.positionButtons(), !this.initialButtonGroupWidth) {
  7750. var z = 0;
  7751. g && (z += g.getBBox().width + 5), _.forEach(function($, q) {
  7752. z += $.width, q !== _.length - 1 && (z += X.buttonSpacing);
  7753. }), this.initialButtonGroupWidth = z;
  7754. }
  7755. k -= D.spacing[3], this.updateButtonStates(), g = Q(A, m), this.alignButtonGroup(g), W.placed = A.placed = D.hasLoaded;
  7756. }
  7757. A = 0, P && (A = Q(P, Y), Y.align === "left" ? G = k : Y.align === "right" && (G = -Math.max(D.axisOffset[1], -A)), P.align({ y: Y.y, width: P.getBBox().width, align: Y.align, x: Y.x + G - 2 }, !0, D.spacingBox), P.placed = D.hasLoaded), this.handleCollision(A), W.align({ verticalAlign: V }, !0, D.spacingBox), P = W.alignAttr.translateY, A = W.getBBox().height + 20, Q = 0, V === "bottom" && (Q = (Q = D.legend && D.legend.options) && Q.verticalAlign === "bottom" && Q.enabled && !Q.floating ? D.legend.legendHeight + c(Q.margin, 10) : 0, A = A + Q - 20, Q = P - A - (X.floating ? 0 : X.y) - (D.titleOffset ? D.titleOffset[2] : 0) - 10), V === "top" ? (X.floating && (Q = 0), D.titleOffset && D.titleOffset[0] && (Q = D.titleOffset[0]), Q += D.margin[0] - D.spacing[0] || 0) : V === "middle" && (Y.y === m.y ? Q = P : (Y.y || m.y) && (Q = 0 > Y.y || 0 > m.y ? Q - Math.min(Y.y, m.y) : P - A)), W.translate(X.x, X.y + Math.floor(Q)), m = this.minInput, Y = this.maxInput, P = this.dropdown, X.inputEnabled && m && Y && (m.style.marginTop = W.translateY + "px", Y.style.marginTop = W.translateY + "px"), P && (P.style.marginTop = W.translateY + "px");
  7758. }
  7759. }, o.prototype.alignButtonGroup = function(n, A) {
  7760. var _ = this.chart, D = this.buttonGroup, W = this.options.buttonPosition, P = _.plotLeft - _.spacing[3], X = W.x - _.spacing[3];
  7761. W.align === "right" ? X += n - P : W.align === "center" && (X -= P / 2), D && D.align({ y: W.y, width: c(A, this.initialButtonGroupWidth), align: W.align, x: X }, !0, _.spacingBox);
  7762. }, o.prototype.positionButtons = function() {
  7763. var n = this.buttons, A = this.chart, _ = this.options, D = this.zoomText, W = A.hasLoaded ? "animate" : "attr", P = _.buttonPosition, X = A.plotLeft, g = X;
  7764. D && D.visibility !== "hidden" && (D[W]({ x: c(X + P.x, X) }), g += P.x + D.getBBox().width + 5), this.buttonOptions.forEach(function(m, L) {
  7765. n[L].visibility !== "hidden" ? (n[L][W]({ x: g }), g += n[L].width + _.buttonSpacing) : n[L][W]({ x: X });
  7766. });
  7767. }, o.prototype.handleCollision = function(n) {
  7768. var A = this, _ = this.chart, D = this.buttonGroup, W = this.inputGroup, P = this.options, X = P.buttonPosition, g = P.dropdown, m = P.inputPosition;
  7769. P = function() {
  7770. var V = 0;
  7771. return A.buttons.forEach(function(Q) {
  7772. Q = Q.getBBox(), Q.width > V && (V = Q.width);
  7773. }), V;
  7774. };
  7775. var L = function(V) {
  7776. if (W && D) {
  7777. var Q = W.alignAttr.translateX + W.alignOptions.x - n + W.getBBox().x + 2, k = W.alignOptions.width, G = D.alignAttr.translateX + D.getBBox().x;
  7778. return G + V > Q && Q + k > G && X.y < m.y + W.getBBox().height;
  7779. }
  7780. return !1;
  7781. }, Y = function() {
  7782. W && D && W.attr({ translateX: W.alignAttr.translateX + (_.axisOffset[1] >= -n ? 0 : -n), translateY: W.alignAttr.translateY + D.getBBox().height + 10 });
  7783. };
  7784. if (D) {
  7785. if (g === "always") {
  7786. this.collapseButtons(n), L(P()) && Y();
  7787. return;
  7788. }
  7789. g === "never" && this.expandButtons();
  7790. }
  7791. W && D ? m.align === X.align || L(this.initialButtonGroupWidth + 20) ? g === "responsive" ? (this.collapseButtons(n), L(P()) && Y()) : Y() : g === "responsive" && this.expandButtons() : D && g === "responsive" && (this.initialButtonGroupWidth > _.plotWidth ? this.collapseButtons(n) : this.expandButtons());
  7792. }, o.prototype.collapseButtons = function(n) {
  7793. var A = this.buttons, _ = this.buttonOptions, D = this.chart, W = this.dropdown, P = this.options, X = this.zoomText, g = D.userOptions.rangeSelector && D.userOptions.rangeSelector.buttonTheme || {}, m = function(Y) {
  7794. return { text: Y ? Y + " ▾" : "▾", width: "auto", paddingLeft: c(P.buttonTheme.paddingLeft, g.padding, 8), paddingRight: c(P.buttonTheme.paddingRight, g.padding, 8) };
  7795. };
  7796. X && X.hide();
  7797. var L = !1;
  7798. _.forEach(function(Y, V) {
  7799. V = A[V], V.state !== 2 ? V.hide() : (V.show(), V.attr(m(Y.text)), L = !0);
  7800. }), L || (W && (W.selectedIndex = 0), A[0].show(), A[0].attr(m(this.zoomText && this.zoomText.textStr))), _ = P.buttonPosition.align, this.positionButtons(), _ !== "right" && _ !== "center" || this.alignButtonGroup(n, A[this.currentButtonIndex()].getBBox().width), this.showDropdown();
  7801. }, o.prototype.expandButtons = function() {
  7802. var n = this.buttons, A = this.buttonOptions, _ = this.options, D = this.zoomText;
  7803. this.hideDropdown(), D && D.show(), A.forEach(function(W, P) {
  7804. P = n[P], P.show(), P.attr({ text: W.text, width: _.buttonTheme.width || 28, paddingLeft: c(_.buttonTheme.paddingLeft, "unset"), paddingRight: c(_.buttonTheme.paddingRight, "unset") }), 2 > P.state && P.setState(0);
  7805. }), this.positionButtons();
  7806. }, o.prototype.currentButtonIndex = function() {
  7807. var n = this.dropdown;
  7808. return n && 0 < n.selectedIndex ? n.selectedIndex - 1 : 0;
  7809. }, o.prototype.showDropdown = function() {
  7810. var n = this.buttonGroup, A = this.buttons, _ = this.chart, D = this.dropdown;
  7811. if (n && D) {
  7812. var W = n.translateX;
  7813. n = n.translateY, A = A[this.currentButtonIndex()].getBBox(), x(D, { left: _.plotLeft + W + "px", top: n + 0.5 + "px", width: A.width + "px", height: A.height + "px" }), this.hasVisibleDropdown = !0;
  7814. }
  7815. }, o.prototype.hideDropdown = function() {
  7816. var n = this.dropdown;
  7817. n && (x(n, { top: "-9999em", width: "1px", height: "1px" }), this.hasVisibleDropdown = !1);
  7818. }, o.prototype.getHeight = function() {
  7819. var n = this.options, A = this.group, _ = n.y, D = n.buttonPosition.y, W = n.inputPosition.y;
  7820. return n.height ? n.height : (this.alignElements(), n = A ? A.getBBox(!0).height + 13 + _ : 0, A = Math.min(W, D), (0 > W && 0 > D || 0 < W && 0 < D) && (n += Math.abs(A)), n);
  7821. }, o.prototype.titleCollision = function(n) {
  7822. return !(n.options.title.text || n.options.subtitle.text);
  7823. }, o.prototype.update = function(n) {
  7824. var A = this.chart;
  7825. w(!0, A.options.rangeSelector, n), this.destroy(), this.init(A), this.render();
  7826. }, o.prototype.destroy = function() {
  7827. var n = this, A = n.minInput, _ = n.maxInput;
  7828. n.eventsToUnbind && (n.eventsToUnbind.forEach(function(D) {
  7829. return D();
  7830. }), n.eventsToUnbind = void 0), f(n.buttons), A && (A.onfocus = A.onblur = A.onchange = null), _ && (_.onfocus = _.onblur = _.onchange = null), v(n, function(D, W) {
  7831. D && W !== "chart" && (D instanceof H ? D.destroy() : D instanceof window.HTMLElement && E(D)), D !== o.prototype[W] && (n[W] = null);
  7832. }, this);
  7833. }, o;
  7834. }();
  7835. if (h.prototype.defaultButtons = [
  7836. { type: "month", count: 1, text: "1m", title: "View 1 month" },
  7837. { type: "month", count: 3, text: "3m", title: "View 3 months" },
  7838. { type: "month", count: 6, text: "6m", title: "View 6 months" },
  7839. { type: "ytd", text: "YTD", title: "View year to date" },
  7840. { type: "year", count: 1, text: "1y", title: "View 1 year" },
  7841. { type: "all", text: "All", title: "View all" }
  7842. ], h.prototype.inputTypeFormats = { "datetime-local": "%Y-%m-%dT%H:%M:%S", date: "%Y-%m-%d", time: "%H:%M:%S" }, y.prototype.minFromRange = function() {
  7843. var o = this.range, n = o.type, A = this.max, _ = this.chart.time, D = function(g, m) {
  7844. var L = n === "year" ? "FullYear" : "Month", Y = new _.Date(g), V = _.get(L, Y);
  7845. return _.set(L, Y, V + m), V === _.get(L, Y) && _.set("Date", Y, 0), Y.getTime() - g;
  7846. };
  7847. if (S(o))
  7848. var W = A - o, P = o;
  7849. else
  7850. W = A + D(A, -o.count), this.chart && (this.chart.fixedRange = A - W);
  7851. var X = c(this.dataMin, Number.MIN_VALUE);
  7852. return S(W) || (W = X), W <= X && (W = X, typeof P > "u" && (P = D(W, o.count)), this.newMax = Math.min(W + P, this.dataMax)), S(A) || (W = void 0), W;
  7853. }, !I.RangeSelector) {
  7854. var s = [], t = function(o) {
  7855. function n() {
  7856. _ && (A = o.xAxis[0].getExtremes(), D = o.legend, P = _ && _.options.verticalAlign, S(A.min) && _.render(A.min, A.max), D.display && P === "top" && P === D.options.verticalAlign && (W = w(o.spacingBox), W.y = D.options.layout === "vertical" ? o.plotTop : W.y + _.getHeight(), D.group.placed = !1, D.align(W)));
  7857. }
  7858. var A, _ = o.rangeSelector, D, W, P;
  7859. _ && (B(s, function(X) {
  7860. return X[0] === o;
  7861. }) || s.push([o, [N(o.xAxis[0], "afterSetExtremes", function(X) {
  7862. _ && _.render(X.min, X.max);
  7863. }), N(o, "redraw", n)]]), n());
  7864. };
  7865. N(j, "afterGetContainer", function() {
  7866. this.options.rangeSelector && this.options.rangeSelector.enabled && (this.rangeSelector = new h(this));
  7867. }), N(j, "beforeRender", function() {
  7868. var o = this.axes, n = this.rangeSelector;
  7869. n && (S(n.deferredYTDClick) && (n.clickButton(n.deferredYTDClick), delete n.deferredYTDClick), o.forEach(function(A) {
  7870. A.updateNames(), A.setScale();
  7871. }), this.getAxisMargins(), n.render(), o = n.options.verticalAlign, n.options.floating || (o === "bottom" ? this.extraBottomMargin = !0 : o !== "middle" && (this.extraTopMargin = !0)));
  7872. }), N(j, "update", function(o) {
  7873. var n = o.options.rangeSelector;
  7874. o = this.rangeSelector;
  7875. var A = this.extraBottomMargin, _ = this.extraTopMargin;
  7876. n && n.enabled && !u(o) && this.options.rangeSelector && (this.options.rangeSelector.enabled = !0, this.rangeSelector = o = new h(this)), this.extraTopMargin = this.extraBottomMargin = !1, o && (t(this), n = n && n.verticalAlign || o.options && o.options.verticalAlign, o.options.floating || (n === "bottom" ? this.extraBottomMargin = !0 : n !== "middle" && (this.extraTopMargin = !0)), this.extraBottomMargin !== A || this.extraTopMargin !== _) && (this.isDirtyBox = !0);
  7877. }), N(j, "render", function() {
  7878. var o = this.rangeSelector;
  7879. o && !o.options.floating && (o.render(), o = o.options.verticalAlign, o === "bottom" ? this.extraBottomMargin = !0 : o !== "middle" && (this.extraTopMargin = !0));
  7880. }), N(j, "getMargins", function() {
  7881. var o = this.rangeSelector;
  7882. o && (o = o.getHeight(), this.extraTopMargin && (this.plotTop += o), this.extraBottomMargin && (this.marginBottom += o));
  7883. }), j.prototype.callbacks.push(t), N(j, "destroy", function() {
  7884. for (var o = 0; o < s.length; o++) {
  7885. var n = s[o];
  7886. if (n[0] === this) {
  7887. n[1].forEach(function(A) {
  7888. return A();
  7889. }), s.splice(o, 1);
  7890. break;
  7891. }
  7892. }
  7893. }), I.RangeSelector = h;
  7894. }
  7895. return h;
  7896. }), T(
  7897. l,
  7898. "Core/Chart/StockChart.js",
  7899. [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/FormatUtilities.js"], l["Core/DefaultOptions.js"], l["Core/Series/Series.js"], l["Core/Renderer/SVG/SVGRenderer.js"], l["Core/Utilities.js"]],
  7900. function(y, j, I, Z, H, U, F, R) {
  7901. function N(p, i) {
  7902. return p === "xAxis" ? { minPadding: 0, maxPadding: 0, overscroll: 0, ordinal: !0, title: { text: null }, labels: { overflow: "justify" }, showLastLabel: !0 } : p === "yAxis" ? { labels: { y: -2 }, opposite: a(i.opposite, !0), showLastLabel: !(!i.categories && i.type !== "category"), title: { text: null } } : {};
  7903. }
  7904. function b(p, i) {
  7905. if (p === "xAxis") {
  7906. p = f();
  7907. var h = { type: "datetime", categories: void 0 };
  7908. return a(i.navigator && i.navigator.enabled, p.navigator.enabled, !0) && (h.startOnTick = !1, h.endOnTick = !1), h;
  7909. }
  7910. return {};
  7911. }
  7912. var x = this && this.__extends || function() {
  7913. var p = function(i, h) {
  7914. return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, t) {
  7915. s.__proto__ = t;
  7916. } || function(s, t) {
  7917. for (var o in t)
  7918. t.hasOwnProperty(o) && (s[o] = t[o]);
  7919. }, p(i, h);
  7920. };
  7921. return function(i, h) {
  7922. function s() {
  7923. this.constructor = i;
  7924. }
  7925. p(i, h), i.prototype = h === null ? Object.create(h) : (s.prototype = h.prototype, new s());
  7926. };
  7927. }(), u = Z.format, f = H.getOptions;
  7928. y = R.addEvent;
  7929. var E = R.clamp, O = R.defined, B = R.extend, M = R.find, S = R.isNumber, w = R.isString, v = R.merge, a = R.pick, c = R.splat;
  7930. return R = function(p) {
  7931. function i() {
  7932. return p !== null && p.apply(this, arguments) || this;
  7933. }
  7934. return x(i, p), i.prototype.init = function(h, s) {
  7935. var t = f(), o = h.xAxis, n = h.yAxis, A = a(h.navigator && h.navigator.enabled, t.navigator.enabled, !0);
  7936. h.xAxis = h.yAxis = void 0, A = v({ chart: { panning: { enabled: !0, type: "x" }, pinchType: "x" }, navigator: { enabled: A }, scrollbar: { enabled: a(t.scrollbar && t.scrollbar.enabled, !0) }, rangeSelector: { enabled: a(t.rangeSelector.enabled, !0) }, title: { text: null }, tooltip: { split: a(t.tooltip.split, !0), crosshairs: !0 }, legend: { enabled: !1 } }, h, { isStock: !0 }), h.xAxis = o, h.yAxis = n, A.xAxis = c(h.xAxis || {}).map(function(_, D) {
  7937. return v(N("xAxis", _), t.xAxis, t.xAxis && t.xAxis[D], _, b("xAxis", h));
  7938. }), A.yAxis = c(h.yAxis || {}).map(function(_, D) {
  7939. return v(N("yAxis", _), t.yAxis, t.yAxis && t.yAxis[D], _);
  7940. }), p.prototype.init.call(this, A, s);
  7941. }, i.prototype.createAxis = function(h, s) {
  7942. return s.axis = v(N(h, s.axis), s.axis, b(h, this.userOptions)), p.prototype.createAxis.call(this, h, s);
  7943. }, i;
  7944. }(I), function(p) {
  7945. p.stockChart = function(i, h, s) {
  7946. return new p(i, h, s);
  7947. };
  7948. }(R || (R = {})), y(U, "setOptions", function(p) {
  7949. var i;
  7950. this.chart.options.isStock && (this.is("column") || this.is("columnrange") ? i = { borderWidth: 0, shadow: !1 } : this.is("scatter") || this.is("sma") || (i = { marker: { enabled: !1, radius: 2 } }), i && (p.plotOptions[this.type] = v(p.plotOptions[this.type], i)));
  7951. }), y(j, "autoLabelAlign", function(p) {
  7952. var i = this.chart, h = this.options;
  7953. i = i._labelPanes = i._labelPanes || {};
  7954. var s = this.options.labels;
  7955. this.chart.options.isStock && this.coll === "yAxis" && (h = h.top + "," + h.height, !i[h] && s.enabled && (s.x === 15 && (s.x = 0), typeof s.align > "u" && (s.align = "right"), i[h] = this, p.align = "right", p.preventDefault()));
  7956. }), y(j, "destroy", function() {
  7957. var p = this.chart, i = this.options && this.options.top + "," + this.options.height;
  7958. i && p._labelPanes && p._labelPanes[i] === this && delete p._labelPanes[i];
  7959. }), y(j, "getPlotLinePath", function(p) {
  7960. function i(G) {
  7961. var z = G === "xAxis" ? "yAxis" : "xAxis";
  7962. return G = h.options[z], S(G) ? [t[z][G]] : w(G) ? [t.get(G)] : s.map(function($) {
  7963. return $[z];
  7964. });
  7965. }
  7966. var h = this, s = this.isLinked && !this.series ? this.linkedParent.series : this.series, t = h.chart, o = t.renderer, n = h.left, A = h.top, _, D, W, P, X = [], g = [], m = p.translatedValue, L = p.value, Y = p.force;
  7967. if (t.options.isStock && p.acrossPanes !== !1 && h.coll === "xAxis" || h.coll === "yAxis") {
  7968. p.preventDefault(), g = i(h.coll);
  7969. var V = h.isXAxis ? t.yAxis : t.xAxis;
  7970. V.forEach(function(G) {
  7971. if (!O(G.options.id) || G.options.id.indexOf("navigator") === -1) {
  7972. var z = G.isXAxis ? "yAxis" : "xAxis";
  7973. z = O(G.options[z]) ? t[z][G.options[z]] : t[z][0], h === z && g.push(G);
  7974. }
  7975. });
  7976. var Q = g.length ? [] : [h.isXAxis ? t.yAxis[0] : t.xAxis[0]];
  7977. g.forEach(function(G) {
  7978. Q.indexOf(G) !== -1 || M(Q, function(z) {
  7979. return z.pos === G.pos && z.len === G.len;
  7980. }) || Q.push(G);
  7981. });
  7982. var k = a(m, h.translate(L, null, null, p.old));
  7983. S(k) && (h.horiz ? Q.forEach(function(G) {
  7984. var z;
  7985. D = G.pos, P = D + G.len, _ = W = Math.round(k + h.transB), Y !== "pass" && (_ < n || _ > n + h.width) && (Y ? _ = W = E(_, n, n + h.width) : z = !0), z || X.push(["M", _, D], ["L", W, P]);
  7986. }) : Q.forEach(function(G) {
  7987. var z;
  7988. _ = G.pos, W = _ + G.len, D = P = Math.round(A + h.height - k), Y !== "pass" && (D < A || D > A + h.height) && (Y ? D = P = E(D, A, A + h.height) : z = !0), z || X.push(["M", _, D], ["L", W, P]);
  7989. })), p.path = 0 < X.length ? o.crispPolyLine(X, p.lineWidth || 1) : null;
  7990. }
  7991. }), F.prototype.crispPolyLine = function(p, i) {
  7992. for (var h = 0; h < p.length; h += 2) {
  7993. var s = p[h], t = p[h + 1];
  7994. s[1] === t[1] && (s[1] = t[1] = Math.round(s[1]) - i % 2 / 2), s[2] === t[2] && (s[2] = t[2] = Math.round(s[2]) + i % 2 / 2);
  7995. }
  7996. return p;
  7997. }, y(j, "afterHideCrosshair", function() {
  7998. this.crossLabel && (this.crossLabel = this.crossLabel.hide());
  7999. }), y(j, "afterDrawCrosshair", function(p) {
  8000. var i, h;
  8001. if (this.crosshair && this.crosshair.label && this.crosshair.label.enabled && this.cross && S(this.min) && S(this.max)) {
  8002. var s = this.chart, t = this.logarithmic, o = this.crosshair.label, n = this.horiz, A = this.opposite, _ = this.left, D = this.top, W = this.crossLabel, P = o.format, X = "", g = this.options.tickPosition === "inside", m = this.crosshair.snap !== !1, L = 0, Y = p.e || this.cross && this.cross.e;
  8003. p = p.point;
  8004. var V = this.min, Q = this.max;
  8005. t && (V = t.lin2log(V), Q = t.lin2log(Q)), t = n ? "center" : A ? this.labelAlign === "right" ? "right" : "left" : this.labelAlign === "left" ? "left" : "center", W || (W = this.crossLabel = s.renderer.label("", 0, void 0, o.shape || "callout").addClass("highcharts-crosshair-label highcharts-color-" + (p ? p.series.colorIndex : this.series[0] && this.series[0].colorIndex)).attr({ align: o.align || t, padding: a(o.padding, 8), r: a(o.borderRadius, 3), zIndex: 2 }).add(this.labelGroup), s.styledMode || W.attr({ fill: o.backgroundColor || p && p.series && p.series.color || "#666666", stroke: o.borderColor || "", "stroke-width": o.borderWidth || 0 }).css(B({ color: "#ffffff", fontWeight: "normal", fontSize: "11px", textAlign: "center" }, o.style || {}))), n ? (t = m ? (p.plotX || 0) + _ : Y.chartX, D += A ? 0 : this.height) : (t = A ? this.width + _ : 0, D = m ? (p.plotY || 0) + D : Y.chartY), P || o.formatter || (this.dateTime && (X = "%b %d, %Y"), P = "{value" + (X ? ":" + X : "") + "}"), X = m ? this.isXAxis ? p.x : p.y : this.toValue(n ? Y.chartX : Y.chartY), m = p ? p.series.isPointInside(p) : S(X) && X > V && X < Q, Y = "", P ? Y = u(P, { value: X }, s) : o.formatter && S(X) && (Y = o.formatter.call(this, X)), W.attr({ text: Y, x: t, y: D, visibility: m ? "visible" : "hidden" }), o = W.getBBox(), S(W.y) && (n ? (g && !A || !g && A) && (D = W.y - o.height) : D = W.y - o.height / 2), n ? (i = _ - o.x, h = _ + this.width - o.x) : (i = this.labelAlign === "left" ? _ : 0, h = this.labelAlign === "right" ? _ + this.width : s.chartWidth), W.translateX < i && (L = i - W.translateX), W.translateX + o.width >= h && (L = -(W.translateX + o.width - h)), W.attr({ x: t + L, y: D, anchorX: n ? t : this.opposite ? 0 : s.chartWidth, anchorY: n ? this.opposite ? s.chartHeight : 0 : D + o.height / 2 });
  8006. }
  8007. }), U.prototype.forceCropping = function() {
  8008. var p = this.chart, i = this.options.dataGrouping;
  8009. return this.allowDG !== !1 && i && a(i.enabled, p.options.isStock);
  8010. }, y(I, "update", function(p) {
  8011. p = p.options, "scrollbar" in p && this.navigator && (v(!0, this.options.scrollbar, p.scrollbar), this.navigator.update({}, !1), delete p.scrollbar);
  8012. }), R;
  8013. }
  8014. ), T(l, "masters/modules/stock.src.js", [
  8015. l["Core/Globals.js"],
  8016. l["Core/Axis/OrdinalAxis.js"],
  8017. l["Series/DataModifyComposition.js"],
  8018. l["Core/Scrollbar.js"],
  8019. l["Core/Chart/StockChart.js"]
  8020. ], function(y, j, I, Z, H) {
  8021. y.Scrollbar = Z, y.StockChart = y.stockChart = H.stockChart, Z.compose(y.Axis), j.compose(y.Axis, y.Series, y.Chart), I.compose(y.Series, y.Axis, y.Point);
  8022. }), T(l, "masters/highstock.src.js", [l["masters/highcharts.src.js"]], function(y) {
  8023. return y.product = "Highstock", y;
  8024. }), l["masters/highstock.src.js"]._modules = l, l["masters/highstock.src.js"];
  8025. });
  8026. })(Fp);
  8027. var O0 = Fp.exports;
  8028. const $r = /* @__PURE__ */ Mn(O0);
  8029. var Up = { exports: {} };
  8030. (function(r) {
  8031. (function(d, T) {
  8032. r.exports ? (T.default = T, r.exports = d.document ? T(d) : T) : (d.Highcharts && d.Highcharts.error(16, !0), d.Highcharts = T(d));
  8033. })(typeof window < "u" ? window : Fr, function(d) {
  8034. function T(y, j, I, Z) {
  8035. y.hasOwnProperty(j) || (y[j] = Z.apply(null, I));
  8036. }
  8037. var l = {};
  8038. return T(l, "Core/Globals.js", [], function() {
  8039. var y = typeof d < "u" ? d : typeof window < "u" ? window : {}, j;
  8040. return function(I) {
  8041. I.SVG_NS = "http://www.w3.org/2000/svg", I.product = "Highcharts", I.version = "9.3.3", I.win = y, I.doc = I.win.document, I.svg = I.doc && I.doc.createElementNS && !!I.doc.createElementNS(I.SVG_NS, "svg").createSVGRect, I.userAgent = I.win.navigator && I.win.navigator.userAgent || "", I.isChrome = I.userAgent.indexOf("Chrome") !== -1, I.isFirefox = I.userAgent.indexOf("Firefox") !== -1, I.isMS = /(edge|msie|trident)/i.test(I.userAgent) && !I.win.opera, I.isSafari = !I.isChrome && I.userAgent.indexOf("Safari") !== -1, I.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(I.userAgent), I.isWebKit = I.userAgent.indexOf("AppleWebKit") !== -1, I.deg2rad = 2 * Math.PI / 360, I.hasBidiBug = I.isFirefox && 4 > parseInt(I.userAgent.split("Firefox/")[1], 10), I.hasTouch = !!I.win.TouchEvent, I.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], I.noop = function() {
  8042. }, I.supportsPassiveEvents = function() {
  8043. var Z = !1;
  8044. if (!I.isMS) {
  8045. var H = Object.defineProperty({}, "passive", { get: function() {
  8046. Z = !0;
  8047. } });
  8048. I.win.addEventListener && I.win.removeEventListener && (I.win.addEventListener(
  8049. "testPassive",
  8050. I.noop,
  8051. H
  8052. ), I.win.removeEventListener("testPassive", I.noop, H));
  8053. }
  8054. return Z;
  8055. }(), I.charts = [], I.dateFormats = {}, I.seriesTypes = {}, I.symbolSizes = {}, I.chartCount = 0;
  8056. }(j || (j = {})), j;
  8057. }), T(l, "Core/Utilities.js", [l["Core/Globals.js"]], function(y) {
  8058. function j(t, o, n, A) {
  8059. var _ = o ? "Highcharts error" : "Highcharts warning";
  8060. t === 32 && (t = _ + ": Deprecated member");
  8061. var D = b(t), W = D ? _ + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  8062. if (typeof A < "u") {
  8063. var P = "";
  8064. D && (W += "?"), S(A, function(X, g) {
  8065. P += `
  8066. - ` + g + ": " + X, D && (W += encodeURI(g) + "=" + encodeURI(X));
  8067. }), W += P;
  8068. }
  8069. v(y, "displayError", { chart: n, code: t, message: W, params: A }, function() {
  8070. if (o)
  8071. throw Error(W);
  8072. p.console && j.messages.indexOf(W) === -1 && console.warn(W);
  8073. }), j.messages.push(W);
  8074. }
  8075. function I(t, o) {
  8076. var n = {};
  8077. return S(t, function(A, _) {
  8078. F(t[_], !0) && !t.nodeType && o[_] ? (A = I(t[_], o[_]), Object.keys(A).length && (n[_] = A)) : (F(t[_]) || t[_] !== o[_]) && (n[_] = t[_]);
  8079. }), n;
  8080. }
  8081. function Z(t, o) {
  8082. return parseInt(t, o || 10);
  8083. }
  8084. function H(t) {
  8085. return typeof t == "string";
  8086. }
  8087. function U(t) {
  8088. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  8089. }
  8090. function F(t, o) {
  8091. return !!t && typeof t == "object" && (!o || !U(t));
  8092. }
  8093. function R(t) {
  8094. return F(t) && typeof t.nodeType == "number";
  8095. }
  8096. function N(t) {
  8097. var o = t && t.constructor;
  8098. return !(!F(t, !0) || R(t) || !o || !o.name || o.name === "Object");
  8099. }
  8100. function b(t) {
  8101. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  8102. }
  8103. function x(t) {
  8104. return typeof t < "u" && t !== null;
  8105. }
  8106. function u(t, o, n) {
  8107. var A;
  8108. return H(o) ? x(n) ? t.setAttribute(o, n) : t && t.getAttribute && ((A = t.getAttribute(o)) || o !== "class" || (A = t.getAttribute(o + "Name"))) : S(o, function(_, D) {
  8109. x(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  8110. }), A;
  8111. }
  8112. function f(t, o) {
  8113. var n;
  8114. t || (t = {});
  8115. for (n in o)
  8116. t[n] = o[n];
  8117. return t;
  8118. }
  8119. function E() {
  8120. for (var t = arguments, o = t.length, n = 0; n < o; n++) {
  8121. var A = t[n];
  8122. if (typeof A < "u" && A !== null)
  8123. return A;
  8124. }
  8125. }
  8126. function O(t, o) {
  8127. y.isMS && !y.svg && o && typeof o.opacity < "u" && (o.filter = "alpha(opacity=" + 100 * o.opacity + ")"), f(t.style, o);
  8128. }
  8129. function B(t, o) {
  8130. return 1e14 < t ? t : parseFloat(t.toPrecision(o || 14));
  8131. }
  8132. function M(t, o, n) {
  8133. var A = y.getStyle || M;
  8134. if (o === "width")
  8135. return o = Math.min(t.offsetWidth, t.scrollWidth), n = t.getBoundingClientRect && t.getBoundingClientRect().width, n < o && n >= o - 1 && (o = Math.floor(n)), Math.max(0, o - (A(t, "padding-left", !0) || 0) - (A(t, "padding-right", !0) || 0));
  8136. if (o === "height")
  8137. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (A(t, "padding-top", !0) || 0) - (A(t, "padding-bottom", !0) || 0));
  8138. if (p.getComputedStyle || j(27, !0), t = p.getComputedStyle(t, void 0)) {
  8139. var _ = t.getPropertyValue(o);
  8140. E(n, o !== "opacity") && (_ = Z(_));
  8141. }
  8142. return _;
  8143. }
  8144. function S(t, o, n) {
  8145. for (var A in t)
  8146. Object.hasOwnProperty.call(t, A) && o.call(n || t[A], t[A], A, t);
  8147. }
  8148. function w(t, o, n) {
  8149. function A(P, X) {
  8150. var g = t.removeEventListener || y.removeEventListenerPolyfill;
  8151. g && g.call(t, P, X, !1);
  8152. }
  8153. function _(P) {
  8154. var X;
  8155. if (t.nodeName) {
  8156. if (o) {
  8157. var g = {};
  8158. g[o] = !0;
  8159. } else
  8160. g = P;
  8161. S(g, function(m, L) {
  8162. if (P[L])
  8163. for (X = P[L].length; X--; )
  8164. A(L, P[L][X].fn);
  8165. });
  8166. }
  8167. }
  8168. var D = typeof t == "function" && t.prototype || t;
  8169. if (Object.hasOwnProperty.call(D, "hcEvents")) {
  8170. var W = D.hcEvents;
  8171. o ? (D = W[o] || [], n ? (W[o] = D.filter(function(P) {
  8172. return n !== P.fn;
  8173. }), A(o, n)) : (_(W), W[o] = [])) : (_(W), delete D.hcEvents);
  8174. }
  8175. }
  8176. function v(t, o, n, A) {
  8177. if (n = n || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  8178. var _ = c.createEvent("Events");
  8179. _.initEvent(o, !0, !0), n = f(_, n), t.dispatchEvent ? t.dispatchEvent(n) : t.fireEvent(o, n);
  8180. } else if (t.hcEvents) {
  8181. n.target || f(n, { preventDefault: function() {
  8182. n.defaultPrevented = !0;
  8183. }, target: t, type: o }), _ = [];
  8184. for (var D = t, W = !1; D.hcEvents; )
  8185. Object.hasOwnProperty.call(D, "hcEvents") && D.hcEvents[o] && (_.length && (W = !0), _.unshift.apply(_, D.hcEvents[o])), D = Object.getPrototypeOf(D);
  8186. W && _.sort(function(P, X) {
  8187. return P.order - X.order;
  8188. }), _.forEach(function(P) {
  8189. P.fn.call(t, n) === !1 && n.preventDefault();
  8190. });
  8191. }
  8192. A && !n.defaultPrevented && A.call(t, n);
  8193. }
  8194. var a = y.charts, c = y.doc, p = y.win;
  8195. (j || (j = {})).messages = [], Math.easeInOutSine = function(t) {
  8196. return -0.5 * (Math.cos(Math.PI * t) - 1);
  8197. };
  8198. var i = Array.prototype.find ? function(t, o) {
  8199. return t.find(o);
  8200. } : function(t, o) {
  8201. var n, A = t.length;
  8202. for (n = 0; n < A; n++)
  8203. if (o(t[n], n))
  8204. return t[n];
  8205. };
  8206. S({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, o) {
  8207. y[o] = function(n) {
  8208. var A;
  8209. return j(32, !1, void 0, (A = {}, A["Highcharts." + o] = "use Array." + t, A)), Array.prototype[t].apply(n, [].slice.call(arguments, 1));
  8210. };
  8211. });
  8212. var h, s = function() {
  8213. var t = Math.random().toString(36).substring(2, 9) + "-", o = 0;
  8214. return function() {
  8215. return "highcharts-" + (h ? "" : t) + o++;
  8216. };
  8217. }();
  8218. return p.jQuery && (p.jQuery.fn.highcharts = function() {
  8219. var t = [].slice.call(arguments);
  8220. if (this[0])
  8221. return t[0] ? (new y[H(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : a[u(this[0], "data-highcharts-chart")];
  8222. }), i = { addEvent: function(t, o, n, A) {
  8223. A === void 0 && (A = {});
  8224. var _ = typeof t == "function" && t.prototype || t;
  8225. Object.hasOwnProperty.call(_, "hcEvents") || (_.hcEvents = {}), _ = _.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  8226. var D = t.addEventListener || y.addEventListenerPolyfill;
  8227. return D && D.call(t, o, n, y.supportsPassiveEvents ? { passive: A.passive === void 0 ? o.indexOf("touch") !== -1 : A.passive, capture: !1 } : !1), _[o] || (_[o] = []), _[o].push({ fn: n, order: typeof A.order == "number" ? A.order : 1 / 0 }), _[o].sort(function(W, P) {
  8228. return W.order - P.order;
  8229. }), function() {
  8230. w(t, o, n);
  8231. };
  8232. }, arrayMax: function(t) {
  8233. for (var o = t.length, n = t[0]; o--; )
  8234. t[o] > n && (n = t[o]);
  8235. return n;
  8236. }, arrayMin: function(t) {
  8237. for (var o = t.length, n = t[0]; o--; )
  8238. t[o] < n && (n = t[o]);
  8239. return n;
  8240. }, attr: u, clamp: function(t, o, n) {
  8241. return t > o ? t < n ? t : n : o;
  8242. }, cleanRecursively: I, clearTimeout: function(t) {
  8243. x(t) && clearTimeout(t);
  8244. }, correctFloat: B, createElement: function(t, o, n, A, _) {
  8245. return t = c.createElement(t), o && f(t, o), _ && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), A && A.appendChild(t), t;
  8246. }, css: O, defined: x, destroyObjectProperties: function(t, o) {
  8247. S(t, function(n, A) {
  8248. n && n !== o && n.destroy && n.destroy(), delete t[A];
  8249. });
  8250. }, discardElement: function(t) {
  8251. t && t.parentElement && t.parentElement.removeChild(t);
  8252. }, erase: function(t, o) {
  8253. for (var n = t.length; n--; )
  8254. if (t[n] === o) {
  8255. t.splice(n, 1);
  8256. break;
  8257. }
  8258. }, error: j, extend: f, extendClass: function(t, o) {
  8259. var n = function() {
  8260. };
  8261. return n.prototype = new t(), f(n.prototype, o), n;
  8262. }, find: i, fireEvent: v, getMagnitude: function(t) {
  8263. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  8264. }, getNestedProperty: function(t, o) {
  8265. for (t = t.split("."); t.length && x(o); ) {
  8266. var n = t.shift();
  8267. if (typeof n > "u" || n === "__proto__" || (o = o[n], !x(o) || typeof o == "function" || typeof o.nodeType == "number" || o === p))
  8268. return;
  8269. }
  8270. return o;
  8271. }, getStyle: M, inArray: function(t, o, n) {
  8272. return j(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), o.indexOf(t, n);
  8273. }, isArray: U, isClass: N, isDOMElement: R, isFunction: function(t) {
  8274. return typeof t == "function";
  8275. }, isNumber: b, isObject: F, isString: H, keys: function(t) {
  8276. return j(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  8277. }, merge: function() {
  8278. var t, o = arguments, n = {}, A = function(D, W) {
  8279. return typeof D != "object" && (D = {}), S(W, function(P, X) {
  8280. X !== "__proto__" && X !== "constructor" && (!F(P, !0) || N(P) || R(P) ? D[X] = W[X] : D[X] = A(D[X] || {}, P));
  8281. }), D;
  8282. };
  8283. o[0] === !0 && (n = o[1], o = Array.prototype.slice.call(o, 2));
  8284. var _ = o.length;
  8285. for (t = 0; t < _; t++)
  8286. n = A(n, o[t]);
  8287. return n;
  8288. }, normalizeTickInterval: function(t, o, n, A, _) {
  8289. var D = t;
  8290. n = E(n, 1);
  8291. var W = t / n;
  8292. for (o || (o = _ ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], A === !1 && (n === 1 ? o = o.filter(function(P) {
  8293. return P % 1 === 0;
  8294. }) : 0.1 >= n && (o = [1 / n]))), A = 0; A < o.length && (D = o[A], !(_ && D * n >= t || !_ && W <= (o[A] + (o[A + 1] || o[A])) / 2)); A++)
  8295. ;
  8296. return D = B(D * n, -Math.round(Math.log(1e-3) / Math.LN10));
  8297. }, objectEach: S, offset: function(t) {
  8298. var o = c.documentElement;
  8299. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (p.pageYOffset || o.scrollTop) - (o.clientTop || 0), left: t.left + (p.pageXOffset || o.scrollLeft) - (o.clientLeft || 0), width: t.width, height: t.height };
  8300. }, pad: function(t, o, n) {
  8301. return Array((o || 2) + 1 - String(t).replace("-", "").length).join(n || "0") + t;
  8302. }, pick: E, pInt: Z, relativeLength: function(t, o, n) {
  8303. return /%$/.test(t) ? o * parseFloat(t) / 100 + (n || 0) : parseFloat(t);
  8304. }, removeEvent: w, splat: function(t) {
  8305. return U(t) ? t : [t];
  8306. }, stableSort: function(t, o) {
  8307. var n = t.length, A, _;
  8308. for (_ = 0; _ < n; _++)
  8309. t[_].safeI = _;
  8310. for (t.sort(function(D, W) {
  8311. return A = o(D, W), A === 0 ? D.safeI - W.safeI : A;
  8312. }), _ = 0; _ < n; _++)
  8313. delete t[_].safeI;
  8314. }, syncTimeout: function(t, o, n) {
  8315. return 0 < o ? setTimeout(t, o, n) : (t.call(0, n), -1);
  8316. }, timeUnits: {
  8317. millisecond: 1,
  8318. second: 1e3,
  8319. minute: 6e4,
  8320. hour: 36e5,
  8321. day: 864e5,
  8322. week: 6048e5,
  8323. month: 24192e5,
  8324. year: 314496e5
  8325. }, uniqueKey: s, useSerialIds: function(t) {
  8326. return h = E(t, h);
  8327. }, wrap: function(t, o, n) {
  8328. var A = t[o];
  8329. t[o] = function() {
  8330. var _ = Array.prototype.slice.call(arguments), D = arguments, W = this;
  8331. return W.proceed = function() {
  8332. A.apply(W, arguments.length ? arguments : D);
  8333. }, _.unshift(A), _ = n.apply(this, _), W.proceed = null, _;
  8334. };
  8335. } }, i;
  8336. }), T(l, "Core/Chart/ChartDefaults.js", [], function() {
  8337. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  8338. 10,
  8339. 10,
  8340. 15,
  8341. 10
  8342. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  8343. }), T(l, "Core/Color/Color.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  8344. var I = j.isNumber, Z = j.merge, H = j.pInt;
  8345. return j = function() {
  8346. function U(F) {
  8347. this.rgba = [NaN, NaN, NaN, NaN], this.input = F;
  8348. var R = y.Color;
  8349. if (R && R !== U)
  8350. return new R(F);
  8351. if (!(this instanceof U))
  8352. return new U(F);
  8353. this.init(F);
  8354. }
  8355. return U.parse = function(F) {
  8356. return F ? new U(F) : U.None;
  8357. }, U.prototype.init = function(F) {
  8358. var R;
  8359. if (typeof F == "object" && typeof F.stops < "u")
  8360. this.stops = F.stops.map(function(u) {
  8361. return new U(u[1]);
  8362. });
  8363. else if (typeof F == "string") {
  8364. if (this.input = F = U.names[F.toLowerCase()] || F, F.charAt(0) === "#") {
  8365. var N = F.length, b = parseInt(F.substr(1), 16);
  8366. N === 7 ? R = [(b & 16711680) >> 16, (b & 65280) >> 8, b & 255, 1] : N === 4 && (R = [(b & 3840) >> 4 | (b & 3840) >> 8, (b & 240) >> 4 | b & 240, (b & 15) << 4 | b & 15, 1]);
  8367. }
  8368. if (!R)
  8369. for (b = U.parsers.length; b-- && !R; ) {
  8370. var x = U.parsers[b];
  8371. (N = x.regex.exec(F)) && (R = x.parse(N));
  8372. }
  8373. }
  8374. R && (this.rgba = R);
  8375. }, U.prototype.get = function(F) {
  8376. var R = this.input, N = this.rgba;
  8377. if (typeof R == "object" && typeof this.stops < "u") {
  8378. var b = Z(R);
  8379. return b.stops = [].slice.call(b.stops), this.stops.forEach(function(x, u) {
  8380. b.stops[u] = [b.stops[u][0], x.get(F)];
  8381. }), b;
  8382. }
  8383. return N && I(N[0]) ? F === "rgb" || !F && N[3] === 1 ? "rgb(" + N[0] + "," + N[1] + "," + N[2] + ")" : F === "a" ? "" + N[3] : "rgba(" + N.join(",") + ")" : R;
  8384. }, U.prototype.brighten = function(F) {
  8385. var R = this.rgba;
  8386. if (this.stops)
  8387. this.stops.forEach(function(b) {
  8388. b.brighten(F);
  8389. });
  8390. else if (I(F) && F !== 0)
  8391. for (var N = 0; 3 > N; N++)
  8392. R[N] += H(255 * F), 0 > R[N] && (R[N] = 0), 255 < R[N] && (R[N] = 255);
  8393. return this;
  8394. }, U.prototype.setOpacity = function(F) {
  8395. return this.rgba[3] = F, this;
  8396. }, U.prototype.tweenTo = function(F, R) {
  8397. var N = this.rgba, b = F.rgba;
  8398. return !I(N[0]) || !I(b[0]) ? F.input || "none" : (F = b[3] !== 1 || N[3] !== 1, (F ? "rgba(" : "rgb(") + Math.round(b[0] + (N[0] - b[0]) * (1 - R)) + "," + Math.round(b[1] + (N[1] - b[1]) * (1 - R)) + "," + Math.round(b[2] + (N[2] - b[2]) * (1 - R)) + (F ? "," + (b[3] + (N[3] - b[3]) * (1 - R)) : "") + ")");
  8399. }, U.names = { white: "#ffffff", black: "#000000" }, U.parsers = [{
  8400. regex: /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
  8401. parse: function(F) {
  8402. return [H(F[1]), H(F[2]), H(F[3]), parseFloat(F[4], 10)];
  8403. }
  8404. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(F) {
  8405. return [H(F[1]), H(F[2]), H(F[3]), 1];
  8406. } }], U.None = new U(""), U;
  8407. }(), j;
  8408. }), T(l, "Core/Color/Palettes.js", [], function() {
  8409. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  8410. }), T(l, "Core/Time.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  8411. var I = y.win, Z = j.defined, H = j.error, U = j.extend, F = j.isObject, R = j.merge, N = j.objectEach, b = j.pad, x = j.pick, u = j.splat, f = j.timeUnits, E = y.isSafari && I.Intl && I.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && I.Intl && !I.Intl.DateTimeFormat.prototype.formatRange;
  8412. return j = function() {
  8413. function B(M) {
  8414. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = I.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(M);
  8415. }
  8416. return B.prototype.get = function(M, S) {
  8417. if (this.variableTimezone || this.timezoneOffset) {
  8418. var w = S.getTime(), v = w - this.getTimezoneOffset(S);
  8419. return S.setTime(v), M = S["getUTC" + M](), S.setTime(w), M;
  8420. }
  8421. return this.useUTC ? S["getUTC" + M]() : S["get" + M]();
  8422. }, B.prototype.set = function(M, S, w) {
  8423. if (this.variableTimezone || this.timezoneOffset) {
  8424. if (M === "Milliseconds" || M === "Seconds" || M === "Minutes" && this.getTimezoneOffset(S) % 36e5 === 0)
  8425. return S["setUTC" + M](w);
  8426. var v = this.getTimezoneOffset(S);
  8427. return v = S.getTime() - v, S.setTime(v), S["setUTC" + M](w), M = this.getTimezoneOffset(S), v = S.getTime() + M, S.setTime(v);
  8428. }
  8429. return this.useUTC || E && M === "FullYear" ? S["setUTC" + M](w) : S["set" + M](w);
  8430. }, B.prototype.update = function(M) {
  8431. var S = x(M && M.useUTC, !0);
  8432. this.options = M = R(!0, this.options || {}, M), this.Date = M.Date || I.Date || Date, this.timezoneOffset = (this.useUTC = S) && M.timezoneOffset, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.variableTimezone = S && !(!M.getTimezoneOffset && !M.timezone);
  8433. }, B.prototype.makeTime = function(M, S, w, v, a, c) {
  8434. if (this.useUTC) {
  8435. var p = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(p);
  8436. p += i;
  8437. var h = this.getTimezoneOffset(p);
  8438. i !== h ? p += h - i : i - 36e5 !== this.getTimezoneOffset(p - 36e5) || O || (p -= 36e5);
  8439. } else
  8440. p = new this.Date(M, S, x(w, 1), x(v, 0), x(a, 0), x(c, 0)).getTime();
  8441. return p;
  8442. }, B.prototype.timezoneOffsetFunction = function() {
  8443. var M = this, S = this.options, w = S.getTimezoneOffset, v = S.moment || I.moment;
  8444. if (!this.useUTC)
  8445. return function(a) {
  8446. return 6e4 * new Date(a.toString()).getTimezoneOffset();
  8447. };
  8448. if (S.timezone) {
  8449. if (v)
  8450. return function(a) {
  8451. return 6e4 * -v.tz(a, S.timezone).utcOffset();
  8452. };
  8453. H(25);
  8454. }
  8455. return this.useUTC && w ? function(a) {
  8456. return 6e4 * w(a.valueOf());
  8457. } : function() {
  8458. return 6e4 * (M.timezoneOffset || 0);
  8459. };
  8460. }, B.prototype.dateFormat = function(M, S, w) {
  8461. if (!Z(S) || isNaN(S))
  8462. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  8463. M = x(M, "%Y-%m-%d %H:%M:%S");
  8464. var v = this, a = new this.Date(S), c = this.get("Hours", a), p = this.get("Day", a), i = this.get("Date", a), h = this.get("Month", a), s = this.get("FullYear", a), t = y.defaultOptions.lang, o = t && t.weekdays, n = t && t.shortWeekdays;
  8465. return a = U({ a: n ? n[p] : o[p].substr(0, 3), A: o[p], d: b(i), e: b(i, 2, " "), w: p, b: t.shortMonths[h], B: t.months[h], m: b(h + 1), o: h + 1, y: s.toString().substr(2, 2), Y: s, H: b(c), k: c, I: b(c % 12 || 12), l: c % 12 || 12, M: b(this.get("Minutes", a)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: b(a.getSeconds()), L: b(Math.floor(S % 1e3), 3) }, y.dateFormats), N(a, function(A, _) {
  8466. for (; M.indexOf("%" + _) !== -1; )
  8467. M = M.replace("%" + _, typeof A == "function" ? A.call(v, S) : A);
  8468. }), w ? M.substr(0, 1).toUpperCase() + M.substr(1) : M;
  8469. }, B.prototype.resolveDTLFormat = function(M) {
  8470. return F(M, !0) ? M : (M = u(M), { main: M[0], from: M[1], to: M[2] });
  8471. }, B.prototype.getTimeTicks = function(M, S, w, v) {
  8472. var a = this, c = [], p = {}, i = new a.Date(S), h = M.unitRange, s = M.count || 1, t;
  8473. if (v = x(v, 1), Z(S)) {
  8474. if (a.set(
  8475. "Milliseconds",
  8476. i,
  8477. h >= f.second ? 0 : s * Math.floor(a.get("Milliseconds", i) / s)
  8478. ), h >= f.second && a.set("Seconds", i, h >= f.minute ? 0 : s * Math.floor(a.get("Seconds", i) / s)), h >= f.minute && a.set("Minutes", i, h >= f.hour ? 0 : s * Math.floor(a.get("Minutes", i) / s)), h >= f.hour && a.set("Hours", i, h >= f.day ? 0 : s * Math.floor(a.get("Hours", i) / s)), h >= f.day && a.set("Date", i, h >= f.month ? 1 : Math.max(1, s * Math.floor(a.get("Date", i) / s))), h >= f.month) {
  8479. a.set("Month", i, h >= f.year ? 0 : s * Math.floor(a.get("Month", i) / s));
  8480. var o = a.get("FullYear", i);
  8481. }
  8482. h >= f.year && a.set(
  8483. "FullYear",
  8484. i,
  8485. o - o % s
  8486. ), h === f.week && (o = a.get("Day", i), a.set("Date", i, a.get("Date", i) - o + v + (o < v ? -7 : 0))), o = a.get("FullYear", i), v = a.get("Month", i);
  8487. var n = a.get("Date", i), A = a.get("Hours", i);
  8488. for (S = i.getTime(), !a.variableTimezone && a.useUTC || !Z(w) || (t = w - S > 4 * f.month || a.getTimezoneOffset(S) !== a.getTimezoneOffset(w)), S = i.getTime(), i = 1; S < w; )
  8489. c.push(S), S = h === f.year ? a.makeTime(o + i * s, 0) : h === f.month ? a.makeTime(o, v + i * s) : !t || h !== f.day && h !== f.week ? t && h === f.hour && 1 < s ? a.makeTime(o, v, n, A + i * s) : S + h * s : a.makeTime(o, v, n + i * s * (h === f.day ? 1 : 7)), i++;
  8490. c.push(S), h <= f.hour && 1e4 > c.length && c.forEach(function(_) {
  8491. _ % 18e5 === 0 && a.dateFormat("%H%M%S%L", _) === "000000000" && (p[_] = "day");
  8492. });
  8493. }
  8494. return c.info = U(M, { higherRanks: p, totalRange: h * s }), c;
  8495. }, B.prototype.getDateFormat = function(M, S, w, v) {
  8496. var a = this.dateFormat("%m-%d %H:%M:%S.%L", S), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, p = "millisecond";
  8497. for (i in f) {
  8498. if (M === f.week && +this.dateFormat("%w", S) === w && a.substr(6) === "00:00:00.000") {
  8499. var i = "week";
  8500. break;
  8501. }
  8502. if (f[i] > M) {
  8503. i = p;
  8504. break;
  8505. }
  8506. if (c[i] && a.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  8507. break;
  8508. i !== "week" && (p = i);
  8509. }
  8510. if (i)
  8511. var h = this.resolveDTLFormat(v[i]).main;
  8512. return h;
  8513. }, B;
  8514. }(), j;
  8515. }), T(l, "Core/DefaultOptions.js", [l["Core/Chart/ChartDefaults.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Color/Palettes.js"], l["Core/Time.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  8516. j = j.parse;
  8517. var F = U.merge, R = {
  8518. colors: Z.colors,
  8519. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  8520. lang: {
  8521. loading: "Loading...",
  8522. months: "January February March April May June July August September October November December".split(" "),
  8523. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  8524. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  8525. decimalPoint: ".",
  8526. numericSymbols: "kMGTPE".split(""),
  8527. resetZoom: "Reset zoom",
  8528. resetZoomTitle: "Reset zoom level 1:1",
  8529. thousandsSep: " "
  8530. },
  8531. global: {},
  8532. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  8533. chart: y,
  8534. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  8535. subtitle: { text: "", align: "center", widthAdjust: -44 },
  8536. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  8537. plotOptions: {},
  8538. labels: { style: { position: "absolute", color: "#333333" } },
  8539. legend: {
  8540. enabled: !0,
  8541. align: "center",
  8542. alignColumns: !0,
  8543. className: "highcharts-no-tooltip",
  8544. layout: "horizontal",
  8545. labelFormatter: function() {
  8546. return this.name;
  8547. },
  8548. borderColor: "#999999",
  8549. borderRadius: 0,
  8550. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  8551. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  8552. itemHoverStyle: { color: "#000000" },
  8553. itemHiddenStyle: { color: "#cccccc" },
  8554. shadow: !1,
  8555. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  8556. squareSymbol: !0,
  8557. symbolPadding: 5,
  8558. verticalAlign: "bottom",
  8559. x: 0,
  8560. y: 0,
  8561. title: { style: { fontWeight: "bold" } }
  8562. },
  8563. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  8564. tooltip: {
  8565. enabled: !0,
  8566. animation: I.svg,
  8567. borderRadius: 3,
  8568. dateTimeLabelFormats: {
  8569. millisecond: "%A, %b %e, %H:%M:%S.%L",
  8570. second: "%A, %b %e, %H:%M:%S",
  8571. minute: "%A, %b %e, %H:%M",
  8572. hour: "%A, %b %e, %H:%M",
  8573. day: "%A, %b %e, %Y",
  8574. week: "Week from %A, %b %e, %Y",
  8575. month: "%B %Y",
  8576. year: "%Y"
  8577. },
  8578. footerFormat: "",
  8579. headerShape: "callout",
  8580. hideDelay: 500,
  8581. padding: 8,
  8582. shape: "callout",
  8583. shared: !1,
  8584. snap: I.isTouchDevice ? 25 : 10,
  8585. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  8586. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  8587. backgroundColor: j("#f7f7f7").setOpacity(0.85).get(),
  8588. borderWidth: 1,
  8589. shadow: !0,
  8590. stickOnContact: !1,
  8591. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  8592. useHTML: !1
  8593. },
  8594. credits: { enabled: !0, href: "https://www.highcharts.com?credits", position: { align: "right", x: -10, verticalAlign: "bottom", y: -5 }, style: { cursor: "pointer", color: "#999999", fontSize: "9px" }, text: "Highcharts.com" }
  8595. };
  8596. R.chart.styledMode = !1;
  8597. var N = new H(F(R.global, R.time));
  8598. return y = { defaultOptions: R, defaultTime: N, getOptions: function() {
  8599. return R;
  8600. }, setOptions: function(b) {
  8601. return F(!0, R, b), (b.time || b.global) && (I.time ? I.time.update(F(
  8602. R.global,
  8603. R.time,
  8604. b.global,
  8605. b.time
  8606. )) : I.time = N), R;
  8607. } }, y;
  8608. }), T(l, "Core/Animation/Fx.js", [l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I) {
  8609. var Z = y.parse, H = j.win, U = I.isNumber, F = I.objectEach;
  8610. return function() {
  8611. function R(N, b, x) {
  8612. this.pos = NaN, this.options = b, this.elem = N, this.prop = x;
  8613. }
  8614. return R.prototype.dSetter = function() {
  8615. var N = this.paths, b = N && N[0];
  8616. N = N && N[1];
  8617. var x = this.now || 0, u = [];
  8618. if (x !== 1 && b && N)
  8619. if (b.length === N.length && 1 > x)
  8620. for (var f = 0; f < N.length; f++) {
  8621. for (var E = b[f], O = N[f], B = [], M = 0; M < O.length; M++) {
  8622. var S = E[M], w = O[M];
  8623. U(S) && U(w) && (O[0] !== "A" || M !== 4 && M !== 5) ? B[M] = S + x * (w - S) : B[M] = w;
  8624. }
  8625. u.push(B);
  8626. }
  8627. else
  8628. u = N;
  8629. else
  8630. u = this.toD || [];
  8631. this.elem.attr("d", u, void 0, !0);
  8632. }, R.prototype.update = function() {
  8633. var N = this.elem, b = this.prop, x = this.now, u = this.options.step;
  8634. this[b + "Setter"] ? this[b + "Setter"]() : N.attr ? N.element && N.attr(b, x, null, !0) : N.style[b] = x + this.unit, u && u.call(N, x, this);
  8635. }, R.prototype.run = function(N, b, x) {
  8636. var u = this, f = u.options, E = function(M) {
  8637. return E.stopped ? !1 : u.step(M);
  8638. }, O = H.requestAnimationFrame || function(M) {
  8639. setTimeout(
  8640. M,
  8641. 13
  8642. );
  8643. }, B = function() {
  8644. for (var M = 0; M < R.timers.length; M++)
  8645. R.timers[M]() || R.timers.splice(M--, 1);
  8646. R.timers.length && O(B);
  8647. };
  8648. N !== b || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = N, this.end = b, this.unit = x, this.now = this.start, this.pos = 0, E.elem = this.elem, E.prop = this.prop, E() && R.timers.push(E) === 1 && O(B)) : (delete f.curAnim[this.prop], f.complete && Object.keys(f.curAnim).length === 0 && f.complete.call(this.elem));
  8649. }, R.prototype.step = function(N) {
  8650. var b = +/* @__PURE__ */ new Date(), x = this.options, u = this.elem, f = x.complete, E = x.duration, O = x.curAnim;
  8651. if (u.attr && !u.element)
  8652. N = !1;
  8653. else if (N || b >= E + this.startTime) {
  8654. this.now = this.end, this.pos = 1, this.update();
  8655. var B = O[this.prop] = !0;
  8656. F(O, function(M) {
  8657. M !== !0 && (B = !1);
  8658. }), B && f && f.call(u), N = !1;
  8659. } else
  8660. this.pos = x.easing((b - this.startTime) / E), this.now = this.start + (this.end - this.start) * this.pos, this.update(), N = !0;
  8661. return N;
  8662. }, R.prototype.initPath = function(N, b, x) {
  8663. function u(a, c) {
  8664. for (; a.length < v; ) {
  8665. var p = a[0], i = c[v - a.length];
  8666. i && p[0] === "M" && (a[0] = i[0] === "C" ? ["C", p[1], p[2], p[1], p[2], p[1], p[2]] : [
  8667. "L",
  8668. p[1],
  8669. p[2]
  8670. ]), a.unshift(p), B && (p = a.pop(), a.push(a[a.length - 1], p));
  8671. }
  8672. }
  8673. function f(a, c) {
  8674. for (; a.length < v; )
  8675. if (c = a[Math.floor(a.length / M) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), B) {
  8676. var p = a[Math.floor(a.length / M)].slice();
  8677. a.splice(a.length / 2, 0, c, p);
  8678. } else
  8679. a.push(c);
  8680. }
  8681. var E = N.startX, O = N.endX;
  8682. x = x.slice();
  8683. var B = N.isArea, M = B ? 2 : 1;
  8684. if (b = b && b.slice(), !b)
  8685. return [x, x];
  8686. if (E && O && O.length) {
  8687. for (N = 0; N < E.length; N++)
  8688. if (E[N] === O[0]) {
  8689. var S = N;
  8690. break;
  8691. } else if (E[0] === O[O.length - E.length + N]) {
  8692. S = N;
  8693. var w = !0;
  8694. break;
  8695. } else if (E[E.length - 1] === O[O.length - E.length + N]) {
  8696. S = E.length - N;
  8697. break;
  8698. }
  8699. typeof S > "u" && (b = []);
  8700. }
  8701. if (b.length && U(S)) {
  8702. var v = x.length + S * M;
  8703. w ? (u(b, x), f(x, b)) : (u(x, b), f(b, x));
  8704. }
  8705. return [b, x];
  8706. }, R.prototype.fillSetter = function() {
  8707. R.prototype.strokeSetter.apply(this, arguments);
  8708. }, R.prototype.strokeSetter = function() {
  8709. this.elem.attr(this.prop, Z(this.start).tweenTo(Z(this.end), this.pos), void 0, !0);
  8710. }, R.timers = [], R;
  8711. }();
  8712. }), T(l, "Core/Animation/AnimationUtilities.js", [l["Core/Animation/Fx.js"], l["Core/Utilities.js"]], function(y, j) {
  8713. function I(f) {
  8714. return N(f) ? b({ duration: 500, defer: 0 }, f) : { duration: f ? 500 : 0, defer: 0 };
  8715. }
  8716. function Z(f, E) {
  8717. for (var O = y.timers.length; O--; )
  8718. y.timers[O].elem !== f || E && E !== y.timers[O].prop || (y.timers[O].stopped = !0);
  8719. }
  8720. var H = j.defined, U = j.getStyle, F = j.isArray, R = j.isNumber, N = j.isObject, b = j.merge, x = j.objectEach, u = j.pick;
  8721. return { animate: function(f, E, O) {
  8722. var B, M = "", S, w;
  8723. if (!N(O)) {
  8724. var v = arguments;
  8725. O = { duration: v[2], easing: v[3], complete: v[4] };
  8726. }
  8727. R(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = b(E), x(E, function(a, c) {
  8728. Z(f, c), w = new y(f, O, c), S = void 0, c === "d" && F(E.d) ? (w.paths = w.initPath(f, f.pathArray, E.d), w.toD = E.d, B = 0, S = 1) : f.attr ? B = f.attr(c) : (B = parseFloat(U(f, c)) || 0, c !== "opacity" && (M = "px")), S || (S = a), typeof S == "string" && S.match("px") && (S = S.replace(/px/g, "")), w.run(B, S, M);
  8729. });
  8730. }, animObject: I, getDeferredAnimation: function(f, E, O) {
  8731. var B = I(E), M = 0, S = 0;
  8732. return (O ? [O] : f.series).forEach(function(w) {
  8733. w = I(w.options.animation), M = E && H(E.defer) ? B.defer : Math.max(M, w.duration + w.defer), S = Math.min(B.duration, w.duration);
  8734. }), f.renderer.forExport && (M = 0), { defer: Math.max(0, M - S), duration: Math.min(M, S) };
  8735. }, setAnimation: function(f, E) {
  8736. E.renderer.globalAnimation = u(f, E.options.chart.animation, !0);
  8737. }, stop: Z };
  8738. }), T(l, "Core/Renderer/HTML/AST.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  8739. var I = y.SVG_NS, Z = j.attr, H = j.createElement, U = j.error, F = j.isFunction, R = j.isString, N = j.objectEach, b = j.splat, x = (j = y.win.trustedTypes) && F(j.createPolicy) && j.createPolicy("highcharts", { createHTML: function(E) {
  8740. return E;
  8741. } }), u = x ? x.createHTML("") : "";
  8742. try {
  8743. var f = !!new DOMParser().parseFromString(u, "text/html");
  8744. } catch {
  8745. f = !1;
  8746. }
  8747. return F = function() {
  8748. function E(O) {
  8749. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  8750. }
  8751. return E.filterUserAttributes = function(O) {
  8752. return N(O, function(B, M) {
  8753. var S = !0;
  8754. E.allowedAttributes.indexOf(M) === -1 && (S = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(M) !== -1 && (S = R(B) && E.allowedReferences.some(function(w) {
  8755. return B.indexOf(w) === 0;
  8756. })), S || (U("Highcharts warning: Invalid attribute '" + M + "' in config"), delete O[M]);
  8757. }), O;
  8758. }, E.setElementHTML = function(O, B) {
  8759. O.innerHTML = E.emptyHTML, B && new E(B).addToDOM(O);
  8760. }, E.prototype.addToDOM = function(O) {
  8761. function B(M, S) {
  8762. var w;
  8763. return b(M).forEach(function(v) {
  8764. var a = v.tagName, c = v.textContent ? y.doc.createTextNode(v.textContent) : void 0;
  8765. if (a)
  8766. if (a === "#text")
  8767. var p = c;
  8768. else if (E.allowedTags.indexOf(a) !== -1) {
  8769. a = y.doc.createElementNS(a === "svg" ? I : S.namespaceURI || I, a);
  8770. var i = v.attributes || {};
  8771. N(v, function(h, s) {
  8772. s !== "tagName" && s !== "attributes" && s !== "children" && s !== "textContent" && (i[s] = h);
  8773. }), Z(a, E.filterUserAttributes(i)), c && a.appendChild(c), B(v.children || [], a), p = a;
  8774. } else
  8775. U("Highcharts warning: Invalid tagName " + a + " in config");
  8776. p && S.appendChild(p), w = p;
  8777. }), w;
  8778. }
  8779. return B(this.nodes, O);
  8780. }, E.prototype.parseMarkup = function(O) {
  8781. var B = [];
  8782. if (O = O.trim(), f)
  8783. O = new DOMParser().parseFromString(x ? x.createHTML(O) : O, "text/html");
  8784. else {
  8785. var M = H("div");
  8786. M.innerHTML = O, O = { body: M };
  8787. }
  8788. var S = function(w, v) {
  8789. var a = w.nodeName.toLowerCase(), c = { tagName: a };
  8790. if (a === "#text" && (c.textContent = w.textContent || ""), a = w.attributes) {
  8791. var p = {};
  8792. [].forEach.call(a, function(h) {
  8793. p[h.name] = h.value;
  8794. }), c.attributes = p;
  8795. }
  8796. if (w.childNodes.length) {
  8797. var i = [];
  8798. [].forEach.call(w.childNodes, function(h) {
  8799. S(h, i);
  8800. }), i.length && (c.children = i);
  8801. }
  8802. v.push(c);
  8803. };
  8804. return [].forEach.call(O.body.childNodes, function(w) {
  8805. return S(w, B);
  8806. }), B;
  8807. }, E.allowedAttributes = "aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "), E.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), E.allowedTags = "a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "), E.emptyHTML = u, E;
  8808. }(), F;
  8809. }), T(
  8810. l,
  8811. "Core/FormatUtilities.js",
  8812. [l["Core/DefaultOptions.js"], l["Core/Utilities.js"]],
  8813. function(y, j) {
  8814. function I(b, x, u, f) {
  8815. b = +b || 0, x = +x;
  8816. var E = Z.lang, O = (b.toString().split(".")[1] || "").split("e")[0].length, B = b.toString().split("e"), M = x;
  8817. if (x === -1)
  8818. x = Math.min(O, 20);
  8819. else if (!F(x))
  8820. x = 2;
  8821. else if (x && B[1] && 0 > B[1]) {
  8822. var S = x + +B[1];
  8823. 0 <= S ? (B[0] = (+B[0]).toExponential(S).split("e")[0], x = S) : (B[0] = B[0].split(".")[0] || 0, b = 20 > x ? (B[0] * Math.pow(10, B[1])).toFixed(x) : 0, B[1] = 0);
  8824. }
  8825. S = (Math.abs(B[1] ? B[0] : b) + Math.pow(10, -Math.max(x, O) - 1)).toFixed(x), O = String(N(S));
  8826. var w = 3 < O.length ? O.length % 3 : 0;
  8827. return u = R(u, E.decimalPoint), f = R(f, E.thousandsSep), b = (0 > b ? "-" : "") + (w ? O.substr(0, w) + f : ""), b = 0 > +B[1] && !M ? "0" : b + O.substr(w).replace(/(\d{3})(?=\d)/g, "$1" + f), x && (b += u + S.slice(-x)), B[1] && +b != 0 && (b += "e" + B[1]), b;
  8828. }
  8829. var Z = y.defaultOptions, H = y.defaultTime, U = j.getNestedProperty, F = j.isNumber, R = j.pick, N = j.pInt;
  8830. return { dateFormat: function(b, x, u) {
  8831. return H.dateFormat(b, x, u);
  8832. }, format: function(b, x, u) {
  8833. var f = "{", E = !1, O = /f$/, B = /\.([0-9])/, M = Z.lang, S = u && u.time || H;
  8834. u = u && u.numberFormatter || I;
  8835. for (var w = []; b; ) {
  8836. var v = b.indexOf(f);
  8837. if (v === -1)
  8838. break;
  8839. var a = b.slice(0, v);
  8840. if (E) {
  8841. if (a = a.split(":"), f = U(a.shift() || "", x), a.length && typeof f == "number")
  8842. if (a = a.join(":"), O.test(a)) {
  8843. var c = parseInt((a.match(B) || ["", "-1"])[1], 10);
  8844. f !== null && (f = u(f, c, M.decimalPoint, -1 < a.indexOf(",") ? M.thousandsSep : ""));
  8845. } else
  8846. f = S.dateFormat(a, f);
  8847. w.push(f);
  8848. } else
  8849. w.push(a);
  8850. b = b.slice(v + 1), f = (E = !E) ? "}" : "{";
  8851. }
  8852. return w.push(b), w.join("");
  8853. }, numberFormat: I };
  8854. }
  8855. ), T(l, "Core/Renderer/RendererUtilities.js", [l["Core/Utilities.js"]], function(y) {
  8856. var j = y.clamp, I = y.pick, Z = y.stableSort, H;
  8857. return function(U) {
  8858. function F(R, N, b) {
  8859. var x = R, u = x.reducedLen || N, f = function(w, v) {
  8860. return (v.rank || 0) - (w.rank || 0);
  8861. }, E = function(w, v) {
  8862. return w.target - v.target;
  8863. }, O, B = !0, M = [], S = 0;
  8864. for (O = R.length; O--; )
  8865. S += R[O].size;
  8866. if (S > u) {
  8867. for (Z(R, f), S = O = 0; S <= u; )
  8868. S += R[O].size, O++;
  8869. M = R.splice(O - 1, R.length);
  8870. }
  8871. for (Z(R, E), R = R.map(function(w) {
  8872. return { size: w.size, targets: [w.target], align: I(w.align, 0.5) };
  8873. }); B; ) {
  8874. for (O = R.length; O--; )
  8875. u = R[O], f = (Math.min.apply(0, u.targets) + Math.max.apply(0, u.targets)) / 2, u.pos = j(
  8876. f - u.size * u.align,
  8877. 0,
  8878. N - u.size
  8879. );
  8880. for (O = R.length, B = !1; O--; )
  8881. 0 < O && R[O - 1].pos + R[O - 1].size > R[O].pos && (R[O - 1].size += R[O].size, R[O - 1].targets = R[O - 1].targets.concat(R[O].targets), R[O - 1].align = 0.5, R[O - 1].pos + R[O - 1].size > N && (R[O - 1].pos = N - R[O - 1].size), R.splice(O, 1), B = !0);
  8882. }
  8883. return x.push.apply(x, M), O = 0, R.some(function(w) {
  8884. var v = 0;
  8885. return (w.targets || []).some(function() {
  8886. return x[O].pos = w.pos + v, typeof b < "u" && Math.abs(x[O].pos - x[O].target) > b ? (x.slice(0, O + 1).forEach(function(a) {
  8887. return delete a.pos;
  8888. }), x.reducedLen = (x.reducedLen || N) - 0.1 * N, x.reducedLen > 0.1 * N && F(x, N, b), !0) : (v += x[O].size, O++, !1);
  8889. });
  8890. }), Z(x, E), x;
  8891. }
  8892. U.distribute = F;
  8893. }(H || (H = {})), H;
  8894. }), T(l, "Core/Renderer/SVG/SVGElement.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Renderer/HTML/AST.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  8895. var U = y.animate, F = y.animObject, R = y.stop, N = Z.deg2rad, b = Z.doc, x = Z.noop, u = Z.svg, f = Z.SVG_NS, E = Z.win, O = H.addEvent, B = H.attr, M = H.createElement, S = H.css, w = H.defined, v = H.erase, a = H.extend, c = H.fireEvent, p = H.isArray, i = H.isFunction, h = H.isNumber, s = H.isString, t = H.merge, o = H.objectEach, n = H.pick, A = H.pInt, _ = H.syncTimeout, D = H.uniqueKey;
  8896. return y = function() {
  8897. function W() {
  8898. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = f, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  8899. }
  8900. return W.prototype._defaultGetter = function(P) {
  8901. return P = n(this[P + "Value"], this[P], this.element ? this.element.getAttribute(P) : null, 0), /^[\-0-9\.]+$/.test(P) && (P = parseFloat(P)), P;
  8902. }, W.prototype._defaultSetter = function(P, X, g) {
  8903. g.setAttribute(X, P);
  8904. }, W.prototype.add = function(P) {
  8905. var X = this.renderer, g = this.element;
  8906. if (P && (this.parentGroup = P), this.parentInverted = P && P.inverted, typeof this.textStr < "u" && this.element.nodeName === "text" && X.buildText(this), this.added = !0, !P || P.handleZ || this.zIndex)
  8907. var m = this.zIndexSetter();
  8908. return m || (P ? P.element : X.box).appendChild(g), this.onAdd && this.onAdd(), this;
  8909. }, W.prototype.addClass = function(P, X) {
  8910. var g = X ? "" : this.attr("class") || "";
  8911. return P = (P || "").split(/ /g).reduce(function(m, L) {
  8912. return g.indexOf(L) === -1 && m.push(L), m;
  8913. }, g ? [g] : []).join(" "), P !== g && this.attr("class", P), this;
  8914. }, W.prototype.afterSetters = function() {
  8915. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  8916. }, W.prototype.align = function(P, X, g) {
  8917. var m = {}, L = this.renderer, Y = L.alignedObjects, V, Q, k;
  8918. P ? (this.alignOptions = P, this.alignByTranslate = X, (!g || s(g)) && (this.alignTo = V = g || "renderer", v(Y, this), Y.push(this), g = void 0)) : (P = this.alignOptions, X = this.alignByTranslate, V = this.alignTo), g = n(g, L[V], V === "scrollablePlotBox" ? L.plotBox : void 0, L), V = P.align;
  8919. var G = P.verticalAlign;
  8920. return L = (g.x || 0) + (P.x || 0), Y = (g.y || 0) + (P.y || 0), V === "right" ? Q = 1 : V === "center" && (Q = 2), Q && (L += (g.width - (P.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), G === "bottom" ? k = 1 : G === "middle" && (k = 2), k && (Y += (g.height - (P.height || 0)) / k), m[X ? "translateY" : "y"] = Math.round(Y), this[this.placed ? "animate" : "attr"](m), this.placed = !0, this.alignAttr = m, this;
  8921. }, W.prototype.alignSetter = function(P) {
  8922. var X = { left: "start", center: "middle", right: "end" };
  8923. X[P] && (this.alignValue = P, this.element.setAttribute(
  8924. "text-anchor",
  8925. X[P]
  8926. ));
  8927. }, W.prototype.animate = function(P, X, g) {
  8928. var m = this, L = F(n(X, this.renderer.globalAnimation, !0));
  8929. return X = L.defer, n(b.hidden, b.msHidden, b.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (g && (L.complete = g), _(function() {
  8930. m.element && U(m, P, L);
  8931. }, X)) : (this.attr(P, void 0, g), o(P, function(Y, V) {
  8932. L.step && L.step.call(this, Y, { prop: V, pos: 1, elem: this });
  8933. }, this)), this;
  8934. }, W.prototype.applyTextOutline = function(P) {
  8935. var X = this.element;
  8936. P.indexOf("contrast") !== -1 && (P = P.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  8937. var g = P.split(" ");
  8938. if (P = g[g.length - 1], (g = g[0]) && g !== "none" && Z.svg) {
  8939. this.fakeTS = !0, this.ySetter = this.xSetter, g = g.replace(/(^[\d\.]+)(.*?)$/g, function(Y, V, Q) {
  8940. return 2 * Number(V) + Q;
  8941. }), this.removeTextOutline();
  8942. var m = b.createElementNS(f, "tspan");
  8943. B(m, { class: "highcharts-text-outline", fill: P, stroke: P, "stroke-width": g, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(Y) {
  8944. var V = Y.cloneNode(!0);
  8945. V.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  8946. return V.removeAttribute(Q);
  8947. }), m.appendChild(V);
  8948. });
  8949. var L = b.createElementNS(f, "tspan");
  8950. L.textContent = "​", ["x", "y"].forEach(function(Y) {
  8951. var V = X.getAttribute(Y);
  8952. V && L.setAttribute(Y, V);
  8953. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  8954. }
  8955. }, W.prototype.attr = function(P, X, g, m) {
  8956. var L = this.element, Y = this.symbolCustomAttribs, V, Q = this, k, G;
  8957. if (typeof P == "string" && typeof X < "u") {
  8958. var z = P;
  8959. P = {}, P[z] = X;
  8960. }
  8961. return typeof P == "string" ? Q = (this[P + "Getter"] || this._defaultGetter).call(this, P, L) : (o(P, function($, q) {
  8962. k = !1, m || R(this, q), this.symbolName && Y.indexOf(q) !== -1 && (V || (this.symbolAttr(P), V = !0), k = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), k || (G = this[q + "Setter"] || this._defaultSetter, G.call(this, $, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, $, G));
  8963. }, this), this.afterSetters()), g && g.call(this), Q;
  8964. }, W.prototype.clip = function(P) {
  8965. return this.attr("clip-path", P ? "url(" + this.renderer.url + "#" + P.id + ")" : "none");
  8966. }, W.prototype.crisp = function(P, X) {
  8967. X = X || P.strokeWidth || 0;
  8968. var g = Math.round(X) % 2 / 2;
  8969. return P.x = Math.floor(P.x || this.x || 0) + g, P.y = Math.floor(P.y || this.y || 0) + g, P.width = Math.floor((P.width || this.width || 0) - 2 * g), P.height = Math.floor((P.height || this.height || 0) - 2 * g), w(P.strokeWidth) && (P.strokeWidth = X), P;
  8970. }, W.prototype.complexColor = function(P, X, g) {
  8971. var m = this.renderer, L, Y, V, Q, k, G, z, $, q, it, et = [], nt;
  8972. c(this.renderer, "complexColor", { args: arguments }, function() {
  8973. if (P.radialGradient ? Y = "radialGradient" : P.linearGradient && (Y = "linearGradient"), Y) {
  8974. if (V = P[Y], k = m.gradients, G = P.stops, q = g.radialReference, p(V) && (P[Y] = V = { x1: V[0], y1: V[1], x2: V[2], y2: V[3], gradientUnits: "userSpaceOnUse" }), Y === "radialGradient" && q && !w(V.gradientUnits) && (Q = V, V = t(V, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), o(V, function(ct, gt) {
  8975. gt !== "id" && et.push(gt, ct);
  8976. }), o(G, function(ct) {
  8977. et.push(ct);
  8978. }), et = et.join(","), k[et])
  8979. it = k[et].attr("id");
  8980. else {
  8981. V.id = it = D();
  8982. var rt = k[et] = m.createElement(Y).attr(V).add(m.defs);
  8983. rt.radAttr = Q, rt.stops = [], G.forEach(function(ct) {
  8984. ct[1].indexOf("rgba") === 0 ? (L = I.parse(ct[1]), z = L.get("rgb"), $ = L.get("a")) : (z = ct[1], $ = 1), ct = m.createElement("stop").attr({
  8985. offset: ct[0],
  8986. "stop-color": z,
  8987. "stop-opacity": $
  8988. }).add(rt), rt.stops.push(ct);
  8989. });
  8990. }
  8991. nt = "url(" + m.url + "#" + it + ")", g.setAttribute(X, nt), g.gradient = et, P.toString = function() {
  8992. return nt;
  8993. };
  8994. }
  8995. });
  8996. }, W.prototype.css = function(P) {
  8997. var X = this.styles, g = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], Y = "", V = !X;
  8998. if (P && P.color && (P.fill = P.color), X && o(P, function(G, z) {
  8999. X && X[z] !== G && (g[z] = G, V = !0);
  9000. }), V) {
  9001. if (X && (P = a(X, g)), P) {
  9002. if (P.width === null || P.width === "auto")
  9003. delete this.textWidth;
  9004. else if (m.nodeName.toLowerCase() === "text" && P.width)
  9005. var Q = this.textWidth = A(P.width);
  9006. }
  9007. if (this.styles = P, Q && !u && this.renderer.forExport && delete P.width, m.namespaceURI === this.SVG_NS) {
  9008. var k = function(G, z) {
  9009. return "-" + z.toLowerCase();
  9010. };
  9011. o(P, function(G, z) {
  9012. L.indexOf(z) === -1 && (Y += z.replace(/([A-Z])/g, k) + ":" + G + ";");
  9013. }), Y && B(m, "style", Y);
  9014. } else
  9015. S(m, P);
  9016. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), P && P.textOutline && this.applyTextOutline(P.textOutline));
  9017. }
  9018. return this;
  9019. }, W.prototype.dashstyleSetter = function(P) {
  9020. var X = this["stroke-width"];
  9021. if (X === "inherit" && (X = 1), P = P && P.toLowerCase()) {
  9022. var g = P.replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot", "3,1,1,1").replace("shortdot", "1,1,").replace("shortdash", "3,1,").replace("longdash", "8,3,").replace(/dot/g, "1,3,").replace("dash", "4,3,").replace(/,$/, "").split(",");
  9023. for (P = g.length; P--; )
  9024. g[P] = "" + A(g[P]) * n(X, NaN);
  9025. P = g.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", P);
  9026. }
  9027. }, W.prototype.destroy = function() {
  9028. var P = this, X = P.element || {}, g = P.renderer, m = X.ownerSVGElement, L = g.isSVG && X.nodeName === "SPAN" && P.parentGroup || void 0;
  9029. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, R(P), P.clipPath && m) {
  9030. var Y = P.clipPath;
  9031. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function(V) {
  9032. -1 < V.getAttribute("clip-path").indexOf(Y.element.id) && V.removeAttribute("clip-path");
  9033. }), P.clipPath = Y.destroy();
  9034. }
  9035. if (P.stops) {
  9036. for (m = 0; m < P.stops.length; m++)
  9037. P.stops[m].destroy();
  9038. P.stops.length = 0, P.stops = void 0;
  9039. }
  9040. for (P.safeRemoveChild(X), g.styledMode || P.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  9041. X = L.parentGroup, P.safeRemoveChild(L.div), delete L.div, L = X;
  9042. P.alignTo && v(g.alignedObjects, P), o(P, function(V, Q) {
  9043. P[Q] && P[Q].parentGroup === P && P[Q].destroy && P[Q].destroy(), delete P[Q];
  9044. });
  9045. }, W.prototype.destroyShadows = function() {
  9046. (this.shadows || []).forEach(function(P) {
  9047. this.safeRemoveChild(P);
  9048. }, this), this.shadows = void 0;
  9049. }, W.prototype.destroyTextPath = function(P, X) {
  9050. var g = P.getElementsByTagName("text")[0];
  9051. if (g) {
  9052. if (g.removeAttribute("dx"), g.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && g.getElementsByTagName("textPath").length) {
  9053. for (P = this.textPathWrapper.element.childNodes; P.length; )
  9054. g.appendChild(P[0]);
  9055. g.removeChild(this.textPathWrapper.element);
  9056. }
  9057. } else
  9058. (P.getAttribute("dx") || P.getAttribute("dy")) && (P.removeAttribute("dx"), P.removeAttribute("dy"));
  9059. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  9060. }, W.prototype.dSetter = function(P, X, g) {
  9061. p(P) && (typeof P[0] == "string" && (P = this.renderer.pathToSegments(P)), this.pathArray = P, P = P.reduce(function(m, L, Y) {
  9062. return L && L.join ? (Y ? m + " " : "") + L.join(" ") : (L || "").toString();
  9063. }, "")), /(NaN| {2}|^$)/.test(P) && (P = "M 0 0"), this[X] !== P && (g.setAttribute(X, P), this[X] = P);
  9064. }, W.prototype.fadeOut = function(P) {
  9065. var X = this;
  9066. X.animate({ opacity: 0 }, { duration: n(P, 150), complete: function() {
  9067. X.attr({ y: -9999 }).hide();
  9068. } });
  9069. }, W.prototype.fillSetter = function(P, X, g) {
  9070. typeof P == "string" ? g.setAttribute(X, P) : P && this.complexColor(P, X, g);
  9071. }, W.prototype.getBBox = function(P, X) {
  9072. var g = this.renderer, m = this.element, L = this.styles, Y = this.textStr, V = g.cache, Q = g.cacheKeys, k = m.namespaceURI === this.SVG_NS;
  9073. X = n(X, this.rotation, 0);
  9074. var G = g.styledMode ? m && W.prototype.getStyle.call(m, "font-size") : L && L.fontSize, z;
  9075. if (w(Y)) {
  9076. var $ = Y.toString();
  9077. $.indexOf("<") === -1 && ($ = $.replace(/[0-9]/g, "0")), $ += ["", X, G, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  9078. }
  9079. if ($ && !P && (z = V[$]), !z) {
  9080. if (k || g.forExport) {
  9081. try {
  9082. var q = this.fakeTS && function(it) {
  9083. var et = m.querySelector(".highcharts-text-outline");
  9084. et && S(et, { display: it });
  9085. };
  9086. i(q) && q("none"), z = m.getBBox ? a({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  9087. } catch {
  9088. }
  9089. (!z || 0 > z.width) && (z = {
  9090. width: 0,
  9091. height: 0
  9092. });
  9093. } else
  9094. z = this.htmlGetBBox();
  9095. if (g.isSVG && (P = z.width, g = z.height, k && (z.height = g = { "11px,17": 14, "13px,20": 16 }[(G || "") + "," + Math.round(g)] || g), X && (k = X * N, z.width = Math.abs(g * Math.sin(k)) + Math.abs(P * Math.cos(k)), z.height = Math.abs(g * Math.cos(k)) + Math.abs(P * Math.sin(k)))), $ && (Y === "" || 0 < z.height)) {
  9096. for (; 250 < Q.length; )
  9097. delete V[Q.shift()];
  9098. V[$] || Q.push($), V[$] = z;
  9099. }
  9100. }
  9101. return z;
  9102. }, W.prototype.getStyle = function(P) {
  9103. return E.getComputedStyle(this.element || this, "").getPropertyValue(P);
  9104. }, W.prototype.hasClass = function(P) {
  9105. return ("" + this.attr("class")).split(" ").indexOf(P) !== -1;
  9106. }, W.prototype.hide = function(P) {
  9107. return P ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  9108. }, W.prototype.htmlGetBBox = function() {
  9109. return { height: 0, width: 0, x: 0, y: 0 };
  9110. }, W.prototype.init = function(P, X) {
  9111. this.element = X === "span" ? M(X) : b.createElementNS(this.SVG_NS, X), this.renderer = P, c(this, "afterInit");
  9112. }, W.prototype.invert = function(P) {
  9113. return this.inverted = P, this.updateTransform(), this;
  9114. }, W.prototype.on = function(P, X) {
  9115. var g = this.onEvents;
  9116. return g[P] && g[P](), g[P] = O(
  9117. this.element,
  9118. P,
  9119. X
  9120. ), this;
  9121. }, W.prototype.opacitySetter = function(P, X, g) {
  9122. this.opacity = P = Number(Number(P).toFixed(3)), g.setAttribute(X, P);
  9123. }, W.prototype.removeClass = function(P) {
  9124. return this.attr("class", ("" + this.attr("class")).replace(s(P) ? new RegExp("(^| )" + P + "( |$)") : P, " ").replace(/ +/g, " ").trim());
  9125. }, W.prototype.removeTextOutline = function() {
  9126. var P = this.element.querySelector("tspan.highcharts-text-outline");
  9127. P && this.safeRemoveChild(P);
  9128. }, W.prototype.safeRemoveChild = function(P) {
  9129. var X = P.parentNode;
  9130. X && X.removeChild(P);
  9131. }, W.prototype.setRadialReference = function(P) {
  9132. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  9133. return this.element.radialReference = P, X && X.radAttr && X.animate(this.renderer.getRadialAttr(P, X.radAttr)), this;
  9134. }, W.prototype.setTextPath = function(P, X) {
  9135. var g = this.element, m = this.text ? this.text.element : g, L = { textAnchor: "text-anchor" }, Y = !1, V = this.textPathWrapper, Q = !V;
  9136. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  9137. var k = j.filterUserAttributes(X.attributes);
  9138. if (P && X && X.enabled) {
  9139. V && V.element.parentNode === null ? (Q = !0, V = V.destroy()) : V && this.removeTextOutline.call(V.parentGroup), this.options && this.options.padding && (k.dx = -this.options.padding), V || (this.textPathWrapper = V = this.renderer.createElement("textPath"), Y = !0);
  9140. var G = V.element;
  9141. if ((X = P.element.getAttribute("id")) || P.element.setAttribute("id", X = D()), Q)
  9142. for (m.setAttribute("y", 0), h(k.dx) && m.setAttribute("x", -k.dx), P = [].slice.call(m.childNodes), Q = 0; Q < P.length; Q++) {
  9143. var z = P[Q];
  9144. z.nodeType !== E.Node.TEXT_NODE && z.nodeName !== "tspan" || G.appendChild(z);
  9145. }
  9146. Y && V && V.add({ element: m }), G.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), w(k.dy) && (G.parentNode.setAttribute("dy", k.dy), delete k.dy), w(k.dx) && (G.parentNode.setAttribute("dx", k.dx), delete k.dx), o(k, function($, q) {
  9147. G.setAttribute(L[q] || q, $);
  9148. }), g.removeAttribute("transform"), this.removeTextOutline.call(V), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = x;
  9149. } else
  9150. V && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(g, P), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  9151. return this;
  9152. }, W.prototype.shadow = function(P, X, g) {
  9153. var m = [], L = this.element, Y = this.oldShadowOptions, V = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, k;
  9154. if (P === !0 ? k = V : typeof P == "object" && (k = a(V, P)), k && (k && Y && o(k, function(it, et) {
  9155. it !== Y[et] && (Q = !0);
  9156. }), Q && this.destroyShadows(), this.oldShadowOptions = k), !k)
  9157. this.destroyShadows();
  9158. else if (!this.shadows) {
  9159. var G = k.opacity / k.width, z = this.parentInverted ? "translate(" + k.offsetY + ", " + k.offsetX + ")" : "translate(" + k.offsetX + ", " + k.offsetY + ")";
  9160. for (V = 1; V <= k.width; V++) {
  9161. var $ = L.cloneNode(!1), q = 2 * k.width + 1 - 2 * V;
  9162. B($, { stroke: P.color || "#000000", "stroke-opacity": G * V, "stroke-width": q, transform: z, fill: "none" }), $.setAttribute("class", ($.getAttribute("class") || "") + " highcharts-shadow"), g && (B($, "height", Math.max(B($, "height") - q, 0)), $.cutHeight = q), X ? X.element.appendChild($) : L.parentNode && L.parentNode.insertBefore($, L), m.push($);
  9163. }
  9164. this.shadows = m;
  9165. }
  9166. return this;
  9167. }, W.prototype.show = function(P) {
  9168. return this.attr({ visibility: P ? "inherit" : "visible" });
  9169. }, W.prototype.strokeSetter = function(P, X, g) {
  9170. this[X] = P, this.stroke && this["stroke-width"] ? (W.prototype.fillSetter.call(this, this.stroke, "stroke", g), g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0) : X === "stroke-width" && P === 0 && this.hasStroke ? (g.removeAttribute("stroke"), this.hasStroke = !1) : this.renderer.styledMode && this["stroke-width"] && (g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0);
  9171. }, W.prototype.strokeWidth = function() {
  9172. if (!this.renderer.styledMode)
  9173. return this["stroke-width"] || 0;
  9174. var P = this.getStyle("stroke-width"), X = 0;
  9175. if (P.indexOf("px") === P.length - 2)
  9176. X = A(P);
  9177. else if (P !== "") {
  9178. var g = b.createElementNS(f, "rect");
  9179. B(g, { width: P, "stroke-width": 0 }), this.element.parentNode.appendChild(g), X = g.getBBox().width, g.parentNode.removeChild(g);
  9180. }
  9181. return X;
  9182. }, W.prototype.symbolAttr = function(P) {
  9183. var X = this;
  9184. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g) {
  9185. X[g] = n(P[g], X[g]);
  9186. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  9187. }, W.prototype.textSetter = function(P) {
  9188. P !== this.textStr && (delete this.textPxLength, this.textStr = P, this.added && this.renderer.buildText(this));
  9189. }, W.prototype.titleSetter = function(P) {
  9190. var X = this.element, g = X.getElementsByTagName("title")[0] || b.createElementNS(this.SVG_NS, "title");
  9191. X.insertBefore ? X.insertBefore(g, X.firstChild) : X.appendChild(g), g.textContent = String(n(P, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  9192. /&gt;/g,
  9193. ">"
  9194. );
  9195. }, W.prototype.toFront = function() {
  9196. var P = this.element;
  9197. return P.parentNode.appendChild(P), this;
  9198. }, W.prototype.translate = function(P, X) {
  9199. return this.attr({ translateX: P, translateY: X });
  9200. }, W.prototype.updateShadows = function(P, X, g) {
  9201. var m = this.shadows;
  9202. if (m)
  9203. for (var L = m.length; L--; )
  9204. g.call(m[L], P === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : P === "d" ? this.d : X, P, m[L]);
  9205. }, W.prototype.updateTransform = function() {
  9206. var P = this.scaleX, X = this.scaleY, g = this.inverted, m = this.rotation, L = this.matrix, Y = this.element, V = this.translateX || 0, Q = this.translateY || 0;
  9207. g && (V += this.width, Q += this.height), V = ["translate(" + V + "," + Q + ")"], w(L) && V.push("matrix(" + L.join(",") + ")"), g ? V.push("rotate(90) scale(-1,1)") : m && V.push("rotate(" + m + " " + n(this.rotationOriginX, Y.getAttribute("x"), 0) + " " + n(this.rotationOriginY, Y.getAttribute("y") || 0) + ")"), (w(P) || w(X)) && V.push("scale(" + n(P, 1) + " " + n(X, 1) + ")"), V.length && Y.setAttribute("transform", V.join(" "));
  9208. }, W.prototype.visibilitySetter = function(P, X, g) {
  9209. P === "inherit" ? g.removeAttribute(X) : this[X] !== P && g.setAttribute(
  9210. X,
  9211. P
  9212. ), this[X] = P;
  9213. }, W.prototype.xGetter = function(P) {
  9214. return this.element.nodeName === "circle" && (P === "x" ? P = "cx" : P === "y" && (P = "cy")), this._defaultGetter(P);
  9215. }, W.prototype.zIndexSetter = function(P, X) {
  9216. var g = this.renderer, m = this.parentGroup, L = (m || g).element || g.box, Y = this.element;
  9217. g = L === g.box;
  9218. var V = !1, Q = this.added, k;
  9219. if (w(P) ? (Y.setAttribute("data-z-index", P), P = +P, this[X] === P && (Q = !1)) : w(this[X]) && Y.removeAttribute("data-z-index"), this[X] = P, Q) {
  9220. for ((P = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, k = X.length - 1; 0 <= k && !V; k--) {
  9221. m = X[k], Q = m.getAttribute("data-z-index");
  9222. var G = !w(Q);
  9223. m !== Y && (0 > P && G && !g && !k ? (L.insertBefore(Y, X[k]), V = !0) : (A(Q) <= P || G && (!w(P) || 0 <= P)) && (L.insertBefore(Y, X[k + 1] || null), V = !0));
  9224. }
  9225. V || (L.insertBefore(Y, X[g ? 3 : 0] || null), V = !0);
  9226. }
  9227. return V;
  9228. }, W;
  9229. }(), y.prototype["stroke-widthSetter"] = y.prototype.strokeSetter, y.prototype.yGetter = y.prototype.xGetter, y.prototype.matrixSetter = y.prototype.rotationOriginXSetter = y.prototype.rotationOriginYSetter = y.prototype.rotationSetter = y.prototype.scaleXSetter = y.prototype.scaleYSetter = y.prototype.translateXSetter = y.prototype.translateYSetter = y.prototype.verticalAlignSetter = function(W, P) {
  9230. this[P] = W, this.doTransform = !0;
  9231. }, y;
  9232. }), T(l, "Core/Renderer/RendererRegistry.js", [l["Core/Globals.js"]], function(y) {
  9233. var j;
  9234. return function(I) {
  9235. I.rendererTypes = {};
  9236. var Z;
  9237. I.getRendererType = function(H) {
  9238. return H === void 0 && (H = Z), I.rendererTypes[H] || I.rendererTypes[Z];
  9239. }, I.registerRendererType = function(H, U, F) {
  9240. I.rendererTypes[H] = U, (!Z || F) && (Z = H, y.Renderer = U);
  9241. };
  9242. }(j || (j = {})), j;
  9243. }), T(
  9244. l,
  9245. "Core/Renderer/SVG/SVGLabel.js",
  9246. [l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]],
  9247. function(y, j) {
  9248. var I = this && this.__extends || function() {
  9249. var b = function(x, u) {
  9250. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, E) {
  9251. f.__proto__ = E;
  9252. } || function(f, E) {
  9253. for (var O in E)
  9254. E.hasOwnProperty(O) && (f[O] = E[O]);
  9255. }, b(x, u);
  9256. };
  9257. return function(x, u) {
  9258. function f() {
  9259. this.constructor = x;
  9260. }
  9261. b(x, u), x.prototype = u === null ? Object.create(u) : (f.prototype = u.prototype, new f());
  9262. };
  9263. }(), Z = j.defined, H = j.extend, U = j.isNumber, F = j.merge, R = j.pick, N = j.removeEvent;
  9264. return function(b) {
  9265. function x(u, f, E, O, B, M, S, w, v, a) {
  9266. var c = b.call(this) || this;
  9267. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(u, "g"), c.textStr = f, c.x = E, c.y = O, c.anchorX = M, c.anchorY = S, c.baseline = v, c.className = a, c.addClass(a === "button" ? "highcharts-no-tooltip" : "highcharts-label"), a && c.addClass("highcharts-" + a), c.text = u.text(void 0, 0, 0, w).attr({ zIndex: 1 });
  9268. var p;
  9269. return typeof B == "string" && ((p = /^url\((.*?)\)$/.test(B)) || c.renderer.symbols[B]) && (c.symbolKey = B), c.bBox = x.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = u.styledMode || p, c.deferredAttr = {}, c.alignFactor = 0, c;
  9270. }
  9271. return I(x, b), x.prototype.alignSetter = function(u) {
  9272. u = { left: 0, center: 0.5, right: 1 }[u], u !== this.alignFactor && (this.alignFactor = u, this.bBox && U(this.xSetting) && this.attr({ x: this.xSetting }));
  9273. }, x.prototype.anchorXSetter = function(u, f) {
  9274. this.anchorX = u, this.boxAttr(f, Math.round(u) - this.getCrispAdjust() - this.xSetting);
  9275. }, x.prototype.anchorYSetter = function(u, f) {
  9276. this.anchorY = u, this.boxAttr(f, u - this.ySetting);
  9277. }, x.prototype.boxAttr = function(u, f) {
  9278. this.box ? this.box.attr(u, f) : this.deferredAttr[u] = f;
  9279. }, x.prototype.css = function(u) {
  9280. if (u) {
  9281. var f = {};
  9282. u = F(u), x.textProps.forEach(function(O) {
  9283. typeof u[O] < "u" && (f[O] = u[O], delete u[O]);
  9284. }), this.text.css(f);
  9285. var E = "width" in f;
  9286. "fontSize" in f || "fontWeight" in f ? this.updateTextPadding() : E && this.updateBoxSize();
  9287. }
  9288. return y.prototype.css.call(this, u);
  9289. }, x.prototype.destroy = function() {
  9290. N(this.element, "mouseenter"), N(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  9291. }, x.prototype.fillSetter = function(u, f) {
  9292. u && (this.needsBox = !0), this.fill = u, this.boxAttr(f, u);
  9293. }, x.prototype.getBBox = function() {
  9294. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  9295. var u = this.padding, f = R(this.paddingLeft, u);
  9296. return { width: this.width, height: this.height, x: this.bBox.x - f, y: this.bBox.y - u };
  9297. }, x.prototype.getCrispAdjust = function() {
  9298. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  9299. this["stroke-width"],
  9300. 10
  9301. ) : 0) % 2 / 2;
  9302. }, x.prototype.heightSetter = function(u) {
  9303. this.heightSetting = u;
  9304. }, x.prototype.onAdd = function() {
  9305. var u = this.textStr;
  9306. this.text.add(this), this.attr({ text: Z(u) ? u : "", x: this.x, y: this.y }), this.box && Z(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  9307. }, x.prototype.paddingSetter = function(u, f) {
  9308. U(u) ? u !== this[f] && (this[f] = u, this.updateTextPadding()) : this[f] = void 0;
  9309. }, x.prototype.rSetter = function(u, f) {
  9310. this.boxAttr(f, u);
  9311. }, x.prototype.shadow = function(u) {
  9312. return u && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(u)), this;
  9313. }, x.prototype.strokeSetter = function(u, f) {
  9314. this.stroke = u, this.boxAttr(f, u);
  9315. }, x.prototype["stroke-widthSetter"] = function(u, f) {
  9316. u && (this.needsBox = !0), this["stroke-width"] = u, this.boxAttr(f, u);
  9317. }, x.prototype["text-alignSetter"] = function(u) {
  9318. this.textAlign = u;
  9319. }, x.prototype.textSetter = function(u) {
  9320. typeof u < "u" && this.text.attr({ text: u }), this.updateTextPadding();
  9321. }, x.prototype.updateBoxSize = function() {
  9322. var u = this.text.element.style, f = {}, E = this.padding, O = this.bBox = U(this.widthSetting) && U(this.heightSetting) && !this.textAlign || !Z(this.text.textStr) ? x.emptyBBox : this.text.getBBox();
  9323. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * E, u = this.renderer.fontMetrics(u && u.fontSize, this.text), this.baselineOffset = E + Math.min((this.text.firstLineMetrics || u).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - u.h) / 2), this.needsBox && (this.box || (E = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), E.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), E.add(this)), E = this.getCrispAdjust(), f.x = E, f.y = (this.baseline ? -this.baselineOffset : 0) + E, f.width = Math.round(this.width), f.height = Math.round(this.height), this.box.attr(H(f, this.deferredAttr)), this.deferredAttr = {});
  9324. }, x.prototype.updateTextPadding = function() {
  9325. var u = this.text;
  9326. this.updateBoxSize();
  9327. var f = this.baseline ? 0 : this.baselineOffset, E = R(this.paddingLeft, this.padding);
  9328. Z(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (E += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (E !== u.x || f !== u.y) && (u.attr("x", E), u.hasBoxWidthChanged && (this.bBox = u.getBBox(!0)), typeof f < "u" && u.attr("y", f)), u.x = E, u.y = f;
  9329. }, x.prototype.widthSetter = function(u) {
  9330. this.widthSetting = U(u) ? u : void 0;
  9331. }, x.prototype.getPaddedWidth = function() {
  9332. var u = this.padding, f = R(this.paddingLeft, u);
  9333. return u = R(this.paddingRight, u), (this.widthSetting || this.bBox.width || 0) + f + u;
  9334. }, x.prototype.xSetter = function(u) {
  9335. this.x = u, this.alignFactor && (u -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(u), this.attr("translateX", this.xSetting);
  9336. }, x.prototype.ySetter = function(u) {
  9337. this.ySetting = this.y = Math.round(u), this.attr("translateY", this.ySetting);
  9338. }, x.emptyBBox = { width: 0, height: 0, x: 0, y: 0 }, x.textProps = "color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "), x;
  9339. }(y);
  9340. }
  9341. ), T(
  9342. l,
  9343. "Core/Renderer/SVG/Symbols.js",
  9344. [l["Core/Utilities.js"]],
  9345. function(y) {
  9346. function j(R, N, b, x, u) {
  9347. var f = [];
  9348. if (u) {
  9349. var E = u.start || 0, O = F(u.r, b);
  9350. b = F(u.r, x || b);
  9351. var B = (u.end || 0) - 1e-3;
  9352. x = u.innerR;
  9353. var M = F(u.open, 1e-3 > Math.abs((u.end || 0) - E - 2 * Math.PI)), S = Math.cos(E), w = Math.sin(E), v = Math.cos(B), a = Math.sin(B);
  9354. E = F(u.longArc, 1e-3 > B - E - Math.PI ? 0 : 1), f.push(["M", R + O * S, N + b * w], ["A", O, b, 0, E, F(u.clockwise, 1), R + O * v, N + b * a]), H(x) && f.push(M ? ["M", R + x * v, N + x * a] : ["L", R + x * v, N + x * a], ["A", x, x, 0, E, H(u.clockwise) ? 1 - u.clockwise : 0, R + x * S, N + x * w]), M || f.push(["Z"]);
  9355. }
  9356. return f;
  9357. }
  9358. function I(R, N, b, x, u) {
  9359. return u && u.r ? Z(R, N, b, x, u) : [["M", R, N], ["L", R + b, N], ["L", R + b, N + x], ["L", R, N + x], ["Z"]];
  9360. }
  9361. function Z(R, N, b, x, u) {
  9362. return u = u && u.r || 0, [["M", R + u, N], ["L", R + b - u, N], ["C", R + b, N, R + b, N, R + b, N + u], ["L", R + b, N + x - u], ["C", R + b, N + x, R + b, N + x, R + b - u, N + x], ["L", R + u, N + x], ["C", R, N + x, R, N + x, R, N + x - u], ["L", R, N + u], ["C", R, N, R, N, R + u, N]];
  9363. }
  9364. var H = y.defined, U = y.isNumber, F = y.pick;
  9365. return { arc: j, callout: function(R, N, b, x, u) {
  9366. var f = Math.min(u && u.r || 0, b, x), E = f + 6, O = u && u.anchorX;
  9367. u = u && u.anchorY || 0;
  9368. var B = Z(R, N, b, x, { r: f });
  9369. return U(O) && (R + O >= b ? u > N + E && u < N + x - E ? B.splice(3, 1, ["L", R + b, u - 6], ["L", R + b + 6, u], ["L", R + b, u + 6], ["L", R + b, N + x - f]) : B.splice(3, 1, ["L", R + b, x / 2], ["L", O, u], ["L", R + b, x / 2], ["L", R + b, N + x - f]) : 0 >= R + O ? u > N + E && u < N + x - E ? B.splice(7, 1, ["L", R, u + 6], ["L", R - 6, u], ["L", R, u - 6], ["L", R, N + f]) : B.splice(7, 1, ["L", R, x / 2], ["L", O, u], ["L", R, x / 2], ["L", R, N + f]) : u && u > x && O > R + E && O < R + b - E ? B.splice(5, 1, ["L", O + 6, N + x], ["L", O, N + x + 6], ["L", O - 6, N + x], ["L", R + f, N + x]) : u && 0 > u && O > R + E && O < R + b - E && B.splice(1, 1, ["L", O - 6, N], ["L", O, N - 6], ["L", O + 6, N], ["L", b - f, N])), B;
  9370. }, circle: function(R, N, b, x) {
  9371. return j(R + b / 2, N + x / 2, b / 2, x / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  9372. }, diamond: function(R, N, b, x) {
  9373. return [["M", R + b / 2, N], ["L", R + b, N + x / 2], ["L", R + b / 2, N + x], ["L", R, N + x / 2], ["Z"]];
  9374. }, rect: I, roundedRect: Z, square: I, triangle: function(R, N, b, x) {
  9375. return [["M", R + b / 2, N], ["L", R + b, N + x], ["L", R, N + x], ["Z"]];
  9376. }, "triangle-down": function(R, N, b, x) {
  9377. return [["M", R, N], ["L", R + b, N], ["L", R + b / 2, N + x], ["Z"]];
  9378. } };
  9379. }
  9380. ), T(l, "Core/Renderer/SVG/TextBuilder.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I) {
  9381. var Z = j.doc, H = j.SVG_NS, U = j.win, F = I.attr, R = I.isString, N = I.objectEach, b = I.pick;
  9382. return function() {
  9383. function x(u) {
  9384. var f = u.styles;
  9385. this.renderer = u.renderer, this.svgElement = u, this.width = u.textWidth, this.textLineHeight = f && f.lineHeight, this.textOutline = f && f.textOutline, this.ellipsis = !(!f || f.textOverflow !== "ellipsis"), this.noWrap = !(!f || f.whiteSpace !== "nowrap"), this.fontSize = f && f.fontSize;
  9386. }
  9387. return x.prototype.buildSVG = function() {
  9388. var u = this.svgElement, f = u.element, E = u.renderer, O = b(u.textStr, "").toString(), B = O.indexOf("<") !== -1, M = f.childNodes;
  9389. E = this.width && !u.added && E.box;
  9390. var S = /<br.*?>/g, w = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  9391. if (w !== u.textCache) {
  9392. for (u.textCache = w, delete u.actualWidth, w = M.length; w--; )
  9393. f.removeChild(M[w]);
  9394. B || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || S.test(O)) ? O !== "" && (E && E.appendChild(f), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(u.element), this.modifyDOM(), this.ellipsis && (f.textContent || "").indexOf("…") !== -1 && u.attr(
  9395. "title",
  9396. this.unescapeEntities(u.textStr || "", ["&lt;", "&gt;"])
  9397. ), E && E.removeChild(f)) : f.appendChild(Z.createTextNode(this.unescapeEntities(O))), R(this.textOutline) && u.applyTextOutline && u.applyTextOutline(this.textOutline);
  9398. }
  9399. }, x.prototype.modifyDOM = function() {
  9400. var u = this, f = this.svgElement, E = F(f.element, "x");
  9401. f.firstLineMetrics = void 0;
  9402. for (var O; (O = f.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  9403. f.element.removeChild(O);
  9404. [].forEach.call(f.element.querySelectorAll("tspan.highcharts-br"), function(w, v) {
  9405. w.nextSibling && w.previousSibling && (v === 0 && w.previousSibling.nodeType === 1 && (f.firstLineMetrics = f.renderer.fontMetrics(void 0, w.previousSibling)), F(w, { dy: u.getLineHeight(w.nextSibling), x: E }));
  9406. });
  9407. var B = this.width || 0;
  9408. if (B) {
  9409. var M = function(w, v) {
  9410. var a = w.textContent || "", c = a.replace(/([^\^])-/g, "$1- ").split(" "), p = !u.noWrap && (1 < c.length || 1 < f.element.childNodes.length), i = u.getLineHeight(v), h = 0, s = f.actualWidth;
  9411. if (u.ellipsis)
  9412. a && u.truncate(w, a, void 0, 0, Math.max(0, B - parseInt(u.fontSize || 12, 10)), function(t, o) {
  9413. return t.substring(
  9414. 0,
  9415. o
  9416. ) + "…";
  9417. });
  9418. else if (p) {
  9419. for (a = [], p = []; v.firstChild && v.firstChild !== w; )
  9420. p.push(v.firstChild), v.removeChild(v.firstChild);
  9421. for (; c.length; )
  9422. c.length && !u.noWrap && 0 < h && (a.push(w.textContent || ""), w.textContent = c.join(" ").replace(/- /g, "-")), u.truncate(w, void 0, c, h === 0 && s || 0, B, function(t, o) {
  9423. return c.slice(0, o).join(" ").replace(/- /g, "-");
  9424. }), s = f.actualWidth, h++;
  9425. p.forEach(function(t) {
  9426. v.insertBefore(t, w);
  9427. }), a.forEach(function(t) {
  9428. v.insertBefore(Z.createTextNode(t), w), t = Z.createElementNS(H, "tspan"), t.textContent = "​", F(t, { dy: i, x: E }), v.insertBefore(t, w);
  9429. });
  9430. }
  9431. }, S = function(w) {
  9432. [].slice.call(w.childNodes).forEach(function(v) {
  9433. v.nodeType === U.Node.TEXT_NODE ? M(v, w) : (v.className.baseVal.indexOf("highcharts-br") !== -1 && (f.actualWidth = 0), S(v));
  9434. });
  9435. };
  9436. S(f.element);
  9437. }
  9438. }, x.prototype.getLineHeight = function(u) {
  9439. var f;
  9440. return u = u.nodeType === U.Node.TEXT_NODE ? u.parentElement : u, this.renderer.styledMode || (f = u && /(px|em)$/.test(u.style.fontSize) ? u.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  9441. this.textLineHeight.toString(),
  9442. 10
  9443. ) : this.renderer.fontMetrics(f, u || this.svgElement.element).h;
  9444. }, x.prototype.modifyTree = function(u) {
  9445. var f = this, E = function(O, B) {
  9446. var M = O.attributes;
  9447. M = M === void 0 ? {} : M;
  9448. var S = O.children, w = O.tagName, v = f.renderer.styledMode;
  9449. w === "b" || w === "strong" ? v ? M.class = "highcharts-strong" : M.style = "font-weight:bold;" + (M.style || "") : (w === "i" || w === "em") && (v ? M.class = "highcharts-emphasized" : M.style = "font-style:italic;" + (M.style || "")), R(M.style) && (M.style = M.style.replace(/(;| |^)color([ :])/, "$1fill$2")), w === "br" ? (M.class = "highcharts-br", O.textContent = "​", (B = u[B + 1]) && B.textContent && (B.textContent = B.textContent.replace(/^ +/gm, ""))) : w === "a" && S && S.some(function(a) {
  9450. return a.tagName === "#text";
  9451. }) && (O.children = [{ children: S, tagName: "tspan" }]), w !== "#text" && w !== "a" && (O.tagName = "tspan"), O.attributes = M, S && S.filter(function(a) {
  9452. return a.tagName !== "#text";
  9453. }).forEach(E);
  9454. };
  9455. u.forEach(E);
  9456. }, x.prototype.truncate = function(u, f, E, O, B, M) {
  9457. var S = this.svgElement, w = S.renderer, v = S.rotation, a = [], c = E ? 1 : 0, p = (f || E || "").length, i = p, h, s = function(o, n) {
  9458. n = n || o;
  9459. var A = u.parentNode;
  9460. if (A && typeof a[n] > "u")
  9461. if (A.getSubStringLength)
  9462. try {
  9463. a[n] = O + A.getSubStringLength(0, E ? n + 1 : n);
  9464. } catch {
  9465. }
  9466. else
  9467. w.getSpanWidth && (u.textContent = M(f || E, o), a[n] = O + w.getSpanWidth(S, u));
  9468. return a[n];
  9469. };
  9470. S.rotation = 0;
  9471. var t = s(u.textContent.length);
  9472. if (O + t > B) {
  9473. for (; c <= p; )
  9474. i = Math.ceil((c + p) / 2), E && (h = M(E, i)), t = s(i, h && h.length - 1), c === p ? c = p + 1 : t > B ? p = i - 1 : c = i;
  9475. p === 0 ? u.textContent = "" : f && p === f.length - 1 || (u.textContent = h || M(f || E, i));
  9476. }
  9477. E && E.splice(0, i), S.actualWidth = t, S.rotation = v;
  9478. }, x.prototype.unescapeEntities = function(u, f) {
  9479. return N(this.renderer.escapes, function(E, O) {
  9480. f && f.indexOf(E) !== -1 || (u = u.toString().replace(new RegExp(E, "g"), O));
  9481. }), u;
  9482. }, x;
  9483. }();
  9484. }), T(l, "Core/Renderer/SVG/SVGRenderer.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Renderer/SVG/SVGLabel.js"], l["Core/Renderer/SVG/Symbols.js"], l["Core/Renderer/SVG/TextBuilder.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F, R, N) {
  9485. var b = I.charts, x = I.deg2rad, u = I.doc, f = I.isFirefox, E = I.isMS, O = I.isWebKit, B = I.noop, M = I.SVG_NS, S = I.symbolSizes, w = I.win, v = N.addEvent, a = N.attr, c = N.createElement, p = N.css, i = N.defined, h = N.destroyObjectProperties, s = N.extend, t = N.isArray, o = N.isNumber, n = N.isObject, A = N.isString, _ = N.merge, D = N.pick, W = N.pInt, P = N.uniqueKey, X;
  9486. return I = function() {
  9487. function g(m, L, Y, V, Q, k, G) {
  9488. this.width = this.url = this.style = this.isSVG = this.imgCount = this.height = this.gradients = this.globalAnimation = this.defs = this.chartIndex = this.cacheKeys = this.cache = this.boxWrapper = this.box = this.alignedObjects = void 0, this.init(m, L, Y, V, Q, k, G);
  9489. }
  9490. return g.prototype.init = function(m, L, Y, V, Q, k, G) {
  9491. var z = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), $ = z.element;
  9492. G || z.css(this.getStyle(V)), m.appendChild($), a(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && a($, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = $, this.boxWrapper = z, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highcharts 9.3.3")), this.defs = this.createElement("defs").add(), this.allowHTML = k, this.forExport = Q, this.styledMode = G, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.setSize(L, Y, !1);
  9493. var q;
  9494. f && m.getBoundingClientRect && (L = function() {
  9495. p(m, { left: 0, top: 0 }), q = m.getBoundingClientRect(), p(m, { left: Math.ceil(q.left) - q.left + "px", top: Math.ceil(q.top) - q.top + "px" });
  9496. }, L(), this.unSubPixelFix = v(w, "resize", L));
  9497. }, g.prototype.definition = function(m) {
  9498. return new y([m]).addToDOM(this.defs.element);
  9499. }, g.prototype.getReferenceURL = function() {
  9500. if ((f || O) && u.getElementsByTagName("base").length) {
  9501. if (!i(X)) {
  9502. var m = P();
  9503. m = new y([{ tagName: "svg", attributes: { width: 8, height: 8 }, children: [{ tagName: "defs", children: [{ tagName: "clipPath", attributes: { id: m }, children: [{ tagName: "rect", attributes: { width: 4, height: 4 } }] }] }, { tagName: "rect", attributes: { id: "hitme", width: 8, height: 8, "clip-path": "url(#" + m + ")", fill: "rgba(0,0,0,0.001)" } }] }]).addToDOM(u.body), p(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  9504. var L = u.elementFromPoint(6, 6);
  9505. X = (L && L.id) === "hitme", u.body.removeChild(m);
  9506. }
  9507. if (X)
  9508. return w.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  9509. }
  9510. return "";
  9511. }, g.prototype.getStyle = function(m) {
  9512. return this.style = s({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  9513. }, g.prototype.setStyle = function(m) {
  9514. this.boxWrapper.css(this.getStyle(m));
  9515. }, g.prototype.isHidden = function() {
  9516. return !this.boxWrapper.getBBox().width;
  9517. }, g.prototype.destroy = function() {
  9518. var m = this.defs;
  9519. return this.box = null, this.boxWrapper = this.boxWrapper.destroy(), h(this.gradients || {}), this.gradients = null, m && (this.defs = m.destroy()), this.unSubPixelFix && this.unSubPixelFix(), this.alignedObjects = null;
  9520. }, g.prototype.createElement = function(m) {
  9521. var L = new this.Element();
  9522. return L.init(this, m), L;
  9523. }, g.prototype.getRadialAttr = function(m, L) {
  9524. return { cx: m[0] - m[2] / 2 + (L.cx || 0) * m[2], cy: m[1] - m[2] / 2 + (L.cy || 0) * m[2], r: (L.r || 0) * m[2] };
  9525. }, g.prototype.buildText = function(m) {
  9526. new R(m).buildSVG();
  9527. }, g.prototype.getContrast = function(m) {
  9528. return m = j.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  9529. }, g.prototype.button = function(m, L, Y, V, Q, k, G, z, $, q) {
  9530. var it = this.label(m, L, Y, $, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? _(Q) : {};
  9531. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(_({ padding: 8, r: 2 }, rt)), !et) {
  9532. rt = _({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  9533. var ct = rt.style;
  9534. delete rt.style, k = _(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(k || {}));
  9535. var gt = k.style;
  9536. delete k.style, G = _(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(G || {}));
  9537. var dt = G.style;
  9538. delete G.style, z = _(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(z || {}));
  9539. var ht = z.style;
  9540. delete z.style;
  9541. }
  9542. return v(it.element, E ? "mouseover" : "mouseenter", function() {
  9543. nt !== 3 && it.setState(1);
  9544. }), v(it.element, E ? "mouseout" : "mouseleave", function() {
  9545. nt !== 3 && it.setState(nt);
  9546. }), it.setState = function(at) {
  9547. at !== 1 && (it.state = nt = at), it.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-" + ["normal", "hover", "pressed", "disabled"][at || 0]), et || it.attr([rt, k, G, z][at || 0]).css([ct, gt, dt, ht][at || 0]);
  9548. }, et || it.attr(rt).css(s({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  9549. return at.stopPropagation();
  9550. }).on("click", function(at) {
  9551. nt !== 3 && V.call(it, at);
  9552. });
  9553. }, g.prototype.crispLine = function(m, L, Y) {
  9554. Y === void 0 && (Y = "round");
  9555. var V = m[0], Q = m[1];
  9556. return i(V[1]) && V[1] === Q[1] && (V[1] = Q[1] = Math[Y](V[1]) - L % 2 / 2), i(V[2]) && V[2] === Q[2] && (V[2] = Q[2] = Math[Y](V[2]) + L % 2 / 2), m;
  9557. }, g.prototype.path = function(m) {
  9558. var L = this.styledMode ? {} : { fill: "none" };
  9559. return t(m) ? L.d = m : n(m) && s(L, m), this.createElement("path").attr(L);
  9560. }, g.prototype.circle = function(m, L, Y) {
  9561. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: Y }, L = this.createElement("circle"), L.xSetter = L.ySetter = function(V, Q, k) {
  9562. k.setAttribute("c" + Q, V);
  9563. }, L.attr(m);
  9564. }, g.prototype.arc = function(m, L, Y, V, Q, k) {
  9565. return n(m) ? (V = m, L = V.y, Y = V.r, m = V.x) : V = { innerR: V, start: Q, end: k }, m = this.symbol("arc", m, L, Y, Y, V), m.r = Y, m;
  9566. }, g.prototype.rect = function(m, L, Y, V, Q, k) {
  9567. Q = n(m) ? m.r : Q;
  9568. var G = this.createElement("rect");
  9569. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(Y, 0), height: Math.max(V, 0) }, this.styledMode || (typeof k < "u" && (m["stroke-width"] = k, m = G.crisp(m)), m.fill = "none"), Q && (m.r = Q), G.rSetter = function(z, $, q) {
  9570. G.r = z, a(q, { rx: z, ry: z });
  9571. }, G.rGetter = function() {
  9572. return G.r || 0;
  9573. }, G.attr(m);
  9574. }, g.prototype.setSize = function(m, L, Y) {
  9575. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  9576. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  9577. }, duration: D(
  9578. Y,
  9579. !0
  9580. ) ? void 0 : 0 }), this.alignElements();
  9581. }, g.prototype.g = function(m) {
  9582. var L = this.createElement("g");
  9583. return m ? L.attr({ class: "highcharts-" + m }) : L;
  9584. }, g.prototype.image = function(m, L, Y, V, Q, k) {
  9585. var G = { preserveAspectRatio: "none" }, z = function(q, it) {
  9586. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  9587. };
  9588. o(L) && (G.x = L), o(Y) && (G.y = Y), o(V) && (G.width = V), o(Q) && (G.height = Q);
  9589. var $ = this.createElement("image").attr(G);
  9590. return L = function(q) {
  9591. z($.element, m), k.call($, q);
  9592. }, k ? (z(
  9593. $.element,
  9594. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  9595. ), Y = new w.Image(), v(Y, "load", L), Y.src = m, Y.complete && L({})) : z($.element, m), $;
  9596. }, g.prototype.symbol = function(m, L, Y, V, Q, k) {
  9597. var G = this, z = /^url\((.*?)\)$/, $ = z.test(m), q = !$ && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  9598. if (it) {
  9599. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(Y || 0), V || 0, Q || 0, k));
  9600. var nt = this.path(et);
  9601. G.styledMode || nt.attr("fill", "none"), s(nt, { symbolName: q || void 0, x: L, y: Y, width: V, height: Q }), k && s(nt, k);
  9602. } else if ($) {
  9603. var rt = m.match(z)[1], ct = nt = this.image(rt);
  9604. ct.imgwidth = D(S[rt] && S[rt].width, k && k.width), ct.imgheight = D(S[rt] && S[rt].height, k && k.height);
  9605. var gt = function(dt) {
  9606. return dt.attr({ width: dt.width, height: dt.height });
  9607. };
  9608. ["width", "height"].forEach(function(dt) {
  9609. ct[dt + "Setter"] = function(ht, at) {
  9610. var J = this["img" + at];
  9611. this[at] = ht, i(J) && (k && k.backgroundSize === "within" && this.width && this.height && (J = Math.round(J * Math.min(this.width / this.imgwidth, this.height / this.imgheight))), this.element && this.element.setAttribute(at, J), this.alignByTranslate || (ht = ((this[at] || 0) - J) / 2, this.attr(at === "width" ? { translateX: ht } : { translateY: ht })));
  9612. };
  9613. }), i(L) && ct.attr({ x: L, y: Y }), ct.isImg = !0, i(ct.imgwidth) && i(ct.imgheight) ? gt(ct) : (ct.attr({ width: 0, height: 0 }), c("img", { onload: function() {
  9614. var dt = b[G.chartIndex];
  9615. this.width === 0 && (p(this, { position: "absolute", top: "-999em" }), u.body.appendChild(this)), S[rt] = { width: this.width, height: this.height }, ct.imgwidth = this.width, ct.imgheight = this.height, ct.element && gt(ct), this.parentNode && this.parentNode.removeChild(this), G.imgCount--, !G.imgCount && dt && !dt.hasLoaded && dt.onload();
  9616. }, src: rt }), this.imgCount++);
  9617. }
  9618. return nt;
  9619. }, g.prototype.clipRect = function(m, L, Y, V) {
  9620. var Q = P() + "-", k = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  9621. return m = this.rect(m, L, Y, V, 0).add(k), m.id = Q, m.clipPath = k, m.count = 0, m;
  9622. }, g.prototype.text = function(m, L, Y, V) {
  9623. var Q = {};
  9624. return V && (this.allowHTML || !this.forExport) ? this.html(m, L, Y) : (Q.x = Math.round(L || 0), Y && (Q.y = Math.round(Y)), i(m) && (Q.text = m), m = this.createElement("text").attr(Q), (!V || this.forExport && !this.allowHTML) && (m.xSetter = function(k, G, z) {
  9625. for (var $ = z.getElementsByTagName("tspan"), q = z.getAttribute(G), it = 0, et; it < $.length; it++)
  9626. et = $[it], et.getAttribute(G) === q && et.setAttribute(G, k);
  9627. z.setAttribute(G, k);
  9628. }), m);
  9629. }, g.prototype.fontMetrics = function(m, L) {
  9630. return m = !this.styledMode && /px/.test(m) || !w.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && H.prototype.getStyle.call(L, "font-size"), m = /px/.test(m) ? W(m) : 12, L = 24 > m ? m + 3 : Math.round(1.2 * m), { h: L, b: Math.round(0.8 * L), f: m };
  9631. }, g.prototype.rotCorr = function(m, L, Y) {
  9632. var V = m;
  9633. return L && Y && (V = Math.max(V * Math.cos(L * x), 4)), { x: -m / 3 * Math.sin(L * x), y: V };
  9634. }, g.prototype.pathToSegments = function(m) {
  9635. for (var L = [], Y = [], V = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  9636. A(Y[0]) && o(m[Q]) && Y.length === V[Y[0].toUpperCase()] && m.splice(Q, 0, Y[0].replace("M", "L").replace("m", "l")), typeof m[Q] == "string" && (Y.length && L.push(Y.slice(0)), Y.length = 0), Y.push(m[Q]);
  9637. return L.push(Y.slice(0)), L;
  9638. }, g.prototype.label = function(m, L, Y, V, Q, k, G, z, $) {
  9639. return new U(this, m, L, Y, V, Q, k, G, z, $);
  9640. }, g.prototype.alignElements = function() {
  9641. this.alignedObjects.forEach(function(m) {
  9642. return m.align();
  9643. });
  9644. }, g;
  9645. }(), s(I.prototype, { Element: H, SVG_NS: M, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: F, draw: B }), Z.registerRendererType("svg", I, !0), I;
  9646. }), T(l, "Core/Renderer/HTML/HTMLElement.js", [l["Core/Globals.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]], function(y, j, I) {
  9647. var Z = this && this.__extends || function() {
  9648. var E = function(O, B) {
  9649. return E = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, S) {
  9650. M.__proto__ = S;
  9651. } || function(M, S) {
  9652. for (var w in S)
  9653. S.hasOwnProperty(w) && (M[w] = S[w]);
  9654. }, E(O, B);
  9655. };
  9656. return function(O, B) {
  9657. function M() {
  9658. this.constructor = O;
  9659. }
  9660. E(O, B), O.prototype = B === null ? Object.create(B) : (M.prototype = B.prototype, new M());
  9661. };
  9662. }(), H = y.isFirefox, U = y.isMS, F = y.isWebKit, R = y.win, N = I.css, b = I.defined, x = I.extend, u = I.pick, f = I.pInt;
  9663. return function(E) {
  9664. function O() {
  9665. return E !== null && E.apply(this, arguments) || this;
  9666. }
  9667. return Z(O, E), O.compose = function(B) {
  9668. if (O.composedClasses.indexOf(B) === -1) {
  9669. O.composedClasses.push(B);
  9670. var M = O.prototype, S = B.prototype;
  9671. S.getSpanCorrection = M.getSpanCorrection, S.htmlCss = M.htmlCss, S.htmlGetBBox = M.htmlGetBBox, S.htmlUpdateTransform = M.htmlUpdateTransform, S.setSpanRotation = M.setSpanRotation;
  9672. }
  9673. return B;
  9674. }, O.prototype.getSpanCorrection = function(B, M, S) {
  9675. this.xCorr = -B * S, this.yCorr = -M;
  9676. }, O.prototype.htmlCss = function(B) {
  9677. var M = this.element.tagName === "SPAN" && B && "width" in B, S = u(M && B.width, void 0);
  9678. if (M) {
  9679. delete B.width, this.textWidth = S;
  9680. var w = !0;
  9681. }
  9682. return B && B.textOverflow === "ellipsis" && (B.whiteSpace = "nowrap", B.overflow = "hidden"), this.styles = x(this.styles, B), N(this.element, B), w && this.htmlUpdateTransform(), this;
  9683. }, O.prototype.htmlGetBBox = function() {
  9684. var B = this.element;
  9685. return { x: B.offsetLeft, y: B.offsetTop, width: B.offsetWidth, height: B.offsetHeight };
  9686. }, O.prototype.htmlUpdateTransform = function() {
  9687. if (this.added) {
  9688. var B = this.renderer, M = this.element, S = this.translateX || 0, w = this.translateY || 0, v = this.x || 0, a = this.y || 0, c = this.textAlign || "left", p = { left: 0, center: 0.5, right: 1 }[c], i = this.styles;
  9689. if (i = i && i.whiteSpace, N(M, { marginLeft: S, marginTop: w }), !B.styledMode && this.shadows && this.shadows.forEach(function(A) {
  9690. N(A, { marginLeft: S + 1, marginTop: w + 1 });
  9691. }), this.inverted && [].forEach.call(M.childNodes, function(A) {
  9692. B.invertChild(A, M);
  9693. }), M.tagName === "SPAN") {
  9694. var h = this.rotation, s = this.textWidth && f(this.textWidth), t = [h, c, M.innerHTML, this.textWidth, this.textAlign].join(), o = void 0;
  9695. if (o = !1, s !== this.oldTextWidth) {
  9696. if (this.textPxLength)
  9697. var n = this.textPxLength;
  9698. else
  9699. N(M, { width: "", whiteSpace: i || "nowrap" }), n = M.offsetWidth;
  9700. (s > this.oldTextWidth || n > s) && (/[ \-]/.test(M.textContent || M.innerText) || M.style.textOverflow === "ellipsis") && (N(M, { width: n > s || h ? s + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = s, o = !0);
  9701. }
  9702. this.hasBoxWidthChanged = o, t !== this.cTT && (o = B.fontMetrics(M.style.fontSize, M).b, !b(h) || h === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(h, p, o), this.getSpanCorrection(!b(h) && this.textPxLength || M.offsetWidth, o, p, h, c)), N(M, { left: v + (this.xCorr || 0) + "px", top: a + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = h, this.oldAlign = c;
  9703. }
  9704. } else
  9705. this.alignOnAdd = !0;
  9706. }, O.prototype.setSpanRotation = function(B, M, S) {
  9707. var w = {}, v = U && !/Edge/.test(R.navigator.userAgent) ? "-ms-transform" : F ? "-webkit-transform" : H ? "MozTransform" : R.opera ? "-o-transform" : void 0;
  9708. v && (w[v] = w.transform = "rotate(" + B + "deg)", w[v + (H ? "Origin" : "-origin")] = w.transformOrigin = 100 * M + "% " + S + "px", N(this.element, w));
  9709. }, O.composedClasses = [], O;
  9710. }(j);
  9711. }), T(
  9712. l,
  9713. "Core/Renderer/HTML/HTMLRenderer.js",
  9714. [l["Core/Renderer/HTML/AST.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Renderer/SVG/SVGRenderer.js"], l["Core/Utilities.js"]],
  9715. function(y, j, I, Z) {
  9716. var H = this && this.__extends || function() {
  9717. var b = function(x, u) {
  9718. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, E) {
  9719. f.__proto__ = E;
  9720. } || function(f, E) {
  9721. for (var O in E)
  9722. E.hasOwnProperty(O) && (f[O] = E[O]);
  9723. }, b(x, u);
  9724. };
  9725. return function(x, u) {
  9726. function f() {
  9727. this.constructor = x;
  9728. }
  9729. b(x, u), x.prototype = u === null ? Object.create(u) : (f.prototype = u.prototype, new f());
  9730. };
  9731. }(), U = Z.attr, F = Z.createElement, R = Z.extend, N = Z.pick;
  9732. return function(b) {
  9733. function x() {
  9734. return b !== null && b.apply(this, arguments) || this;
  9735. }
  9736. return H(x, b), x.compose = function(u) {
  9737. return x.composedClasses.indexOf(u) === -1 && (x.composedClasses.push(u), u.prototype.html = x.prototype.html), u;
  9738. }, x.prototype.html = function(u, f, E) {
  9739. var O = this.createElement("span"), B = O.element, M = O.renderer, S = M.isSVG, w = function(v, a) {
  9740. ["opacity", "visibility"].forEach(function(c) {
  9741. v[c + "Setter"] = function(p, i, h) {
  9742. var s = v.div ? v.div.style : a;
  9743. j.prototype[c + "Setter"].call(this, p, i, h), s && (s[i] = p);
  9744. };
  9745. }), v.addedSetters = !0;
  9746. };
  9747. return O.textSetter = function(v) {
  9748. v !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, N(v, "")), this.textStr = v, O.doTransform = !0);
  9749. }, S && w(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(v, a) {
  9750. a === "align" ? O.alignValue = O.textAlign = v : O[a] = v, O.doTransform = !0;
  9751. }, O.afterSetters = function() {
  9752. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  9753. }, O.attr({ text: u, x: Math.round(f), y: Math.round(E) }).css({ position: "absolute" }), M.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), B.style.whiteSpace = "nowrap", O.css = O.htmlCss, S && (O.add = function(v) {
  9754. var a = M.box.parentNode, c = [];
  9755. if (this.parentGroup = v) {
  9756. var p = v.div;
  9757. if (!p) {
  9758. for (; v; )
  9759. c.push(v), v = v.parentGroup;
  9760. c.reverse().forEach(function(i) {
  9761. function h(n, A) {
  9762. i[A] = n, A === "translateX" ? o.left = n + "px" : o.top = n + "px", i.doTransform = !0;
  9763. }
  9764. var s = U(i.element, "class"), t = i.styles || {};
  9765. p = i.div = i.div || F("div", s ? { className: s } : void 0, {
  9766. position: "absolute",
  9767. left: (i.translateX || 0) + "px",
  9768. top: (i.translateY || 0) + "px",
  9769. display: i.display,
  9770. opacity: i.opacity,
  9771. cursor: t.cursor,
  9772. pointerEvents: t.pointerEvents,
  9773. visibility: i.visibility
  9774. }, p || a);
  9775. var o = p.style;
  9776. R(i, { classSetter: function(n) {
  9777. return function(A) {
  9778. this.element.setAttribute("class", A), n.className = A;
  9779. };
  9780. }(p), on: function() {
  9781. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  9782. }, translateXSetter: h, translateYSetter: h }), i.addedSetters || w(i);
  9783. });
  9784. }
  9785. } else
  9786. p = a;
  9787. return p.appendChild(B), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  9788. }), O;
  9789. }, x.composedClasses = [], x;
  9790. }(I);
  9791. }
  9792. ), T(l, "Core/Axis/AxisDefaults.js", [], function() {
  9793. var y;
  9794. return function(j) {
  9795. j.defaultXAxisOptions = { alignTicks: !0, allowDecimals: void 0, panningEnabled: !0, zIndex: 2, zoomEnabled: !0, dateTimeLabelFormats: { millisecond: { main: "%H:%M:%S.%L", range: !1 }, second: { main: "%H:%M:%S", range: !1 }, minute: { main: "%H:%M", range: !1 }, hour: { main: "%H:%M", range: !1 }, day: { main: "%e. %b" }, week: { main: "%e. %b" }, month: { main: "%b '%y" }, year: { main: "%Y" } }, endOnTick: !1, gridLineDashStyle: "Solid", gridZIndex: 1, labels: {
  9796. autoRotation: void 0,
  9797. autoRotationLimit: 80,
  9798. distance: void 0,
  9799. enabled: !0,
  9800. indentation: 10,
  9801. overflow: "justify",
  9802. padding: 5,
  9803. reserveSpace: void 0,
  9804. rotation: void 0,
  9805. staggerLines: 0,
  9806. step: 0,
  9807. useHTML: !1,
  9808. x: 0,
  9809. zIndex: 7,
  9810. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  9811. }, maxPadding: 0.01, minorGridLineDashStyle: "Solid", minorTickLength: 2, minorTickPosition: "outside", minPadding: 0.01, offset: void 0, opposite: !1, reversed: void 0, reversedStacks: !1, showEmpty: !0, showFirstLabel: !0, showLastLabel: !0, startOfWeek: 1, startOnTick: !1, tickLength: 10, tickPixelInterval: 100, tickmarkPlacement: "between", tickPosition: "outside", title: {
  9812. align: "middle",
  9813. rotation: 0,
  9814. useHTML: !1,
  9815. x: 0,
  9816. y: 0,
  9817. style: { color: "#666666" }
  9818. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, j.defaultYAxisOptions = { reversedStacks: !0, endOnTick: !0, maxPadding: 0.05, minPadding: 0.05, tickPixelInterval: 72, showLastLabel: !0, labels: { x: -8 }, startOnTick: !0, title: { rotation: 270, text: "Values" }, stackLabels: {
  9819. animation: {},
  9820. allowOverlap: !1,
  9821. enabled: !1,
  9822. crop: !0,
  9823. overflow: "justify",
  9824. formatter: function() {
  9825. var I = this.axis.chart.numberFormatter;
  9826. return I(this.total, -1);
  9827. },
  9828. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  9829. }, gridLineWidth: 1, lineWidth: 0 }, j.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, j.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, j.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, j.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  9830. }(y || (y = {})), y;
  9831. }), T(l, "Core/Foundation.js", [l["Core/Utilities.js"]], function(y) {
  9832. var j = y.addEvent, I = y.isFunction, Z = y.objectEach, H = y.removeEvent, U;
  9833. return function(F) {
  9834. F.registerEventOptions = function(R, N) {
  9835. R.eventOptions = R.eventOptions || {}, Z(N.events, function(b, x) {
  9836. R.eventOptions[x] !== b && (R.eventOptions[x] && (H(R, x, R.eventOptions[x]), delete R.eventOptions[x]), I(b) && (R.eventOptions[x] = b, j(R, x, b)));
  9837. });
  9838. };
  9839. }(U || (U = {})), U;
  9840. }), T(
  9841. l,
  9842. "Core/Axis/Tick.js",
  9843. [l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Utilities.js"]],
  9844. function(y, j, I) {
  9845. var Z = j.deg2rad, H = I.clamp, U = I.correctFloat, F = I.defined, R = I.destroyObjectProperties, N = I.extend, b = I.fireEvent, x = I.isNumber, u = I.merge, f = I.objectEach, E = I.pick;
  9846. return j = function() {
  9847. function O(B, M, S, w, v) {
  9848. this.isNewLabel = this.isNew = !0, this.axis = B, this.pos = M, this.type = S || "", this.parameters = v || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, b(this, "init"), S || w || this.addLabel();
  9849. }
  9850. return O.prototype.addLabel = function() {
  9851. var B = this, M = B.axis, S = M.options, w = M.chart, v = M.categories, a = M.logarithmic, c = M.names, p = B.pos, i = E(B.options && B.options.labels, S.labels), h = M.tickPositions, s = p === h[0], t = p === h[h.length - 1], o = (!i.step || i.step === 1) && M.tickInterval === 1;
  9852. h = h.info;
  9853. var n = B.label, A;
  9854. if (v = this.parameters.category || (v ? E(v[p], c[p], p) : p), a && x(v) && (v = U(a.lin2log(v))), M.dateTime)
  9855. if (h)
  9856. var _ = w.time.resolveDTLFormat(S.dateTimeLabelFormats[!S.grid && h.higherRanks[p] || h.unitName]), D = _.main;
  9857. else
  9858. x(v) && (D = M.dateTime.getXDateFormat(v, S.dateTimeLabelFormats || {}));
  9859. B.isFirst = s, B.isLast = t;
  9860. var W = {
  9861. axis: M,
  9862. chart: w,
  9863. dateTimeLabelFormat: D,
  9864. isFirst: s,
  9865. isLast: t,
  9866. pos: p,
  9867. tick: B,
  9868. tickPositionInfo: h,
  9869. value: v
  9870. };
  9871. b(this, "labelFormat", W);
  9872. var P = function(g) {
  9873. return i.formatter ? i.formatter.call(g, g) : i.format ? (g.text = M.defaultLabelFormatter.call(g), y.format(i.format, g, w)) : M.defaultLabelFormatter.call(g, g);
  9874. };
  9875. S = P.call(W, W);
  9876. var X = _ && _.list;
  9877. B.shortenLabel = X ? function() {
  9878. for (A = 0; A < X.length; A++)
  9879. if (N(W, { dateTimeLabelFormat: X[A] }), n.attr({ text: P.call(W, W) }), n.getBBox().width < M.getSlotWidth(B) - 2 * i.padding)
  9880. return;
  9881. n.attr({ text: "" });
  9882. } : void 0, o && M._addedPlotLB && B.moveLabel(S, i), F(n) || B.movedLabel ? n && n.textStr !== S && !o && (!n.textWidth || i.style.width || n.styles.width || n.css({ width: null }), n.attr({ text: S }), n.textPxLength = n.getBBox().width) : (B.label = n = B.createLabel({ x: 0, y: 0 }, S, i), B.rotation = 0);
  9883. }, O.prototype.createLabel = function(B, M, S) {
  9884. var w = this.axis, v = w.chart;
  9885. return (B = F(M) && S.enabled ? v.renderer.text(M, B.x, B.y, S.useHTML).add(w.labelGroup) : null) && (v.styledMode || B.css(u(S.style)), B.textPxLength = B.getBBox().width), B;
  9886. }, O.prototype.destroy = function() {
  9887. R(
  9888. this,
  9889. this.axis
  9890. );
  9891. }, O.prototype.getPosition = function(B, M, S, w) {
  9892. var v = this.axis, a = v.chart, c = w && a.oldChartHeight || a.chartHeight;
  9893. return B = { x: B ? U(v.translate(M + S, null, null, w) + v.transB) : v.left + v.offset + (v.opposite ? (w && a.oldChartWidth || a.chartWidth) - v.right - v.left : 0), y: B ? c - v.bottom + v.offset - (v.opposite ? v.height : 0) : U(c - v.translate(M + S, null, null, w) - v.transB) }, B.y = H(B.y, -1e5, 1e5), b(this, "afterGetPosition", { pos: B }), B;
  9894. }, O.prototype.getLabelPosition = function(B, M, S, w, v, a, c, p) {
  9895. var i = this.axis, h = i.transA, s = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, o = i.tickRotCorr || { x: 0, y: 0 }, n = w || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), A = {}, _ = v.y;
  9896. return F(_) || (_ = i.side === 0 ? S.rotation ? -8 : -S.getBBox().height : i.side === 2 ? o.y + 8 : Math.cos(S.rotation * Z) * (o.y - S.getBBox(!1, 0).height / 2)), B = B + v.x + n + o.x - (a && w ? a * h * (s ? -1 : 1) : 0), M = M + _ - (a && !w ? a * h * (s ? 1 : -1) : 0), t && (S = c / (p || 1) % t, i.opposite && (S = t - S - 1), M += i.labelOffset / t * S), A.x = B, A.y = Math.round(M), b(this, "afterGetLabelPosition", { pos: A, tickmarkOffset: a, index: c }), A;
  9897. }, O.prototype.getLabelSize = function() {
  9898. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  9899. }, O.prototype.getMarkPath = function(B, M, S, w, v, a) {
  9900. return a.crispLine([["M", B, M], ["L", B + (v ? 0 : -S), M + (v ? S : 0)]], w);
  9901. }, O.prototype.handleOverflow = function(B) {
  9902. var M = this.axis, S = M.options.labels, w = B.x, v = M.chart.chartWidth, a = M.chart.spacing, c = E(M.labelLeft, Math.min(M.pos, a[3]));
  9903. a = E(M.labelRight, Math.max(M.isRadial ? 0 : M.pos + M.len, v - a[1]));
  9904. var p = this.label, i = this.rotation, h = { left: 0, center: 0.5, right: 1 }[M.labelAlign || p.attr("align")], s = p.getBBox().width, t = M.getSlotWidth(this), o = {}, n = t, A = 1, _;
  9905. i || S.overflow !== "justify" ? 0 > i && w - h * s < c ? _ = Math.round(w / Math.cos(i * Z) - c) : 0 < i && w + h * s > a && (_ = Math.round((v - w) / Math.cos(i * Z))) : (v = w + (1 - h) * s, w - h * s < c ? n = B.x + n * (1 - h) - c : v > a && (n = a - B.x + n * h, A = -1), n = Math.min(t, n), n < t && M.labelAlign === "center" && (B.x += A * (t - n - h * (t - Math.min(s, n)))), (s > n || M.autoRotation && (p.styles || {}).width) && (_ = n)), _ && (this.shortenLabel ? this.shortenLabel() : (o.width = Math.floor(_) + "px", (S.style || {}).textOverflow || (o.textOverflow = "ellipsis"), p.css(o)));
  9906. }, O.prototype.moveLabel = function(B, M) {
  9907. var S = this, w = S.label, v = S.axis, a = v.reversed, c = !1;
  9908. if (w && w.textStr === B ? (S.movedLabel = w, c = !0, delete S.label) : f(v.ticks, function(i) {
  9909. c || i.isNew || i === S || !i.label || i.label.textStr !== B || (S.movedLabel = i.label, c = !0, i.labelPos = S.movedLabel.xy, delete i.label);
  9910. }), !c && (S.labelPos || w)) {
  9911. var p = S.labelPos || w.xy;
  9912. w = v.horiz ? a ? 0 : v.width + v.left : p.x, v = v.horiz ? p.y : a ? v.width + v.left : 0, S.movedLabel = S.createLabel({ x: w, y: v }, B, M), S.movedLabel && S.movedLabel.attr({ opacity: 0 });
  9913. }
  9914. }, O.prototype.render = function(B, M, S) {
  9915. var w = this.axis, v = w.horiz, a = this.pos, c = E(this.tickmarkOffset, w.tickmarkOffset);
  9916. a = this.getPosition(v, a, c, M), c = a.x;
  9917. var p = a.y;
  9918. w = v && c === w.pos + w.len || !v && p === w.pos ? -1 : 1, v = E(S, this.label && this.label.newOpacity, 1), S = E(S, 1), this.isActive = !0, this.renderGridLine(M, S, w), this.renderMark(a, S, w), this.renderLabel(a, M, v, B), this.isNew = !1, b(this, "afterRender");
  9919. }, O.prototype.renderGridLine = function(B, M, S) {
  9920. var w = this.axis, v = w.options, a = {}, c = this.pos, p = this.type, i = E(
  9921. this.tickmarkOffset,
  9922. w.tickmarkOffset
  9923. ), h = w.chart.renderer, s = this.gridLine, t = v.gridLineWidth, o = v.gridLineColor, n = v.gridLineDashStyle;
  9924. this.type === "minor" && (t = v.minorGridLineWidth, o = v.minorGridLineColor, n = v.minorGridLineDashStyle), s || (w.chart.styledMode || (a.stroke = o, a["stroke-width"] = t || 0, a.dashstyle = n), p || (a.zIndex = 1), B && (M = 0), this.gridLine = s = h.path().attr(a).addClass("highcharts-" + (p ? p + "-" : "") + "grid-line").add(w.gridGroup)), s && (S = w.getPlotLinePath({ value: c + i, lineWidth: s.strokeWidth() * S, force: "pass", old: B })) && s[B || this.isNew ? "attr" : "animate"]({ d: S, opacity: M });
  9925. }, O.prototype.renderMark = function(B, M, S) {
  9926. var w = this.axis, v = w.options, a = w.chart.renderer, c = this.type, p = w.tickSize(c ? c + "Tick" : "tick"), i = B.x;
  9927. B = B.y;
  9928. var h = E(v[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && w.isXAxis ? 1 : 0);
  9929. v = v[c !== "minor" ? "tickColor" : "minorTickColor"];
  9930. var s = this.mark, t = !s;
  9931. p && (w.opposite && (p[0] = -p[0]), s || (this.mark = s = a.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(w.axisGroup), w.chart.styledMode || s.attr({ stroke: v, "stroke-width": h })), s[t ? "attr" : "animate"]({ d: this.getMarkPath(
  9932. i,
  9933. B,
  9934. p[0],
  9935. s.strokeWidth() * S,
  9936. w.horiz,
  9937. a
  9938. ), opacity: M }));
  9939. }, O.prototype.renderLabel = function(B, M, S, w) {
  9940. var v = this.axis, a = v.horiz, c = v.options, p = this.label, i = c.labels, h = i.step;
  9941. v = E(this.tickmarkOffset, v.tickmarkOffset);
  9942. var s = B.x;
  9943. B = B.y;
  9944. var t = !0;
  9945. p && x(s) && (p.xy = B = this.getLabelPosition(s, B, p, a, i, v, w, h), this.isFirst && !this.isLast && !c.showFirstLabel || this.isLast && !this.isFirst && !c.showLastLabel ? t = !1 : !a || i.step || i.rotation || M || S === 0 || this.handleOverflow(B), h && w % h && (t = !1), t && x(B.y) ? (B.opacity = S, p[this.isNewLabel ? "attr" : "animate"](B), this.isNewLabel = !1) : (p.attr("y", -9999), this.isNewLabel = !0));
  9946. }, O.prototype.replaceMovedLabel = function() {
  9947. var B = this.label, M = this.axis, S = M.reversed;
  9948. if (B && !this.isNew) {
  9949. var w = M.horiz ? S ? M.left : M.width + M.left : B.xy.x;
  9950. S = M.horiz ? B.xy.y : S ? M.width + M.top : M.top, B.animate({ x: w, y: S, opacity: 0 }, void 0, B.destroy), delete this.label;
  9951. }
  9952. M.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  9953. }, O;
  9954. }(), j;
  9955. }
  9956. ), T(l, "Core/Axis/Axis.js", [
  9957. l["Core/Animation/AnimationUtilities.js"],
  9958. l["Core/Axis/AxisDefaults.js"],
  9959. l["Core/Color/Color.js"],
  9960. l["Core/DefaultOptions.js"],
  9961. l["Core/Foundation.js"],
  9962. l["Core/Globals.js"],
  9963. l["Core/Axis/Tick.js"],
  9964. l["Core/Utilities.js"]
  9965. ], function(y, j, I, Z, H, U, F, R) {
  9966. var N = y.animObject, b = Z.defaultOptions, x = H.registerEventOptions, u = U.deg2rad, f = R.arrayMax, E = R.arrayMin, O = R.clamp, B = R.correctFloat, M = R.defined, S = R.destroyObjectProperties, w = R.erase, v = R.error, a = R.extend, c = R.fireEvent, p = R.getMagnitude, i = R.isArray, h = R.isNumber, s = R.isString, t = R.merge, o = R.normalizeTickInterval, n = R.objectEach, A = R.pick, _ = R.relativeLength, D = R.removeEvent, W = R.splat, P = R.syncTimeout;
  9967. return y = function() {
  9968. function X(g, m) {
  9969. this.zoomEnabled = this.width = this.visible = this.userOptions = this.translationSlope = this.transB = this.transA = this.top = this.ticks = this.tickRotCorr = this.tickPositions = this.tickmarkOffset = this.tickInterval = this.tickAmount = this.side = this.series = this.right = this.positiveValuesOnly = this.pos = this.pointRangePadding = this.pointRange = this.plotLinesAndBandsGroups = this.plotLinesAndBands = this.paddedTicks = this.overlap = this.options = this.offset = this.names = this.minPixelPadding = this.minorTicks = this.minorTickInterval = this.min = this.maxLabelLength = this.max = this.len = this.left = this.labelFormatter = this.labelEdge = this.isLinked = this.height = this.hasVisibleSeries = this.hasNames = this.eventOptions = this.coll = this.closestPointRange = this.chart = this.categories = this.bottom = this.alternateBands = void 0, this.init(g, m);
  9970. }
  9971. return X.prototype.init = function(g, m) {
  9972. var L = m.isX;
  9973. this.chart = g, this.horiz = g.inverted && !this.isZAxis ? !L : L, this.isXAxis = L, this.coll = this.coll || (L ? "xAxis" : "yAxis"), c(this, "init", { userOptions: m }), this.opposite = A(m.opposite, this.opposite), this.side = A(m.side, this.side, this.horiz ? this.opposite ? 0 : 2 : this.opposite ? 1 : 3), this.setOptions(m);
  9974. var Y = this.options, V = Y.labels, Q = Y.type;
  9975. this.userOptions = m, this.minPixelPadding = 0, this.reversed = A(Y.reversed, this.reversed), this.visible = Y.visible, this.zoomEnabled = Y.zoomEnabled, this.hasNames = Q === "category" || Y.categories === !0, this.categories = Y.categories || this.hasNames, this.names || (this.names = [], this.names.keys = {}), this.plotLinesAndBandsGroups = {}, this.positiveValuesOnly = !!this.logarithmic, this.isLinked = M(Y.linkedTo), this.ticks = {}, this.labelEdge = [], this.minorTicks = {}, this.plotLinesAndBands = [], this.alternateBands = {}, this.len = 0, this.minRange = this.userMinRange = Y.minRange || Y.maxZoom, this.range = Y.range, this.offset = Y.offset || 0, this.min = this.max = null, m = A(Y.crosshair, W(g.options.tooltip.crosshairs)[L ? 0 : 1]), this.crosshair = m === !0 ? {} : m, g.axes.indexOf(this) === -1 && (L ? g.axes.splice(g.xAxis.length, 0, this) : g.axes.push(this), g[this.coll].push(this)), this.series = this.series || [], g.inverted && !this.isZAxis && L && typeof this.reversed > "u" && (this.reversed = !0), this.labelRotation = h(V.rotation) ? V.rotation : void 0, x(this, Y), c(this, "afterInit");
  9976. }, X.prototype.setOptions = function(g) {
  9977. this.options = t(j.defaultXAxisOptions, this.coll === "yAxis" && j.defaultYAxisOptions, [j.defaultTopAxisOptions, j.defaultRightAxisOptions, j.defaultBottomAxisOptions, j.defaultLeftAxisOptions][this.side], t(b[this.coll], g)), c(this, "afterSetOptions", { userOptions: g });
  9978. }, X.prototype.defaultLabelFormatter = function(g) {
  9979. var m = this.axis;
  9980. g = this.chart.numberFormatter;
  9981. var L = h(this.value) ? this.value : NaN, Y = m.chart.time, V = this.dateTimeLabelFormat, Q = b.lang, k = Q.numericSymbols;
  9982. Q = Q.numericSymbolMagnitude || 1e3;
  9983. var G = m.logarithmic ? Math.abs(L) : m.tickInterval, z = k && k.length;
  9984. if (m.categories)
  9985. var $ = "" + this.value;
  9986. else if (V)
  9987. $ = Y.dateFormat(V, L);
  9988. else if (z && 1e3 <= G)
  9989. for (; z-- && typeof $ > "u"; )
  9990. m = Math.pow(Q, z + 1), G >= m && 10 * L % m === 0 && k[z] !== null && L !== 0 && ($ = g(L / m, -1) + k[z]);
  9991. return typeof $ > "u" && ($ = 1e4 <= Math.abs(L) ? g(L, -1) : g(L, -1, void 0, "")), $;
  9992. }, X.prototype.getSeriesExtremes = function() {
  9993. var g = this, m = g.chart, L;
  9994. c(this, "getSeriesExtremes", null, function() {
  9995. g.hasVisibleSeries = !1, g.dataMin = g.dataMax = g.threshold = null, g.softThreshold = !g.isXAxis, g.stacking && g.stacking.buildStacks(), g.series.forEach(function(Y) {
  9996. if (Y.visible || !m.options.chart.ignoreHiddenSeries) {
  9997. var V = Y.options, Q = V.threshold;
  9998. if (g.hasVisibleSeries = !0, g.positiveValuesOnly && 0 >= Q && (Q = null), g.isXAxis) {
  9999. if (V = Y.xData, V.length) {
  10000. V = g.logarithmic ? V.filter(g.validatePositiveValue) : V, L = Y.getXExtremes(V);
  10001. var k = L.min, G = L.max;
  10002. h(k) || k instanceof Date || (V = V.filter(h), L = Y.getXExtremes(V), k = L.min, G = L.max), V.length && (g.dataMin = Math.min(A(g.dataMin, k), k), g.dataMax = Math.max(A(g.dataMax, G), G));
  10003. }
  10004. } else
  10005. Y = Y.applyExtremes(), h(Y.dataMin) && (k = Y.dataMin, g.dataMin = Math.min(A(g.dataMin, k), k)), h(Y.dataMax) && (G = Y.dataMax, g.dataMax = Math.max(A(g.dataMax, G), G)), M(Q) && (g.threshold = Q), (!V.softThreshold || g.positiveValuesOnly) && (g.softThreshold = !1);
  10006. }
  10007. });
  10008. }), c(this, "afterGetSeriesExtremes");
  10009. }, X.prototype.translate = function(g, m, L, Y, V, Q) {
  10010. var k = this.linkedParent || this, G = Y && k.old ? k.old.min : k.min, z = k.minPixelPadding;
  10011. V = (k.isOrdinal || k.brokenAxis && k.brokenAxis.hasBreaks || k.logarithmic && V) && k.lin2val;
  10012. var $ = 1, q = 0;
  10013. return Y = Y && k.old ? k.old.transA : k.transA, Y || (Y = k.transA), L && ($ *= -1, q = k.len), k.reversed && ($ *= -1, q -= $ * (k.sector || k.len)), m ? (g = (g * $ + q - z) / Y + G, V && (g = k.lin2val(g))) : (V && (g = k.val2lin(g)), g = h(G) ? $ * (g - G) * Y + q + $ * z + (h(Q) ? Y * Q : 0) : void 0), g;
  10014. }, X.prototype.toPixels = function(g, m) {
  10015. return this.translate(
  10016. g,
  10017. !1,
  10018. !this.horiz,
  10019. null,
  10020. !0
  10021. ) + (m ? 0 : this.pos);
  10022. }, X.prototype.toValue = function(g, m) {
  10023. return this.translate(g - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  10024. }, X.prototype.getPlotLinePath = function(g) {
  10025. function m(at, J, tt) {
  10026. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : ht = !0), at;
  10027. }
  10028. var L = this, Y = L.chart, V = L.left, Q = L.top, k = g.old, G = g.value, z = g.lineWidth, $ = k && Y.oldChartHeight || Y.chartHeight, q = k && Y.oldChartWidth || Y.chartWidth, it = L.transB, et = g.translatedValue, nt = g.force, rt, ct, gt, dt, ht;
  10029. return g = {
  10030. value: G,
  10031. lineWidth: z,
  10032. old: k,
  10033. force: nt,
  10034. acrossPanes: g.acrossPanes,
  10035. translatedValue: et
  10036. }, c(this, "getPlotLinePath", g, function(at) {
  10037. et = A(et, L.translate(G, null, null, k)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round($ - et - it), h(et) ? L.horiz ? (ct = Q, dt = $ - L.bottom, rt = gt = m(rt, V, V + L.width)) : (rt = V, gt = q - L.right, ct = dt = m(ct, Q, Q + L.height)) : (ht = !0, nt = !1), at.path = ht && !nt ? null : Y.renderer.crispLine([["M", rt, ct], ["L", gt, dt]], z || 1);
  10038. }), g.path;
  10039. }, X.prototype.getLinearTickPositions = function(g, m, L) {
  10040. var Y = B(Math.floor(m / g) * g);
  10041. L = B(Math.ceil(L / g) * g);
  10042. var V = [], Q;
  10043. if (B(Y + g) === Y && (Q = 20), this.single)
  10044. return [m];
  10045. for (m = Y; m <= L && (V.push(m), m = B(m + g, Q), m !== k); )
  10046. var k = m;
  10047. return V;
  10048. }, X.prototype.getMinorTickInterval = function() {
  10049. var g = this.options;
  10050. return g.minorTicks === !0 ? A(g.minorTickInterval, "auto") : g.minorTicks === !1 ? null : g.minorTickInterval;
  10051. }, X.prototype.getMinorTickPositions = function() {
  10052. var g = this.options, m = this.tickPositions, L = this.minorTickInterval, Y = this.pointRangePadding || 0, V = this.min - Y;
  10053. Y = this.max + Y;
  10054. var Q = Y - V, k = [];
  10055. if (Q && Q / L < this.len / 3) {
  10056. var G = this.logarithmic;
  10057. if (G)
  10058. this.paddedTicks.forEach(function(z, $, q) {
  10059. $ && k.push.apply(
  10060. k,
  10061. G.getLogTickPositions(L, q[$ - 1], q[$], !0)
  10062. );
  10063. });
  10064. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  10065. k = k.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), V, Y, g.startOfWeek));
  10066. else
  10067. for (g = V + (m[0] - V) % L; g <= Y && g !== k[0]; g += L)
  10068. k.push(g);
  10069. }
  10070. return k.length !== 0 && this.trimTicks(k), k;
  10071. }, X.prototype.adjustForMinRange = function() {
  10072. var g = this.options, m = this.logarithmic, L = this.min, Y = this.max, V = 0, Q, k, G, z;
  10073. if (this.isXAxis && typeof this.minRange > "u" && !m && (M(g.min) || M(g.max) || M(g.floor) || M(g.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  10074. if (G = et.xData, z = et.xIncrement ? 1 : G.length - 1, 1 < G.length)
  10075. for (Q = z; 0 < Q; Q--)
  10076. k = G[Q] - G[Q - 1], (!V || k < V) && (V = k);
  10077. }), this.minRange = Math.min(5 * V, this.dataMax - this.dataMin))), Y - L < this.minRange) {
  10078. var $ = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - Y + L) / 2;
  10079. it = [L - it, A(g.min, L - it)], $ && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = f(it), Y = [L + q, A(g.max, L + q)], $ && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = E(Y), Y - L < q && (it[0] = Y - q, it[1] = A(g.min, Y - q), L = f(it));
  10080. }
  10081. this.min = L, this.max = Y;
  10082. }, X.prototype.getClosest = function() {
  10083. var g;
  10084. return this.categories ? g = 1 : this.series.forEach(function(m) {
  10085. var L = m.closestPointRange, Y = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  10086. !m.noSharedTooltip && M(L) && Y && (g = M(g) ? Math.min(g, L) : L);
  10087. }), g;
  10088. }, X.prototype.nameToX = function(g) {
  10089. var m = i(this.categories), L = m ? this.categories : this.names, Y = g.options.x;
  10090. if (g.series.requireSorting = !1, M(Y) || (Y = this.options.uniqueNames ? m ? L.indexOf(g.name) : A(L.keys[g.name], -1) : g.series.autoIncrement()), Y === -1) {
  10091. if (!m)
  10092. var V = L.length;
  10093. } else
  10094. V = Y;
  10095. return typeof V < "u" && (this.names[V] = g.name, this.names.keys[g.name] = V), V;
  10096. }, X.prototype.updateNames = function() {
  10097. var g = this, m = this.names;
  10098. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  10099. delete m.keys[L];
  10100. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  10101. L.xIncrement = null, (!L.points || L.isDirtyData) && (g.max = Math.max(g.max, L.xData.length - 1), L.processData(), L.generatePoints()), L.data.forEach(function(Y, V) {
  10102. if (Y && Y.options && typeof Y.name < "u") {
  10103. var Q = g.nameToX(Y);
  10104. typeof Q < "u" && Q !== Y.x && (Y.x = Q, L.xData[V] = Q);
  10105. }
  10106. });
  10107. }));
  10108. }, X.prototype.setAxisTranslation = function() {
  10109. var g = this, m = g.max - g.min, L = g.linkedParent, Y = !!g.categories, V = g.isXAxis, Q = g.axisPointRange || 0, k = 0, G = 0, z = g.transA;
  10110. if (V || Y || Q) {
  10111. var $ = g.getClosest();
  10112. L ? (k = L.minPointOffset, G = L.pointRangePadding) : g.series.forEach(function(q) {
  10113. var it = Y ? 1 : V ? A(q.options.pointRange, $, 0) : g.axisPointRange || 0, et = q.options.pointPlacement;
  10114. Q = Math.max(Q, it), (!g.single || Y) && (q = q.is("xrange") ? !V : V, k = Math.max(k, q && s(et) ? 0 : it / 2), G = Math.max(G, q && et === "on" ? 0 : it));
  10115. }), L = g.ordinal && g.ordinal.slope && $ ? g.ordinal.slope / $ : 1, g.minPointOffset = k *= L, g.pointRangePadding = G *= L, g.pointRange = Math.min(Q, g.single && Y ? 1 : m), V && (g.closestPointRange = $);
  10116. }
  10117. g.translationSlope = g.transA = z = g.staticScale || g.len / (m + G || 1), g.transB = g.horiz ? g.left : g.bottom, g.minPixelPadding = z * k, c(this, "afterSetAxisTranslation");
  10118. }, X.prototype.minFromRange = function() {
  10119. return this.max - this.range;
  10120. }, X.prototype.setTickInterval = function(g) {
  10121. var m = this.chart, L = this.logarithmic, Y = this.options, V = this.isXAxis, Q = this.isLinked, k = Y.tickPixelInterval, G = this.categories, z = this.softThreshold, $ = Y.maxPadding, q = Y.minPadding, it = h(Y.tickInterval) && 0 <= Y.tickInterval ? Y.tickInterval : void 0, et = h(this.threshold) ? this.threshold : null;
  10122. this.dateTime || G || Q || this.getTickAmount();
  10123. var nt = A(this.userMin, Y.min), rt = A(this.userMax, Y.max);
  10124. if (Q) {
  10125. this.linkedParent = m[this.coll][Y.linkedTo];
  10126. var ct = this.linkedParent.getExtremes();
  10127. this.min = A(ct.min, ct.dataMin), this.max = A(ct.max, ct.dataMax), Y.type !== this.linkedParent.options.type && v(11, 1, m);
  10128. } else {
  10129. if (z && M(et)) {
  10130. if (this.dataMin >= et)
  10131. ct = et, q = 0;
  10132. else if (this.dataMax <= et) {
  10133. var gt = et;
  10134. $ = 0;
  10135. }
  10136. }
  10137. this.min = A(nt, ct, this.dataMin), this.max = A(rt, gt, this.dataMax);
  10138. }
  10139. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, A(this.dataMin, this.min)) && v(10, 1, m), this.min = B(L.log2lin(this.min), 16), this.max = B(L.log2lin(this.max), 16)), this.range && M(this.max) && (this.userMin = this.min = nt = Math.max(this.dataMin, this.minFromRange()), this.userMax = rt = this.max, this.range = null), c(this, "foundExtremes"), this.beforePadding && this.beforePadding(), this.adjustForMinRange(), !(G || this.axisPointRange || this.stacking && this.stacking.usePercentage || Q) && M(this.min) && M(this.max) && (m = this.max - this.min) && (!M(nt) && q && (this.min -= m * q), !M(rt) && $ && (this.max += m * $)), h(this.userMin) || (h(Y.softMin) && Y.softMin < this.min && (this.min = nt = Y.softMin), h(Y.floor) && (this.min = Math.max(this.min, Y.floor))), h(this.userMax) || (h(Y.softMax) && Y.softMax > this.max && (this.max = rt = Y.softMax), h(Y.ceiling) && (this.max = Math.min(this.max, Y.ceiling))), z && M(this.dataMin) && (et = et || 0, !M(nt) && this.min < et && this.dataMin >= et ? this.min = this.options.minRange ? Math.min(et, this.max - this.minRange) : et : !M(rt) && this.max > et && this.dataMax <= et && (this.max = this.options.minRange ? Math.max(et, this.min + this.minRange) : et)), h(this.min) && h(this.max) && !this.chart.polar && this.min > this.max && (M(this.options.min) ? this.max = this.min : M(this.options.max) && (this.min = this.max)), this.tickInterval = this.min === this.max || typeof this.min > "u" || typeof this.max > "u" ? 1 : Q && this.linkedParent && !it && k === this.linkedParent.options.tickPixelInterval ? it = this.linkedParent.tickInterval : A(it, this.tickAmount ? (this.max - this.min) / Math.max(this.tickAmount - 1, 1) : void 0, G ? 1 : (this.max - this.min) * k / Math.max(this.len, k)), V && !g) {
  10140. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  10141. this.series.forEach(function(ht) {
  10142. ht.forceCrop = ht.forceCropping && ht.forceCropping(), ht.processData(dt);
  10143. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  10144. }
  10145. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), g = A(Y.minTickInterval, this.dateTime && !this.series.some(function(ht) {
  10146. return ht.noSharedTooltip;
  10147. }) ? this.closestPointRange : 0), !it && this.tickInterval < g && (this.tickInterval = g), this.dateTime || this.logarithmic || it || (this.tickInterval = o(this.tickInterval, void 0, p(this.tickInterval), A(Y.allowDecimals, 0.5 > this.tickInterval || this.tickAmount !== void 0), !!this.tickAmount)), this.tickAmount || (this.tickInterval = this.unsquish()), this.setTickPositions();
  10148. }, X.prototype.setTickPositions = function() {
  10149. var g = this.options, m = g.tickPositions, L = this.getMinorTickInterval(), Y = this.hasVerticalPanning(), V = this.coll === "colorAxis", Q = (V || !Y) && g.startOnTick;
  10150. Y = (V || !Y) && g.endOnTick, V = g.tickPositioner, this.tickmarkOffset = this.categories && g.tickmarkPlacement === "between" && this.tickInterval === 1 ? 0.5 : 0, this.minorTickInterval = L === "auto" && this.tickInterval ? this.tickInterval / 5 : L, this.single = this.min === this.max && M(this.min) && !this.tickAmount && (parseInt(this.min, 10) === this.min || g.allowDecimals !== !1), this.tickPositions = L = m && m.slice(), !L && (this.ordinal && this.ordinal.positions || !((this.max - this.min) / this.tickInterval > Math.max(2 * this.len, 200)) ? L = this.dateTime ? this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval, g.units), this.min, this.max, g.startOfWeek, this.ordinal && this.ordinal.positions, this.closestPointRange, !0) : this.logarithmic ? this.logarithmic.getLogTickPositions(this.tickInterval, this.min, this.max) : this.getLinearTickPositions(
  10151. this.tickInterval,
  10152. this.min,
  10153. this.max
  10154. ) : (L = [this.min, this.max], v(19, !1, this.chart)), L.length > this.len && (L = [L[0], L.pop()], L[0] === L[1] && (L.length = 1)), this.tickPositions = L, V && (V = V.apply(this, [this.min, this.max]))) && (this.tickPositions = L = V), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, Y), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(k) {
  10155. return k.is("heatmap") && k.options.pointPlacement === "between";
  10156. }) && (this.min -= 0.5, this.max += 0.5), m || V || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  10157. }, X.prototype.trimTicks = function(g, m, L) {
  10158. var Y = g[0], V = g[g.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  10159. if (c(this, "trimTicks"), !this.isLinked) {
  10160. if (m && Y !== -1 / 0)
  10161. this.min = Y;
  10162. else
  10163. for (; this.min - Q > g[0]; )
  10164. g.shift();
  10165. if (L)
  10166. this.max = V;
  10167. else
  10168. for (; this.max + Q < g[g.length - 1]; )
  10169. g.pop();
  10170. g.length === 0 && M(Y) && !this.options.tickPositions && g.push((V + Y) / 2);
  10171. }
  10172. }, X.prototype.alignToOthers = function() {
  10173. var g = {}, m = this.options, L;
  10174. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(Y) {
  10175. var V = Y.options;
  10176. V = [Y.horiz ? V.left : V.top, V.width, V.height, V.pane].join(), Y.series.length && (g[V] ? L = !0 : g[V] = 1);
  10177. }), L;
  10178. }, X.prototype.getTickAmount = function() {
  10179. var g = this.options, m = g.tickPixelInterval, L = g.tickAmount;
  10180. !M(g.tickInterval) && !L && this.len < m && !this.isRadial && !this.logarithmic && g.startOnTick && g.endOnTick && (L = 2), !L && this.alignToOthers() && (L = Math.ceil(this.len / m) + 1), 4 > L && (this.finalTickAmt = L, L = 5), this.tickAmount = L;
  10181. }, X.prototype.adjustTickAmount = function() {
  10182. var g = this.options, m = this.tickInterval, L = this.tickPositions, Y = this.tickAmount, V = this.finalTickAmt, Q = L && L.length, k = A(this.threshold, this.softThreshold ? 0 : null);
  10183. if (this.hasData() && h(this.min) && h(this.max)) {
  10184. if (Q < Y) {
  10185. for (; L.length < Y; )
  10186. L.length % 2 || this.min === k ? L.push(B(L[L.length - 1] + m)) : L.unshift(B(L[0] - m));
  10187. this.transA *= (Q - 1) / (Y - 1), this.min = g.startOnTick ? L[0] : Math.min(this.min, L[0]), this.max = g.endOnTick ? L[L.length - 1] : Math.max(this.max, L[L.length - 1]);
  10188. } else
  10189. Q > Y && (this.tickInterval *= 2, this.setTickPositions());
  10190. if (M(V)) {
  10191. for (m = g = L.length; m--; )
  10192. (V === 3 && m % 2 === 1 || 2 >= V && 0 < m && m < g - 1) && L.splice(m, 1);
  10193. this.finalTickAmt = void 0;
  10194. }
  10195. }
  10196. }, X.prototype.setScale = function() {
  10197. var g = !1, m = !1;
  10198. this.series.forEach(function(Y) {
  10199. g = g || Y.isDirtyData || Y.isDirty, m = m || Y.xAxis && Y.xAxis.isDirty || !1;
  10200. }), this.setAxisSize();
  10201. var L = this.len !== (this.old && this.old.len);
  10202. L || g || m || this.isLinked || this.forceRedraw || this.userMin !== (this.old && this.old.userMin) || this.userMax !== (this.old && this.old.userMax) || this.alignToOthers() ? (this.stacking && this.stacking.resetStacks(), this.forceRedraw = !1, this.getSeriesExtremes(), this.setTickInterval(), this.isDirty || (this.isDirty = L || this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max))) : this.stacking && this.stacking.cleanStacks(), g && this.panningState && (this.panningState.isDirty = !0), c(this, "afterSetScale");
  10203. }, X.prototype.setExtremes = function(g, m, L, Y, V) {
  10204. var Q = this, k = Q.chart;
  10205. L = A(L, !0), Q.series.forEach(function(G) {
  10206. delete G.kdTree;
  10207. }), V = a(V, { min: g, max: m }), c(Q, "setExtremes", V, function() {
  10208. Q.userMin = g, Q.userMax = m, Q.eventArgs = V, L && k.redraw(Y);
  10209. });
  10210. }, X.prototype.zoom = function(g, m) {
  10211. var L = this, Y = this.dataMin, V = this.dataMax, Q = this.options, k = Math.min(Y, A(Q.min, Y)), G = Math.max(V, A(Q.max, V));
  10212. return g = { newMin: g, newMax: m }, c(this, "zoom", g, function(z) {
  10213. var $ = z.newMin, q = z.newMax;
  10214. ($ !== L.min || q !== L.max) && (L.allowZoomOutside || (M(Y) && ($ < k && ($ = k), $ > G && ($ = G)), M(V) && (q < k && (q = k), q > G && (q = G))), L.displayBtn = typeof $ < "u" || typeof q < "u", L.setExtremes($, q, !1, void 0, { trigger: "zoom" })), z.zoomed = !0;
  10215. }), g.zoomed;
  10216. }, X.prototype.setAxisSize = function() {
  10217. var g = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], Y = this.horiz, V = this.width = Math.round(_(A(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(_(A(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), k = this.top = Math.round(_(A(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  10218. m = this.left = Math.round(_(A(m.left, g.plotLeft + L[3]), g.plotWidth, g.plotLeft)), this.bottom = g.chartHeight - Q - k, this.right = g.chartWidth - V - m, this.len = Math.max(Y ? V : Q, 0), this.pos = Y ? m : k;
  10219. }, X.prototype.getExtremes = function() {
  10220. var g = this.logarithmic;
  10221. return { min: g ? B(g.lin2log(this.min)) : this.min, max: g ? B(g.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  10222. }, X.prototype.getThreshold = function(g) {
  10223. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  10224. return m = m ? m.lin2log(this.max) : this.max, g === null || g === -1 / 0 ? g = L : g === 1 / 0 ? g = m : L > g ? g = L : m < g && (g = m), this.translate(g, 0, 1, 0, 1);
  10225. }, X.prototype.autoLabelAlign = function(g) {
  10226. var m = (A(g, 0) - 90 * this.side + 720) % 360;
  10227. return g = { align: "center" }, c(
  10228. this,
  10229. "autoLabelAlign",
  10230. g,
  10231. function(L) {
  10232. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  10233. }
  10234. ), g.align;
  10235. }, X.prototype.tickSize = function(g) {
  10236. var m = this.options, L = A(m[g === "tick" ? "tickWidth" : "minorTickWidth"], g === "tick" && this.isXAxis && !this.categories ? 1 : 0), Y = m[g === "tick" ? "tickLength" : "minorTickLength"];
  10237. if (L && Y) {
  10238. m[g + "Position"] === "inside" && (Y = -Y);
  10239. var V = [Y, L];
  10240. }
  10241. return g = { tickSize: V }, c(this, "afterTickSize", g), g.tickSize;
  10242. }, X.prototype.labelMetrics = function() {
  10243. var g = this.tickPositions && this.tickPositions[0] || 0;
  10244. return this.chart.renderer.fontMetrics(
  10245. this.options.labels.style.fontSize,
  10246. this.ticks[g] && this.ticks[g].label
  10247. );
  10248. }, X.prototype.unsquish = function() {
  10249. var g = this.options.labels, m = this.horiz, L = this.tickInterval, Y = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), V = g.rotation, Q = this.labelMetrics(), k = Math.max(this.max - this.min, 0), G = function(nt) {
  10250. var rt = nt / (Y || 1);
  10251. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > k && nt !== 1 / 0 && Y !== 1 / 0 && k && (rt = Math.ceil(k / L)), B(rt * L);
  10252. }, z = L, $, q, it = Number.MAX_VALUE;
  10253. if (m) {
  10254. if (!g.staggerLines && !g.step)
  10255. if (h(V))
  10256. var et = [V];
  10257. else
  10258. Y < g.autoRotationLimit && (et = g.autoRotation);
  10259. et && et.forEach(function(nt) {
  10260. if (nt === V || nt && -90 <= nt && 90 >= nt) {
  10261. q = G(Math.abs(Q.h / Math.sin(u * nt)));
  10262. var rt = q + Math.abs(nt / 360);
  10263. rt < it && (it = rt, $ = nt, z = q);
  10264. }
  10265. });
  10266. } else
  10267. g.step || (z = G(Q.h));
  10268. return this.autoRotation = et, this.labelRotation = A($, h(V) ? V : 0), z;
  10269. }, X.prototype.getSlotWidth = function(g) {
  10270. var m = this.chart, L = this.horiz, Y = this.options.labels, V = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  10271. if (g && h(g.slotWidth))
  10272. return g.slotWidth;
  10273. if (L && 2 > Y.step)
  10274. return Y.rotation ? 0 : (this.staggerLines || 1) * this.len / V;
  10275. if (!L) {
  10276. if (g = Y.style.width, g !== void 0)
  10277. return parseInt(String(g), 10);
  10278. if (Q)
  10279. return Q - m.spacing[3];
  10280. }
  10281. return 0.33 * m.chartWidth;
  10282. }, X.prototype.renderUnsquish = function() {
  10283. var g = this.chart, m = g.renderer, L = this.tickPositions, Y = this.ticks, V = this.options.labels, Q = V.style, k = this.horiz, G = this.getSlotWidth(), z = Math.max(1, Math.round(G - 2 * V.padding)), $ = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  10284. if (s(V.rotation) || ($.rotation = V.rotation || 0), L.forEach(function(gt) {
  10285. gt = Y[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  10286. }), this.maxLabelLength = et, this.autoRotation)
  10287. et > z && et > q.h ? $.rotation = this.labelRotation : this.labelRotation = 0;
  10288. else if (G) {
  10289. var nt = z;
  10290. if (!it) {
  10291. var rt = "clip";
  10292. for (z = L.length; !k && z--; ) {
  10293. var ct = L[z];
  10294. (ct = Y[ct].label) && (ct.styles && ct.styles.textOverflow === "ellipsis" ? ct.css({ textOverflow: "clip" }) : ct.textPxLength > G && ct.css({ width: G + "px" }), ct.getBBox().height > this.len / L.length - (q.h - q.f) && (ct.specificTextOverflow = "ellipsis"));
  10295. }
  10296. }
  10297. }
  10298. $.rotation && (nt = et > 0.5 * g.chartHeight ? 0.33 * g.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = V.align || this.autoLabelAlign(this.labelRotation)) && ($.align = this.labelAlign), L.forEach(function(gt) {
  10299. var dt = (gt = Y[gt]) && gt.label, ht = Q.width, at = {};
  10300. dt && (dt.attr($), gt.shortenLabel ? gt.shortenLabel() : nt && !ht && Q.whiteSpace !== "nowrap" && (nt < dt.textPxLength || dt.element.tagName === "SPAN") ? (at.width = nt + "px", it || (at.textOverflow = dt.specificTextOverflow || rt), dt.css(at)) : dt.styles && dt.styles.width && !at.width && !ht && dt.css({ width: null }), delete dt.specificTextOverflow, gt.rotation = $.rotation);
  10301. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  10302. }, X.prototype.hasData = function() {
  10303. return this.series.some(function(g) {
  10304. return g.hasData();
  10305. }) || this.options.showEmpty && M(this.min) && M(this.max);
  10306. }, X.prototype.addTitle = function(g) {
  10307. var m = this.chart.renderer, L = this.horiz, Y = this.opposite, V = this.options.title, Q = this.chart.styledMode, k;
  10308. this.axisTitle || ((k = V.textAlign) || (k = (L ? { low: "left", middle: "center", high: "right" } : { low: Y ? "right" : "left", middle: "center", high: Y ? "left" : "right" })[V.align]), this.axisTitle = m.text(V.text || "", 0, 0, V.useHTML).attr({ zIndex: 7, rotation: V.rotation, align: k }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t(V.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || V.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[g ? "show" : "hide"](g);
  10309. }, X.prototype.generateTick = function(g) {
  10310. var m = this.ticks;
  10311. m[g] ? m[g].addLabel() : m[g] = new F(this, g);
  10312. }, X.prototype.getOffset = function() {
  10313. var g = this, m = this, L = m.chart, Y = m.horiz, V = m.options, Q = m.side, k = m.ticks, G = m.tickPositions, z = m.coll, $ = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = V.title, rt = V.labels, ct = L.axisOffset;
  10314. L = L.clipOffset;
  10315. var gt = [
  10316. -1,
  10317. 1,
  10318. 1,
  10319. -1
  10320. ][Q], dt = V.className, ht, at = 0, J = 0, tt = 0;
  10321. if (m.showAxis = ht = et || V.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  10322. var st = function(pt, yt, vt) {
  10323. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + z.toLowerCase() + yt + " " + (g.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add($);
  10324. };
  10325. m.gridGroup = st("grid", "-grid", V.gridZIndex), m.axisGroup = st("axis", "", V.zIndex), m.labelGroup = st("axis-labels", "-labels", rt.zIndex);
  10326. }
  10327. if (et || m.isLinked ? (G.forEach(function(pt) {
  10328. m.generateTick(pt);
  10329. }), m.renderUnsquish(), m.reserveSpaceDefault = Q === 0 || Q === 2 || { 1: "left", 3: "right" }[Q] === m.labelAlign, A(rt.reserveSpace, m.labelAlign === "center" ? !0 : null, m.reserveSpaceDefault) && G.forEach(function(pt) {
  10330. tt = Math.max(k[pt].getLabelSize(), tt);
  10331. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : n(k, function(pt, yt) {
  10332. pt.destroy(), delete k[yt];
  10333. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(ht), ht && nt.reserveSpace !== !1)) {
  10334. m.titleOffset = at = m.axisTitle.getBBox()[Y ? "height" : "width"];
  10335. var lt = nt.offset;
  10336. J = M(lt) ? 0 : A(nt.margin, Y ? 5 : 10);
  10337. }
  10338. m.renderLine(), m.offset = gt * A(V.offset, ct[Q] ? ct[Q] + (V.margin || 0) : 0), m.tickRotCorr = m.tickRotCorr || { x: 0, y: 0 }, nt = Q === 0 ? -m.labelMetrics().h : Q === 2 ? m.tickRotCorr.y : 0, et = Math.abs(tt) + J, tt && (et = et - nt + gt * (Y ? A(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = A(lt, et), m.getMaxLabelDimensions && (m.maxLabelDimensions = m.getMaxLabelDimensions(k, G)), z !== "colorAxis" && (Y = this.tickSize("tick"), ct[Q] = Math.max(ct[Q], (m.axisTitleMargin || 0) + at + gt * m.offset, et, G && G.length && Y ? Y[0] + gt * m.offset : 0), V = !m.axisLine || V.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(L[it], V)), c(this, "afterGetOffset");
  10339. }, X.prototype.getLinePath = function(g) {
  10340. var m = this.chart, L = this.opposite, Y = this.offset, V = this.horiz, Q = this.left + (L ? this.width : 0) + Y;
  10341. return Y = m.chartHeight - this.bottom - (L ? this.height : 0) + Y, L && (g *= -1), m.renderer.crispLine([["M", V ? this.left : Q, V ? Y : this.top], ["L", V ? m.chartWidth - this.right : Q, V ? Y : m.chartHeight - this.bottom]], g);
  10342. }, X.prototype.renderLine = function() {
  10343. this.axisLine || (this.axisLine = this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup), this.chart.styledMode || this.axisLine.attr({ stroke: this.options.lineColor, "stroke-width": this.options.lineWidth, zIndex: 7 }));
  10344. }, X.prototype.getTitlePosition = function() {
  10345. var g = this.horiz, m = this.left, L = this.top, Y = this.len, V = this.options.title, Q = g ? m : L, k = this.opposite, G = this.offset, z = V.x, $ = V.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics(V.style.fontSize, q);
  10346. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), Y = { low: Q + (g ? 0 : Y), middle: Q + Y / 2, high: Q + (g ? Y : 0) }[V.align], m = (g ? L + this.height : m) + (g ? 1 : -1) * (k ? -1 : 1) * this.axisTitleMargin + [-q, q, it.f, -q][this.side], g = { x: g ? Y + z : m + (k ? this.width : 0) + G + z, y: g ? m + $ - (k ? this.height : 0) + G : Y + $ }, c(this, "afterGetTitlePosition", { titlePosition: g }), g;
  10347. }, X.prototype.renderMinorTick = function(g, m) {
  10348. var L = this.minorTicks;
  10349. L[g] || (L[g] = new F(this, g, "minor")), m && L[g].isNew && L[g].render(null, !0), L[g].render(null, !1, 1);
  10350. }, X.prototype.renderTick = function(g, m, L) {
  10351. var Y = this.ticks;
  10352. (!this.isLinked || g >= this.min && g <= this.max || this.grid && this.grid.isColumn) && (Y[g] || (Y[g] = new F(this, g)), L && Y[g].isNew && Y[g].render(
  10353. m,
  10354. !0,
  10355. -1
  10356. ), Y[g].render(m));
  10357. }, X.prototype.render = function() {
  10358. var g = this, m = g.chart, L = g.logarithmic, Y = g.options, V = g.isLinked, Q = g.tickPositions, k = g.axisTitle, G = g.ticks, z = g.minorTicks, $ = g.alternateBands, q = Y.stackLabels, it = Y.alternateGridColor, et = g.tickmarkOffset, nt = g.axisLine, rt = g.showAxis, ct = N(m.renderer.globalAnimation), gt, dt;
  10359. if (g.labelEdge.length = 0, g.overlap = !1, [G, z, $].forEach(function(at) {
  10360. n(at, function(J) {
  10361. J.isActive = !1;
  10362. });
  10363. }), g.hasData() || V) {
  10364. var ht = g.chart.hasRendered && g.old && h(g.old.min);
  10365. g.minorTickInterval && !g.categories && g.getMinorTickPositions().forEach(function(at) {
  10366. g.renderMinorTick(at, ht);
  10367. }), Q.length && (Q.forEach(function(at, J) {
  10368. g.renderTick(at, J, ht);
  10369. }), et && (g.min === 0 || g.single) && (G[-1] || (G[-1] = new F(g, -1, null, !0)), G[-1].render(-1))), it && Q.forEach(function(at, J) {
  10370. dt = typeof Q[J + 1] < "u" ? Q[J + 1] + et : g.max - et, J % 2 === 0 && at < g.max && dt <= g.max + (m.polar ? -et : et) && ($[at] || ($[at] = new U.PlotLineOrBand(g)), gt = at + et, $[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, $[at].render(), $[at].isActive = !0);
  10371. }), g._addedPlotLB || (g._addedPlotLB = !0, (Y.plotLines || []).concat(Y.plotBands || []).forEach(function(at) {
  10372. g.addPlotBandOrLine(at);
  10373. }));
  10374. }
  10375. [G, z, $].forEach(function(at) {
  10376. var J = [], tt = ct.duration;
  10377. n(at, function(st, lt) {
  10378. st.isActive || (st.render(lt, !1, 0), st.isActive = !1, J.push(lt));
  10379. }), P(function() {
  10380. for (var st = J.length; st--; )
  10381. at[J[st]] && !at[J[st]].isActive && (at[J[st]].destroy(), delete at[J[st]]);
  10382. }, at !== $ && m.hasRendered && tt ? tt : 0);
  10383. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), k && rt && (Y = g.getTitlePosition(), h(Y.y) ? (k[k.isNew ? "attr" : "animate"](Y), k.isNew = !1) : (k.attr("y", -9999), k.isNew = !0)), q && q.enabled && g.stacking && g.stacking.renderStackTotals(), g.old = { len: g.len, max: g.max, min: g.min, transA: g.transA, userMax: g.userMax, userMin: g.userMin }, g.isDirty = !1, c(this, "afterRender");
  10384. }, X.prototype.redraw = function() {
  10385. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(g) {
  10386. g.render();
  10387. })), this.series.forEach(function(g) {
  10388. g.isDirty = !0;
  10389. });
  10390. }, X.prototype.getKeepProps = function() {
  10391. return this.keepProps || X.keepProps;
  10392. }, X.prototype.destroy = function(g) {
  10393. var m = this, L = m.plotLinesAndBands, Y = this.eventOptions;
  10394. if (c(this, "destroy", { keepEvents: g }), g || D(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  10395. S(Q);
  10396. }), L)
  10397. for (g = L.length; g--; )
  10398. L[g].destroy();
  10399. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  10400. m[Q] && (m[Q] = m[Q].destroy());
  10401. });
  10402. for (var V in m.plotLinesAndBandsGroups)
  10403. m.plotLinesAndBandsGroups[V] = m.plotLinesAndBandsGroups[V].destroy();
  10404. n(m, function(Q, k) {
  10405. m.getKeepProps().indexOf(k) === -1 && delete m[k];
  10406. }), this.eventOptions = Y;
  10407. }, X.prototype.drawCrosshair = function(g, m) {
  10408. var L = this.crosshair, Y = A(L && L.snap, !0), V = this.chart, Q, k = this.cross;
  10409. if (c(this, "drawCrosshair", { e: g, point: m }), g || (g = this.cross && this.cross.e), L && (M(m) || !Y) !== !1) {
  10410. if (Y ? M(m) && (Q = A(this.coll !== "colorAxis" ? m.crosshairPos : null, this.isXAxis ? m.plotX : this.len - m.plotY)) : Q = g && (this.horiz ? g.chartX - this.pos : this.len - g.chartY + this.pos), M(Q)) {
  10411. var G = { value: m && (this.isXAxis ? m.x : A(m.stackY, m.y)), translatedValue: Q };
  10412. V.polar && a(G, { isCrosshair: !0, chartX: g && g.chartX, chartY: g && g.chartY, point: m }), G = this.getPlotLinePath(G) || null;
  10413. }
  10414. if (!M(G)) {
  10415. this.hideCrosshair();
  10416. return;
  10417. }
  10418. Y = this.categories && !this.isRadial, k || (this.cross = k = V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (Y ? "category " : "thin ") + (L.className || "")).attr({ zIndex: A(L.zIndex, 2) }).add(), V.styledMode || (k.attr({ stroke: L.color || (Y ? I.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": A(L.width, 1) }).css({ "pointer-events": "none" }), L.dashStyle && k.attr({ dashstyle: L.dashStyle }))), k.show().attr({ d: G }), Y && !L.width && k.attr({ "stroke-width": this.transA }), this.cross.e = g;
  10419. } else
  10420. this.hideCrosshair();
  10421. c(this, "afterDrawCrosshair", { e: g, point: m });
  10422. }, X.prototype.hideCrosshair = function() {
  10423. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  10424. }, X.prototype.hasVerticalPanning = function() {
  10425. var g = this.chart.options.chart.panning;
  10426. return !!(g && g.enabled && /y/.test(g.type));
  10427. }, X.prototype.validatePositiveValue = function(g) {
  10428. return h(g) && 0 < g;
  10429. }, X.prototype.update = function(g, m) {
  10430. var L = this.chart;
  10431. g = t(this.userOptions, g), this.destroy(!0), this.init(L, g), L.isDirtyBox = !0, A(m, !0) && L.redraw();
  10432. }, X.prototype.remove = function(g) {
  10433. for (var m = this.chart, L = this.coll, Y = this.series, V = Y.length; V--; )
  10434. Y[V] && Y[V].remove(!1);
  10435. w(m.axes, this), w(m[L], this), m[L].forEach(function(Q, k) {
  10436. Q.options.index = Q.userOptions.index = k;
  10437. }), this.destroy(), m.isDirtyBox = !0, A(g, !0) && m.redraw();
  10438. }, X.prototype.setTitle = function(g, m) {
  10439. this.update({ title: g }, m);
  10440. }, X.prototype.setCategories = function(g, m) {
  10441. this.update(
  10442. { categories: g },
  10443. m
  10444. );
  10445. }, X.defaultOptions = j.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  10446. }(), y;
  10447. }), T(l, "Core/Axis/DateTimeAxis.js", [l["Core/Utilities.js"]], function(y) {
  10448. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.timeUnits, U;
  10449. return function(F) {
  10450. function R() {
  10451. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  10452. }
  10453. function N(u) {
  10454. u.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new x(this));
  10455. }
  10456. var b = [];
  10457. F.compose = function(u) {
  10458. return b.indexOf(u) === -1 && (b.push(u), u.keepProps.push("dateTime"), u.prototype.getTimeTicks = R, j(u, "init", N)), u;
  10459. };
  10460. var x = function() {
  10461. function u(f) {
  10462. this.axis = f;
  10463. }
  10464. return u.prototype.normalizeTimeTickInterval = function(f, E) {
  10465. var O = E || [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2]], ["week", [1, 2]], ["month", [1, 2, 3, 4, 6]], ["year", null]];
  10466. E = O[O.length - 1];
  10467. var B = H[E[0]], M = E[1], S;
  10468. for (S = 0; S < O.length && (E = O[S], B = H[E[0]], M = E[1], !(O[S + 1] && f <= (B * M[M.length - 1] + H[O[S + 1][0]]) / 2)); S++)
  10469. ;
  10470. return B === H.year && f < 5 * B && (M = [1, 2, 5]), f = Z(f / B, M, E[0] === "year" ? Math.max(I(f / B), 1) : 1), { unitRange: B, count: f, unitName: E[0] };
  10471. }, u.prototype.getXDateFormat = function(f, E) {
  10472. var O = this.axis;
  10473. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, f, O.options.startOfWeek, E) || E.year : E.day;
  10474. }, u;
  10475. }();
  10476. F.Additions = x;
  10477. }(U || (U = {})), U;
  10478. }), T(l, "Core/Axis/LogarithmicAxis.js", [l["Core/Utilities.js"]], function(y) {
  10479. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.pick, U;
  10480. return function(F) {
  10481. function R(u) {
  10482. var f = this.logarithmic;
  10483. u.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : f || (this.logarithmic = new x(this));
  10484. }
  10485. function N() {
  10486. var u = this.logarithmic;
  10487. u && (this.lin2val = function(f) {
  10488. return u.lin2log(f);
  10489. }, this.val2lin = function(f) {
  10490. return u.log2lin(f);
  10491. });
  10492. }
  10493. var b = [];
  10494. F.compose = function(u) {
  10495. return b.indexOf(u) === -1 && (b.push(u), u.keepProps.push("logarithmic"), j(u, "init", R), j(u, "afterInit", N)), u;
  10496. };
  10497. var x = function() {
  10498. function u(f) {
  10499. this.axis = f;
  10500. }
  10501. return u.prototype.getLogTickPositions = function(f, E, O, B) {
  10502. var M = this.axis, S = M.len, w = M.options, v = [];
  10503. if (B || (this.minorAutoInterval = void 0), 0.5 <= f)
  10504. f = Math.round(f), v = M.getLinearTickPositions(f, E, O);
  10505. else if (0.08 <= f) {
  10506. var a = Math.floor(E), c, p = w = void 0;
  10507. for (S = 0.3 < f ? [1, 2, 4] : 0.15 < f ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; a < O + 1 && !p; a++) {
  10508. var i = S.length;
  10509. for (c = 0; c < i && !p; c++) {
  10510. var h = this.log2lin(this.lin2log(a) * S[c]);
  10511. h > E && (!B || w <= O) && typeof w < "u" && v.push(w), w > O && (p = !0), w = h;
  10512. }
  10513. }
  10514. } else
  10515. E = this.lin2log(E), O = this.lin2log(O), f = B ? M.getMinorTickInterval() : w.tickInterval, f = H(f === "auto" ? null : f, this.minorAutoInterval, w.tickPixelInterval / (B ? 5 : 1) * (O - E) / ((B ? S / M.tickPositions.length : S) || 1)), f = Z(f, void 0, I(f)), v = M.getLinearTickPositions(f, E, O).map(this.log2lin), B || (this.minorAutoInterval = f / 5);
  10516. return B || (M.tickInterval = f), v;
  10517. }, u.prototype.lin2log = function(f) {
  10518. return Math.pow(10, f);
  10519. }, u.prototype.log2lin = function(f) {
  10520. return Math.log(f) / Math.LN10;
  10521. }, u;
  10522. }();
  10523. F.Additions = x;
  10524. }(U || (U = {})), U;
  10525. }), T(l, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [l["Core/Utilities.js"]], function(y) {
  10526. var j = y.erase, I = y.extend, Z = y.isNumber, H;
  10527. return function(U) {
  10528. var F = [], R;
  10529. U.compose = function(b, x) {
  10530. return R || (R = b), F.indexOf(x) === -1 && (F.push(x), I(x.prototype, N.prototype)), x;
  10531. };
  10532. var N = function() {
  10533. function b() {
  10534. }
  10535. return b.prototype.getPlotBandPath = function(x, u, f) {
  10536. f === void 0 && (f = this.options);
  10537. var E = this.getPlotLinePath({ value: u, force: !0, acrossPanes: f.acrossPanes }), O = [], B = this.horiz;
  10538. if (u = !Z(this.min) || !Z(this.max) || x < this.min && u < this.min || x > this.max && u > this.max, x = this.getPlotLinePath({ value: x, force: !0, acrossPanes: f.acrossPanes }), f = 1, x && E) {
  10539. if (u) {
  10540. var M = x.toString() === E.toString();
  10541. f = 0;
  10542. }
  10543. for (u = 0; u < x.length; u += 2) {
  10544. var S = x[u], w = x[u + 1], v = E[u], a = E[u + 1];
  10545. S[0] !== "M" && S[0] !== "L" || w[0] !== "M" && w[0] !== "L" || v[0] !== "M" && v[0] !== "L" || a[0] !== "M" && a[0] !== "L" || (B && v[1] === S[1] ? (v[1] += f, a[1] += f) : B || v[2] !== S[2] || (v[2] += f, a[2] += f), O.push(["M", S[1], S[2]], ["L", w[1], w[2]], ["L", a[1], a[2]], ["L", v[1], v[2]], ["Z"])), O.isFlat = M;
  10546. }
  10547. }
  10548. return O;
  10549. }, b.prototype.addPlotBand = function(x) {
  10550. return this.addPlotBandOrLine(x, "plotBands");
  10551. }, b.prototype.addPlotLine = function(x) {
  10552. return this.addPlotBandOrLine(
  10553. x,
  10554. "plotLines"
  10555. );
  10556. }, b.prototype.addPlotBandOrLine = function(x, u) {
  10557. var f = this, E = this.userOptions, O = new R(this, x);
  10558. if (this.visible && (O = O.render()), O) {
  10559. if (this._addedPlotLB || (this._addedPlotLB = !0, (E.plotLines || []).concat(E.plotBands || []).forEach(function(M) {
  10560. f.addPlotBandOrLine(M);
  10561. })), u) {
  10562. var B = E[u] || [];
  10563. B.push(x), E[u] = B;
  10564. }
  10565. this.plotLinesAndBands.push(O);
  10566. }
  10567. return O;
  10568. }, b.prototype.removePlotBandOrLine = function(x) {
  10569. var u = this.plotLinesAndBands, f = this.options, E = this.userOptions;
  10570. if (u) {
  10571. for (var O = u.length; O--; )
  10572. u[O].id === x && u[O].destroy();
  10573. [f.plotLines || [], E.plotLines || [], f.plotBands || [], E.plotBands || []].forEach(function(B) {
  10574. for (O = B.length; O--; )
  10575. (B[O] || {}).id === x && j(B, B[O]);
  10576. });
  10577. }
  10578. }, b.prototype.removePlotBand = function(x) {
  10579. this.removePlotBandOrLine(x);
  10580. }, b.prototype.removePlotLine = function(x) {
  10581. this.removePlotBandOrLine(x);
  10582. }, b;
  10583. }();
  10584. }(H || (H = {})), H;
  10585. }), T(l, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [l["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], l["Core/Utilities.js"]], function(y, j) {
  10586. var I = j.arrayMax, Z = j.arrayMin, H = j.defined, U = j.destroyObjectProperties, F = j.erase, R = j.fireEvent, N = j.merge, b = j.objectEach, x = j.pick;
  10587. return j = function() {
  10588. function u(f, E) {
  10589. this.axis = f, E && (this.options = E, this.id = E.id);
  10590. }
  10591. return u.compose = function(f) {
  10592. return y.compose(u, f);
  10593. }, u.prototype.render = function() {
  10594. R(this, "render");
  10595. var f = this, E = f.axis, O = E.horiz, B = E.logarithmic, M = f.options, S = M.color, w = x(M.zIndex, 0), v = M.events, a = {}, c = E.chart.renderer, p = M.label, i = f.label, h = M.to, s = M.from, t = M.value, o = f.svgElem, n = [], A = H(s) && H(h);
  10596. n = H(t);
  10597. var _ = !o, D = { class: "highcharts-plot-" + (A ? "band " : "line ") + (M.className || "") }, W = A ? "bands" : "lines";
  10598. if (B && (s = B.log2lin(s), h = B.log2lin(h), t = B.log2lin(t)), E.chart.styledMode || (n ? (D.stroke = S || "#999999", D["stroke-width"] = x(M.width, 1), M.dashStyle && (D.dashstyle = M.dashStyle)) : A && (D.fill = S || "#e6ebf5", M.borderWidth && (D.stroke = M.borderColor, D["stroke-width"] = M.borderWidth))), a.zIndex = w, W += "-" + w, (B = E.plotLinesAndBandsGroups[W]) || (E.plotLinesAndBandsGroups[W] = B = c.g("plot-" + W).attr(a).add()), _ && (f.svgElem = o = c.path().attr(D).add(B)), n)
  10599. n = E.getPlotLinePath({
  10600. value: t,
  10601. lineWidth: o.strokeWidth(),
  10602. acrossPanes: M.acrossPanes
  10603. });
  10604. else if (A)
  10605. n = E.getPlotBandPath(s, h, M);
  10606. else
  10607. return;
  10608. return !f.eventsAdded && v && (b(v, function(P, X) {
  10609. o.on(X, function(g) {
  10610. v[X].apply(f, [g]);
  10611. });
  10612. }), f.eventsAdded = !0), (_ || !o.d) && n && n.length ? o.attr({ d: n }) : o && (n ? (o.show(!0), o.animate({ d: n })) : o.d && (o.hide(), i && (f.label = i = i.destroy()))), p && (H(p.text) || H(p.formatter)) && n && n.length && 0 < E.width && 0 < E.height && !n.isFlat ? (p = N({ align: O && A && "center", x: O ? !A && 4 : 10, verticalAlign: !O && A && "middle", y: O ? A ? 16 : 10 : A ? 6 : -4, rotation: O && !A && 90 }, p), this.renderLabel(
  10613. p,
  10614. n,
  10615. A,
  10616. w
  10617. )) : i && i.hide(), f;
  10618. }, u.prototype.renderLabel = function(f, E, O, B) {
  10619. var M = this.axis, S = M.chart.renderer, w = this.label;
  10620. w || (this.label = w = S.text(this.getLabelText(f), 0, 0, f.useHTML).attr({ align: f.textAlign || f.align, rotation: f.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (f.className || ""), zIndex: B }).add(), M.chart.styledMode || w.css(N({ textOverflow: "ellipsis" }, f.style))), B = E.xBounds || [E[0][1], E[1][1], O ? E[2][1] : E[0][1]], E = E.yBounds || [E[0][2], E[1][2], O ? E[2][2] : E[0][2]], O = Z(B), S = Z(E), w.align(
  10621. f,
  10622. !1,
  10623. { x: O, y: S, width: I(B) - O, height: I(E) - S }
  10624. ), w.alignValue && w.alignValue !== "left" || w.css({ width: (w.rotation === 90 ? M.height - (w.alignAttr.y - M.top) : M.width - (w.alignAttr.x - M.left)) + "px" }), w.show(!0);
  10625. }, u.prototype.getLabelText = function(f) {
  10626. return H(f.formatter) ? f.formatter.call(this) : f.text;
  10627. }, u.prototype.destroy = function() {
  10628. F(this.axis.plotLinesAndBands, this), delete this.axis, U(this);
  10629. }, u;
  10630. }(), j;
  10631. }), T(l, "Core/Tooltip.js", [
  10632. l["Core/FormatUtilities.js"],
  10633. l["Core/Globals.js"],
  10634. l["Core/Renderer/RendererUtilities.js"],
  10635. l["Core/Renderer/RendererRegistry.js"],
  10636. l["Core/Utilities.js"]
  10637. ], function(y, j, I, Z, H) {
  10638. var U = y.format, F = j.doc, R = I.distribute, N = H.addEvent, b = H.clamp, x = H.css, u = H.defined, f = H.discardElement, E = H.extend, O = H.fireEvent, B = H.isArray, M = H.isNumber, S = H.isString, w = H.merge, v = H.pick, a = H.splat, c = H.syncTimeout;
  10639. return y = function() {
  10640. function p(i, h) {
  10641. this.allowShared = !0, this.container = void 0, this.crosshairs = [], this.distance = 0, this.isHidden = !0, this.isSticky = !1, this.now = {}, this.options = {}, this.outside = !1, this.chart = i, this.init(i, h);
  10642. }
  10643. return p.prototype.applyFilter = function() {
  10644. var i = this.chart;
  10645. i.renderer.definition({ tagName: "filter", attributes: { id: "drop-shadow-" + i.index, opacity: 0.5 }, children: [{ tagName: "feGaussianBlur", attributes: { in: "SourceAlpha", stdDeviation: 1 } }, { tagName: "feOffset", attributes: { dx: 1, dy: 1 } }, { tagName: "feComponentTransfer", children: [{ tagName: "feFuncA", attributes: { type: "linear", slope: 0.3 } }] }, { tagName: "feMerge", children: [{ tagName: "feMergeNode" }, { tagName: "feMergeNode", attributes: { in: "SourceGraphic" } }] }] });
  10646. }, p.prototype.bodyFormatter = function(i) {
  10647. return i.map(function(h) {
  10648. var s = h.series.tooltipOptions;
  10649. return (s[(h.point.formatPrefix || "point") + "Formatter"] || h.point.tooltipFormatter).call(h.point, s[(h.point.formatPrefix || "point") + "Format"] || "");
  10650. });
  10651. }, p.prototype.cleanSplit = function(i) {
  10652. this.chart.series.forEach(function(h) {
  10653. var s = h && h.tt;
  10654. s && (!s.isActive || i ? h.tt = s.destroy() : s.isActive = !1);
  10655. });
  10656. }, p.prototype.defaultFormatter = function(i) {
  10657. var h = this.points || a(this), s = [i.tooltipFooterHeaderFormatter(h[0])];
  10658. return s = s.concat(i.bodyFormatter(h)), s.push(i.tooltipFooterHeaderFormatter(
  10659. h[0],
  10660. !0
  10661. )), s;
  10662. }, p.prototype.destroy = function() {
  10663. this.label && (this.label = this.label.destroy()), this.split && this.tt && (this.cleanSplit(!0), this.tt = this.tt.destroy()), this.renderer && (this.renderer = this.renderer.destroy(), f(this.container)), H.clearTimeout(this.hideTimer), H.clearTimeout(this.tooltipTimeout);
  10664. }, p.prototype.getAnchor = function(i, h) {
  10665. var s = this.chart, t = s.pointer, o = s.inverted, n = s.plotTop, A = s.plotLeft, _, D, W = 0, P = 0;
  10666. return i = a(i), this.followPointer && h ? (typeof h.chartX > "u" && (h = t.normalize(h)), t = [h.chartX - A, h.chartY - n]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  10667. _ = X.series.yAxis, D = X.series.xAxis, W += X.plotX || 0, P += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, D && _ && (o ? (W += n + s.plotHeight - D.len - D.pos, P += A + s.plotWidth - _.len - _.pos) : (W += D.pos - A, P += _.pos - n));
  10668. }), W /= i.length, P /= i.length, t = [o ? s.plotWidth - P : W, o ? s.plotHeight - W : P], this.shared && 1 < i.length && h && (o ? t[0] = h.chartX - A : t[1] = h.chartY - n)), t.map(Math.round);
  10669. }, p.prototype.getLabel = function() {
  10670. var i = this, h = this.chart.styledMode, s = this.options, t = this.split && this.allowShared, o = "tooltip" + (u(s.className) ? " " + s.className : ""), n = s.style.pointerEvents || (!this.followPointer && s.stickOnContact ? "auto" : "none"), A = function() {
  10671. i.inContact = !0;
  10672. }, _ = function(Y) {
  10673. var V = i.chart.hoverSeries;
  10674. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(Y.relatedTarget, "highcharts-tooltip"), !i.inContact && V && V.onMouseOut && V.onMouseOut();
  10675. }, D, W = this.chart.renderer;
  10676. if (i.label) {
  10677. var P = !i.label.hasClass("highcharts-label");
  10678. (t && !P || !t && P) && i.destroy();
  10679. }
  10680. if (!this.label) {
  10681. if (this.outside) {
  10682. P = this.chart.options.chart.style;
  10683. var X = Z.getRendererType();
  10684. this.container = D = j.doc.createElement("div"), D.className = "highcharts-tooltip-container", x(D, { position: "absolute", top: "1px", pointerEvents: n, zIndex: Math.max(this.options.style.zIndex || 0, (P && P.zIndex || 0) + 3) }), N(D, "mouseenter", A), N(D, "mouseleave", _), j.doc.body.appendChild(D), this.renderer = W = new X(D, 0, 0, P, void 0, void 0, W.styledMode);
  10685. }
  10686. if (t ? this.label = W.g(o) : (this.label = W.label("", 0, 0, s.shape, void 0, void 0, s.useHTML, void 0, o).attr({ padding: s.padding, r: s.borderRadius }), h || this.label.attr({ fill: s.backgroundColor, "stroke-width": s.borderWidth }).css(s.style).css({ pointerEvents: n }).shadow(s.shadow)), h && s.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  10687. var g = this.label, m = g.xSetter, L = g.ySetter;
  10688. g.xSetter = function(Y) {
  10689. m.call(g, i.distance), D.style.left = Y + "px";
  10690. }, g.ySetter = function(Y) {
  10691. L.call(g, i.distance), D.style.top = Y + "px";
  10692. };
  10693. }
  10694. this.label.on("mouseenter", A).on("mouseleave", _).attr({ zIndex: 8 }).add();
  10695. }
  10696. return this.label;
  10697. }, p.prototype.getPosition = function(i, h, s) {
  10698. var t = this.chart, o = this.distance, n = {}, A = t.inverted && s.h || 0, _ = this.outside, D = _ ? F.documentElement.clientWidth - 2 * o : t.chartWidth, W = _ ? Math.max(F.body.scrollHeight, F.documentElement.scrollHeight, F.body.offsetHeight, F.documentElement.offsetHeight, F.documentElement.clientHeight) : t.chartHeight, P = t.pointer.getChartPosition(), X = function(z) {
  10699. var $ = z === "x";
  10700. return [z, $ ? D : W, $ ? i : h].concat(_ ? [$ ? i * P.scaleX : h * P.scaleY, $ ? P.left - o + (s.plotX + t.plotLeft) * P.scaleX : P.top - o + (s.plotY + t.plotTop) * P.scaleY, 0, $ ? D : W] : [$ ? i : h, $ ? s.plotX + t.plotLeft : s.plotY + t.plotTop, $ ? t.plotLeft : t.plotTop, $ ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  10701. }, g = X("y"), m = X("x"), L;
  10702. X = !!s.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  10703. var Y = !this.followPointer && v(s.ttBelow, !t.inverted === X), V = function(z, $, q, it, et, nt, rt) {
  10704. var ct = _ ? z === "y" ? o * P.scaleY : o * P.scaleX : o, gt = (q - it) / 2, dt = it < et - o, ht = et + o + it < $, at = et - ct - q + gt;
  10705. if (et = et + ct - gt, Y && ht)
  10706. n[z] = et;
  10707. else if (!Y && dt)
  10708. n[z] = at;
  10709. else if (dt)
  10710. n[z] = Math.min(rt - it, 0 > at - A ? at : at - A);
  10711. else if (ht)
  10712. n[z] = Math.max(nt, et + A + q > $ ? et : et + A);
  10713. else
  10714. return !1;
  10715. }, Q = function(z, $, q, it, et) {
  10716. var nt;
  10717. return et < o || et > $ - o ? nt = !1 : n[z] = et < q / 2 ? 1 : et > $ - it / 2 ? $ - it - 2 : et - q / 2, nt;
  10718. }, k = function(z) {
  10719. var $ = g;
  10720. g = m, m = $, L = z;
  10721. }, G = function() {
  10722. V.apply(0, g) !== !1 ? Q.apply(0, m) !== !1 || L || (k(!0), G()) : L ? n.x = n.y = 0 : (k(!0), G());
  10723. };
  10724. return (t.inverted || 1 < this.len) && k(), G(), n;
  10725. }, p.prototype.hide = function(i) {
  10726. var h = this;
  10727. H.clearTimeout(this.hideTimer), i = v(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  10728. h.getLabel().fadeOut(i && void 0), h.isHidden = !0;
  10729. }, i));
  10730. }, p.prototype.init = function(i, h) {
  10731. this.chart = i, this.options = h, this.crosshairs = [], this.now = { x: 0, y: 0 }, this.isHidden = !0, this.split = h.split && !i.inverted && !i.polar, this.shared = h.shared || this.split, this.outside = v(h.outside, !(!i.scrollablePixelsX && !i.scrollablePixelsY));
  10732. }, p.prototype.shouldStickOnContact = function() {
  10733. return !(this.followPointer || !this.options.stickOnContact);
  10734. }, p.prototype.isStickyOnContact = function() {
  10735. return !(!this.shouldStickOnContact() || !this.inContact);
  10736. }, p.prototype.move = function(i, h, s, t) {
  10737. var o = this, n = o.now, A = o.options.animation !== !1 && !o.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(h - n.y)), _ = o.followPointer || 1 < o.len;
  10738. E(n, { x: A ? (2 * n.x + i) / 3 : i, y: A ? (n.y + h) / 2 : h, anchorX: _ ? void 0 : A ? (2 * n.anchorX + s) / 3 : s, anchorY: _ ? void 0 : A ? (n.anchorY + t) / 2 : t }), o.getLabel().attr(n), o.drawTracker(), A && (H.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  10739. o && o.move(i, h, s, t);
  10740. }, 32));
  10741. }, p.prototype.refresh = function(i, h) {
  10742. var s = this.chart, t = this.options, o = a(i), n = o[0], A = [], _ = t.formatter || this.defaultFormatter, D = this.shared, W = s.styledMode, P = {};
  10743. if (t.enabled) {
  10744. H.clearTimeout(this.hideTimer), this.allowShared = !(!B(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && n.series.tooltipOptions.followPointer, i = this.getAnchor(i, h);
  10745. var X = i[0], g = i[1];
  10746. if (D && this.allowShared ? (s.pointer.applyInactiveState(o), o.forEach(function(Y) {
  10747. Y.setState("hover"), A.push(Y.getLabelConfig());
  10748. }), P = { x: n.category, y: n.y }, P.points = A) : P = n.getLabelConfig(), this.len = A.length, _ = _.call(P, this), D = n.series, this.distance = v(
  10749. D.tooltipOptions.distance,
  10750. 16
  10751. ), _ === !1)
  10752. this.hide();
  10753. else {
  10754. if (this.split && this.allowShared)
  10755. this.renderSplit(_, o);
  10756. else {
  10757. var m = X, L = g;
  10758. if (h && s.pointer.isDirectTouch && (m = h.chartX - s.plotLeft, L = h.chartY - s.plotTop), s.polar || D.options.clip === !1 || o.some(function(Y) {
  10759. return Y.series.shouldShowTooltip(m, L);
  10760. }))
  10761. h = this.getLabel(), t.style.width && !W || h.css({ width: this.chart.spacingBox.width + "px" }), h.attr({ text: _ && _.join ? _.join("") : _ }), h.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + v(n.colorIndex, D.colorIndex)), W || h.attr({ stroke: t.borderColor || n.color || D.color || "#666666" }), this.updatePosition({ plotX: X, plotY: g, negative: n.negative, ttBelow: n.ttBelow, h: i[2] || 0 });
  10762. else {
  10763. this.hide();
  10764. return;
  10765. }
  10766. }
  10767. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  10768. }
  10769. O(this, "refresh");
  10770. }
  10771. }, p.prototype.renderSplit = function(i, h) {
  10772. function s(ht, at, J, tt, st) {
  10773. return st === void 0 && (st = !0), J ? (at = it ? 0 : ct, ht = b(ht - tt / 2, z.left, z.right - tt - (t.outside ? et : 0))) : (at -= nt, ht = st ? ht - tt - Q : ht + Q, ht = b(ht, st ? ht : z.left, z.right)), { x: ht, y: at };
  10774. }
  10775. var t = this, o = t.chart, n = t.chart, A = n.chartWidth, _ = n.chartHeight, D = n.plotHeight, W = n.plotLeft, P = n.plotTop, X = n.pointer, g = n.scrollablePixelsY;
  10776. g = g === void 0 ? 0 : g;
  10777. var m = n.scrollablePixelsX, L = n.scrollingContainer;
  10778. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  10779. var Y = L.scrollLeft;
  10780. L = L.scrollTop;
  10781. var V = n.styledMode, Q = t.distance, k = t.options, G = t.options.positioner, z = t.outside && typeof m != "number" ? F.documentElement.getBoundingClientRect() : { left: Y, right: Y + A, top: L, bottom: L + _ }, $ = t.getLabel(), q = this.renderer || o.renderer, it = !(!o.xAxis[0] || !o.xAxis[0].opposite);
  10782. o = X.getChartPosition();
  10783. var et = o.left;
  10784. o = o.top;
  10785. var nt = P + L, rt = 0, ct = D - g;
  10786. S(i) && (i = [!1, i]), i = i.slice(0, h.length + 1).reduce(function(ht, at, J) {
  10787. if (at !== !1 && at !== "") {
  10788. J = h[J - 1] || { isHeader: !0, plotX: h[0].plotX, plotY: D, series: {} };
  10789. var tt = J.isHeader, st = tt ? t : J.series;
  10790. at = at.toString();
  10791. var lt = st.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + v(J.colorIndex, yt.colorIndex, "none");
  10792. if (lt || (lt = { padding: k.padding, r: k.borderRadius }, V || (lt.fill = k.backgroundColor, lt["stroke-width"] = k.borderWidth), lt = q.label("", 0, 0, k[pt ? "headerShape" : "shape"], void 0, void 0, k.useHTML).addClass((pt ? "highcharts-tooltip-header " : "") + "highcharts-tooltip-box " + vt).attr(lt).add($)), lt.isActive = !0, lt.attr({ text: at }), V || lt.css(k.style).shadow(k.shadow).attr({ stroke: k.borderColor || J.color || yt.color || "#333333" }), st = st.tt = lt, pt = st.getBBox(), at = pt.width + st.strokeWidth(), tt && (rt = pt.height, ct += rt, it && (nt -= rt)), yt = J.plotX, yt = yt === void 0 ? 0 : yt, vt = J.plotY, vt = vt === void 0 ? 0 : vt, lt = J.series, J.isHeader) {
  10793. yt = W + yt;
  10794. var Mt = P + D / 2;
  10795. } else {
  10796. var Pt = lt.xAxis, At = lt.yAxis;
  10797. yt = Pt.pos + b(yt, -Q, Pt.len + Q), lt.shouldShowTooltip(0, At.pos - P + vt, { ignoreX: !0 }) && (Mt = At.pos + vt);
  10798. }
  10799. yt = b(
  10800. yt,
  10801. z.left - Q,
  10802. z.right + Q
  10803. ), typeof Mt == "number" ? (pt = pt.height + 1, vt = G ? G.call(t, at, pt, J) : s(yt, Mt, tt, at), ht.push({ align: G ? 0 : void 0, anchorX: yt, anchorY: Mt, boxWidth: at, point: J, rank: v(vt.rank, tt ? 1 : 0), size: pt, target: vt.y, tt: st, x: vt.x })) : st.isActive = !1;
  10804. }
  10805. return ht;
  10806. }, []), !G && i.some(function(ht) {
  10807. var at = (t.outside ? et : 0) + ht.anchorX;
  10808. return at < z.left && at + ht.boxWidth < z.right ? !0 : at < et - z.left + ht.boxWidth && z.right - at > at;
  10809. }) && (i = i.map(function(ht) {
  10810. var at = s(ht.anchorX, ht.anchorY, ht.point.isHeader, ht.boxWidth, !1);
  10811. return E(ht, { target: at.y, x: at.x });
  10812. })), t.cleanSplit(), R(i, ct);
  10813. var gt = et, dt = et;
  10814. i.forEach(function(ht) {
  10815. var at = ht.x, J = ht.boxWidth;
  10816. ht = ht.isHeader, ht || (t.outside && et + at < gt && (gt = et + at), !ht && t.outside && gt + J > dt && (dt = et + at));
  10817. }), i.forEach(function(ht) {
  10818. var at = ht.x, J = ht.anchorX, tt = ht.pos, st = ht.point.isHeader;
  10819. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: ht.anchorY }, t.outside && at < J) {
  10820. var lt = et - gt;
  10821. 0 < lt && (st || (tt.x = at + lt, tt.anchorX = J + lt), st && (tt.x = (dt - gt) / 2, tt.anchorX = J + lt));
  10822. }
  10823. ht.tt.attr(tt);
  10824. }), i = t.container, g = t.renderer, t.outside && i && g && (n = $.getBBox(), g.setSize(n.width + n.x, n.height + n.y, !1), i.style.left = gt + "px", i.style.top = o + "px");
  10825. }, p.prototype.drawTracker = function() {
  10826. if (this.followPointer || !this.options.stickOnContact)
  10827. this.tracker && this.tracker.destroy();
  10828. else {
  10829. var i = this.chart, h = this.label, s = this.shared ? i.hoverPoints : i.hoverPoint;
  10830. if (h && s) {
  10831. var t = { x: 0, y: 0, width: 0, height: 0 };
  10832. s = this.getAnchor(s);
  10833. var o = h.getBBox();
  10834. s[0] += i.plotLeft - h.translateX, s[1] += i.plotTop - h.translateY, t.x = Math.min(0, s[0]), t.y = Math.min(0, s[1]), t.width = 0 > s[0] ? Math.max(Math.abs(s[0]), o.width - s[0]) : Math.max(
  10835. Math.abs(s[0]),
  10836. o.width
  10837. ), t.height = 0 > s[1] ? Math.max(Math.abs(s[1]), o.height - Math.abs(s[1])) : Math.max(Math.abs(s[1]), o.height), this.tracker ? this.tracker.attr(t) : (this.tracker = h.renderer.rect(t).addClass("highcharts-tracker").add(h), i.styledMode || this.tracker.attr({ fill: "rgba(0,0,0,0)" }));
  10838. }
  10839. }
  10840. }, p.prototype.styledModeFormat = function(i) {
  10841. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  10842. }, p.prototype.tooltipFooterHeaderFormatter = function(i, h) {
  10843. var s = i.series, t = s.tooltipOptions, o = s.xAxis, n = o && o.dateTime;
  10844. o = { isFooter: h, labelConfig: i };
  10845. var A = t.xDateFormat, _ = t[h ? "footerFormat" : "headerFormat"];
  10846. return O(this, "headerFormatter", o, function(D) {
  10847. n && !A && M(i.key) && (A = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && A && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(W) {
  10848. _ = _.replace("{point." + W + "}", "{point." + W + ":" + A + "}");
  10849. }), s.chart.styledMode && (_ = this.styledModeFormat(_)), D.text = U(_, { point: i, series: s }, this.chart);
  10850. }), o.text;
  10851. }, p.prototype.update = function(i) {
  10852. this.destroy(), w(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, w(!0, this.options, i));
  10853. }, p.prototype.updatePosition = function(i) {
  10854. var h = this.chart, s = this.options, t = h.pointer, o = this.getLabel();
  10855. t = t.getChartPosition();
  10856. var n = (s.positioner || this.getPosition).call(this, o.width, o.height, i), A = i.plotX + h.plotLeft;
  10857. i = i.plotY + h.plotTop, this.outside && (s = s.borderWidth + 2 * this.distance, this.renderer.setSize(o.width + s, o.height + s, !1), (t.scaleX !== 1 || t.scaleY !== 1) && (x(this.container, { transform: "scale(" + t.scaleX + ", " + t.scaleY + ")" }), A *= t.scaleX, i *= t.scaleY), A += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), A, i);
  10858. }, p;
  10859. }(), y;
  10860. }), T(l, "Core/Series/Point.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Animation/AnimationUtilities.js"], l["Core/DefaultOptions.js"], l["Core/FormatUtilities.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  10861. var U = j.animObject, F = I.defaultOptions, R = Z.format, N = H.addEvent, b = H.defined, x = H.erase, u = H.extend, f = H.fireEvent, E = H.getNestedProperty, O = H.isArray, B = H.isFunction, M = H.isNumber, S = H.isObject, w = H.merge, v = H.objectEach, a = H.pick, c = H.syncTimeout, p = H.removeEvent, i = H.uniqueKey;
  10862. return j = function() {
  10863. function h() {
  10864. this.colorIndex = this.category = void 0, this.formatPrefix = "point", this.id = void 0, this.isNull = !1, this.percentage = this.options = this.name = void 0, this.selected = !1, this.total = this.series = void 0, this.visible = !0, this.x = void 0;
  10865. }
  10866. return h.prototype.animateBeforeDestroy = function() {
  10867. var s = this, t = { x: s.startXPos, opacity: 0 }, o = s.getGraphicalProps();
  10868. o.singular.forEach(function(n) {
  10869. s[n] = s[n].animate(n === "dataLabel" ? { x: s[n].startXPos, y: s[n].startYPos, opacity: 0 } : t);
  10870. }), o.plural.forEach(function(n) {
  10871. s[n].forEach(function(A) {
  10872. A.element && A.animate(u({ x: s.startXPos }, A.startYPos ? { x: A.startXPos, y: A.startYPos } : {}));
  10873. });
  10874. });
  10875. }, h.prototype.applyOptions = function(s, t) {
  10876. var o = this.series, n = o.options.pointValKey || o.pointValKey;
  10877. return s = h.prototype.optionsToObject.call(this, s), u(this, s), this.options = this.options ? u(this.options, s) : s, s.group && delete this.group, s.dataLabels && delete this.dataLabels, n && (this.y = h.prototype.getNestedProperty.call(
  10878. this,
  10879. n
  10880. )), this.formatPrefix = (this.isNull = a(this.isValid && !this.isValid(), this.x === null || !M(this.y))) ? "null" : "point", this.selected && (this.state = "select"), "name" in this && typeof t > "u" && o.xAxis && o.xAxis.hasNames && (this.x = o.xAxis.nameToX(this)), typeof this.x > "u" && o ? this.x = typeof t > "u" ? o.autoIncrement() : t : M(s.x) && o.options.relativeXValue && (this.x = o.autoIncrement(s.x)), this;
  10881. }, h.prototype.destroy = function() {
  10882. function s() {
  10883. (t.graphic || t.dataLabel || t.dataLabels) && (p(t), t.destroyElements());
  10884. for (D in t)
  10885. t[D] = null;
  10886. }
  10887. var t = this, o = t.series, n = o.chart;
  10888. o = o.options.dataSorting;
  10889. var A = n.hoverPoints, _ = U(t.series.chart.renderer.globalAnimation), D;
  10890. t.legendItem && n.legend.destroyItem(t), A && (t.setState(), x(A, t), A.length || (n.hoverPoints = null)), t === n.hoverPoint && t.onMouseOut(), o && o.enabled ? (this.animateBeforeDestroy(), c(s, _.duration)) : s(), n.pointCount--;
  10891. }, h.prototype.destroyElements = function(s) {
  10892. var t = this;
  10893. s = t.getGraphicalProps(s), s.singular.forEach(function(o) {
  10894. t[o] = t[o].destroy();
  10895. }), s.plural.forEach(function(o) {
  10896. t[o].forEach(function(n) {
  10897. n.element && n.destroy();
  10898. }), delete t[o];
  10899. });
  10900. }, h.prototype.firePointEvent = function(s, t, o) {
  10901. var n = this, A = this.series.options;
  10902. (A.point.events[s] || n.options && n.options.events && n.options.events[s]) && n.importEvents(), s === "click" && A.allowPointSelect && (o = function(_) {
  10903. n.select && n.select(null, _.ctrlKey || _.metaKey || _.shiftKey);
  10904. }), f(n, s, t, o);
  10905. }, h.prototype.getClassName = function() {
  10906. return "highcharts-point" + (this.selected ? " highcharts-point-select" : "") + (this.negative ? " highcharts-negative" : "") + (this.isNull ? " highcharts-null-point" : "") + (typeof this.colorIndex < "u" ? " highcharts-color-" + this.colorIndex : "") + (this.options.className ? " " + this.options.className : "") + (this.zone && this.zone.className ? " " + this.zone.className.replace("highcharts-negative", "") : "");
  10907. }, h.prototype.getGraphicalProps = function(s) {
  10908. var t = this, o = [], n = { singular: [], plural: [] }, A;
  10909. for (s = s || { graphic: 1, dataLabel: 1 }, s.graphic && o.push("graphic", "upperGraphic", "shadowGroup"), s.dataLabel && o.push("dataLabel", "dataLabelUpper", "connector"), A = o.length; A--; ) {
  10910. var _ = o[A];
  10911. t[_] && n.singular.push(_);
  10912. }
  10913. return ["dataLabel", "connector"].forEach(function(D) {
  10914. var W = D + "s";
  10915. s[D] && t[W] && n.plural.push(W);
  10916. }), n;
  10917. }, h.prototype.getLabelConfig = function() {
  10918. return { x: this.category, y: this.y, color: this.color, colorIndex: this.colorIndex, key: this.name || this.category, series: this.series, point: this, percentage: this.percentage, total: this.total || this.stackTotal };
  10919. }, h.prototype.getNestedProperty = function(s) {
  10920. if (s)
  10921. return s.indexOf("custom.") === 0 ? E(s, this.options) : this[s];
  10922. }, h.prototype.getZone = function() {
  10923. var s = this.series, t = s.zones;
  10924. s = s.zoneAxis || "y";
  10925. var o, n = 0;
  10926. for (o = t[n]; this[s] >= o.value; )
  10927. o = t[++n];
  10928. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = o && o.color && !this.options.color ? o.color : this.nonZonedColor, o;
  10929. }, h.prototype.hasNewShapeType = function() {
  10930. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  10931. }, h.prototype.init = function(s, t, o) {
  10932. return this.series = s, this.applyOptions(t, o), this.id = b(this.id) ? this.id : i(), this.resolveColor(), s.chart.pointCount++, f(this, "afterInit"), this;
  10933. }, h.prototype.optionsToObject = function(s) {
  10934. var t = this.series, o = t.options.keys, n = o || t.pointArrayMap || ["y"], A = n.length, _ = {}, D = 0, W = 0;
  10935. if (M(s) || s === null)
  10936. _[n[0]] = s;
  10937. else if (O(s))
  10938. for (!o && s.length > A && (t = typeof s[0], t === "string" ? _.name = s[0] : t === "number" && (_.x = s[0]), D++); W < A; )
  10939. o && typeof s[D] > "u" || (0 < n[W].indexOf(".") ? h.prototype.setNestedProperty(_, s[D], n[W]) : _[n[W]] = s[D]), D++, W++;
  10940. else
  10941. typeof s == "object" && (_ = s, s.dataLabels && (t._hasPointLabels = !0), s.marker && (t._hasPointMarkers = !0));
  10942. return _;
  10943. }, h.prototype.resolveColor = function() {
  10944. var s = this.series, t = s.chart.styledMode, o = s.chart.options.chart.colorCount;
  10945. if (delete this.nonZonedColor, s.options.colorByPoint) {
  10946. if (!t) {
  10947. o = s.options.colors || s.chart.options.colors;
  10948. var n = o[s.colorCounter];
  10949. o = o.length;
  10950. }
  10951. t = s.colorCounter, s.colorCounter++, s.colorCounter === o && (s.colorCounter = 0);
  10952. } else
  10953. t || (n = s.color), t = s.colorIndex;
  10954. this.colorIndex = a(this.options.colorIndex, t), this.color = a(this.options.color, n);
  10955. }, h.prototype.setNestedProperty = function(s, t, o) {
  10956. return o.split(".").reduce(function(n, A, _, D) {
  10957. return n[A] = D.length - 1 === _ ? t : S(n[A], !0) ? n[A] : {}, n[A];
  10958. }, s), s;
  10959. }, h.prototype.tooltipFormatter = function(s) {
  10960. var t = this.series, o = t.tooltipOptions, n = a(o.valueDecimals, ""), A = o.valuePrefix || "", _ = o.valueSuffix || "";
  10961. return t.chart.styledMode && (s = t.chart.tooltip.styledModeFormat(s)), (t.pointArrayMap || ["y"]).forEach(function(D) {
  10962. D = "{point." + D, (A || _) && (s = s.replace(RegExp(D + "}", "g"), A + D + "}" + _)), s = s.replace(RegExp(D + "}", "g"), D + ":,." + n + "f}");
  10963. }), R(s, { point: this, series: this.series }, t.chart);
  10964. }, h.prototype.update = function(s, t, o, n) {
  10965. function A() {
  10966. _.applyOptions(s);
  10967. var m = W && _.hasDummyGraphic;
  10968. m = _.y === null ? !m : m, W && m && (_.graphic = W.destroy(), delete _.hasDummyGraphic), S(s, !0) && (W && W.element && s && s.marker && typeof s.marker.symbol < "u" && (_.graphic = W.destroy()), s && s.dataLabels && _.dataLabel && (_.dataLabel = _.dataLabel.destroy()), _.connector && (_.connector = _.connector.destroy())), g = _.index, D.updateParallelArrays(_, g), X.data[g] = S(X.data[g], !0) || S(s, !0) ? _.options : a(s, X.data[g]), D.isDirty = D.isDirtyData = !0, !D.fixedBox && D.hasCartesianSeries && (P.isDirtyBox = !0), X.legendType === "point" && (P.isDirtyLegend = !0), t && P.redraw(o);
  10969. }
  10970. var _ = this, D = _.series, W = _.graphic, P = D.chart, X = D.options, g;
  10971. t = a(t, !0), n === !1 ? A() : _.firePointEvent("update", { options: s }, A);
  10972. }, h.prototype.remove = function(s, t) {
  10973. this.series.removePoint(this.series.data.indexOf(this), s, t);
  10974. }, h.prototype.select = function(s, t) {
  10975. var o = this, n = o.series, A = n.chart;
  10976. this.selectedStaging = s = a(s, !o.selected), o.firePointEvent(s ? "select" : "unselect", { accumulate: t }, function() {
  10977. o.selected = o.options.selected = s, n.options.data[n.data.indexOf(o)] = o.options, o.setState(s && "select"), t || A.getSelectedPoints().forEach(function(_) {
  10978. var D = _.series;
  10979. _.selected && _ !== o && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(A.hoverPoints && D.options.inactiveOtherPoints ? "inactive" : ""), _.firePointEvent("unselect"));
  10980. });
  10981. }), delete this.selectedStaging;
  10982. }, h.prototype.onMouseOver = function(s) {
  10983. var t = this.series.chart, o = t.pointer;
  10984. s = s ? o.normalize(s) : o.getChartCoordinatesFromPoint(this, t.inverted), o.runPointActions(
  10985. s,
  10986. this
  10987. );
  10988. }, h.prototype.onMouseOut = function() {
  10989. var s = this.series.chart;
  10990. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (s.hoverPoints || []).forEach(function(t) {
  10991. t.setState();
  10992. }), s.hoverPoints = s.hoverPoint = null;
  10993. }, h.prototype.importEvents = function() {
  10994. if (!this.hasImportedEvents) {
  10995. var s = this, t = w(s.series.options.point, s.options).events;
  10996. s.events = t, v(t, function(o, n) {
  10997. B(o) && N(s, n, o);
  10998. }), this.hasImportedEvents = !0;
  10999. }
  11000. }, h.prototype.setState = function(s, t) {
  11001. var o = this.series, n = this.state, A = o.options.states[s || "normal"] || {}, _ = F.plotOptions[o.type].marker && o.options.marker, D = _ && _.enabled === !1, W = _ && _.states && _.states[s || "normal"] || {}, P = W.enabled === !1, X = this.marker || {}, g = o.chart, m = _ && o.markerAttribs, L = o.halo, Y, V = o.stateMarkerGraphic;
  11002. if (s = s || "", !(s === this.state && !t || this.selected && s !== "select" || A.enabled === !1 || s && (P || D && W.enabled === !1) || s && X.states && X.states[s] && X.states[s].enabled === !1)) {
  11003. if (this.state = s, m && (Y = o.markerAttribs(this, s)), this.graphic && !this.hasDummyGraphic) {
  11004. if (n && this.graphic.removeClass("highcharts-point-" + n), s && this.graphic.addClass("highcharts-point-" + s), !g.styledMode) {
  11005. var Q = o.pointAttribs(this, s), k = a(g.options.chart.animation, A.animation);
  11006. o.options.inactiveOtherPoints && M(Q.opacity) && ((this.dataLabels || []).forEach(function(G) {
  11007. G && G.animate({ opacity: Q.opacity }, k);
  11008. }), this.connector && this.connector.animate({ opacity: Q.opacity }, k)), this.graphic.animate(Q, k);
  11009. }
  11010. Y && this.graphic.animate(Y, a(g.options.chart.animation, W.animation, _.animation)), V && V.hide();
  11011. } else
  11012. s && W && (n = X.symbol || o.symbol, V && V.currentSymbol !== n && (V = V.destroy()), Y && (V ? V[t ? "animate" : "attr"]({ x: Y.x, y: Y.y }) : n && (o.stateMarkerGraphic = V = g.renderer.symbol(n, Y.x, Y.y, Y.width, Y.height).add(o.markerGroup), V.currentSymbol = n)), !g.styledMode && V && this.state !== "inactive" && V.attr(o.pointAttribs(this, s))), V && (V[s && this.isInside ? "show" : "hide"](), V.element.point = this, V.addClass(this.getClassName(), !0));
  11013. A = A.halo, Y = (V = this.graphic || V) && V.visibility || "inherit", A && A.size && V && Y !== "hidden" && !this.isCluster ? (L || (o.halo = L = g.renderer.path().add(V.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(A.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + a(this.colorIndex, o.colorIndex) + (this.className ? " " + this.className : ""), visibility: Y, zIndex: -1 }), L.point = this, g.styledMode || L.attr(u({ fill: this.color || o.color, "fill-opacity": A.opacity }, y.filterUserAttributes(A.attributes || {})))) : L && L.point && L.point.haloPath && L.animate({ d: L.point.haloPath(0) }, null, L.hide), f(this, "afterSetState", { state: s });
  11014. }
  11015. }, h.prototype.haloPath = function(s) {
  11016. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - s, this.plotY - s, 2 * s, 2 * s);
  11017. }, h;
  11018. }(), j;
  11019. }), T(l, "Core/Pointer.js", [l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Tooltip.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  11020. var H = y.parse, U = j.charts, F = j.noop, R = Z.addEvent, N = Z.attr, b = Z.css, x = Z.defined, u = Z.extend, f = Z.find, E = Z.fireEvent, O = Z.isNumber, B = Z.isObject, M = Z.objectEach, S = Z.offset, w = Z.pick, v = Z.splat;
  11021. return y = function() {
  11022. function a(c, p) {
  11023. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = p, this.init(c, p);
  11024. }
  11025. return a.prototype.applyInactiveState = function(c) {
  11026. var p = [], i;
  11027. (c || []).forEach(function(h) {
  11028. i = h.series, p.push(i), i.linkedParent && p.push(i.linkedParent), i.linkedSeries && (p = p.concat(i.linkedSeries)), i.navigatorSeries && p.push(i.navigatorSeries);
  11029. }), this.chart.series.forEach(function(h) {
  11030. p.indexOf(h) === -1 ? h.setState("inactive", !0) : h.options.inactiveOtherPoints && h.setAllPointsToState("inactive");
  11031. });
  11032. }, a.prototype.destroy = function() {
  11033. var c = this;
  11034. this.eventsToUnbind.forEach(function(p) {
  11035. return p();
  11036. }), this.eventsToUnbind = [], j.chartCount || (a.unbindDocumentMouseUp && (a.unbindDocumentMouseUp = a.unbindDocumentMouseUp()), a.unbindDocumentTouchEnd && (a.unbindDocumentTouchEnd = a.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), M(c, function(p, i) {
  11037. c[i] = void 0;
  11038. });
  11039. }, a.prototype.drag = function(c) {
  11040. var p = this.chart, i = p.options.chart, h = this.zoomHor, s = this.zoomVert, t = p.plotLeft, o = p.plotTop, n = p.plotWidth, A = p.plotHeight, _ = this.mouseDownX || 0, D = this.mouseDownY || 0, W = B(i.panning) ? i.panning && i.panning.enabled : i.panning, P = i.panKey && c[i.panKey + "Key"], X = c.chartX, g = c.chartY, m = this.selectionMarker;
  11041. if ((!m || !m.touch) && (X < t ? X = t : X > t + n && (X = t + n), g < o ? g = o : g > o + A && (g = o + A), this.hasDragged = Math.sqrt(Math.pow(_ - X, 2) + Math.pow(D - g, 2)), 10 < this.hasDragged)) {
  11042. var L = p.isInsidePlot(_ - t, D - o, { visiblePlotOnly: !0 });
  11043. !p.hasCartesianSeries && !p.mapView || !this.zoomX && !this.zoomY || !L || P || m || (this.selectionMarker = m = p.renderer.rect(t, o, h ? 1 : n, s ? 1 : A, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), p.styledMode || m.attr({ fill: i.selectionMarkerFill || H("#335cad").setOpacity(0.25).get() })), m && h && (h = X - _, m.attr({ width: Math.abs(h), x: (0 < h ? 0 : h) + _ })), m && s && (h = g - D, m.attr({ height: Math.abs(h), y: (0 < h ? 0 : h) + D })), L && !m && W && p.pan(c, i.panning);
  11044. }
  11045. }, a.prototype.dragStart = function(c) {
  11046. var p = this.chart;
  11047. p.mouseIsDown = c.type, p.cancelClick = !1, p.mouseDownX = this.mouseDownX = c.chartX, p.mouseDownY = this.mouseDownY = c.chartY;
  11048. }, a.prototype.drop = function(c) {
  11049. var p = this, i = this.chart, h = this.hasPinched;
  11050. if (this.selectionMarker) {
  11051. var s = this.selectionMarker, t = s.attr ? s.attr("x") : s.x, o = s.attr ? s.attr("y") : s.y, n = s.attr ? s.attr("width") : s.width, A = s.attr ? s.attr("height") : s.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: o, width: n, height: A }, D = !!i.mapView;
  11052. (this.hasDragged || h) && (i.axes.forEach(function(W) {
  11053. if (W.zoomEnabled && x(W.min) && (h || p[{ xAxis: "zoomX", yAxis: "zoomY" }[W.coll]]) && O(t) && O(o)) {
  11054. var P = W.horiz, X = c.type === "touchend" ? W.minPixelPadding : 0, g = W.toValue((P ? t : o) + X);
  11055. P = W.toValue((P ? t + n : o + A) - X), _[W.coll].push({ axis: W, min: Math.min(g, P), max: Math.max(g, P) }), D = !0;
  11056. }
  11057. }), D && E(i, "selection", _, function(W) {
  11058. i.zoom(u(
  11059. W,
  11060. h ? { animation: !1 } : null
  11061. ));
  11062. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), h && this.scaleGroups();
  11063. }
  11064. i && O(i.index) && (b(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  11065. }, a.prototype.findNearestKDPoint = function(c, p, i) {
  11066. var h = this.chart, s = h.hoverPoint;
  11067. if (h = h.tooltip, s && h && h.isStickyOnContact())
  11068. return s;
  11069. var t;
  11070. return c.forEach(function(o) {
  11071. var n = !(o.noSharedTooltip && p) && 0 > o.options.findNearestPointBy.indexOf("y");
  11072. if (o = o.searchPoint(i, n), (n = B(o, !0) && o.series) && !(n = !B(t, !0))) {
  11073. n = t.distX - o.distX;
  11074. var A = t.dist - o.dist, _ = (o.series.group && o.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  11075. n = 0 < (n !== 0 && p ? n : A !== 0 ? A : _ !== 0 ? _ : t.series.index > o.series.index ? -1 : 1);
  11076. }
  11077. n && (t = o);
  11078. }), t;
  11079. }, a.prototype.getChartCoordinatesFromPoint = function(c, p) {
  11080. var i = c.series, h = i.xAxis;
  11081. i = i.yAxis;
  11082. var s = c.shapeArgs;
  11083. if (h && i) {
  11084. var t = w(c.clientX, c.plotX), o = c.plotY || 0;
  11085. return c.isNode && s && O(s.x) && O(s.y) && (t = s.x, o = s.y), p ? { chartX: i.len + i.pos - o, chartY: h.len + h.pos - t } : { chartX: t + h.pos, chartY: o + i.pos };
  11086. }
  11087. if (s && s.x && s.y)
  11088. return { chartX: s.x, chartY: s.y };
  11089. }, a.prototype.getChartPosition = function() {
  11090. if (this.chartPosition)
  11091. return this.chartPosition;
  11092. var c = this.chart.container, p = S(c);
  11093. this.chartPosition = { left: p.left, top: p.top, scaleX: 1, scaleY: 1 };
  11094. var i = c.offsetWidth;
  11095. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = p.width / i, this.chartPosition.scaleY = p.height / c), this.chartPosition;
  11096. }, a.prototype.getCoordinates = function(c) {
  11097. var p = { xAxis: [], yAxis: [] };
  11098. return this.chart.axes.forEach(function(i) {
  11099. p[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  11100. }), p;
  11101. }, a.prototype.getHoverData = function(c, p, i, h, s, t) {
  11102. var o = [];
  11103. h = !(!h || !c);
  11104. var n = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: s };
  11105. E(this, "beforeGetHoverData", n);
  11106. var A = p && !p.stickyTracking ? [p] : i.filter(function(D) {
  11107. return n.filter ? n.filter(D) : D.visible && !(!s && D.directTouch) && w(D.options.enableMouseTracking, !0) && D.stickyTracking;
  11108. }), _ = h || !t ? c : this.findNearestKDPoint(A, s, t);
  11109. return p = _ && _.series, _ && (s && !p.noSharedTooltip ? (A = i.filter(function(D) {
  11110. return n.filter ? n.filter(D) : D.visible && !(!s && D.directTouch) && w(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  11111. }), A.forEach(function(D) {
  11112. var W = f(D.points, function(P) {
  11113. return P.x === _.x && !P.isNull;
  11114. });
  11115. B(W) && (D.chart.isBoosting && (W = D.getPoint(W)), o.push(W));
  11116. })) : o.push(_)), n = { hoverPoint: _ }, E(this, "afterGetHoverData", n), { hoverPoint: n.hoverPoint, hoverSeries: p, hoverPoints: o };
  11117. }, a.prototype.getPointFromEvent = function(c) {
  11118. c = c.target;
  11119. for (var p; c && !p; )
  11120. p = c.point, c = c.parentNode;
  11121. return p;
  11122. }, a.prototype.onTrackerMouseOut = function(c) {
  11123. c = c.relatedTarget || c.toElement;
  11124. var p = this.chart.hoverSeries;
  11125. this.isDirectTouch = !1, !p || !c || p.stickyTracking || this.inClass(c, "highcharts-tooltip") || this.inClass(c, "highcharts-series-" + p.index) && this.inClass(c, "highcharts-tracker") || p.onMouseOut();
  11126. }, a.prototype.inClass = function(c, p) {
  11127. for (var i; c; ) {
  11128. if (i = N(c, "class")) {
  11129. if (i.indexOf(p) !== -1)
  11130. return !0;
  11131. if (i.indexOf("highcharts-container") !== -1)
  11132. return !1;
  11133. }
  11134. c = c.parentNode;
  11135. }
  11136. }, a.prototype.init = function(c, p) {
  11137. this.options = p, this.chart = c, this.runChartClick = !(!p.chart.events || !p.chart.events.click), this.pinchDown = [], this.lastValidTouch = {}, I && (c.tooltip = new I(c, p.tooltip), this.followTouchMove = w(p.tooltip.followTouchMove, !0)), this.setDOMEvents();
  11138. }, a.prototype.normalize = function(c, p) {
  11139. var i = c.touches, h = i ? i.length ? i.item(0) : w(i.changedTouches, c.changedTouches)[0] : c;
  11140. return p || (p = this.getChartPosition()), i = h.pageX - p.left, h = h.pageY - p.top, i /= p.scaleX, h /= p.scaleY, u(c, { chartX: Math.round(i), chartY: Math.round(h) });
  11141. }, a.prototype.onContainerClick = function(c) {
  11142. var p = this.chart, i = p.hoverPoint;
  11143. c = this.normalize(c);
  11144. var h = p.plotLeft, s = p.plotTop;
  11145. p.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (E(i.series, "click", u(c, { point: i })), p.hoverPoint && i.firePointEvent("click", c)) : (u(c, this.getCoordinates(c)), p.isInsidePlot(c.chartX - h, c.chartY - s, { visiblePlotOnly: !0 }) && E(p, "click", c)));
  11146. }, a.prototype.onContainerMouseDown = function(c) {
  11147. var p = ((c.buttons || c.button) & 1) === 1;
  11148. c = this.normalize(c), j.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || p) && (this.zoomOption(c), p && c.preventDefault && c.preventDefault(), this.dragStart(c));
  11149. }, a.prototype.onContainerMouseLeave = function(c) {
  11150. var p = U[w(a.hoverChartIndex, -1)], i = this.chart.tooltip;
  11151. i && i.shouldStickOnContact() && this.inClass(c.relatedTarget, "highcharts-tooltip-container") || (c = this.normalize(c), p && (c.relatedTarget || c.toElement) && (p.pointer.reset(), p.pointer.chartPosition = void 0), i && !i.isHidden && this.reset());
  11152. }, a.prototype.onContainerMouseEnter = function(c) {
  11153. delete this.chartPosition;
  11154. }, a.prototype.onContainerMouseMove = function(c) {
  11155. var p = this.chart;
  11156. c = this.normalize(c), this.setHoverChartIndex(), c.preventDefault || (c.returnValue = !1), (p.mouseIsDown === "mousedown" || this.touchSelect(c)) && this.drag(c), p.openMenu || !this.inClass(c.target, "highcharts-tracker") && !p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || (this.inClass(c.target, "highcharts-no-tooltip") ? this.reset(!1, 0) : this.runPointActions(c));
  11157. }, a.prototype.onDocumentTouchEnd = function(c) {
  11158. var p = U[w(
  11159. a.hoverChartIndex,
  11160. -1
  11161. )];
  11162. p && p.pointer.drop(c);
  11163. }, a.prototype.onContainerTouchMove = function(c) {
  11164. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  11165. }, a.prototype.onContainerTouchStart = function(c) {
  11166. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  11167. }, a.prototype.onDocumentMouseMove = function(c) {
  11168. var p = this.chart, i = this.chartPosition;
  11169. c = this.normalize(c, i);
  11170. var h = p.tooltip;
  11171. !i || h && h.isStickyOnContact() || p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  11172. }, a.prototype.onDocumentMouseUp = function(c) {
  11173. var p = U[w(a.hoverChartIndex, -1)];
  11174. p && p.pointer.drop(c);
  11175. }, a.prototype.pinch = function(c) {
  11176. var p = this, i = p.chart, h = p.pinchDown, s = c.touches || [], t = s.length, o = p.lastValidTouch, n = p.hasZoom, A = {}, _ = t === 1 && (p.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || p.runChartClick), D = {}, W = p.selectionMarker;
  11177. 1 < t ? p.initiated = !0 : t === 1 && this.followTouchMove && (p.initiated = !1), n && p.initiated && !_ && c.cancelable !== !1 && c.preventDefault(), [].map.call(s, function(P) {
  11178. return p.normalize(P);
  11179. }), c.type === "touchstart" ? ([].forEach.call(s, function(P, X) {
  11180. h[X] = { chartX: P.chartX, chartY: P.chartY };
  11181. }), o.x = [h[0].chartX, h[1] && h[1].chartX], o.y = [h[0].chartY, h[1] && h[1].chartY], i.axes.forEach(function(P) {
  11182. if (P.zoomEnabled) {
  11183. var X = i.bounds[P.horiz ? "h" : "v"], g = P.minPixelPadding, m = P.toPixels(Math.min(w(P.options.min, P.dataMin), P.dataMin)), L = P.toPixels(Math.max(w(P.options.max, P.dataMax), P.dataMax)), Y = Math.max(m, L);
  11184. X.min = Math.min(P.pos, Math.min(
  11185. m,
  11186. L
  11187. ) - g), X.max = Math.max(P.pos + P.len, Y + g);
  11188. }
  11189. }), p.res = !0) : p.followTouchMove && t === 1 ? this.runPointActions(p.normalize(c)) : h.length && (E(i, "touchpan", { originalEvent: c }, function() {
  11190. W || (p.selectionMarker = W = u({ destroy: F, touch: !0 }, i.plotBox)), p.pinchTranslate(h, s, A, W, D, o), p.hasPinched = n, p.scaleGroups(A, D);
  11191. }), p.res && (p.res = !1, this.reset(!1, 0)));
  11192. }, a.prototype.pinchTranslate = function(c, p, i, h, s, t) {
  11193. this.zoomHor && this.pinchTranslateDirection(!0, c, p, i, h, s, t), this.zoomVert && this.pinchTranslateDirection(!1, c, p, i, h, s, t);
  11194. }, a.prototype.pinchTranslateDirection = function(c, p, i, h, s, t, o, n) {
  11195. var A = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", W = "chart" + D, P = c ? "width" : "height", X = A["plot" + (c ? "Left" : "Top")], g = A.inverted, m = A.bounds[c ? "h" : "v"], L = p.length === 1, Y = p[0][W], V = !L && p[1][W];
  11196. p = function() {
  11197. typeof $ == "number" && 20 < Math.abs(Y - V) && (G = n || Math.abs(z - $) / Math.abs(Y - V)), k = (X - z) / G + Y, Q = A["plot" + (c ? "Width" : "Height")] / G;
  11198. };
  11199. var Q, k, G = n || 1, z = i[0][W], $ = !L && i[1][W];
  11200. if (p(), i = k, i < m.min) {
  11201. i = m.min;
  11202. var q = !0;
  11203. } else
  11204. i + Q > m.max && (i = m.max - Q, q = !0);
  11205. q ? (z -= 0.8 * (z - o[_][0]), typeof $ == "number" && ($ -= 0.8 * ($ - o[_][1])), p()) : o[_] = [z, $], g || (t[_] = k - X, t[P] = Q), t = g ? 1 / G : G, s[P] = Q, s[_] = i, h[g ? c ? "scaleY" : "scaleX" : "scale" + D] = G, h["translate" + D] = t * X + (z - t * Y);
  11206. }, a.prototype.reset = function(c, p) {
  11207. var i = this.chart, h = i.hoverSeries, s = i.hoverPoint, t = i.hoverPoints, o = i.tooltip, n = o && o.shared ? t : s;
  11208. c && n && v(n).forEach(function(A) {
  11209. A.series.isCartesian && typeof A.plotX > "u" && (c = !1);
  11210. }), c ? o && n && v(n).length && (o.refresh(n), o.shared && t ? t.forEach(function(A) {
  11211. A.setState(A.state, !0), A.series.isCartesian && (A.series.xAxis.crosshair && A.series.xAxis.drawCrosshair(
  11212. null,
  11213. A
  11214. ), A.series.yAxis.crosshair && A.series.yAxis.drawCrosshair(null, A));
  11215. }) : s && (s.setState(s.state, !0), i.axes.forEach(function(A) {
  11216. A.crosshair && s.series[A.coll] === A && A.drawCrosshair(null, s);
  11217. }))) : (s && s.onMouseOut(), t && t.forEach(function(A) {
  11218. A.setState();
  11219. }), h && h.onMouseOut(), o && o.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(A) {
  11220. A.hideCrosshair();
  11221. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  11222. }, a.prototype.runPointActions = function(c, p) {
  11223. var i = this.chart, h = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, s = h ? h.shared : !1, t = p || i.hoverPoint, o = t && t.series || i.hoverSeries;
  11224. p = this.getHoverData(t, o, i.series, (!c || c.type !== "touchmove") && (!!p || o && o.directTouch && this.isDirectTouch), s, c), t = p.hoverPoint, o = p.hoverSeries;
  11225. var n = p.hoverPoints;
  11226. if (p = o && o.tooltipOptions.followPointer && !o.tooltipOptions.split, s = s && o && !o.noSharedTooltip, t && (t !== i.hoverPoint || h && h.isHidden)) {
  11227. if ((i.hoverPoints || []).forEach(function(A) {
  11228. n.indexOf(A) === -1 && A.setState();
  11229. }), i.hoverSeries !== o && o.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(A) {
  11230. A.setState("hover");
  11231. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  11232. return;
  11233. i.hoverPoints = n, i.hoverPoint = t, t.firePointEvent("mouseOver"), h && h.refresh(s ? n : t, c);
  11234. } else
  11235. p && h && !h.isHidden && (t = h.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && h.updatePosition({ plotX: t[0], plotY: t[1] }));
  11236. this.unDocMouseMove || (this.unDocMouseMove = R(i.container.ownerDocument, "mousemove", function(A) {
  11237. var _ = U[a.hoverChartIndex];
  11238. _ && _.pointer.onDocumentMouseMove(A);
  11239. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(A) {
  11240. var _ = w((A.crosshair || {}).snap, !0), D;
  11241. _ && ((D = i.hoverPoint) && D.series[A.coll] === A || (D = f(n, function(W) {
  11242. return W.series[A.coll] === A;
  11243. }))), D || !_ ? A.drawCrosshair(c, D) : A.hideCrosshair();
  11244. });
  11245. }, a.prototype.scaleGroups = function(c, p) {
  11246. var i = this.chart;
  11247. i.series.forEach(function(h) {
  11248. var s = c || h.getPlotBox();
  11249. h.group && (h.xAxis && h.xAxis.zoomEnabled || i.mapView) && (h.group.attr(s), h.markerGroup && (h.markerGroup.attr(s), h.markerGroup.clip(p ? i.clipRect : null)), h.dataLabelsGroup && h.dataLabelsGroup.attr(s));
  11250. }), i.clipRect.attr(p || i.clipBox);
  11251. }, a.prototype.setDOMEvents = function() {
  11252. var c = this, p = this.chart.container, i = p.ownerDocument;
  11253. p.onmousedown = this.onContainerMouseDown.bind(this), p.onmousemove = this.onContainerMouseMove.bind(this), p.onclick = this.onContainerClick.bind(this), this.eventsToUnbind.push(R(p, "mouseenter", this.onContainerMouseEnter.bind(this))), this.eventsToUnbind.push(R(p, "mouseleave", this.onContainerMouseLeave.bind(this))), a.unbindDocumentMouseUp || (a.unbindDocumentMouseUp = R(i, "mouseup", this.onDocumentMouseUp.bind(this)));
  11254. for (var h = this.chart.renderTo.parentElement; h && h.tagName !== "BODY"; )
  11255. this.eventsToUnbind.push(R(h, "scroll", function() {
  11256. delete c.chartPosition;
  11257. })), h = h.parentElement;
  11258. j.hasTouch && (this.eventsToUnbind.push(R(p, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 })), this.eventsToUnbind.push(R(p, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), a.unbindDocumentTouchEnd || (a.unbindDocumentTouchEnd = R(i, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })));
  11259. }, a.prototype.setHoverChartIndex = function() {
  11260. var c = this.chart, p = j.charts[w(a.hoverChartIndex, -1)];
  11261. p && p !== c && p.pointer.onContainerMouseLeave({ relatedTarget: !0 }), p && p.mouseIsDown || (a.hoverChartIndex = c.index);
  11262. }, a.prototype.touch = function(c, p) {
  11263. var i = this.chart;
  11264. if (this.setHoverChartIndex(), c.touches.length === 1)
  11265. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  11266. if (p && this.runPointActions(c), c.type === "touchmove") {
  11267. p = this.pinchDown;
  11268. var h = p[0] ? 4 <= Math.sqrt(Math.pow(p[0].chartX - c.chartX, 2) + Math.pow(p[0].chartY - c.chartY, 2)) : !1;
  11269. }
  11270. w(h, !0) && this.pinch(c);
  11271. } else
  11272. p && this.reset();
  11273. else
  11274. c.touches.length === 2 && this.pinch(c);
  11275. }, a.prototype.touchSelect = function(c) {
  11276. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  11277. }, a.prototype.zoomOption = function(c) {
  11278. var p = this.chart, i = p.options.chart;
  11279. p = p.inverted;
  11280. var h = i.zoomType || "";
  11281. /touch/.test(c.type) && (h = w(i.pinchType, h)), this.zoomX = c = /x/.test(h), this.zoomY = i = /y/.test(h), this.zoomHor = c && !p || i && p, this.zoomVert = i && !p || c && p, this.hasZoom = c || i;
  11282. }, a;
  11283. }(), y;
  11284. }), T(l, "Core/MSPointer.js", [l["Core/Globals.js"], l["Core/Pointer.js"], l["Core/Utilities.js"]], function(y, j, I) {
  11285. function Z() {
  11286. var M = [];
  11287. return M.item = function(S) {
  11288. return this[S];
  11289. }, f(O, function(S) {
  11290. M.push({ pageX: S.pageX, pageY: S.pageY, target: S.target });
  11291. }), M;
  11292. }
  11293. function H(M, S, w, v) {
  11294. var a = F[j.hoverChartIndex || NaN];
  11295. M.pointerType !== "touch" && M.pointerType !== M.MSPOINTER_TYPE_TOUCH || !a || (a = a.pointer, v(M), a[S]({ type: w, target: M.currentTarget, preventDefault: N, touches: Z() }));
  11296. }
  11297. var U = this && this.__extends || function() {
  11298. var M = function(S, w) {
  11299. return M = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, a) {
  11300. v.__proto__ = a;
  11301. } || function(v, a) {
  11302. for (var c in a)
  11303. a.hasOwnProperty(c) && (v[c] = a[c]);
  11304. }, M(S, w);
  11305. };
  11306. return function(S, w) {
  11307. function v() {
  11308. this.constructor = S;
  11309. }
  11310. M(S, w), S.prototype = w === null ? Object.create(w) : (v.prototype = w.prototype, new v());
  11311. };
  11312. }(), F = y.charts, R = y.doc, N = y.noop, b = y.win, x = I.addEvent, u = I.css, f = I.objectEach, E = I.removeEvent, O = {}, B = !!b.PointerEvent;
  11313. return function(M) {
  11314. function S() {
  11315. return M !== null && M.apply(this, arguments) || this;
  11316. }
  11317. return U(S, M), S.isRequired = function() {
  11318. return !(y.hasTouch || !b.PointerEvent && !b.MSPointerEvent);
  11319. }, S.prototype.batchMSEvents = function(w) {
  11320. w(this.chart.container, B ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), w(this.chart.container, B ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), w(R, B ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  11321. }, S.prototype.destroy = function() {
  11322. this.batchMSEvents(E), M.prototype.destroy.call(this);
  11323. }, S.prototype.init = function(w, v) {
  11324. M.prototype.init.call(this, w, v), this.hasZoom && u(w.container, { "-ms-touch-action": "none", "touch-action": "none" });
  11325. }, S.prototype.onContainerPointerDown = function(w) {
  11326. H(w, "onContainerTouchStart", "touchstart", function(v) {
  11327. O[v.pointerId] = { pageX: v.pageX, pageY: v.pageY, target: v.currentTarget };
  11328. });
  11329. }, S.prototype.onContainerPointerMove = function(w) {
  11330. H(w, "onContainerTouchMove", "touchmove", function(v) {
  11331. O[v.pointerId] = {
  11332. pageX: v.pageX,
  11333. pageY: v.pageY
  11334. }, O[v.pointerId].target || (O[v.pointerId].target = v.currentTarget);
  11335. });
  11336. }, S.prototype.onDocumentPointerUp = function(w) {
  11337. H(w, "onDocumentTouchEnd", "touchend", function(v) {
  11338. delete O[v.pointerId];
  11339. });
  11340. }, S.prototype.setDOMEvents = function() {
  11341. M.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(x);
  11342. }, S;
  11343. }(j);
  11344. }), T(l, "Core/Legend/Legend.js", [
  11345. l["Core/Animation/AnimationUtilities.js"],
  11346. l["Core/FormatUtilities.js"],
  11347. l["Core/Globals.js"],
  11348. l["Core/Series/Point.js"],
  11349. l["Core/Renderer/RendererUtilities.js"],
  11350. l["Core/Utilities.js"]
  11351. ], function(y, j, I, Z, H, U) {
  11352. var F = y.animObject, R = y.setAnimation, N = j.format;
  11353. y = I.isFirefox;
  11354. var b = I.marginNames;
  11355. I = I.win;
  11356. var x = H.distribute, u = U.addEvent, f = U.createElement, E = U.css, O = U.defined, B = U.discardElement, M = U.find, S = U.fireEvent, w = U.isNumber, v = U.merge, a = U.pick, c = U.relativeLength, p = U.stableSort, i = U.syncTimeout;
  11357. return H = U.wrap, U = function() {
  11358. function h(s, t) {
  11359. this.allItems = [], this.contentGroup = this.box = void 0, this.display = !1, this.group = void 0, this.offsetWidth = this.maxLegendWidth = this.maxItemWidth = this.legendWidth = this.legendHeight = this.lastLineHeight = this.lastItemY = this.itemY = this.itemX = this.itemMarginTop = this.itemMarginBottom = this.itemHeight = this.initialItemY = 0, this.options = {}, this.padding = 0, this.pages = [], this.proximate = !1, this.scrollGroup = void 0, this.widthOption = this.totalItemWidth = this.titleHeight = this.symbolWidth = this.symbolHeight = 0, this.chart = s, this.init(s, t);
  11360. }
  11361. return h.prototype.init = function(s, t) {
  11362. this.chart = s, this.setOptions(t), t.enabled && (this.render(), u(this.chart, "endResize", function() {
  11363. this.legend.positionCheckboxes();
  11364. }), this.proximate ? this.unchartrender = u(this.chart, "render", function() {
  11365. this.legend.proximatePositions(), this.legend.positionItems();
  11366. }) : this.unchartrender && this.unchartrender());
  11367. }, h.prototype.setOptions = function(s) {
  11368. var t = a(s.padding, 8);
  11369. this.options = s, this.chart.styledMode || (this.itemStyle = s.itemStyle, this.itemHiddenStyle = v(this.itemStyle, s.itemHiddenStyle)), this.itemMarginTop = s.itemMarginTop || 0, this.itemMarginBottom = s.itemMarginBottom || 0, this.padding = t, this.initialItemY = t - 5, this.symbolWidth = a(
  11370. s.symbolWidth,
  11371. 16
  11372. ), this.pages = [], this.proximate = s.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  11373. }, h.prototype.update = function(s, t) {
  11374. var o = this.chart;
  11375. this.setOptions(v(!0, this.options, s)), this.destroy(), o.isDirtyLegend = o.isDirtyBox = !0, a(t, !0) && o.redraw(), S(this, "afterUpdate");
  11376. }, h.prototype.colorizeItem = function(s, t) {
  11377. if (s.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  11378. var o = this.options, n = s.legendItem, A = s.legendLine, _ = s.legendSymbol, D = this.itemHiddenStyle.color;
  11379. o = t ? o.itemStyle.color : D;
  11380. var W = t && s.color || D, P = s.options && s.options.marker, X = { fill: W };
  11381. n && n.css({ fill: o, color: o }), A && A.attr({ stroke: W }), _ && (P && _.isMarker && (X = s.pointAttribs(), t || (X.stroke = X.fill = D)), _.attr(X));
  11382. }
  11383. S(this, "afterColorizeItem", { item: s, visible: t });
  11384. }, h.prototype.positionItems = function() {
  11385. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  11386. }, h.prototype.positionItem = function(s) {
  11387. var t = this, o = this.options, n = o.symbolPadding, A = !o.rtl, _ = s._legendItemPos;
  11388. o = _[0], _ = _[1];
  11389. var D = s.checkbox, W = s.legendGroup;
  11390. W && W.element && (n = { translateX: A ? o : this.legendWidth - o - 2 * n - 4, translateY: _ }, A = function() {
  11391. S(t, "afterPositionItem", { item: s });
  11392. }, O(W.translateY) ? W.animate(n, void 0, A) : (W.attr(n), A())), D && (D.x = o, D.y = _);
  11393. }, h.prototype.destroyItem = function(s) {
  11394. var t = s.checkbox;
  11395. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(o) {
  11396. s[o] && (s[o] = s[o].destroy());
  11397. }), t && B(s.checkbox);
  11398. }, h.prototype.destroy = function() {
  11399. function s(t) {
  11400. this[t] && (this[t] = this[t].destroy());
  11401. }
  11402. this.getAllItems().forEach(function(t) {
  11403. [
  11404. "legendItem",
  11405. "legendGroup"
  11406. ].forEach(s, t);
  11407. }), "clipRect up down pager nav box title group".split(" ").forEach(s, this), this.display = null;
  11408. }, h.prototype.positionCheckboxes = function() {
  11409. var s = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, o = this.titleHeight;
  11410. if (s) {
  11411. var n = s.translateY;
  11412. this.allItems.forEach(function(A) {
  11413. var _ = A.checkbox;
  11414. if (_) {
  11415. var D = n + o + _.y + (this.scrollOffset || 0) + 3;
  11416. E(_, { left: s.translateX + A.checkboxOffset + _.x - 20 + "px", top: D + "px", display: this.proximate || D > n - 6 && D < n + t - 6 ? "" : "none" });
  11417. }
  11418. }, this);
  11419. }
  11420. }, h.prototype.renderTitle = function() {
  11421. var s = this.options, t = this.padding, o = s.title, n = 0;
  11422. o.text && (this.title || (this.title = this.chart.renderer.label(o.text, t - 3, t - 4, null, null, null, s.useHTML, null, "legend-title").attr({ zIndex: 1 }), this.chart.styledMode || this.title.css(o.style), this.title.add(this.group)), o.width || this.title.css({ width: this.maxLegendWidth + "px" }), s = this.title.getBBox(), n = s.height, this.offsetWidth = s.width, this.contentGroup.attr({ translateY: n })), this.titleHeight = n;
  11423. }, h.prototype.setText = function(s) {
  11424. var t = this.options;
  11425. s.legendItem.attr({ text: t.labelFormat ? N(t.labelFormat, s, this.chart) : t.labelFormatter.call(s) });
  11426. }, h.prototype.renderItem = function(s) {
  11427. var t = this.chart, o = t.renderer, n = this.options, A = this.symbolWidth, _ = n.symbolPadding || 0, D = this.itemStyle, W = this.itemHiddenStyle, P = n.layout === "horizontal" ? a(n.itemDistance, 20) : 0, X = !n.rtl, g = !s.series, m = !g && s.series.drawLegendSymbol ? s.series : s, L = m.options, Y = this.createCheckboxForItem && L && L.showCheckbox, V = n.useHTML, Q = s.options.className, k = s.legendItem;
  11428. L = A + _ + P + (Y ? 20 : 0), k || (s.legendGroup = o.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + s.colorIndex + (Q ? " " + Q : "") + (g ? " highcharts-series-" + s.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), s.legendItem = k = o.text("", X ? A + _ : -_, this.baseline || 0, V), t.styledMode || k.css(v(s.visible ? D : W)), k.attr({ align: X ? "left" : "right", zIndex: 2 }).add(s.legendGroup), this.baseline || (this.fontMetrics = o.fontMetrics(t.styledMode ? 12 : D.fontSize, k), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, k.attr("y", this.baseline), this.symbolHeight = n.symbolHeight || this.fontMetrics.f, n.squareSymbol && (this.symbolWidth = a(n.symbolWidth, Math.max(this.symbolHeight, 16)), L = this.symbolWidth + _ + P + (Y ? 20 : 0), X && k.attr("x", this.symbolWidth + _))), m.drawLegendSymbol(this, s), this.setItemEvents && this.setItemEvents(s, k, V)), Y && !s.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(s), this.colorizeItem(s, s.visible), !t.styledMode && D.width || k.css({ width: (n.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(s), t = k.getBBox(), o = this.fontMetrics && this.fontMetrics.h || 0, s.itemWidth = s.checkboxOffset = n.itemWidth || s.legendItemWidth || t.width + L, this.maxItemWidth = Math.max(this.maxItemWidth, s.itemWidth), this.totalItemWidth += s.itemWidth, this.itemHeight = s.itemHeight = Math.round(s.legendItemHeight || (t.height > 1.5 * o ? t.height : o));
  11429. }, h.prototype.layoutItem = function(s) {
  11430. var t = this.options, o = this.padding, n = t.layout === "horizontal", A = s.itemHeight, _ = this.itemMarginBottom, D = this.itemMarginTop, W = n ? a(t.itemDistance, 20) : 0, P = this.maxLegendWidth;
  11431. t = t.alignColumns && this.totalItemWidth > P ? this.maxItemWidth : s.itemWidth, n && this.itemX - o + t > P && (this.itemX = o, this.lastLineHeight && (this.itemY += D + this.lastLineHeight + _), this.lastLineHeight = 0), this.lastItemY = D + this.itemY + _, this.lastLineHeight = Math.max(A, this.lastLineHeight), s._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += D + A + _, this.lastLineHeight = A), this.offsetWidth = this.widthOption || Math.max((n ? this.itemX - o - (s.checkbox ? 0 : W) : t) + o, this.offsetWidth);
  11432. }, h.prototype.getAllItems = function() {
  11433. var s = [];
  11434. return this.chart.series.forEach(function(t) {
  11435. var o = t && t.options;
  11436. t && a(o.showInLegend, O(o.linkedTo) ? !1 : void 0, !0) && (s = s.concat(t.legendItems || (o.legendType === "point" ? t.data : t)));
  11437. }), S(this, "afterGetAllItems", { allItems: s }), s;
  11438. }, h.prototype.getAlignment = function() {
  11439. var s = this.options;
  11440. return this.proximate ? s.align.charAt(0) + "tv" : s.floating ? "" : s.align.charAt(0) + s.verticalAlign.charAt(0) + s.layout.charAt(0);
  11441. }, h.prototype.adjustMargins = function(s, t) {
  11442. var o = this.chart, n = this.options, A = this.getAlignment();
  11443. A && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  11444. _.test(A) && !O(s[D]) && (o[b[D]] = Math.max(o[b[D]], o.legend[(D + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][D] * n[D % 2 ? "x" : "y"] + a(n.margin, 12) + t[D] + (o.titleOffset[D] || 0)));
  11445. });
  11446. }, h.prototype.proximatePositions = function() {
  11447. var s = this.chart, t = [], o = this.options.align === "left";
  11448. this.allItems.forEach(function(n) {
  11449. var A, _ = o;
  11450. if (n.yAxis) {
  11451. n.xAxis.options.reversed && (_ = !_), n.points && (A = M(_ ? n.points : n.points.slice(0).reverse(), function(W) {
  11452. return w(W.plotY);
  11453. })), _ = this.itemMarginTop + n.legendItem.getBBox().height + this.itemMarginBottom;
  11454. var D = n.yAxis.top - s.plotTop;
  11455. n.visible ? (A = A ? A.plotY : n.yAxis.height, A += D - 0.3 * _) : A = D + n.yAxis.height, t.push({ target: A, size: _, item: n });
  11456. }
  11457. }, this), x(t, s.plotHeight).forEach(function(n) {
  11458. n.item._legendItemPos && (n.item._legendItemPos[1] = s.plotTop - s.spacing[0] + n.pos);
  11459. });
  11460. }, h.prototype.render = function() {
  11461. var s = this.chart, t = s.renderer, o = this.options, n = this.padding, A = this.getAllItems(), _ = this.group, D = this.box;
  11462. this.itemX = n, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(o.width, s.spacingBox.width - n);
  11463. var W = s.spacingBox.width - 2 * n - o.x;
  11464. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (W /= 2), this.maxLegendWidth = this.widthOption || W, _ || (this.group = _ = t.g("legend").addClass(o.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = t.g().attr({ zIndex: 1 }).add(_), this.scrollGroup = t.g().add(this.contentGroup)), this.renderTitle(), p(A, function(X, g) {
  11465. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  11466. }), o.reversed && A.reverse(), this.allItems = A, this.display = W = !!A.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, A.forEach(this.renderItem, this), A.forEach(this.layoutItem, this), A = (this.widthOption || this.offsetWidth) + n;
  11467. var P = this.lastItemY + this.lastLineHeight + this.titleHeight;
  11468. P = this.handleOverflow(P), P += n, D || (this.box = D = t.rect().addClass("highcharts-legend-box").attr({ r: o.borderRadius }).add(_), D.isNew = !0), s.styledMode || D.attr({ stroke: o.borderColor, "stroke-width": o.borderWidth || 0, fill: o.backgroundColor || "none" }).shadow(o.shadow), 0 < A && 0 < P && (D[D.isNew ? "attr" : "animate"](D.crisp.call({}, { x: 0, y: 0, width: A, height: P }, D.strokeWidth())), D.isNew = !1), D[W ? "show" : "hide"](), s.styledMode && _.getStyle("display") === "none" && (A = P = 0), this.legendWidth = A, this.legendHeight = P, W && this.align(), this.proximate || this.positionItems(), S(this, "afterRender");
  11469. }, h.prototype.align = function(s) {
  11470. s === void 0 && (s = this.chart.spacingBox);
  11471. var t = this.chart, o = this.options, n = s.y;
  11472. /(lth|ct|rth)/.test(this.getAlignment()) && 0 < t.titleOffset[0] ? n += t.titleOffset[0] : /(lbh|cb|rbh)/.test(this.getAlignment()) && 0 < t.titleOffset[2] && (n -= t.titleOffset[2]), n !== s.y && (s = v(s, { y: n })), this.group.align(v(o, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : o.verticalAlign }), !0, s);
  11473. }, h.prototype.handleOverflow = function(s) {
  11474. var t = this, o = this.chart, n = o.renderer, A = this.options, _ = A.y, D = A.verticalAlign === "top", W = this.padding, P = A.maxHeight, X = A.navigation, g = a(X.animation, !0), m = X.arrowSize || 12, L = this.pages, Y = this.allItems, V = function(q) {
  11475. typeof q == "number" ? $.attr({ height: q }) : $ && (t.clipRect = $.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + W + "px,9999px," + (W + q) + "px,0)" : "auto");
  11476. }, Q = function(q) {
  11477. return t[q] = n.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(z), o.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  11478. }, k, G;
  11479. _ = o.spacingBox.height + (D ? -_ : _) - W;
  11480. var z = this.nav, $ = this.clipRect;
  11481. return A.layout !== "horizontal" || A.verticalAlign === "middle" || A.floating || (_ /= 2), P && (_ = Math.min(_, P)), L.length = 0, s && 0 < _ && s > _ && X.enabled !== !1 ? (this.clipHeight = k = Math.max(_ - 20 - this.titleHeight - W, 0), this.currentPage = a(this.currentPage, 1), this.fullHeight = s, Y.forEach(function(q, it) {
  11482. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  11483. (!rt || et - L[rt - 1] > k && (G || et) !== L[rt - 1]) && (L.push(G || et), rt++), q.pageIx = rt - 1, G && (Y[it - 1].pageIx = rt - 1), it === Y.length - 1 && et + nt - L[rt - 1] > k && nt <= k && (L.push(et), q.pageIx = rt), et !== G && (G = et);
  11484. }), $ || ($ = t.clipRect = n.clipRect(0, W, 9999, 0), t.contentGroup.clip($)), V(k), z || (this.nav = z = n.g().attr({ zIndex: 1 }).add(this.group), this.up = n.symbol("triangle", 0, 0, m, m).add(z), Q("upTracker").on(
  11485. "click",
  11486. function() {
  11487. t.scroll(-1, g);
  11488. }
  11489. ), this.pager = n.text("", 15, 10).addClass("highcharts-legend-navigation"), o.styledMode || this.pager.css(X.style), this.pager.add(z), this.down = n.symbol("triangle-down", 0, 0, m, m).add(z), Q("downTracker").on("click", function() {
  11490. t.scroll(1, g);
  11491. })), t.scroll(0), s = _) : z && (V(), this.nav = z.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), s;
  11492. }, h.prototype.scroll = function(s, t) {
  11493. var o = this, n = this.chart, A = this.pages, _ = A.length, D = this.clipHeight, W = this.options.navigation, P = this.pager, X = this.padding, g = this.currentPage + s;
  11494. g > _ && (g = _), 0 < g && (typeof t < "u" && R(t, n), this.nav.attr({ translateX: X, translateY: D + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  11495. m.attr({ class: g === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11496. }), P.attr({ text: g + "/" + _ }), [this.down, this.downTracker].forEach(
  11497. function(m) {
  11498. m.attr({ x: 18 + this.pager.getBBox().width, class: g === _ ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11499. },
  11500. this
  11501. ), n.styledMode || (this.up.attr({ fill: g === 1 ? W.inactiveColor : W.activeColor }), this.upTracker.css({ cursor: g === 1 ? "default" : "pointer" }), this.down.attr({ fill: g === _ ? W.inactiveColor : W.activeColor }), this.downTracker.css({ cursor: g === _ ? "default" : "pointer" })), this.scrollOffset = -A[g - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = g, this.positionCheckboxes(), s = F(a(t, n.renderer.globalAnimation, !0)), i(function() {
  11502. S(o, "afterScroll", { currentPage: g });
  11503. }, s.duration));
  11504. }, h.prototype.setItemEvents = function(s, t, o) {
  11505. var n = this, A = n.chart.renderer.boxWrapper, _ = s instanceof Z, D = "highcharts-legend-" + (_ ? "point" : "series") + "-active", W = n.chart.styledMode, P = function(X) {
  11506. n.allItems.forEach(function(g) {
  11507. s !== g && [g].concat(g.linkedSeries || []).forEach(function(m) {
  11508. m.setState(X, !_);
  11509. });
  11510. });
  11511. };
  11512. (o ? [t, s.legendSymbol] : [s.legendGroup]).forEach(function(X) {
  11513. X && X.on("mouseover", function() {
  11514. s.visible && P("inactive"), s.setState("hover"), s.visible && A.addClass(D), W || t.css(n.options.itemHoverStyle);
  11515. }).on("mouseout", function() {
  11516. n.chart.styledMode || t.css(v(s.visible ? n.itemStyle : n.itemHiddenStyle)), P(""), A.removeClass(D), s.setState();
  11517. }).on("click", function(g) {
  11518. var m = function() {
  11519. s.setVisible && s.setVisible(), P(s.visible ? "inactive" : "");
  11520. };
  11521. A.removeClass(D), g = { browserEvent: g }, s.firePointEvent ? s.firePointEvent("legendItemClick", g, m) : S(s, "legendItemClick", g, m);
  11522. });
  11523. });
  11524. }, h.prototype.createCheckboxForItem = function(s) {
  11525. s.checkbox = f(
  11526. "input",
  11527. { type: "checkbox", className: "highcharts-legend-checkbox", checked: s.selected, defaultChecked: s.selected },
  11528. this.options.itemCheckboxStyle,
  11529. this.chart.container
  11530. ), u(s.checkbox, "click", function(t) {
  11531. S(s.series || s, "checkboxClick", { checked: t.target.checked, item: s }, function() {
  11532. s.select();
  11533. });
  11534. });
  11535. }, h;
  11536. }(), (/Trident\/7\.0/.test(I.navigator && I.navigator.userAgent) || y) && H(U.prototype, "positionItem", function(h, s) {
  11537. var t = this, o = function() {
  11538. s._legendItemPos && h.call(t, s);
  11539. };
  11540. o(), t.bubbleLegend || setTimeout(o);
  11541. }), U;
  11542. }), T(
  11543. l,
  11544. "Core/Series/SeriesRegistry.js",
  11545. [l["Core/Globals.js"], l["Core/DefaultOptions.js"], l["Core/Series/Point.js"], l["Core/Utilities.js"]],
  11546. function(y, j, I, Z) {
  11547. var H = j.defaultOptions, U = Z.error, F = Z.extendClass, R = Z.merge, N;
  11548. return function(b) {
  11549. function x(u, f) {
  11550. var E = H.plotOptions || {}, O = f.defaultOptions;
  11551. f.prototype.pointClass || (f.prototype.pointClass = I), f.prototype.type = u, O && (E[u] = O), b.seriesTypes[u] = f;
  11552. }
  11553. b.seriesTypes = y.seriesTypes, b.getSeries = function(u, f) {
  11554. f === void 0 && (f = {});
  11555. var E = u.options.chart;
  11556. E = f.type || E.type || E.defaultSeriesType || "";
  11557. var O = b.seriesTypes[E];
  11558. return b || U(17, !0, u, { missingModuleFor: E }), E = new O(), typeof E.init == "function" && E.init(u, f), E;
  11559. }, b.registerSeriesType = x, b.seriesType = function(u, f, E, O, B) {
  11560. var M = H.plotOptions || {};
  11561. return f = f || "", M[u] = R(M[f], E), x(u, F(b.seriesTypes[f] || function() {
  11562. }, O)), b.seriesTypes[u].prototype.type = u, B && (b.seriesTypes[u].prototype.pointClass = F(I, B)), b.seriesTypes[u];
  11563. };
  11564. }(N || (N = {})), N;
  11565. }
  11566. ), T(l, "Core/Chart/Chart.js", [
  11567. l["Core/Animation/AnimationUtilities.js"],
  11568. l["Core/Axis/Axis.js"],
  11569. l["Core/FormatUtilities.js"],
  11570. l["Core/Foundation.js"],
  11571. l["Core/Globals.js"],
  11572. l["Core/Legend/Legend.js"],
  11573. l["Core/MSPointer.js"],
  11574. l["Core/DefaultOptions.js"],
  11575. l["Core/Pointer.js"],
  11576. l["Core/Renderer/RendererRegistry.js"],
  11577. l["Core/Series/SeriesRegistry.js"],
  11578. l["Core/Renderer/SVG/SVGRenderer.js"],
  11579. l["Core/Time.js"],
  11580. l["Core/Utilities.js"],
  11581. l["Core/Renderer/HTML/AST.js"]
  11582. ], function(y, j, I, Z, H, U, F, R, N, b, x, u, f, E, O) {
  11583. var B = y.animate, M = y.animObject, S = y.setAnimation, w = I.numberFormat, v = Z.registerEventOptions, a = H.charts, c = H.doc, p = H.marginNames, i = H.svg, h = H.win, s = R.defaultOptions, t = R.defaultTime, o = x.seriesTypes, n = E.addEvent, A = E.attr, _ = E.cleanRecursively, D = E.createElement, W = E.css, P = E.defined, X = E.discardElement, g = E.erase, m = E.error, L = E.extend, Y = E.find, V = E.fireEvent, Q = E.getStyle, k = E.isArray, G = E.isNumber, z = E.isObject, $ = E.isString, q = E.merge, it = E.objectEach, et = E.pick, nt = E.pInt, rt = E.relativeLength, ct = E.removeEvent, gt = E.splat, dt = E.syncTimeout, ht = E.uniqueKey;
  11584. return y = function() {
  11585. function at(J, tt, st) {
  11586. this.series = this.renderTo = this.renderer = this.pointer = this.pointCount = this.plotWidth = this.plotTop = this.plotLeft = this.plotHeight = this.plotBox = this.options = this.numberFormatter = this.margin = this.legend = this.labelCollectors = this.isResizing = this.index = this.eventOptions = this.container = this.colorCounter = this.clipBox = this.chartWidth = this.chartHeight = this.bounds = this.axisOffset = this.axes = void 0, this.sharedClips = {}, this.yAxis = this.xAxis = this.userOptions = this.titleOffset = this.time = this.symbolCounter = this.spacingBox = this.spacing = void 0, this.getArgs(J, tt, st);
  11587. }
  11588. return at.chart = function(J, tt, st) {
  11589. return new at(J, tt, st);
  11590. }, at.prototype.getArgs = function(J, tt, st) {
  11591. $(J) || J.nodeName ? (this.renderTo = J, this.init(tt, st)) : this.init(J, tt);
  11592. }, at.prototype.init = function(J, tt) {
  11593. var st = J.plotOptions || {};
  11594. V(this, "init", { args: arguments }, function() {
  11595. var lt = q(s, J), pt = lt.chart;
  11596. it(lt.plotOptions, function(yt, vt) {
  11597. z(yt) && (yt.tooltip = st[vt] && q(st[vt].tooltip) || void 0);
  11598. }), lt.tooltip.userOptions = J.chart && J.chart.forExport && J.tooltip.userOptions || J.tooltip, this.userOptions = J, this.margin = [], this.spacing = [], this.bounds = { h: {}, v: {} }, this.labelCollectors = [], this.callback = tt, this.isResizing = 0, this.options = lt, this.axes = [], this.series = [], this.time = J.time && Object.keys(J.time).length ? new f(J.time) : H.time, this.numberFormatter = pt.numberFormatter || w, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = a.length, a.push(this), H.chartCount++, v(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, V(this, "afterInit"), this.firstRender();
  11599. });
  11600. }, at.prototype.initSeries = function(J) {
  11601. var tt = this.options.chart;
  11602. tt = J.type || tt.type || tt.defaultSeriesType;
  11603. var st = o[tt];
  11604. return st || m(17, !0, this, { missingModuleFor: tt }), tt = new st(), typeof tt.init == "function" && tt.init(this, J), tt;
  11605. }, at.prototype.setSeriesData = function() {
  11606. this.getSeriesOrderByLinks().forEach(function(J) {
  11607. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  11608. });
  11609. }, at.prototype.getSeriesOrderByLinks = function() {
  11610. return this.series.concat().sort(function(J, tt) {
  11611. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  11612. });
  11613. }, at.prototype.orderSeries = function(J) {
  11614. var tt = this.series;
  11615. J = J || 0;
  11616. for (var st = tt.length; J < st; ++J)
  11617. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  11618. }, at.prototype.isInsidePlot = function(J, tt, st) {
  11619. st === void 0 && (st = {});
  11620. var lt = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Mt = this.scrollablePlotBox, Pt = 0, At = 0;
  11621. st.visiblePlotOnly && this.scrollingContainer && (At = this.scrollingContainer, Pt = At.scrollLeft, At = At.scrollTop);
  11622. var St = st.series;
  11623. if (pt = st.visiblePlotOnly && Mt || pt, Mt = st.inverted ? tt : J, tt = st.inverted ? J : tt, J = { x: Mt, y: tt, isInsidePlot: !0 }, !st.ignoreX) {
  11624. var Dt = St && (lt ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  11625. Mt = st.paneCoordinates ? Dt.pos + Mt : yt + Mt, Mt >= Math.max(Pt + yt, Dt.pos) && Mt <= Math.min(Pt + yt + pt.width, Dt.pos + Dt.len) || (J.isInsidePlot = !1);
  11626. }
  11627. return !st.ignoreY && J.isInsidePlot && (lt = St && (lt ? St.xAxis : St.yAxis) || { pos: vt, len: 1 / 0 }, st = st.paneCoordinates ? lt.pos + tt : vt + tt, st >= Math.max(At + vt, lt.pos) && st <= Math.min(At + vt + pt.height, lt.pos + lt.len) || (J.isInsidePlot = !1)), V(this, "afterIsInsidePlot", J), J.isInsidePlot;
  11628. }, at.prototype.redraw = function(J) {
  11629. V(this, "beforeRedraw");
  11630. var tt = this.hasCartesianSeries ? this.axes : this.colorAxis || [], st = this.series, lt = this.pointer, pt = this.legend, yt = this.userOptions.legend, vt = this.renderer, Mt = vt.isHidden(), Pt = [], At = this.isDirtyBox, St = this.isDirtyLegend;
  11631. for (this.setResponsive && this.setResponsive(!1), S(this.hasRendered ? J : !1, this), Mt && this.temporaryDisplay(), this.layOutTitles(), J = st.length; J--; ) {
  11632. var Dt = st[J];
  11633. if (Dt.options.stacking || Dt.options.centerInCategory) {
  11634. var Lt = !0;
  11635. if (Dt.isDirty) {
  11636. var Nt = !0;
  11637. break;
  11638. }
  11639. }
  11640. }
  11641. if (Nt)
  11642. for (J = st.length; J--; )
  11643. Dt = st[J], Dt.options.stacking && (Dt.isDirty = !0);
  11644. st.forEach(function(Et) {
  11645. Et.isDirty && (Et.options.legendType === "point" ? (typeof Et.updateTotals == "function" && Et.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Et.isDirtyData && V(Et, "updatedData");
  11646. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), Lt && this.getStacks(), tt.forEach(function(Et) {
  11647. Et.updateNames(), Et.setScale();
  11648. }), this.getMargins(), tt.forEach(function(Et) {
  11649. Et.isDirty && (At = !0);
  11650. }), tt.forEach(function(Et) {
  11651. var Kt = Et.min + "," + Et.max;
  11652. Et.extKey !== Kt && (Et.extKey = Kt, Pt.push(function() {
  11653. V(Et, "afterSetExtremes", L(Et.eventArgs, Et.getExtremes())), delete Et.eventArgs;
  11654. })), (At || Lt) && Et.redraw();
  11655. }), At && this.drawChartBox(), V(this, "predraw"), st.forEach(function(Et) {
  11656. (At || Et.isDirty) && Et.visible && Et.redraw(), Et.isDirtyData = !1;
  11657. }), lt && lt.reset(!0), vt.draw(), V(this, "redraw"), V(this, "render"), Mt && this.temporaryDisplay(!0), Pt.forEach(function(Et) {
  11658. Et.call();
  11659. });
  11660. }, at.prototype.get = function(J) {
  11661. function tt(yt) {
  11662. return yt.id === J || yt.options && yt.options.id === J;
  11663. }
  11664. for (var st = this.series, lt = Y(this.axes, tt) || Y(this.series, tt), pt = 0; !lt && pt < st.length; pt++)
  11665. lt = Y(st[pt].points || [], tt);
  11666. return lt;
  11667. }, at.prototype.getAxes = function() {
  11668. var J = this, tt = this.options, st = tt.xAxis = gt(tt.xAxis || {});
  11669. tt = tt.yAxis = gt(tt.yAxis || {}), V(this, "getAxes"), st.forEach(function(lt, pt) {
  11670. lt.index = pt, lt.isX = !0;
  11671. }), tt.forEach(function(lt, pt) {
  11672. lt.index = pt;
  11673. }), st.concat(tt).forEach(function(lt) {
  11674. new j(J, lt);
  11675. }), V(this, "afterGetAxes");
  11676. }, at.prototype.getSelectedPoints = function() {
  11677. return this.series.reduce(function(J, tt) {
  11678. return tt.getPointsCollection().forEach(function(st) {
  11679. et(st.selectedStaging, st.selected) && J.push(st);
  11680. }), J;
  11681. }, []);
  11682. }, at.prototype.getSelectedSeries = function() {
  11683. return this.series.filter(function(J) {
  11684. return J.selected;
  11685. });
  11686. }, at.prototype.setTitle = function(J, tt, st) {
  11687. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription(
  11688. "caption",
  11689. void 0
  11690. ), this.layOutTitles(st);
  11691. }, at.prototype.applyDescription = function(J, tt) {
  11692. var st = this, lt = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  11693. lt = this.options[J] = q(!this.styledMode && { style: lt }, this.options[J], tt);
  11694. var pt = this[J];
  11695. pt && tt && (this[J] = pt = pt.destroy()), lt && !pt && (pt = this.renderer.text(lt.text, 0, 0, lt.useHTML).attr({ align: lt.align, class: "highcharts-" + J, zIndex: lt.zIndex || 4 }).add(), pt.update = function(yt) {
  11696. st[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  11697. }, this.styledMode || pt.css(lt.style), this[J] = pt);
  11698. }, at.prototype.layOutTitles = function(J) {
  11699. var tt = [0, 0, 0], st = this.renderer, lt = this.spacingBox;
  11700. ["title", "subtitle", "caption"].forEach(function(yt) {
  11701. var vt = this[yt], Mt = this.options[yt], Pt = Mt.verticalAlign || "top";
  11702. yt = yt === "title" ? Pt === "top" ? -3 : 0 : Pt === "top" ? tt[0] + 2 : 0;
  11703. var At;
  11704. if (vt) {
  11705. this.styledMode || (At = Mt.style && Mt.style.fontSize), At = st.fontMetrics(At, vt).b, vt.css({ width: (Mt.width || lt.width + (Mt.widthAdjust || 0)) + "px" });
  11706. var St = Math.round(vt.getBBox(Mt.useHTML).height);
  11707. vt.align(L({ y: Pt === "bottom" ? At : yt + At, height: St }, Mt), !1, "spacingBox"), Mt.floating || (Pt === "top" ? tt[0] = Math.ceil(tt[0] + St) : Pt === "bottom" && (tt[2] = Math.ceil(tt[2] + St)));
  11708. }
  11709. }, this), tt[0] && (this.options.title.verticalAlign || "top") === "top" && (tt[0] += this.options.title.margin), tt[2] && this.options.caption.verticalAlign === "bottom" && (tt[2] += this.options.caption.margin);
  11710. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  11711. this.titleOffset = tt, V(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  11712. }, at.prototype.getChartSize = function() {
  11713. var J = this.options.chart, tt = J.width;
  11714. J = J.height;
  11715. var st = this.renderTo;
  11716. P(tt) || (this.containerWidth = Q(st, "width")), P(J) || (this.containerHeight = Q(st, "height")), this.chartWidth = Math.max(0, tt || this.containerWidth || 600), this.chartHeight = Math.max(0, rt(J, this.chartWidth) || (1 < this.containerHeight ? this.containerHeight : 400));
  11717. }, at.prototype.temporaryDisplay = function(J) {
  11718. var tt = this.renderTo;
  11719. if (J)
  11720. for (; tt && tt.style; )
  11721. tt.hcOrigStyle && (W(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  11722. else
  11723. for (; tt && tt.style && (c.body.contains(tt) || tt.parentNode || (tt.hcOrigDetached = !0, c.body.appendChild(tt)), (Q(tt, "display", !1) === "none" || tt.hcOricDetached) && (tt.hcOrigStyle = { display: tt.style.display, height: tt.style.height, overflow: tt.style.overflow }, J = { display: "block", overflow: "hidden" }, tt !== this.renderTo && (J.height = 0), W(tt, J), tt.offsetWidth || tt.style.setProperty("display", "block", "important")), tt = tt.parentNode, tt !== c.body); )
  11724. ;
  11725. }, at.prototype.setClassName = function(J) {
  11726. this.container.className = "highcharts-container " + (J || "");
  11727. }, at.prototype.getContainer = function() {
  11728. var J = this.options, tt = J.chart, st = ht(), lt, pt = this.renderTo;
  11729. pt || (this.renderTo = pt = tt.renderTo), $(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  11730. var yt = nt(A(pt, "data-highcharts-chart"));
  11731. G(yt) && a[yt] && a[yt].hasRendered && a[yt].destroy(), A(pt, "data-highcharts-chart", this.index), pt.innerHTML = O.emptyHTML, tt.skipClone || pt.offsetWidth || this.temporaryDisplay(), this.getChartSize(), yt = this.chartWidth;
  11732. var vt = this.chartHeight;
  11733. if (W(pt, { overflow: "hidden" }), this.styledMode || (lt = L({ position: "relative", overflow: "hidden", width: yt + "px", height: vt + "px", textAlign: "left", lineHeight: "normal", zIndex: 0, "-webkit-tap-highlight-color": "rgba(0,0,0,0)", userSelect: "none", "touch-action": "manipulation", outline: "none" }, tt.style || {})), this.container = st = D("div", { id: st }, lt, pt), this._cursor = st.style.cursor, this.renderer = new (tt.renderer || !i ? b.getRendererType(tt.renderer) : u)(st, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), S(
  11734. void 0,
  11735. this
  11736. ), this.setClassName(tt.className), this.styledMode)
  11737. for (var Mt in J.defs)
  11738. this.renderer.definition(J.defs[Mt]);
  11739. else
  11740. this.renderer.setStyle(tt.style);
  11741. this.renderer.chartIndex = this.index, V(this, "afterGetContainer");
  11742. }, at.prototype.getMargins = function(J) {
  11743. var tt = this.spacing, st = this.margin, lt = this.titleOffset;
  11744. this.resetMargins(), lt[0] && !P(st[0]) && (this.plotTop = Math.max(this.plotTop, lt[0] + tt[0])), lt[2] && !P(st[2]) && (this.marginBottom = Math.max(this.marginBottom, lt[2] + tt[2])), this.legend && this.legend.display && this.legend.adjustMargins(
  11745. st,
  11746. tt
  11747. ), V(this, "getMargins"), J || this.getAxisMargins();
  11748. }, at.prototype.getAxisMargins = function() {
  11749. var J = this, tt = J.axisOffset = [0, 0, 0, 0], st = J.colorAxis, lt = J.margin, pt = function(yt) {
  11750. yt.forEach(function(vt) {
  11751. vt.visible && vt.getOffset();
  11752. });
  11753. };
  11754. J.hasCartesianSeries ? pt(J.axes) : st && st.length && pt(st), p.forEach(function(yt, vt) {
  11755. P(lt[vt]) || (J[yt] += tt[vt]);
  11756. }), J.setChartSize();
  11757. }, at.prototype.reflow = function(J) {
  11758. var tt = this, st = tt.options.chart, lt = tt.renderTo, pt = P(st.width) && P(st.height), yt = st.width || Q(lt, "width");
  11759. st = st.height || Q(lt, "height"), lt = J ? J.target : h, delete tt.pointer.chartPosition, !pt && !tt.isPrinting && yt && st && (lt === h || lt === c) && ((yt !== tt.containerWidth || st !== tt.containerHeight) && (E.clearTimeout(tt.reflowTimeout), tt.reflowTimeout = dt(function() {
  11760. tt.container && tt.setSize(void 0, void 0, !1);
  11761. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = st);
  11762. }, at.prototype.setReflow = function(J) {
  11763. var tt = this;
  11764. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = n(h, "resize", function(st) {
  11765. tt.options && tt.reflow(st);
  11766. }), n(this, "destroy", this.unbindReflow));
  11767. }, at.prototype.setSize = function(J, tt, st) {
  11768. var lt = this, pt = lt.renderer;
  11769. lt.isResizing += 1, S(st, lt), st = pt.globalAnimation, lt.oldChartHeight = lt.chartHeight, lt.oldChartWidth = lt.chartWidth, typeof J < "u" && (lt.options.chart.width = J), typeof tt < "u" && (lt.options.chart.height = tt), lt.getChartSize(), lt.styledMode || (st ? B : W)(lt.container, { width: lt.chartWidth + "px", height: lt.chartHeight + "px" }, st), lt.setChartSize(!0), pt.setSize(lt.chartWidth, lt.chartHeight, st), lt.axes.forEach(function(yt) {
  11770. yt.isDirty = !0, yt.setScale();
  11771. }), lt.isDirtyLegend = !0, lt.isDirtyBox = !0, lt.layOutTitles(), lt.getMargins(), lt.redraw(st), lt.oldChartHeight = null, V(lt, "resize"), dt(function() {
  11772. lt && V(lt, "endResize", null, function() {
  11773. --lt.isResizing;
  11774. });
  11775. }, M(st).duration);
  11776. }, at.prototype.setChartSize = function(J) {
  11777. var tt = this.inverted, st = this.renderer, lt = this.chartWidth, pt = this.chartHeight, yt = this.options.chart, vt = this.spacing, Mt = this.clipOffset, Pt, At, St, Dt;
  11778. this.plotLeft = Pt = Math.round(this.plotLeft), this.plotTop = At = Math.round(this.plotTop), this.plotWidth = St = Math.max(0, Math.round(lt - Pt - this.marginRight)), this.plotHeight = Dt = Math.max(0, Math.round(pt - At - this.marginBottom)), this.plotSizeX = tt ? Dt : St, this.plotSizeY = tt ? St : Dt, this.plotBorderWidth = yt.plotBorderWidth || 0, this.spacingBox = st.spacingBox = { x: vt[3], y: vt[0], width: lt - vt[3] - vt[1], height: pt - vt[0] - vt[2] }, this.plotBox = st.plotBox = { x: Pt, y: At, width: St, height: Dt }, tt = 2 * Math.floor(this.plotBorderWidth / 2), lt = Math.ceil(Math.max(tt, Mt[3]) / 2), pt = Math.ceil(Math.max(tt, Mt[0]) / 2), this.clipBox = { x: lt, y: pt, width: Math.floor(this.plotSizeX - Math.max(tt, Mt[1]) / 2 - lt), height: Math.max(0, Math.floor(this.plotSizeY - Math.max(tt, Mt[2]) / 2 - pt)) }, J || (this.axes.forEach(function(Lt) {
  11779. Lt.setAxisSize(), Lt.setAxisTranslation();
  11780. }), st.alignElements()), V(this, "afterSetChartSize", { skipAxes: J });
  11781. }, at.prototype.resetMargins = function() {
  11782. V(this, "resetMargins");
  11783. var J = this, tt = J.options.chart;
  11784. ["margin", "spacing"].forEach(function(st) {
  11785. var lt = tt[st], pt = z(lt) ? lt : [lt, lt, lt, lt];
  11786. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  11787. J[st][vt] = et(tt[st + yt], pt[vt]);
  11788. });
  11789. }), p.forEach(function(st, lt) {
  11790. J[st] = et(J.margin[lt], J.spacing[lt]);
  11791. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  11792. }, at.prototype.drawChartBox = function() {
  11793. var J = this.options.chart, tt = this.renderer, st = this.chartWidth, lt = this.chartHeight, pt = this.styledMode, yt = this.plotBGImage, vt = J.backgroundColor, Mt = J.plotBackgroundColor, Pt = J.plotBackgroundImage, At = this.plotLeft, St = this.plotTop, Dt = this.plotWidth, Lt = this.plotHeight, Nt = this.plotBox, Et = this.clipRect, Kt = this.clipBox, Gt = this.chartBackground, Wt = this.plotBackground, Jt = this.plotBorder, be, zt = "animate";
  11794. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), zt = "attr"), pt)
  11795. var Vt = be = Gt.strokeWidth();
  11796. else
  11797. Vt = J.borderWidth || 0, be = Vt + (J.shadow ? 8 : 0), vt = { fill: vt || "none" }, (Vt || Gt["stroke-width"]) && (vt.stroke = J.borderColor, vt["stroke-width"] = Vt), Gt.attr(vt).shadow(J.shadow);
  11798. Gt[zt]({ x: be / 2, y: be / 2, width: st - be - Vt % 2, height: lt - be - Vt % 2, r: J.borderRadius }), zt = "animate", Wt || (zt = "attr", this.plotBackground = Wt = tt.rect().addClass("highcharts-plot-background").add()), Wt[zt](Nt), pt || (Wt.attr({ fill: Mt || "none" }).shadow(J.plotShadow), Pt && (yt ? (Pt !== yt.attr("href") && yt.attr("href", Pt), yt.animate(Nt)) : this.plotBGImage = tt.image(Pt, At, St, Dt, Lt).add())), Et ? Et.animate({ width: Kt.width, height: Kt.height }) : this.clipRect = tt.clipRect(Kt), zt = "animate", Jt || (zt = "attr", this.plotBorder = Jt = tt.rect().addClass("highcharts-plot-border").attr({ zIndex: 1 }).add()), pt || Jt.attr({ stroke: J.plotBorderColor, "stroke-width": J.plotBorderWidth || 0, fill: "none" }), Jt[zt](Jt.crisp({ x: At, y: St, width: Dt, height: Lt }, -Jt.strokeWidth())), this.isDirtyBox = !1, V(this, "afterDrawChartBox");
  11799. }, at.prototype.propFromSeries = function() {
  11800. var J = this, tt = J.options.chart, st = J.options.series, lt, pt, yt;
  11801. ["inverted", "angular", "polar"].forEach(function(vt) {
  11802. for (pt = o[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], lt = st && st.length; !yt && lt--; )
  11803. (pt = o[st[lt].type]) && pt.prototype[vt] && (yt = !0);
  11804. J[vt] = yt;
  11805. });
  11806. }, at.prototype.linkSeries = function() {
  11807. var J = this, tt = J.series;
  11808. tt.forEach(function(st) {
  11809. st.linkedSeries.length = 0;
  11810. }), tt.forEach(function(st) {
  11811. var lt = st.options.linkedTo;
  11812. $(lt) && (lt = lt === ":previous" ? J.series[st.index - 1] : J.get(lt)) && lt.linkedParent !== st && (lt.linkedSeries.push(st), st.linkedParent = lt, lt.enabledDataSorting && st.setDataSortingOptions(), st.visible = et(st.options.visible, lt.options.visible, st.visible));
  11813. }), V(this, "afterLinkSeries");
  11814. }, at.prototype.renderSeries = function() {
  11815. this.series.forEach(function(J) {
  11816. J.translate(), J.render();
  11817. });
  11818. }, at.prototype.renderLabels = function() {
  11819. var J = this, tt = J.options.labels;
  11820. tt.items && tt.items.forEach(function(st) {
  11821. var lt = L(tt.style, st.style), pt = nt(lt.left) + J.plotLeft, yt = nt(lt.top) + J.plotTop + 12;
  11822. delete lt.left, delete lt.top, J.renderer.text(st.html, pt, yt).attr({ zIndex: 2 }).css(lt).add();
  11823. });
  11824. }, at.prototype.render = function() {
  11825. var J = this.axes, tt = this.colorAxis, st = this.renderer, lt = this.options, pt = function(At) {
  11826. At.forEach(function(St) {
  11827. St.visible && St.render();
  11828. });
  11829. }, yt = 0;
  11830. this.setTitle(), this.legend = new U(this, lt.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), lt = this.plotWidth, J.some(function(At) {
  11831. if (At.horiz && At.visible && At.options.labels.enabled && At.series.length)
  11832. return yt = 21, !0;
  11833. });
  11834. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  11835. J.forEach(function(At) {
  11836. At.setScale();
  11837. }), this.getAxisMargins();
  11838. var Mt = 1.1 < lt / this.plotWidth, Pt = 1.05 < vt / this.plotHeight;
  11839. (Mt || Pt) && (J.forEach(function(At) {
  11840. (At.horiz && Mt || !At.horiz && Pt) && At.setTickInterval(!0);
  11841. }), this.getMargins()), this.drawChartBox(), this.hasCartesianSeries ? pt(J) : tt && tt.length && pt(tt), this.seriesGroup || (this.seriesGroup = st.g("series-group").attr({ zIndex: 3 }).add()), this.renderSeries(), this.renderLabels(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = !0;
  11842. }, at.prototype.addCredits = function(J) {
  11843. var tt = this, st = q(!0, this.options.credits, J);
  11844. st.enabled && !this.credits && (this.credits = this.renderer.text(st.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  11845. st.href && (h.location.href = st.href);
  11846. }).attr({ align: st.position.align, zIndex: 8 }), tt.styledMode || this.credits.css(st.style), this.credits.add().align(st.position), this.credits.update = function(lt) {
  11847. tt.credits = tt.credits.destroy(), tt.addCredits(lt);
  11848. });
  11849. }, at.prototype.destroy = function() {
  11850. var J = this, tt = J.axes, st = J.series, lt = J.container, pt = lt && lt.parentNode, yt;
  11851. for (V(J, "destroy"), J.renderer.forExport ? g(a, J) : a[J.index] = void 0, H.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  11852. tt[yt] = tt[yt].destroy();
  11853. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = st.length; yt--; )
  11854. st[yt] = st[yt].destroy();
  11855. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  11856. var Mt = J[vt];
  11857. Mt && Mt.destroy && (J[vt] = Mt.destroy());
  11858. }), lt && (lt.innerHTML = O.emptyHTML, ct(lt), pt && X(lt)), it(J, function(vt, Mt) {
  11859. delete J[Mt];
  11860. });
  11861. }, at.prototype.firstRender = function() {
  11862. var J = this, tt = J.options;
  11863. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (k(tt.series) ? tt.series : []).forEach(function(st) {
  11864. J.initSeries(st);
  11865. }), J.linkSeries(), J.setSeriesData(), V(J, "beforeRender"), N && (F.isRequired() ? J.pointer = new F(J, tt) : J.pointer = new N(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  11866. }, at.prototype.onload = function() {
  11867. this.callbacks.concat([this.callback]).forEach(function(J) {
  11868. J && typeof this.index < "u" && J.apply(this, [this]);
  11869. }, this), V(this, "load"), V(this, "render"), P(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  11870. }, at.prototype.addSeries = function(J, tt, st) {
  11871. var lt = this, pt;
  11872. return J && (tt = et(tt, !0), V(lt, "addSeries", { options: J }, function() {
  11873. pt = lt.initSeries(J), lt.isDirtyLegend = !0, lt.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), V(lt, "afterAddSeries", { series: pt }), tt && lt.redraw(st);
  11874. })), pt;
  11875. }, at.prototype.addAxis = function(J, tt, st, lt) {
  11876. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: st, animation: lt });
  11877. }, at.prototype.addColorAxis = function(J, tt, st) {
  11878. return this.createAxis(
  11879. "colorAxis",
  11880. { axis: J, redraw: tt, animation: st }
  11881. );
  11882. }, at.prototype.createAxis = function(J, tt) {
  11883. return J = new j(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  11884. }, at.prototype.showLoading = function(J) {
  11885. var tt = this, st = tt.options, lt = st.loading, pt = function() {
  11886. yt && W(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  11887. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  11888. yt || (tt.loadingDiv = yt = D("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, tt.container)), vt || (tt.loadingSpan = vt = D("span", { className: "highcharts-loading-inner" }, null, yt), n(tt, "redraw", pt)), yt.className = "highcharts-loading", O.setElementHTML(vt, et(J, st.lang.loading, "")), tt.styledMode || (W(yt, L(lt.style, { zIndex: 10 })), W(vt, lt.labelStyle), tt.loadingShown || (W(yt, { opacity: 0, display: "" }), B(yt, { opacity: lt.style.opacity || 0.5 }, { duration: lt.showDuration || 0 }))), tt.loadingShown = !0, pt();
  11889. }, at.prototype.hideLoading = function() {
  11890. var J = this.options, tt = this.loadingDiv;
  11891. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || B(tt, { opacity: 0 }, { duration: J.loading.hideDuration || 100, complete: function() {
  11892. W(tt, { display: "none" });
  11893. } })), this.loadingShown = !1;
  11894. }, at.prototype.update = function(J, tt, st, lt) {
  11895. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Mt = [], Pt, At;
  11896. V(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = _(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  11897. var St = J.chart;
  11898. if (St) {
  11899. if (q(!0, pt.options.chart, St), "className" in St && pt.setClassName(St.className), "reflow" in St && pt.setReflow(St.reflow), "inverted" in St || "polar" in St || "type" in St) {
  11900. pt.propFromSeries();
  11901. var Dt = !0;
  11902. }
  11903. "alignTicks" in St && (Dt = !0), "events" in St && v(this, St), it(St, function(Lt, Nt) {
  11904. pt.propsRequireUpdateSeries.indexOf("chart." + Nt) !== -1 && (Pt = !0), pt.propsRequireDirtyBox.indexOf(Nt) !== -1 && (pt.isDirtyBox = !0), pt.propsRequireReflow.indexOf(Nt) !== -1 && (vt ? pt.isDirtyBox = !0 : At = !0);
  11905. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  11906. }
  11907. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new f(J.time)), q(
  11908. !0,
  11909. pt.options.time,
  11910. J.time
  11911. )), it(J, function(Lt, Nt) {
  11912. pt[Nt] && typeof pt[Nt].update == "function" ? pt[Nt].update(Lt, !1) : typeof pt[yt[Nt]] == "function" ? pt[yt[Nt]](Lt) : Nt !== "colors" && pt.collectionsWithUpdate.indexOf(Nt) === -1 && q(!0, pt.options[Nt], J[Nt]), Nt !== "chart" && pt.propsRequireUpdateSeries.indexOf(Nt) !== -1 && (Pt = !0);
  11913. }), this.collectionsWithUpdate.forEach(function(Lt) {
  11914. if (J[Lt]) {
  11915. var Nt = [];
  11916. pt[Lt].forEach(function(Et, Kt) {
  11917. Et.options.isInternal || Nt.push(et(Et.options.index, Kt));
  11918. }), gt(J[Lt]).forEach(function(Et, Kt) {
  11919. var Gt = P(Et.id), Wt;
  11920. Gt && (Wt = pt.get(Et.id)), !Wt && pt[Lt] && (Wt = pt[Lt][Nt ? Nt[Kt] : Kt]) && Gt && P(Wt.options.id) && (Wt = void 0), Wt && Wt.coll === Lt && (Wt.update(Et, !1), st && (Wt.touched = !0)), !Wt && st && pt.collectionsWithInit[Lt] && (pt.collectionsWithInit[Lt][0].apply(pt, [Et].concat(pt.collectionsWithInit[Lt][1] || []).concat([!1])).touched = !0);
  11921. }), st && pt[Lt].forEach(function(Et) {
  11922. Et.touched || Et.options.isInternal ? delete Et.touched : Mt.push(Et);
  11923. });
  11924. }
  11925. }), Mt.forEach(function(Lt) {
  11926. Lt.chart && Lt.remove && Lt.remove(!1);
  11927. }), Dt && pt.axes.forEach(function(Lt) {
  11928. Lt.update({}, !1);
  11929. }), Pt && pt.getSeriesOrderByLinks().forEach(function(Lt) {
  11930. Lt.chart && Lt.update({}, !1);
  11931. }, this), Dt = St && St.width, St = St && ($(St.height) ? rt(St.height, Dt || pt.chartWidth) : St.height), At || G(Dt) && Dt !== pt.chartWidth || G(St) && St !== pt.chartHeight ? pt.setSize(Dt, St, lt) : et(tt, !0) && pt.redraw(lt), V(pt, "afterUpdate", { options: J, redraw: tt, animation: lt });
  11932. }, at.prototype.setSubtitle = function(J, tt) {
  11933. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  11934. }, at.prototype.setCaption = function(J, tt) {
  11935. this.applyDescription("caption", J), this.layOutTitles(tt);
  11936. }, at.prototype.showResetZoom = function() {
  11937. function J() {
  11938. tt.zoomOut();
  11939. }
  11940. var tt = this, st = s.lang, lt = tt.options.chart.resetZoomButton, pt = lt.theme, yt = pt.states, vt = lt.relativeTo === "chart" || lt.relativeTo === "spacingBox" ? null : "scrollablePlotBox";
  11941. V(this, "beforeShowResetZoom", null, function() {
  11942. tt.resetZoomButton = tt.renderer.button(st.resetZoom, null, null, J, pt, yt && yt.hover).attr({ align: lt.position.align, title: st.resetZoomTitle }).addClass("highcharts-reset-zoom").add().align(lt.position, !1, vt);
  11943. }), V(this, "afterShowResetZoom");
  11944. }, at.prototype.zoomOut = function() {
  11945. V(this, "selection", { resetSelection: !0 }, this.zoom);
  11946. }, at.prototype.zoom = function(J) {
  11947. var tt = this, st = tt.pointer, lt = tt.inverted ? st.mouseDownX : st.mouseDownY, pt = !1, yt;
  11948. !J || J.resetSelection ? (tt.axes.forEach(function(Mt) {
  11949. yt = Mt.zoom();
  11950. }), st.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Mt) {
  11951. var Pt = Mt.axis, At = tt.inverted ? Pt.left : Pt.top, St = tt.inverted ? At + Pt.width : At + Pt.height, Dt = Pt.isXAxis, Lt = !1;
  11952. (!Dt && lt >= At && lt <= St || Dt || !P(lt)) && (Lt = !0), st[Dt ? "zoomX" : "zoomY"] && Lt && (yt = Pt.zoom(Mt.min, Mt.max), Pt.displayBtn && (pt = !0));
  11953. });
  11954. var vt = tt.resetZoomButton;
  11955. pt && !vt ? tt.showResetZoom() : !pt && z(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  11956. tt.options.chart.animation,
  11957. J && J.animation,
  11958. 100 > tt.pointCount
  11959. ));
  11960. }, at.prototype.pan = function(J, tt) {
  11961. var st = this, lt = st.hoverPoints;
  11962. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  11963. var pt = st.options.chart, yt = st.options.mapNavigation && st.options.mapNavigation.enabled;
  11964. pt && pt.panning && (pt.panning = tt);
  11965. var vt = tt.type, Mt;
  11966. V(this, "pan", { originalEvent: J }, function() {
  11967. lt && lt.forEach(function(St) {
  11968. St.setState();
  11969. });
  11970. var Pt = st.xAxis;
  11971. vt === "xy" ? Pt = Pt.concat(st.yAxis) : vt === "y" && (Pt = st.yAxis);
  11972. var At = {};
  11973. Pt.forEach(function(St) {
  11974. if (St.options.panningEnabled && !St.options.isInternal) {
  11975. var Dt = St.horiz, Lt = J[Dt ? "chartX" : "chartY"];
  11976. Dt = Dt ? "mouseDownX" : "mouseDownY";
  11977. var Nt = st[Dt], Et = St.minPointOffset || 0, Kt = St.reversed && !st.inverted || !St.reversed && st.inverted ? -1 : 1, Gt = St.getExtremes(), Wt = St.toValue(Nt - Lt, !0) + Et * Kt, Jt = St.toValue(Nt + St.len - Lt, !0) - (Et * Kt || St.isXAxis && St.pointRangePadding || 0), be = Jt < Wt;
  11978. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  11979. var zt = St.panningState;
  11980. !Kt || St.isXAxis || zt && !zt.isDirty || St.series.forEach(function(Vt) {
  11981. var Ce = Vt.getProcessedData(!0);
  11982. Ce = Vt.getExtremes(Ce.yData, !0), zt || (zt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), G(Ce.dataMin) && G(Ce.dataMax) && (zt.startMin = Math.min(et(Vt.options.threshold, 1 / 0), Ce.dataMin, zt.startMin), zt.startMax = Math.max(et(Vt.options.threshold, -1 / 0), Ce.dataMax, zt.startMax));
  11983. }), Kt = Math.min(et(zt && zt.startMin, Gt.dataMin), Et ? Gt.min : St.toValue(St.toPixels(Gt.min) - St.minPixelPadding)), Jt = Math.max(et(zt && zt.startMax, Gt.dataMax), Et ? Gt.max : St.toValue(St.toPixels(Gt.max) + St.minPixelPadding)), St.panningState = zt, St.isOrdinal || (Et = Kt - Nt, 0 < Et && (Wt += Et, Nt = Kt), Et = Wt - Jt, 0 < Et && (Wt = Jt, Nt -= Et), St.series.length && Nt !== Gt.min && Wt !== Gt.max && Nt >= Kt && Wt <= Jt && (St.setExtremes(
  11984. Nt,
  11985. Wt,
  11986. !1,
  11987. !1,
  11988. { trigger: "pan" }
  11989. ), st.resetZoomButton || yt || Nt === Kt || Wt === Jt || !vt.match("y") || (st.showResetZoom(), St.displayBtn = !1), Mt = !0), At[Dt] = Lt);
  11990. }
  11991. }), it(At, function(St, Dt) {
  11992. st[Dt] = St;
  11993. }), Mt && st.redraw(!1), W(st.container, { cursor: "move" });
  11994. });
  11995. }, at;
  11996. }(), L(y.prototype, {
  11997. callbacks: [],
  11998. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  11999. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  12000. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  12001. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  12002. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  12003. }), y;
  12004. }), T(l, "Core/Legend/LegendSymbol.js", [l["Core/Utilities.js"]], function(y) {
  12005. var j = y.merge, I = y.pick, Z;
  12006. return function(H) {
  12007. H.drawLineMarker = function(U) {
  12008. var F = this.options, R = U.symbolWidth, N = U.symbolHeight, b = N / 2, x = this.chart.renderer, u = this.legendGroup;
  12009. U = U.baseline - Math.round(0.3 * U.fontMetrics.b);
  12010. var f = {}, E = F.marker;
  12011. this.chart.styledMode || (f = { "stroke-width": F.lineWidth || 0 }, F.dashStyle && (f.dashstyle = F.dashStyle)), this.legendLine = x.path([["M", 0, U], ["L", R, U]]).addClass("highcharts-graph").attr(f).add(u), E && E.enabled !== !1 && R && (F = Math.min(I(E.radius, b), b), this.symbol.indexOf("url") === 0 && (E = j(E, { width: N, height: N }), F = 0), this.legendSymbol = R = x.symbol(this.symbol, R / 2 - F, U - F, 2 * F, 2 * F, E).addClass("highcharts-point").add(u), R.isMarker = !0);
  12012. }, H.drawRectangle = function(U, F) {
  12013. var R = U.symbolHeight, N = U.options.squareSymbol;
  12014. F.legendSymbol = this.chart.renderer.rect(N ? (U.symbolWidth - R) / 2 : 0, U.baseline - R + 1, N ? R : U.symbolWidth, R, I(U.options.symbolRadius, R / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(F.legendGroup);
  12015. };
  12016. }(Z || (Z = {})), Z;
  12017. }), T(l, "Core/Series/SeriesDefaults.js", [], function() {
  12018. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  12019. normal: { animation: !0 },
  12020. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  12021. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  12022. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  12023. var y = this.series.chart.numberFormatter;
  12024. return typeof this.y != "number" ? "" : y(this.y, -1);
  12025. }, padding: 5, style: { fontSize: "11px", fontWeight: "bold", color: "contrast", textOutline: "1px contrast" }, verticalAlign: "bottom", x: 0, y: 0 }, cropThreshold: 300, opacity: 1, pointRange: 0, softThreshold: !0, states: {
  12026. normal: { animation: !0 },
  12027. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  12028. select: { animation: { duration: 0 } },
  12029. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  12030. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  12031. }), T(l, "Core/Series/Series.js", [
  12032. l["Core/Animation/AnimationUtilities.js"],
  12033. l["Core/DefaultOptions.js"],
  12034. l["Core/Foundation.js"],
  12035. l["Core/Globals.js"],
  12036. l["Core/Legend/LegendSymbol.js"],
  12037. l["Core/Series/Point.js"],
  12038. l["Core/Series/SeriesDefaults.js"],
  12039. l["Core/Series/SeriesRegistry.js"],
  12040. l["Core/Renderer/SVG/SVGElement.js"],
  12041. l["Core/Utilities.js"]
  12042. ], function(y, j, I, Z, H, U, F, R, N, b) {
  12043. var x = y.animObject, u = y.setAnimation, f = j.defaultOptions, E = I.registerEventOptions, O = Z.hasTouch, B = Z.svg, M = Z.win, S = R.seriesTypes, w = b.addEvent, v = b.arrayMax, a = b.arrayMin, c = b.clamp, p = b.cleanRecursively, i = b.correctFloat, h = b.defined, s = b.erase, t = b.error, o = b.extend, n = b.find, A = b.fireEvent, _ = b.getNestedProperty, D = b.isArray, W = b.isNumber, P = b.isString, X = b.merge, g = b.objectEach, m = b.pick, L = b.removeEvent, Y = b.splat, V = b.syncTimeout;
  12044. return y = function() {
  12045. function Q() {
  12046. this.zones = this.yAxis = this.xAxis = this.userOptions = this.tooltipOptions = this.processedYData = this.processedXData = this.points = this.options = this.linkedSeries = this.index = this.eventsToUnbind = this.eventOptions = this.data = this.chart = this._i = void 0;
  12047. }
  12048. return Q.prototype.init = function(k, G) {
  12049. A(this, "init", { options: G });
  12050. var z = this, $ = k.series;
  12051. this.eventsToUnbind = [], z.chart = k, z.options = z.setOptions(G), G = z.options, z.linkedSeries = [], z.bindAxes(), o(z, { name: G.name, state: "", visible: G.visible !== !1, selected: G.selected === !0 }), E(this, G);
  12052. var q = G.events;
  12053. (q && q.click || G.point && G.point.events && G.point.events.click || G.allowPointSelect) && (k.runTrackerClick = !0), z.getColor(), z.getSymbol(), z.parallelArrays.forEach(function(et) {
  12054. z[et + "Data"] || (z[et + "Data"] = []);
  12055. }), z.isCartesian && (k.hasCartesianSeries = !0);
  12056. var it;
  12057. $.length && (it = $[$.length - 1]), z._i = m(it && it._i, -1) + 1, z.opacity = z.options.opacity, k.orderSeries(this.insert($)), G.dataSorting && G.dataSorting.enabled ? z.setDataSortingOptions() : z.points || z.data || z.setData(G.data, !1), A(this, "afterInit");
  12058. }, Q.prototype.is = function(k) {
  12059. return S[k] && this instanceof S[k];
  12060. }, Q.prototype.insert = function(k) {
  12061. var G = this.options.index, z;
  12062. if (W(G)) {
  12063. for (z = k.length; z--; )
  12064. if (G >= m(k[z].options.index, k[z]._i)) {
  12065. k.splice(z + 1, 0, this);
  12066. break;
  12067. }
  12068. z === -1 && k.unshift(this), z += 1;
  12069. } else
  12070. k.push(this);
  12071. return m(z, k.length - 1);
  12072. }, Q.prototype.bindAxes = function() {
  12073. var k = this, G = k.options, z = k.chart, $;
  12074. A(this, "bindAxes", null, function() {
  12075. (k.axisTypes || []).forEach(function(q) {
  12076. var it = 0;
  12077. z[q].forEach(function(et) {
  12078. $ = et.options, (G[q] === it && !$.isInternal || typeof G[q] < "u" && G[q] === $.id || typeof G[q] > "u" && $.index === 0) && (k.insert(et.series), k[q] = et, et.isDirty = !0), $.isInternal || it++;
  12079. }), k[q] || k.optionalAxis === q || t(18, !0, z);
  12080. });
  12081. }), A(this, "afterBindAxes");
  12082. }, Q.prototype.updateParallelArrays = function(k, G) {
  12083. var z = k.series, $ = arguments, q = W(G) ? function(it) {
  12084. var et = it === "y" && z.toYData ? z.toYData(k) : k[it];
  12085. z[it + "Data"][G] = et;
  12086. } : function(it) {
  12087. Array.prototype[G].apply(z[it + "Data"], Array.prototype.slice.call($, 2));
  12088. };
  12089. z.parallelArrays.forEach(q);
  12090. }, Q.prototype.hasData = function() {
  12091. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  12092. }, Q.prototype.autoIncrement = function(k) {
  12093. var G = this.options, z = G.pointIntervalUnit, $ = G.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  12094. return it = m(it, G.pointStart, 0), this.pointInterval = et = m(this.pointInterval, G.pointInterval, 1), $ && W(k) && (et *= k), z && (G = new q.Date(it), z === "day" ? q.set("Date", G, q.get("Date", G) + et) : z === "month" ? q.set("Month", G, q.get("Month", G) + et) : z === "year" && q.set("FullYear", G, q.get("FullYear", G) + et), et = G.getTime() - it), $ && W(k) ? it + et : (this.xIncrement = it + et, it);
  12095. }, Q.prototype.setDataSortingOptions = function() {
  12096. var k = this.options;
  12097. o(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), h(k.pointRange) || (k.pointRange = 1);
  12098. }, Q.prototype.setOptions = function(k) {
  12099. var G = this.chart, z = G.options, $ = z.plotOptions, q = G.userOptions || {};
  12100. k = X(k), G = G.styledMode;
  12101. var it = { plotOptions: $, userOptions: k };
  12102. A(this, "setOptions", it);
  12103. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  12104. return this.userOptions = it.userOptions, q = X(et, $.series, q.plotOptions && q.plotOptions[this.type], k), this.tooltipOptions = X(f.tooltip, f.plotOptions.series && f.plotOptions.series.tooltip, f.plotOptions[this.type].tooltip, z.tooltip.userOptions, $.series && $.series.tooltip, $[this.type].tooltip, k.tooltip), this.stickyTracking = m(k.stickyTracking, nt[this.type] && nt[this.type].stickyTracking, nt.series && nt.series.stickyTracking, this.tooltipOptions.shared && !this.noSharedTooltip ? !0 : q.stickyTracking), et.marker === null && delete q.marker, this.zoneAxis = q.zoneAxis, $ = this.zones = (q.zones || []).slice(), !q.negativeColor && !q.negativeFillColor || q.zones || (z = { value: q[this.zoneAxis + "Threshold"] || q.threshold || 0, className: "highcharts-negative" }, G || (z.color = q.negativeColor, z.fillColor = q.negativeFillColor), $.push(z)), $.length && h($[$.length - 1].value) && $.push(G ? {} : { color: this.color, fillColor: this.fillColor }), A(this, "afterSetOptions", { options: q }), q;
  12105. }, Q.prototype.getName = function() {
  12106. return m(this.options.name, "Series " + (this.index + 1));
  12107. }, Q.prototype.getCyclic = function(k, G, z) {
  12108. var $ = this.chart, q = this.userOptions, it = k + "Index", et = k + "Counter", nt = z ? z.length : m($.options.chart[k + "Count"], $[k + "Count"]);
  12109. if (!G) {
  12110. var rt = m(q[it], q["_" + it]);
  12111. h(rt) || ($.series.length || ($[et] = 0), q["_" + it] = rt = $[et] % nt, $[et] += 1), z && (G = z[rt]);
  12112. }
  12113. typeof rt < "u" && (this[it] = rt), this[k] = G;
  12114. }, Q.prototype.getColor = function() {
  12115. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || f.plotOptions[this.type].color, this.chart.options.colors);
  12116. }, Q.prototype.getPointsCollection = function() {
  12117. return (this.hasGroupedData ? this.points : this.data) || [];
  12118. }, Q.prototype.getSymbol = function() {
  12119. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  12120. }, Q.prototype.findPointIndex = function(k, G) {
  12121. var z = k.id, $ = k.x, q = this.points, it = this.options.dataSorting, et, nt;
  12122. if (z)
  12123. it = this.chart.get(z), it instanceof U && (et = it);
  12124. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  12125. return !ct.touched && ct.index === k.index;
  12126. }, it && it.matchByName ? et = function(ct) {
  12127. return !ct.touched && ct.name === k.name;
  12128. } : this.options.relativeXValue && (et = function(ct) {
  12129. return !ct.touched && ct.options.x === k.x;
  12130. }), et = n(q, et), !et))
  12131. return;
  12132. if (et) {
  12133. var rt = et && et.index;
  12134. typeof rt < "u" && (nt = !0);
  12135. }
  12136. return typeof rt > "u" && W($) && (rt = this.xData.indexOf($, G)), rt !== -1 && typeof rt < "u" && this.cropped && (rt = rt >= this.cropStart ? rt - this.cropStart : rt), !nt && W(rt) && q[rt] && q[rt].touched && (rt = void 0), rt;
  12137. }, Q.prototype.updateData = function(k, G) {
  12138. var z = this.options, $ = z.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = k.length === q.length, rt, ct, gt, dt = !0;
  12139. if (this.xIncrement = null, k.forEach(function(ht, at) {
  12140. var J = h(ht) && this.pointClass.prototype.optionsToObject.call({ series: this }, ht) || {}, tt = J.x;
  12141. J.id || W(tt) ? (J = this.findPointIndex(J, gt), J === -1 || typeof J > "u" ? it.push(ht) : q[J] && ht !== z.data[J] ? (q[J].update(ht, !1, null, !1), q[J].touched = !0, et && (gt = J + 1)) : q[J] && (q[J].touched = !0), (!nt || at !== J || $ && $.enabled || this.hasDerivedData) && (rt = !0)) : it.push(ht);
  12142. }, this), rt)
  12143. for (k = q.length; k--; )
  12144. (ct = q[k]) && !ct.touched && ct.remove && ct.remove(!1, G);
  12145. else
  12146. !nt || $ && $.enabled ? dt = !1 : (k.forEach(function(ht, at) {
  12147. ht !== q[at].y && q[at].update && q[at].update(
  12148. ht,
  12149. !1,
  12150. null,
  12151. !1
  12152. );
  12153. }), it.length = 0);
  12154. return q.forEach(function(ht) {
  12155. ht && (ht.touched = !1);
  12156. }), dt ? (it.forEach(function(ht) {
  12157. this.addPoint(ht, !1, null, null, !1);
  12158. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = v(this.xData), this.autoIncrement()), !0) : !1;
  12159. }, Q.prototype.setData = function(k, G, z, $) {
  12160. var q = this, it = q.points, et = it && it.length || 0, nt = q.options, rt = q.chart, ct = nt.dataSorting, gt = q.xAxis, dt = nt.turboThreshold, ht = this.xData, at = this.yData, J = q.pointArrayMap;
  12161. J = J && J.length;
  12162. var tt = nt.keys, st, lt = 0, pt = 1, yt = null;
  12163. k = k || [];
  12164. var vt = k.length;
  12165. if (G = m(G, !0), ct && ct.enabled && (k = this.sortData(k)), $ !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (st = this.updateData(k, z)), !st) {
  12166. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Mt) {
  12167. q[Mt + "Data"].length = 0;
  12168. }), dt && vt > dt)
  12169. if (yt = q.getFirstValidPoint(k), W(yt))
  12170. for (z = 0; z < vt; z++)
  12171. ht[z] = this.autoIncrement(), at[z] = k[z];
  12172. else if (D(yt))
  12173. if (J)
  12174. if (yt.length === J)
  12175. for (z = 0; z < vt; z++)
  12176. ht[z] = this.autoIncrement(), at[z] = k[z];
  12177. else
  12178. for (z = 0; z < vt; z++)
  12179. $ = k[z], ht[z] = $[0], at[z] = $.slice(
  12180. 1,
  12181. J + 1
  12182. );
  12183. else if (tt && (lt = tt.indexOf("x"), pt = tt.indexOf("y"), lt = 0 <= lt ? lt : 0, pt = 0 <= pt ? pt : 1), yt.length === 1 && (pt = 0), lt === pt)
  12184. for (z = 0; z < vt; z++)
  12185. ht[z] = this.autoIncrement(), at[z] = k[z][pt];
  12186. else
  12187. for (z = 0; z < vt; z++)
  12188. $ = k[z], ht[z] = $[lt], at[z] = $[pt];
  12189. else
  12190. t(12, !1, rt);
  12191. else
  12192. for (z = 0; z < vt; z++)
  12193. typeof k[z] < "u" && ($ = { series: q }, q.pointClass.prototype.applyOptions.apply($, [k[z]]), q.updateParallelArrays($, z));
  12194. for (at && P(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = k, z = et; z--; )
  12195. it[z] && it[z].destroy && it[z].destroy();
  12196. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, z = !1;
  12197. }
  12198. nt.legendType === "point" && (this.processData(), this.generatePoints()), G && rt.redraw(z);
  12199. }, Q.prototype.sortData = function(k) {
  12200. var G = this, z = G.options.dataSorting.sortKey || "y", $ = function(q, it) {
  12201. return h(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  12202. };
  12203. return k.forEach(function(q, it) {
  12204. k[it] = $(G, q), k[it].index = it;
  12205. }, this), k.concat().sort(function(q, it) {
  12206. return q = _(z, q), it = _(z, it), it < q ? -1 : it > q ? 1 : 0;
  12207. }).forEach(function(q, it) {
  12208. q.x = it;
  12209. }, this), G.linkedSeries && G.linkedSeries.forEach(function(q) {
  12210. var it = q.options, et = it.data;
  12211. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  12212. et[rt] = $(q, nt), k[rt] && (et[rt].x = k[rt].x, et[rt].index = rt);
  12213. }), q.setData(et, !1));
  12214. }), k;
  12215. }, Q.prototype.getProcessedData = function(k) {
  12216. var G = this.xAxis, z = this.options, $ = z.cropThreshold, q = k || this.getExtremesFromAll || z.getExtremesFromAll, it = this.isCartesian;
  12217. k = G && G.val2lin, z = !(!G || !G.logarithmic);
  12218. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  12219. if (G) {
  12220. gt = G.getExtremes();
  12221. var ht = gt.min, at = gt.max;
  12222. gt = G.categories && !G.names.length;
  12223. }
  12224. if (it && this.sorted && !q && (!$ || dt > $ || this.forceCrop)) {
  12225. if (nt[dt - 1] < ht || nt[0] > at)
  12226. nt = [], rt = [];
  12227. else if (this.yData && (nt[0] < ht || nt[dt - 1] > at)) {
  12228. var J = this.cropData(this.xData, this.yData, ht, at);
  12229. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  12230. }
  12231. }
  12232. for ($ = nt.length || 1; --$; )
  12233. if (G = z ? k(nt[$]) - k(nt[$ - 1]) : nt[$] - nt[$ - 1], 0 < G && (typeof tt > "u" || G < tt))
  12234. var tt = G;
  12235. else
  12236. 0 > G && ct && !gt && (t(15, !1, this.chart), ct = !1);
  12237. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  12238. }, Q.prototype.processData = function(k) {
  12239. var G = this.xAxis;
  12240. if (this.isCartesian && !this.isDirty && !G.isDirty && !this.yAxis.isDirty && !k)
  12241. return !1;
  12242. k = this.getProcessedData(), this.cropped = k.cropped, this.cropStart = k.cropStart, this.processedXData = k.xData, this.processedYData = k.yData, this.closestPointRange = this.basePointRange = k.closestPointRange, A(this, "afterProcessData");
  12243. }, Q.prototype.cropData = function(k, G, z, $, q) {
  12244. var it = k.length, et, nt = 0, rt = it;
  12245. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  12246. if (k[et] >= z) {
  12247. nt = Math.max(0, et - q);
  12248. break;
  12249. }
  12250. for (z = et; z < it; z++)
  12251. if (k[z] > $) {
  12252. rt = z + q;
  12253. break;
  12254. }
  12255. return { xData: k.slice(nt, rt), yData: G.slice(
  12256. nt,
  12257. rt
  12258. ), start: nt, end: rt };
  12259. }, Q.prototype.generatePoints = function() {
  12260. var k = this.options, G = k.data, z = this.processedXData, $ = this.processedYData, q = this.pointClass, it = z.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = k.keys, ct = [];
  12261. k = k.dataGrouping && k.dataGrouping.groupAll ? et : 0;
  12262. var gt, dt, ht = this.data;
  12263. if (!ht && !nt) {
  12264. var at = [];
  12265. at.length = G.length, ht = this.data = at;
  12266. }
  12267. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  12268. if (at = et + dt, nt) {
  12269. var J = new q().init(this, [z[dt]].concat(Y($[dt])));
  12270. J.dataGroup = this.groupMap[k + dt], J.dataGroup.options && (J.options = J.dataGroup.options, o(J, J.dataGroup.options), delete J.dataLabels);
  12271. } else
  12272. (J = ht[at]) || typeof G[at] > "u" || (ht[at] = J = new q().init(this, G[at], z[dt]));
  12273. J && (J.index = nt ? k + dt : at, ct[dt] = J);
  12274. }
  12275. if (this.options.keys = rt, ht && (it !== (gt = ht.length) || nt))
  12276. for (dt = 0; dt < gt; dt++)
  12277. dt !== et || nt || (dt += it), ht[dt] && (ht[dt].destroyElements(), ht[dt].plotX = void 0);
  12278. this.data = ht, this.points = ct, A(this, "afterGeneratePoints");
  12279. }, Q.prototype.getXExtremes = function(k) {
  12280. return { min: a(k), max: v(k) };
  12281. }, Q.prototype.getExtremes = function(k, G) {
  12282. var z = this.xAxis, $ = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  12283. $ = $ ? $.positiveValuesOnly : !1;
  12284. var nt, rt = 0, ct = 0, gt = 0;
  12285. k = k || this.stackedYData || this.processedYData || [];
  12286. var dt = k.length;
  12287. if (z) {
  12288. var ht = z.getExtremes();
  12289. rt = ht.min, ct = ht.max;
  12290. }
  12291. for (nt = 0; nt < dt; nt++) {
  12292. var at = q[nt];
  12293. ht = k[nt];
  12294. var J = (W(ht) || D(ht)) && (ht.length || 0 < ht || !$);
  12295. if (at = G || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !z || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  12296. if (J = ht.length)
  12297. for (; J--; )
  12298. W(ht[J]) && (it[gt++] = ht[J]);
  12299. else
  12300. it[gt++] = ht;
  12301. }
  12302. return k = { activeYData: it, dataMin: a(it), dataMax: v(it) }, A(this, "afterGetExtremes", { dataExtremes: k }), k;
  12303. }, Q.prototype.applyExtremes = function() {
  12304. var k = this.getExtremes();
  12305. return this.dataMin = k.dataMin, this.dataMax = k.dataMax, k;
  12306. }, Q.prototype.getFirstValidPoint = function(k) {
  12307. for (var G = k.length, z = 0, $ = null; $ === null && z < G; )
  12308. $ = k[z], z++;
  12309. return $;
  12310. }, Q.prototype.translate = function() {
  12311. this.processedXData || this.processData(), this.generatePoints();
  12312. var k = this.options, G = k.stacking, z = this.xAxis, $ = z.categories, q = this.enabledDataSorting, it = this.yAxis, et = this.points, nt = et.length, rt = this.pointPlacementToXValue(), ct = !!rt, gt = k.threshold, dt = k.startFromThreshold ? gt : 0, ht = this.zoneAxis || "y", at, J, tt = Number.MAX_VALUE;
  12313. for (at = 0; at < nt; at++) {
  12314. var st = et[at], lt = st.x, pt = void 0, yt = void 0, vt = st.y, Mt = st.low, Pt = G && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  12315. if ((it.positiveValuesOnly && !it.validatePositiveValue(vt) || z.positiveValuesOnly && !z.validatePositiveValue(lt)) && (st.isNull = !0), st.plotX = J = i(c(z.translate(lt, 0, 0, 0, 1, rt, this.type === "flags"), -1e5, 1e5)), G && this.visible && Pt && Pt[lt]) {
  12316. var At = this.getStackIndicator(
  12317. At,
  12318. lt,
  12319. this.index
  12320. );
  12321. st.isNull || (pt = Pt[lt], yt = pt.points[At.key]);
  12322. }
  12323. if (D(yt) && (Mt = yt[0], vt = yt[1], Mt === dt && At.key === Pt[lt].base && (Mt = m(W(gt) && gt, it.min)), it.positiveValuesOnly && 0 >= Mt && (Mt = null), st.total = st.stackTotal = pt.total, st.percentage = pt.total && st.y / pt.total * 100, st.stackY = vt, this.irregularWidths || pt.setOffset(this.pointXOffset || 0, this.barW || 0)), st.yBottom = h(Mt) ? c(it.translate(Mt, 0, 1, 0, 1), -1e5, 1e5) : null, this.dataModify && (vt = this.dataModify.modifyValue(vt, at)), st.plotY = void 0, W(vt) && (pt = it.translate(vt, !1, !0, !1, !0), typeof pt < "u" && (st.plotY = c(
  12324. pt,
  12325. -1e5,
  12326. 1e5
  12327. ))), st.isInside = this.isPointInside(st), st.clientX = ct ? i(z.translate(lt, 0, 0, 0, 1, rt)) : J, st.negative = st[ht] < (k[ht + "Threshold"] || gt || 0), st.category = $ && typeof $[st.x] < "u" ? $[st.x] : st.x, !st.isNull && st.visible !== !1) {
  12328. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  12329. var St = J;
  12330. }
  12331. st.zone = this.zones.length ? st.getZone() : void 0, !st.graphic && this.group && q && (st.isNew = !0);
  12332. }
  12333. this.closestPointRangePx = tt, A(this, "afterTranslate");
  12334. }, Q.prototype.getValidPoints = function(k, G, z) {
  12335. var $ = this.chart;
  12336. return (k || this.points || []).filter(function(q) {
  12337. return G && !$.isInsidePlot(q.plotX, q.plotY, { inverted: $.inverted }) ? !1 : q.visible !== !1 && (z || !q.isNull);
  12338. });
  12339. }, Q.prototype.getClipBox = function() {
  12340. var k = this.chart, G = this.xAxis, z = this.yAxis, $ = X(k.clipBox);
  12341. return G && G.len !== k.plotSizeX && ($.width = G.len), z && z.len !== k.plotSizeY && ($.height = z.len), $;
  12342. }, Q.prototype.getSharedClipKey = function() {
  12343. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  12344. }, Q.prototype.setClip = function() {
  12345. var k = this.chart, G = this.group, z = this.markerGroup, $ = k.sharedClips;
  12346. k = k.renderer;
  12347. var q = this.getClipBox(), it = this.getSharedClipKey(), et = $[it];
  12348. et ? et.animate(q) : $[it] = et = k.clipRect(q), G && G.clip(this.options.clip === !1 ? void 0 : et), z && z.clip();
  12349. }, Q.prototype.animate = function(k) {
  12350. var G = this.chart, z = this.group, $ = this.markerGroup, q = G.inverted, it = x(this.options.animation), et = [this.getSharedClipKey(), it.duration, it.easing, it.defer].join(), nt = G.sharedClips[et], rt = G.sharedClips[et + "m"];
  12351. if (k && z)
  12352. it = this.getClipBox(), nt ? nt.attr("height", it.height) : (it.width = 0, q && (it.x = G.plotHeight), nt = G.renderer.clipRect(it), G.sharedClips[et] = nt, rt = G.renderer.clipRect({ x: q ? (G.plotSizeX || 0) + 99 : -99, y: q ? -G.plotLeft : -G.plotTop, width: 99, height: q ? G.chartWidth : G.chartHeight }), G.sharedClips[et + "m"] = rt), z.clip(nt), $ && $.clip(rt);
  12353. else if (nt && !nt.hasClass("highcharts-animating")) {
  12354. G = this.getClipBox();
  12355. var ct = it.step;
  12356. $ && $.element.childNodes.length && (it.step = function(gt, dt) {
  12357. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  12358. }), nt.addClass("highcharts-animating").animate(G, it);
  12359. }
  12360. }, Q.prototype.afterAnimate = function() {
  12361. var k = this;
  12362. this.setClip(), g(
  12363. this.chart.sharedClips,
  12364. function(G, z, $) {
  12365. G && !k.chart.container.querySelector('[clip-path="url(#' + G.id + ')"]') && (G.destroy(), delete $[z]);
  12366. }
  12367. ), this.finishedAnimating = !0, A(this, "afterAnimate");
  12368. }, Q.prototype.drawPoints = function() {
  12369. var k = this.points, G = this.chart, z = this.options.marker, $ = this[this.specialGroup] || this.markerGroup, q = this.xAxis, it = m(z.enabled, !q || q.isRadial ? !0 : null, this.closestPointRangePx >= z.enabledThreshold * z.radius), et, nt;
  12370. if (z.enabled !== !1 || this._hasPointMarkers)
  12371. for (et = 0; et < k.length; et++) {
  12372. var rt = k[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  12373. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  12374. var ht = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  12375. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  12376. var J = rt.isInside !== !1;
  12377. nt ? nt[J ? "show" : "hide"](J).animate(at) : J && (0 < (at.width || 0) || rt.hasImage) && (rt.graphic = nt = G.renderer.symbol(ht, at.x, at.y, at.width, at.height, dt ? gt : z).add($), this.enabledDataSorting && G.hasRendered && (nt.attr({ x: rt.startXPos }), ct = "animate")), nt && ct === "animate" && nt[J ? "show" : "hide"](J).animate(at), nt && !G.styledMode && nt[ct](this.pointAttribs(rt, rt.selected && "select")), nt && nt.addClass(rt.getClassName(), !0);
  12378. } else
  12379. nt && (rt.graphic = nt.destroy());
  12380. }
  12381. }, Q.prototype.markerAttribs = function(k, G) {
  12382. var z = this.options, $ = z.marker, q = k.marker || {}, it = q.symbol || $.symbol, et = m(q.radius, $.radius);
  12383. return G && ($ = $.states[G], G = q.states && q.states[G], et = m(G && G.radius, $ && $.radius, et + ($ && $.radiusPlus || 0))), k.hasImage = it && it.indexOf("url") === 0, k.hasImage && (et = 0), k = { x: z.crisp ? Math.floor(k.plotX - et) : k.plotX - et, y: k.plotY - et }, et && (k.width = k.height = 2 * et), k;
  12384. }, Q.prototype.pointAttribs = function(k, G) {
  12385. var z = this.options.marker, $ = k && k.options, q = $ && $.marker || {}, it = $ && $.color, et = k && k.color, nt = k && k.zone && k.zone.color, rt = this.color;
  12386. return k = m(q.lineWidth, z.lineWidth), $ = 1, rt = it || nt || et || rt, it = q.fillColor || z.fillColor || rt, et = q.lineColor || z.lineColor || rt, G = G || "normal", z = z.states[G] || {}, G = q.states && q.states[G] || {}, k = m(G.lineWidth, z.lineWidth, k + m(G.lineWidthPlus, z.lineWidthPlus, 0)), it = G.fillColor || z.fillColor || it, et = G.lineColor || z.lineColor || et, $ = m(G.opacity, z.opacity, $), { stroke: et, "stroke-width": k, fill: it, opacity: $ };
  12387. }, Q.prototype.destroy = function(k) {
  12388. var G = this, z = G.chart, $ = /AppleWebKit\/533/.test(M.navigator.userAgent), q = G.data || [], it, et, nt, rt;
  12389. for (A(G, "destroy"), this.removeEvents(k), (G.axisTypes || []).forEach(function(ct) {
  12390. (rt = G[ct]) && rt.series && (s(rt.series, G), rt.isDirty = rt.forceRedraw = !0);
  12391. }), G.legendItem && G.chart.legend.destroyItem(G), et = q.length; et--; )
  12392. (nt = q[et]) && nt.destroy && nt.destroy();
  12393. G.clips && G.clips.forEach(function(ct) {
  12394. return ct.destroy();
  12395. }), b.clearTimeout(G.animationTimeout), g(G, function(ct, gt) {
  12396. ct instanceof N && !ct.survive && (it = $ && gt === "group" ? "hide" : "destroy", ct[it]());
  12397. }), z.hoverSeries === G && (z.hoverSeries = void 0), s(z.series, G), z.orderSeries(), g(G, function(ct, gt) {
  12398. k && gt === "hcEvents" || delete G[gt];
  12399. });
  12400. }, Q.prototype.applyZones = function() {
  12401. var k = this, G = this.chart, z = G.renderer, $ = this.zones, q = this.clips || [], it = this.graph, et = this.area, nt = Math.max(G.chartWidth, G.chartHeight), rt = this[(this.zoneAxis || "y") + "Axis"], ct = G.inverted, gt, dt, ht, at, J, tt, st, lt, pt = !1;
  12402. if ($.length && (it || et) && rt && typeof rt.min < "u") {
  12403. var yt = rt.reversed, vt = rt.horiz;
  12404. it && !this.showLine && it.hide(), et && et.hide();
  12405. var Mt = rt.getExtremes();
  12406. $.forEach(function(Pt, At) {
  12407. gt = yt ? vt ? G.plotWidth : 0 : vt ? 0 : rt.toPixels(Mt.min) || 0, gt = c(m(dt, gt), 0, nt), dt = c(Math.round(rt.toPixels(m(Pt.value, Mt.max), !0) || 0), 0, nt), pt && (gt = dt = rt.toPixels(Mt.max)), at = Math.abs(gt - dt), J = Math.min(gt, dt), tt = Math.max(gt, dt), rt.isXAxis ? (ht = { x: ct ? tt : J, y: 0, width: at, height: nt }, vt || (ht.x = G.plotHeight - ht.x)) : (ht = { x: 0, y: ct ? tt : J, width: nt, height: at }, vt && (ht.y = G.plotWidth - ht.y)), ct && z.isVML && (ht = rt.isXAxis ? {
  12408. x: 0,
  12409. y: yt ? J : tt,
  12410. height: ht.width,
  12411. width: G.chartWidth
  12412. } : { x: ht.y - G.plotLeft - G.spacingBox.x, y: 0, width: ht.height, height: G.chartHeight }), q[At] ? q[At].animate(ht) : q[At] = z.clipRect(ht), st = k["zone-area-" + At], lt = k["zone-graph-" + At], it && lt && lt.clip(q[At]), et && st && st.clip(q[At]), pt = Pt.value > Mt.max, k.resetZones && dt === 0 && (dt = void 0);
  12413. }), this.clips = q;
  12414. } else
  12415. k.visible && (it && it.show(!0), et && et.show(!0));
  12416. }, Q.prototype.invertGroups = function(k) {
  12417. function G() {
  12418. ["group", "markerGroup"].forEach(function(q) {
  12419. z[q] && ($.renderer.isVML && z[q].attr({ width: z.yAxis.len, height: z.xAxis.len }), z[q].width = z.yAxis.len, z[q].height = z.xAxis.len, z[q].invert(z.isRadialSeries ? !1 : k));
  12420. });
  12421. }
  12422. var z = this, $ = z.chart;
  12423. z.xAxis && (z.eventsToUnbind.push(w($, "resize", G)), G(), z.invertGroups = G);
  12424. }, Q.prototype.plotGroup = function(k, G, z, $, q) {
  12425. var it = this[k], et = !it;
  12426. return z = { visibility: z, zIndex: $ || 0.1 }, typeof this.opacity > "u" || this.chart.styledMode || this.state === "inactive" || (z.opacity = this.opacity), et && (this[k] = it = this.chart.renderer.g().add(q)), it.addClass("highcharts-" + G + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series " + (h(this.colorIndex) ? "highcharts-color-" + this.colorIndex + " " : "") + (this.options.className || "") + (it.hasClass("highcharts-tracker") ? " highcharts-tracker" : ""), !0), it.attr(z)[et ? "attr" : "animate"](this.getPlotBox()), it;
  12427. }, Q.prototype.getPlotBox = function() {
  12428. var k = this.chart, G = this.xAxis, z = this.yAxis;
  12429. return k.inverted && (G = z, z = this.xAxis), { translateX: G ? G.left : k.plotLeft, translateY: z ? z.top : k.plotTop, scaleX: 1, scaleY: 1 };
  12430. }, Q.prototype.removeEvents = function(k) {
  12431. k || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(G) {
  12432. G();
  12433. }), this.eventsToUnbind.length = 0);
  12434. }, Q.prototype.render = function() {
  12435. var k = this, G = k.chart, z = k.options, $ = x(z.animation), q = k.visible ? "inherit" : "hidden", it = z.zIndex, et = k.hasRendered, nt = G.seriesGroup, rt = G.inverted;
  12436. G = !k.finishedAnimating && G.renderer.isSVG ? $.duration : 0, A(this, "render");
  12437. var ct = k.plotGroup("group", "series", q, it, nt);
  12438. k.markerGroup = k.plotGroup("markerGroup", "markers", q, it, nt), z.clip !== !1 && k.setClip(), k.animate && G && k.animate(!0), ct.inverted = m(k.invertible, k.isCartesian) ? rt : !1, k.drawGraph && (k.drawGraph(), k.applyZones()), k.visible && k.drawPoints(), k.drawDataLabels && k.drawDataLabels(), k.redrawPoints && k.redrawPoints(), k.drawTracker && k.options.enableMouseTracking !== !1 && k.drawTracker(), k.invertGroups(rt), k.animate && G && k.animate(), et || (G && $.defer && (G += $.defer), k.animationTimeout = V(function() {
  12439. k.afterAnimate();
  12440. }, G || 0)), k.isDirty = !1, k.hasRendered = !0, A(k, "afterRender");
  12441. }, Q.prototype.redraw = function() {
  12442. var k = this.chart, G = this.isDirty || this.isDirtyData, z = this.group, $ = this.xAxis, q = this.yAxis;
  12443. z && (k.inverted && z.attr({
  12444. width: k.plotWidth,
  12445. height: k.plotHeight
  12446. }), z.animate({ translateX: m($ && $.left, k.plotLeft), translateY: m(q && q.top, k.plotTop) })), this.translate(), this.render(), G && delete this.kdTree;
  12447. }, Q.prototype.searchPoint = function(k, G) {
  12448. var z = this.xAxis, $ = this.yAxis, q = this.chart.inverted;
  12449. return this.searchKDTree({ clientX: q ? z.len - k.chartY + z.pos : k.chartX - z.pos, plotY: q ? $.len - k.chartX + $.pos : k.chartY - $.pos }, G, k);
  12450. }, Q.prototype.buildKDTree = function(k) {
  12451. function G(q, it, et) {
  12452. var nt = q && q.length;
  12453. if (nt) {
  12454. var rt = z.kdAxisArray[it % et];
  12455. return q.sort(function(ct, gt) {
  12456. return ct[rt] - gt[rt];
  12457. }), nt = Math.floor(nt / 2), { point: q[nt], left: G(q.slice(0, nt), it + 1, et), right: G(q.slice(nt + 1), it + 1, et) };
  12458. }
  12459. }
  12460. this.buildingKdTree = !0;
  12461. var z = this, $ = -1 < z.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  12462. delete z.kdTree, V(function() {
  12463. z.kdTree = G(z.getValidPoints(null, !z.directTouch), $, $), z.buildingKdTree = !1;
  12464. }, z.options.kdNow || k && k.type === "touchstart" ? 0 : 1);
  12465. }, Q.prototype.searchKDTree = function(k, G, z) {
  12466. function $(rt, ct, gt, dt) {
  12467. var ht = ct.point, at = q.kdAxisArray[gt % dt], J = ht, tt = h(rt[it]) && h(ht[it]) ? Math.pow(rt[it] - ht[it], 2) : null, st = h(rt[et]) && h(ht[et]) ? Math.pow(rt[et] - ht[et], 2) : null;
  12468. return st = (tt || 0) + (st || 0), ht.dist = h(st) ? Math.sqrt(st) : Number.MAX_VALUE, ht.distX = h(tt) ? Math.sqrt(tt) : Number.MAX_VALUE, at = rt[at] - ht[at], st = 0 > at ? "left" : "right", tt = 0 > at ? "right" : "left", ct[st] && (st = $(rt, ct[st], gt + 1, dt), J = st[nt] < J[nt] ? st : ht), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = $(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  12469. }
  12470. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = G ? "distX" : "dist";
  12471. if (G = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(z), this.kdTree)
  12472. return $(
  12473. k,
  12474. this.kdTree,
  12475. G,
  12476. G
  12477. );
  12478. }, Q.prototype.pointPlacementToXValue = function() {
  12479. var k = this.options, G = k.pointRange, z = this.xAxis;
  12480. return k = k.pointPlacement, k === "between" && (k = z.reversed ? -0.5 : 0.5), W(k) ? k * (G || z.pointRange) : 0;
  12481. }, Q.prototype.isPointInside = function(k) {
  12482. var G = this.chart, z = this.xAxis, $ = this.yAxis;
  12483. return typeof k.plotY < "u" && typeof k.plotX < "u" && 0 <= k.plotY && k.plotY <= ($ ? $.len : G.plotHeight) && 0 <= k.plotX && k.plotX <= (z ? z.len : G.plotWidth);
  12484. }, Q.prototype.drawTracker = function() {
  12485. var k = this, G = k.options, z = G.trackByArea, $ = [].concat(z ? k.areaPath : k.graphPath), q = k.chart, it = q.pointer, et = q.renderer, nt = q.options.tooltip.snap, rt = k.tracker, ct = function(dt) {
  12486. q.hoverSeries !== k && k.onMouseOver();
  12487. }, gt = "rgba(192,192,192," + (B ? 1e-4 : 2e-3) + ")";
  12488. rt ? rt.attr({ d: $ }) : k.graph && (k.tracker = et.path($).attr({ visibility: k.visible ? "visible" : "hidden", zIndex: 2 }).addClass(z ? "highcharts-tracker-area" : "highcharts-tracker-line").add(k.group), q.styledMode || k.tracker.attr({ "stroke-linecap": "round", "stroke-linejoin": "round", stroke: gt, fill: z ? gt : "none", "stroke-width": k.graph.strokeWidth() + (z ? 0 : 2 * nt) }), [k.tracker, k.markerGroup, k.dataLabelsGroup].forEach(function(dt) {
  12489. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(ht) {
  12490. it.onTrackerMouseOut(ht);
  12491. }), G.cursor && !q.styledMode && dt.css({ cursor: G.cursor }), O) && dt.on("touchstart", ct);
  12492. })), A(this, "afterDrawTracker");
  12493. }, Q.prototype.addPoint = function(k, G, z, $, q) {
  12494. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  12495. rt = rt && rt.hasNames && rt.names;
  12496. var ct = it.data, gt = this.xData, dt;
  12497. G = m(G, !0);
  12498. var ht = { series: this };
  12499. this.pointClass.prototype.applyOptions.apply(
  12500. ht,
  12501. [k]
  12502. );
  12503. var at = ht.x, J = gt.length;
  12504. if (this.requireSorting && at < gt[J - 1])
  12505. for (dt = !0; J && gt[J - 1] > at; )
  12506. J--;
  12507. this.updateParallelArrays(ht, "splice", J, 0, 0), this.updateParallelArrays(ht, J), rt && ht.name && (rt[at] = ht.name), ct.splice(J, 0, k), dt && (this.data.splice(J, 0, null), this.processData()), it.legendType === "point" && this.generatePoints(), z && (et[0] && et[0].remove ? et[0].remove(!1) : (et.shift(), this.updateParallelArrays(ht, "shift"), ct.shift())), q !== !1 && A(this, "addPoint", { point: ht }), this.isDirtyData = this.isDirty = !0, G && nt.redraw($);
  12508. }, Q.prototype.removePoint = function(k, G, z) {
  12509. var $ = this, q = $.data, it = q[k], et = $.points, nt = $.chart, rt = function() {
  12510. et && et.length === q.length && et.splice(k, 1), q.splice(k, 1), $.options.data.splice(k, 1), $.updateParallelArrays(it || { series: $ }, "splice", k, 1), it && it.destroy(), $.isDirty = !0, $.isDirtyData = !0, G && nt.redraw();
  12511. };
  12512. u(z, nt), G = m(G, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  12513. }, Q.prototype.remove = function(k, G, z, $) {
  12514. function q() {
  12515. it.destroy($), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(k, !0) && et.redraw(G);
  12516. }
  12517. var it = this, et = it.chart;
  12518. z !== !1 ? A(
  12519. it,
  12520. "remove",
  12521. null,
  12522. q
  12523. ) : q();
  12524. }, Q.prototype.update = function(k, G) {
  12525. k = p(k, this.userOptions), A(this, "update", { options: k });
  12526. var z = this, $ = z.chart, q = z.userOptions, it = z.initialType || z.type, et = $.options.plotOptions, nt = S[it].prototype, rt = z.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], ht = k.type || q.type || $.options.chart.type, at = !(this.hasDerivedData || ht && ht !== this.type || typeof k.pointStart < "u" || typeof k.pointInterval < "u" || typeof k.relativeXValue < "u" || z.hasOptionChanged("dataGrouping") || z.hasOptionChanged("pointStart") || z.hasOptionChanged("pointInterval") || z.hasOptionChanged("pointIntervalUnit") || z.hasOptionChanged("keys"));
  12527. if (ht = ht || it, at && (dt.push("data", "isDirtyData", "points", "processedXData", "processedYData", "xIncrement", "cropped", "_hasPointMarkers", "_hasPointLabels", "clips", "nodes", "layout", "mapMap", "mapData", "minY", "maxY", "minX", "maxX"), k.visible !== !1 && dt.push("area", "graph"), z.parallelArrays.forEach(function(tt) {
  12528. dt.push(tt + "Data");
  12529. }), k.data && (k.dataSorting && o(z.options.dataSorting, k.dataSorting), this.setData(k.data, !1))), k = X(q, rt, { index: typeof q.index > "u" ? z.index : q.index, pointStart: m(et && et.series && et.series.pointStart, q.pointStart, z.xData[0]) }, !at && { data: z.options.data }, k), at && k.data && (k.data = z.options.data), dt = ["group", "markerGroup", "dataLabelsGroup", "transformGroup"].concat(dt), dt.forEach(function(tt) {
  12530. dt[tt] = z[tt], delete z[tt];
  12531. }), et = !1, S[ht]) {
  12532. if (et = ht !== z.type, z.remove(!1, !1, !1, !0), et)
  12533. if (Object.setPrototypeOf)
  12534. Object.setPrototypeOf(z, S[ht].prototype);
  12535. else {
  12536. rt = Object.hasOwnProperty.call(z, "hcEvents") && z.hcEvents;
  12537. for (gt in nt)
  12538. z[gt] = void 0;
  12539. o(z, S[ht].prototype), rt ? z.hcEvents = rt : delete z.hcEvents;
  12540. }
  12541. } else
  12542. t(17, !0, $, { missingModuleFor: ht });
  12543. if (dt.forEach(function(tt) {
  12544. z[tt] = dt[tt];
  12545. }), z.init($, k), at && this.points) {
  12546. var J = z.options;
  12547. J.visible === !1 ? (ct.graphic = 1, ct.dataLabel = 1) : z._hasPointLabels || (k = J.marker, nt = J.dataLabels, !k || k.enabled !== !1 && (q.marker && q.marker.symbol) === k.symbol || (ct.graphic = 1), nt && nt.enabled === !1 && (ct.dataLabel = 1)), this.points.forEach(function(tt) {
  12548. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && $.legend.destroyItem(tt));
  12549. }, this);
  12550. }
  12551. z.initialType = it, $.linkSeries(), et && z.linkedSeries.length && (z.isDirtyData = !0), A(this, "afterUpdate"), m(G, !0) && $.redraw(at ? void 0 : !1);
  12552. }, Q.prototype.setName = function(k) {
  12553. this.name = this.options.name = this.userOptions.name = k, this.chart.isDirtyLegend = !0;
  12554. }, Q.prototype.hasOptionChanged = function(k) {
  12555. var G = this.options[k], z = this.chart.options.plotOptions, $ = this.userOptions[k];
  12556. return $ ? G !== $ : G !== m(
  12557. z && z[this.type] && z[this.type][k],
  12558. z && z.series && z.series[k],
  12559. G
  12560. );
  12561. }, Q.prototype.onMouseOver = function() {
  12562. var k = this.chart, G = k.hoverSeries;
  12563. k.pointer.setHoverChartIndex(), G && G !== this && G.onMouseOut(), this.options.events.mouseOver && A(this, "mouseOver"), this.setState("hover"), k.hoverSeries = this;
  12564. }, Q.prototype.onMouseOut = function() {
  12565. var k = this.options, G = this.chart, z = G.tooltip, $ = G.hoverPoint;
  12566. G.hoverSeries = null, $ && $.onMouseOut(), this && k.events.mouseOut && A(this, "mouseOut"), !z || this.stickyTracking || z.shared && !this.noSharedTooltip || z.hide(), G.series.forEach(function(q) {
  12567. q.setState(
  12568. "",
  12569. !0
  12570. );
  12571. });
  12572. }, Q.prototype.setState = function(k, G) {
  12573. var z = this, $ = z.options, q = z.graph, it = $.inactiveOtherPoints, et = $.states, nt = m(et[k || "normal"] && et[k || "normal"].animation, z.chart.options.chart.animation), rt = $.lineWidth, ct = 0, gt = $.opacity;
  12574. if (k = k || "", z.state !== k && ([z.group, z.markerGroup, z.dataLabelsGroup].forEach(function(dt) {
  12575. dt && (z.state && dt.removeClass("highcharts-series-" + z.state), k && dt.addClass("highcharts-series-" + k));
  12576. }), z.state = k, !z.chart.styledMode)) {
  12577. if (et[k] && et[k].enabled === !1)
  12578. return;
  12579. if (k && (rt = et[k].lineWidth || rt + (et[k].lineWidthPlus || 0), gt = m(et[k].opacity, gt)), q && !q.dashstyle)
  12580. for ($ = { "stroke-width": rt }, q.animate($, nt); z["zone-graph-" + ct]; )
  12581. z["zone-graph-" + ct].animate($, nt), ct += 1;
  12582. it || [z.group, z.markerGroup, z.dataLabelsGroup, z.labelBySeries].forEach(function(dt) {
  12583. dt && dt.animate({ opacity: gt }, nt);
  12584. });
  12585. }
  12586. G && it && z.points && z.setAllPointsToState(k || void 0);
  12587. }, Q.prototype.setAllPointsToState = function(k) {
  12588. this.points.forEach(function(G) {
  12589. G.setState && G.setState(k);
  12590. });
  12591. }, Q.prototype.setVisible = function(k, G) {
  12592. var z = this, $ = z.chart, q = z.legendItem, it = $.options.chart.ignoreHiddenSeries, et = z.visible, nt = (z.visible = k = z.options.visible = z.userOptions.visible = typeof k > "u" ? !et : k) ? "show" : "hide";
  12593. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  12594. z[rt] && z[rt][nt]();
  12595. }), ($.hoverSeries === z || ($.hoverPoint && $.hoverPoint.series) === z) && z.onMouseOut(), q && $.legend.colorizeItem(z, k), z.isDirty = !0, z.options.stacking && $.series.forEach(function(rt) {
  12596. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  12597. }), z.linkedSeries.forEach(function(rt) {
  12598. rt.setVisible(k, !1);
  12599. }), it && ($.isDirtyBox = !0), A(z, nt), G !== !1 && $.redraw();
  12600. }, Q.prototype.show = function() {
  12601. this.setVisible(!0);
  12602. }, Q.prototype.hide = function() {
  12603. this.setVisible(!1);
  12604. }, Q.prototype.select = function(k) {
  12605. this.selected = k = this.options.selected = typeof k > "u" ? !this.selected : k, this.checkbox && (this.checkbox.checked = k), A(this, k ? "select" : "unselect");
  12606. }, Q.prototype.shouldShowTooltip = function(k, G, z) {
  12607. return z === void 0 && (z = {}), z.series = this, z.visiblePlotOnly = !0, this.chart.isInsidePlot(k, G, z);
  12608. }, Q.defaultOptions = F, Q;
  12609. }(), o(y.prototype, { axisTypes: [
  12610. "xAxis",
  12611. "yAxis"
  12612. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: H.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: U, requireSorting: !0, sorted: !0 }), R.series = y, y;
  12613. }), T(l, "Extensions/ScrollablePlotArea.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/Series/Series.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  12614. var F = y.stop, R = U.addEvent, N = U.createElement, b = U.merge, x = U.pick;
  12615. R(I, "afterSetChartSize", function(u) {
  12616. var f = this.options.chart.scrollablePlotArea, E = f && f.minWidth;
  12617. if (f = f && f.minHeight, !this.renderer.forExport) {
  12618. if (E) {
  12619. if (this.scrollablePixelsX = E = Math.max(0, E - this.chartWidth)) {
  12620. this.scrollablePlotBox = this.renderer.scrollablePlotBox = b(this.plotBox), this.plotBox.width = this.plotWidth += E, this.inverted ? this.clipBox.height += E : this.clipBox.width += E;
  12621. var O = { 1: { name: "right", value: E } };
  12622. }
  12623. } else
  12624. f && (this.scrollablePixelsY = E = Math.max(
  12625. 0,
  12626. f - this.chartHeight
  12627. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = b(this.plotBox), this.plotBox.height = this.plotHeight += E, this.inverted ? this.clipBox.width += E : this.clipBox.height += E, O = { 2: { name: "bottom", value: E } });
  12628. O && !u.skipAxes && this.axes.forEach(function(B) {
  12629. O[B.side] ? B.getPlotLinePath = function() {
  12630. var M = O[B.side].name, S = this[M];
  12631. this[M] = S - O[B.side].value;
  12632. var w = j.prototype.getPlotLinePath.apply(this, arguments);
  12633. return this[M] = S, w;
  12634. } : (B.setAxisSize(), B.setAxisTranslation());
  12635. });
  12636. }
  12637. }), R(I, "render", function() {
  12638. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  12639. }), I.prototype.setUpScrolling = function() {
  12640. var u = this, f = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  12641. this.scrollablePixelsX && (f.overflowX = "auto"), this.scrollablePixelsY && (f.overflowY = "auto"), this.scrollingParent = N("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = N(
  12642. "div",
  12643. { className: "highcharts-scrolling" },
  12644. f,
  12645. this.scrollingParent
  12646. ), R(this.scrollingContainer, "scroll", function() {
  12647. u.pointer && delete u.pointer.chartPosition;
  12648. }), this.innerContainer = N("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  12649. }, I.prototype.moveFixedElements = function() {
  12650. var u = this.container, f = this.fixedRenderer, E = ".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), O;
  12651. this.scrollablePixelsX && !this.inverted ? O = ".highcharts-yaxis" : this.scrollablePixelsX && this.inverted || this.scrollablePixelsY && !this.inverted ? O = ".highcharts-xaxis" : this.scrollablePixelsY && this.inverted && (O = ".highcharts-yaxis"), O && E.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), E.forEach(function(B) {
  12652. [].forEach.call(u.querySelectorAll(B), function(M) {
  12653. (M.namespaceURI === f.SVG_NS ? f.box : f.box.parentNode).appendChild(M), M.style.pointerEvents = "auto";
  12654. });
  12655. });
  12656. }, I.prototype.applyFixed = function() {
  12657. var u = !this.fixedDiv, f = this.options.chart, E = f.scrollablePlotArea, O = H.getRendererType();
  12658. u ? (this.fixedDiv = N("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (f.style && f.style.zIndex || 0) + 2, top: 0 }, null, !0), this.scrollingContainer && this.scrollingContainer.parentNode.insertBefore(this.fixedDiv, this.scrollingContainer), this.renderTo.style.overflow = "visible", this.fixedRenderer = f = new O(
  12659. this.fixedDiv,
  12660. this.chartWidth,
  12661. this.chartHeight,
  12662. this.options.chart.style
  12663. ), this.scrollableMask = f.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": x(E.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), R(this, "afterShowResetZoom", this.moveFixedElements), R(this, "afterDrilldown", this.moveFixedElements), R(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || u) && (this.scrollableDirty = !1, this.moveFixedElements()), f = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), F(this.container), this.container.style.width = f + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: f, height: O, viewBox: [0, 0, f, O].join(" ") }), this.chartBackground.attr({ width: f, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", u && (E.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * E.scrollPositionX), E.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * E.scrollPositionY)), O = this.axisOffset, u = this.plotTop - O[0] - 1, E = this.plotLeft - O[3] - 1, f = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  12664. var B = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), M = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  12665. u = this.scrollablePixelsX ? [["M", 0, u], ["L", this.plotLeft - 1, u], ["L", this.plotLeft - 1, f], ["L", 0, f], ["Z"], ["M", B, u], ["L", this.chartWidth, u], ["L", this.chartWidth, f], ["L", B, f], ["Z"]] : this.scrollablePixelsY ? [["M", E, 0], ["L", E, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", E, M], ["L", E, this.chartHeight], ["L", O, this.chartHeight], ["L", O, M], ["Z"]] : [["M", 0, 0]], this.redrawTrigger !== "adjustHeight" && this.scrollableMask.attr({ d: u });
  12666. }, R(j, "afterInit", function() {
  12667. this.chart.scrollableDirty = !0;
  12668. }), R(Z, "show", function() {
  12669. this.chart.scrollableDirty = !0;
  12670. });
  12671. }), T(l, "Core/Axis/StackingAxis.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Utilities.js"]], function(y, j, I) {
  12672. var Z = y.getDeferredAnimation, H = I.addEvent, U = I.destroyObjectProperties, F = I.fireEvent, R = I.isNumber, N = I.objectEach, b;
  12673. return function(x) {
  12674. function u() {
  12675. var B = this.stacking;
  12676. if (B) {
  12677. var M = B.stacks;
  12678. N(M, function(S, w) {
  12679. U(S), M[w] = null;
  12680. }), B && B.stackTotalGroup && B.stackTotalGroup.destroy();
  12681. }
  12682. }
  12683. function f() {
  12684. this.stacking || (this.stacking = new O(this));
  12685. }
  12686. var E = [];
  12687. x.compose = function(B) {
  12688. return E.indexOf(B) === -1 && (E.push(B), H(B, "init", f), H(B, "destroy", u)), B;
  12689. };
  12690. var O = function() {
  12691. function B(M) {
  12692. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = M;
  12693. }
  12694. return B.prototype.buildStacks = function() {
  12695. var M = this.axis, S = M.series, w = M.options.reversedStacks, v = S.length, a;
  12696. if (!M.isXAxis) {
  12697. for (this.usePercentage = !1, a = v; a--; ) {
  12698. var c = S[w ? a : v - a - 1];
  12699. c.setStackedPoints(), c.setGroupedPoints();
  12700. }
  12701. for (a = 0; a < v; a++)
  12702. S[a].modifyStacks();
  12703. F(M, "afterBuildStacks");
  12704. }
  12705. }, B.prototype.cleanStacks = function() {
  12706. if (!this.axis.isXAxis) {
  12707. if (this.oldStacks)
  12708. var M = this.stacks = this.oldStacks;
  12709. N(M, function(S) {
  12710. N(S, function(w) {
  12711. w.cumulative = w.total;
  12712. });
  12713. });
  12714. }
  12715. }, B.prototype.resetStacks = function() {
  12716. var M = this, S = M.stacks;
  12717. M.axis.isXAxis || N(S, function(w) {
  12718. N(
  12719. w,
  12720. function(v, a) {
  12721. R(v.touched) && v.touched < M.stacksTouched ? (v.destroy(), delete w[a]) : (v.total = null, v.cumulative = null);
  12722. }
  12723. );
  12724. });
  12725. }, B.prototype.renderStackTotals = function() {
  12726. var M = this.axis, S = M.chart, w = S.renderer, v = this.stacks;
  12727. M = Z(S, M.options.stackLabels && M.options.stackLabels.animation || !1);
  12728. var a = this.stackTotalGroup = this.stackTotalGroup || w.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  12729. a.translate(S.plotLeft, S.plotTop), N(v, function(c) {
  12730. N(c, function(p) {
  12731. p.render(a);
  12732. });
  12733. }), a.animate(
  12734. { opacity: 1 },
  12735. M
  12736. );
  12737. }, B;
  12738. }();
  12739. x.Additions = O;
  12740. }(b || (b = {})), b;
  12741. }), T(l, "Extensions/Stacking.js", [l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Series/Series.js"], l["Core/Axis/StackingAxis.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F) {
  12742. var R = I.format, N = F.correctFloat, b = F.defined, x = F.destroyObjectProperties, u = F.isArray, f = F.isNumber, E = F.objectEach, O = F.pick, B = function() {
  12743. function M(S, w, v, a, c) {
  12744. var p = S.chart.inverted;
  12745. this.axis = S, this.isNegative = v, this.options = w = w || {}, this.x = a, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: w.align || (p ? v ? "left" : "right" : "center"), verticalAlign: w.verticalAlign || (p ? "middle" : v ? "bottom" : "top"), y: w.y, x: w.x }, this.textAlign = w.textAlign || (p ? v ? "right" : "left" : "center");
  12746. }
  12747. return M.prototype.destroy = function() {
  12748. x(this, this.axis);
  12749. }, M.prototype.render = function(S) {
  12750. var w = this.axis.chart, v = this.options, a = v.format;
  12751. a = a ? R(a, this, w) : v.formatter.call(this), this.label ? this.label.attr({
  12752. text: a,
  12753. visibility: "hidden"
  12754. }) : (this.label = w.renderer.label(a, null, null, v.shape, null, null, v.useHTML, !1, "stack-labels"), a = { r: v.borderRadius || 0, text: a, rotation: v.rotation, padding: O(v.padding, 5), visibility: "hidden" }, w.styledMode || (a.fill = v.backgroundColor, a.stroke = v.borderColor, a["stroke-width"] = v.borderWidth, this.label.css(v.style)), this.label.attr(a), this.label.added || this.label.add(S)), this.label.labelrank = w.plotSizeY;
  12755. }, M.prototype.setOffset = function(S, w, v, a, c) {
  12756. var p = this.axis, i = p.chart;
  12757. a = p.translate(p.stacking.usePercentage ? 100 : a || this.total, 0, 0, 0, 1), v = p.translate(v || 0), v = b(a) && Math.abs(a - v), S = O(c, i.xAxis[0].translate(this.x)) + S, p = b(a) && this.getStackBox(i, this, S, a, w, v, p), w = this.label, v = this.isNegative, S = O(this.options.overflow, "justify") === "justify";
  12758. var h = this.textAlign;
  12759. w && p && (c = w.getBBox(), a = w.padding, h = h === "left" ? i.inverted ? -a : a : h === "right" ? c.width : i.inverted && h === "center" ? c.width / 2 : i.inverted ? v ? c.width + a : -a : c.width / 2, v = i.inverted ? c.height / 2 : v ? -a : c.height, this.alignOptions.x = O(this.options.x, 0), this.alignOptions.y = O(this.options.y, 0), p.x -= h, p.y -= v, w.align(this.alignOptions, null, p), i.isInsidePlot(w.alignAttr.x + h - this.alignOptions.x, w.alignAttr.y + v - this.alignOptions.y) ? w.show() : (w.alignAttr.y = -9999, S = !1), S && H.prototype.justifyDataLabel.call(this.axis, w, this.alignOptions, w.alignAttr, c, p), w.attr({ x: w.alignAttr.x, y: w.alignAttr.y }), O(!S && this.options.crop, !0) && ((i = f(w.x) && f(w.y) && i.isInsidePlot(w.x - a + w.width, w.y) && i.isInsidePlot(w.x + a, w.y)) || w.hide()));
  12760. }, M.prototype.getStackBox = function(S, w, v, a, c, p, i) {
  12761. var h = w.axis.reversed, s = S.inverted, t = i.height + i.pos - (s ? S.plotLeft : S.plotTop);
  12762. return w = w.isNegative && !h || !w.isNegative && h, { x: s ? w ? a - i.right : a - p + i.pos - S.plotLeft : v + S.xAxis[0].transB - S.plotLeft, y: s ? i.height - v - c : w ? t - a - p : t - a, width: s ? p : c, height: s ? c : p };
  12763. }, M;
  12764. }();
  12765. return j.prototype.getStacks = function() {
  12766. var M = this, S = M.inverted;
  12767. M.yAxis.forEach(function(w) {
  12768. w.stacking && w.stacking.stacks && w.hasVisibleSeries && (w.stacking.oldStacks = w.stacking.stacks);
  12769. }), M.series.forEach(function(w) {
  12770. var v = w.xAxis && w.xAxis.options || {};
  12771. !w.options.stacking || w.visible !== !0 && M.options.chart.ignoreHiddenSeries !== !1 || (w.stackKey = [w.type, O(w.options.stack, ""), S ? v.top : v.left, S ? v.height : v.width].join());
  12772. });
  12773. }, U.compose(y), H.prototype.setGroupedPoints = function() {
  12774. var M = this.yAxis.stacking;
  12775. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? H.prototype.setStackedPoints.call(this, "group") : M && E(M.stacks, function(S, w) {
  12776. w.slice(-5) === "group" && (E(S, function(v) {
  12777. return v.destroy();
  12778. }), delete M.stacks[w]);
  12779. });
  12780. }, H.prototype.setStackedPoints = function(M) {
  12781. var S = M || this.options.stacking;
  12782. if (S && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  12783. var w = this.processedXData, v = this.processedYData, a = [], c = v.length, p = this.options, i = p.threshold, h = O(p.startFromThreshold && i, 0);
  12784. p = p.stack, M = M ? this.type + "," + S : this.stackKey;
  12785. var s = "-" + M, t = this.negStacks, o = this.yAxis, n = o.stacking.stacks, A = o.stacking.oldStacks, _, D;
  12786. for (o.stacking.stacksTouched += 1, D = 0; D < c; D++) {
  12787. var W = w[D], P = v[D], X = this.getStackIndicator(
  12788. X,
  12789. W,
  12790. this.index
  12791. ), g = X.key, m = (_ = t && P < (h ? 0 : i)) ? s : M;
  12792. n[m] || (n[m] = {}), n[m][W] || (A[m] && A[m][W] ? (n[m][W] = A[m][W], n[m][W].total = null) : n[m][W] = new B(o, o.options.stackLabels, _, W, p)), m = n[m][W], P !== null ? (m.points[g] = m.points[this.index] = [O(m.cumulative, h)], b(m.cumulative) || (m.base = g), m.touched = o.stacking.stacksTouched, 0 < X.index && this.singleStacks === !1 && (m.points[g][0] = m.points[this.index + "," + W + ",0"][0])) : m.points[g] = m.points[this.index] = null, S === "percent" ? (_ = _ ? M : s, t && n[_] && n[_][W] ? (_ = n[_][W], m.total = _.total = Math.max(_.total, m.total) + Math.abs(P) || 0) : m.total = N(m.total + (Math.abs(P) || 0))) : S === "group" ? (u(P) && (P = P[0]), P !== null && (m.total = (m.total || 0) + 1)) : m.total = N(m.total + (P || 0)), m.cumulative = S === "group" ? (m.total || 1) - 1 : O(m.cumulative, h) + (P || 0), P !== null && (m.points[g].push(m.cumulative), a[D] = m.cumulative, m.hasValidPoints = !0);
  12793. }
  12794. S === "percent" && (o.stacking.usePercentage = !0), S !== "group" && (this.stackedYData = a), o.stacking.oldStacks = {};
  12795. }
  12796. }, H.prototype.modifyStacks = function() {
  12797. var M = this, S = M.stackKey, w = M.yAxis.stacking.stacks, v = M.processedXData, a, c = M.options.stacking;
  12798. M[c + "Stacker"] && [S, "-" + S].forEach(function(p) {
  12799. for (var i = v.length, h, s; i--; )
  12800. h = v[i], a = M.getStackIndicator(a, h, M.index, p), (s = (h = w[p] && w[p][h]) && h.points[a.key]) && M[c + "Stacker"](s, h, i);
  12801. });
  12802. }, H.prototype.percentStacker = function(M, S, w) {
  12803. S = S.total ? 100 / S.total : 0, M[0] = N(M[0] * S), M[1] = N(M[1] * S), this.stackedYData[w] = M[1];
  12804. }, H.prototype.getStackIndicator = function(M, S, w, v) {
  12805. return !b(M) || M.x !== S || v && M.key !== v ? M = { x: S, index: 0, key: v } : M.index++, M.key = [w, S, M.index].join(), M;
  12806. }, Z.StackItem = B, Z.StackItem;
  12807. }), T(l, "Series/Line/LineSeries.js", [l["Core/Series/Series.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  12808. var Z = this && this.__extends || function() {
  12809. var F = function(R, N) {
  12810. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, x) {
  12811. b.__proto__ = x;
  12812. } || function(b, x) {
  12813. for (var u in x)
  12814. x.hasOwnProperty(u) && (b[u] = x[u]);
  12815. }, F(R, N);
  12816. };
  12817. return function(R, N) {
  12818. function b() {
  12819. this.constructor = R;
  12820. }
  12821. F(R, N), R.prototype = N === null ? Object.create(N) : (b.prototype = N.prototype, new b());
  12822. };
  12823. }(), H = I.defined, U = I.merge;
  12824. return I = function(F) {
  12825. function R() {
  12826. var N = F !== null && F.apply(this, arguments) || this;
  12827. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  12828. }
  12829. return Z(R, F), R.prototype.drawGraph = function() {
  12830. var N = this, b = this.options, x = (this.gappedPath || this.getGraphPath).call(this), u = this.chart.styledMode, f = [["graph", "highcharts-graph"]];
  12831. u || f[0].push(b.lineColor || this.color || "#cccccc", b.dashStyle), f = N.getZonesGraphs(f), f.forEach(function(E, O) {
  12832. var B = E[0], M = N[B], S = M ? "animate" : "attr";
  12833. M ? (M.endX = N.preventGraphAnimation ? null : x.xMap, M.animate({ d: x })) : x.length && (N[B] = M = N.chart.renderer.path(x).addClass(E[1]).attr({ zIndex: 1 }).add(N.group)), M && !u && (B = { stroke: E[2], "stroke-width": b.lineWidth, fill: N.fillGraph && N.color || "none" }, E[3] ? B.dashstyle = E[3] : b.linecap !== "square" && (B["stroke-linecap"] = B["stroke-linejoin"] = "round"), M[S](B).shadow(2 > O && b.shadow)), M && (M.startX = x.xMap, M.isArea = x.isArea);
  12834. });
  12835. }, R.prototype.getGraphPath = function(N, b, x) {
  12836. var u = this, f = u.options, E = [], O = [], B, M = f.step;
  12837. N = N || u.points;
  12838. var S = N.reversed;
  12839. return S && N.reverse(), (M = { right: 1, center: 2 }[M] || M && 3) && S && (M = 4 - M), N = this.getValidPoints(N, !1, !(f.connectNulls && !b && !x)), N.forEach(function(w, v) {
  12840. var a = w.plotX, c = w.plotY, p = N[v - 1];
  12841. (w.leftCliff || p && p.rightCliff) && !x && (B = !0), w.isNull && !H(b) && 0 < v ? B = !f.connectNulls : w.isNull && !b ? B = !0 : (v === 0 || B ? v = [["M", w.plotX, w.plotY]] : u.getPointSpline ? v = [u.getPointSpline(N, w, v)] : M ? (v = M === 1 ? [["L", p.plotX, c]] : M === 2 ? [["L", (p.plotX + a) / 2, p.plotY], ["L", (p.plotX + a) / 2, c]] : [["L", a, p.plotY]], v.push(["L", a, c])) : v = [["L", a, c]], O.push(w.x), M && (O.push(w.x), M === 2 && O.push(w.x)), E.push.apply(E, v), B = !1);
  12842. }), E.xMap = O, u.graphPath = E;
  12843. }, R.prototype.getZonesGraphs = function(N) {
  12844. return this.zones.forEach(function(b, x) {
  12845. x = ["zone-graph-" + x, "highcharts-graph highcharts-zone-graph-" + x + " " + (b.className || "")], this.chart.styledMode || x.push(b.color || this.color, b.dashStyle || this.options.dashStyle), N.push(x);
  12846. }, this), N;
  12847. }, R.defaultOptions = U(y.defaultOptions, {}), R;
  12848. }(y), j.registerSeriesType("line", I), I;
  12849. }), T(l, "Series/Area/AreaSeries.js", [
  12850. l["Core/Color/Color.js"],
  12851. l["Core/Legend/LegendSymbol.js"],
  12852. l["Core/Series/SeriesRegistry.js"],
  12853. l["Core/Utilities.js"]
  12854. ], function(y, j, I, Z) {
  12855. var H = this && this.__extends || function() {
  12856. var x = function(u, f) {
  12857. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(E, O) {
  12858. E.__proto__ = O;
  12859. } || function(E, O) {
  12860. for (var B in O)
  12861. O.hasOwnProperty(B) && (E[B] = O[B]);
  12862. }, x(u, f);
  12863. };
  12864. return function(u, f) {
  12865. function E() {
  12866. this.constructor = u;
  12867. }
  12868. x(u, f), u.prototype = f === null ? Object.create(f) : (E.prototype = f.prototype, new E());
  12869. };
  12870. }(), U = y.parse, F = I.seriesTypes.line;
  12871. y = Z.extend;
  12872. var R = Z.merge, N = Z.objectEach, b = Z.pick;
  12873. return Z = function(x) {
  12874. function u() {
  12875. var f = x !== null && x.apply(this, arguments) || this;
  12876. return f.data = void 0, f.options = void 0, f.points = void 0, f;
  12877. }
  12878. return H(u, x), u.prototype.drawGraph = function() {
  12879. this.areaPath = [], x.prototype.drawGraph.apply(this);
  12880. var f = this, E = this.areaPath, O = this.options, B = [["area", "highcharts-area", this.color, O.fillColor]];
  12881. this.zones.forEach(function(M, S) {
  12882. B.push(["zone-area-" + S, "highcharts-area highcharts-zone-area-" + S + " " + M.className, M.color || f.color, M.fillColor || O.fillColor]);
  12883. }), B.forEach(function(M) {
  12884. var S = M[0], w = f[S], v = w ? "animate" : "attr", a = {};
  12885. w ? (w.endX = f.preventGraphAnimation ? null : E.xMap, w.animate({ d: E })) : (a.zIndex = 0, w = f[S] = f.chart.renderer.path(E).addClass(M[1]).add(f.group), w.isArea = !0), f.chart.styledMode || (a.fill = b(M[3], U(M[2]).setOpacity(b(O.fillOpacity, 0.75)).get())), w[v](a), w.startX = E.xMap, w.shiftUnit = O.step ? 2 : 1;
  12886. });
  12887. }, u.prototype.getGraphPath = function(f) {
  12888. var E = F.prototype.getGraphPath, O = this.options, B = O.stacking, M = this.yAxis, S, w = [], v = [], a = this.index, c = M.stacking.stacks[this.stackKey], p = O.threshold, i = Math.round(M.getThreshold(O.threshold));
  12889. O = b(O.connectNulls, B === "percent");
  12890. var h = function(n, A, _) {
  12891. var D = f[n];
  12892. n = B && c[D.x].points[a];
  12893. var W = D[_ + "Null"] || 0;
  12894. if (_ = D[_ + "Cliff"] || 0, D = !0, _ || W) {
  12895. var P = (W ? n[0] : n[1]) + _, X = n[0] + _;
  12896. D = !!W;
  12897. } else
  12898. !B && f[A] && f[A].isNull && (P = X = p);
  12899. typeof P < "u" && (v.push({ plotX: t, plotY: P === null ? i : M.getThreshold(P), isNull: D, isCliff: !0 }), w.push({ plotX: t, plotY: X === null ? i : M.getThreshold(X), doCurve: !1 }));
  12900. };
  12901. for (f = f || this.points, B && (f = this.getStackPoints(f)), S = 0; S < f.length; S++) {
  12902. B || (f[S].leftCliff = f[S].rightCliff = f[S].leftNull = f[S].rightNull = void 0);
  12903. var s = f[S].isNull, t = b(f[S].rectPlotX, f[S].plotX), o = B ? b(f[S].yBottom, i) : i;
  12904. (!s || O) && (O || h(S, S - 1, "left"), s && !B && O || (v.push(f[S]), w.push({ x: S, plotX: t, plotY: o })), O || h(S, S + 1, "right"));
  12905. }
  12906. return S = E.call(this, v, !0, !0), w.reversed = !0, s = E.call(this, w, !0, !0), (o = s[0]) && o[0] === "M" && (s[0] = ["L", o[1], o[2]]), s = S.concat(s), s.length && s.push(["Z"]), E = E.call(this, v, !1, O), s.xMap = S.xMap, this.areaPath = s, E;
  12907. }, u.prototype.getStackPoints = function(f) {
  12908. var E = this, O = [], B = [], M = this.xAxis, S = this.yAxis, w = S.stacking.stacks[this.stackKey], v = {}, a = S.series, c = a.length, p = S.options.reversedStacks ? 1 : -1, i = a.indexOf(E);
  12909. if (f = f || this.points, this.options.stacking) {
  12910. for (var h = 0; h < f.length; h++)
  12911. f[h].leftNull = f[h].rightNull = void 0, v[f[h].x] = f[h];
  12912. N(w, function(t, o) {
  12913. t.total !== null && B.push(o);
  12914. }), B.sort(function(t, o) {
  12915. return t - o;
  12916. });
  12917. var s = a.map(function(t) {
  12918. return t.visible;
  12919. });
  12920. B.forEach(function(t, o) {
  12921. var n = 0, A, _;
  12922. if (v[t] && !v[t].isNull)
  12923. O.push(v[t]), [-1, 1].forEach(function(W) {
  12924. var P = W === 1 ? "rightNull" : "leftNull", X = 0, g = w[B[o + W]];
  12925. if (g)
  12926. for (var m = i; 0 <= m && m < c; ) {
  12927. var L = a[m].index;
  12928. A = g.points[L], A || (L === E.index ? v[t][P] = !0 : s[m] && (_ = w[t].points[L]) && (X -= _[1] - _[0])), m += p;
  12929. }
  12930. v[t][W === 1 ? "rightCliff" : "leftCliff"] = X;
  12931. });
  12932. else {
  12933. for (var D = i; 0 <= D && D < c; ) {
  12934. if (A = w[t].points[a[D].index]) {
  12935. n = A[1];
  12936. break;
  12937. }
  12938. D += p;
  12939. }
  12940. n = b(n, 0), n = S.translate(n, 0, 1, 0, 1), O.push({ isNull: !0, plotX: M.translate(t, 0, 0, 0, 1), x: t, plotY: n, yBottom: n });
  12941. }
  12942. });
  12943. }
  12944. return O;
  12945. }, u.defaultOptions = R(F.defaultOptions, { threshold: 0 }), u;
  12946. }(F), y(Z.prototype, {
  12947. singleStacks: !1,
  12948. drawLegendSymbol: j.drawRectangle
  12949. }), I.registerSeriesType("area", Z), Z;
  12950. }), T(l, "Series/Spline/SplineSeries.js", [l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j) {
  12951. var I = this && this.__extends || function() {
  12952. var F = function(R, N) {
  12953. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, x) {
  12954. b.__proto__ = x;
  12955. } || function(b, x) {
  12956. for (var u in x)
  12957. x.hasOwnProperty(u) && (b[u] = x[u]);
  12958. }, F(R, N);
  12959. };
  12960. return function(R, N) {
  12961. function b() {
  12962. this.constructor = R;
  12963. }
  12964. F(R, N), R.prototype = N === null ? Object.create(N) : (b.prototype = N.prototype, new b());
  12965. };
  12966. }(), Z = y.seriesTypes.line, H = j.merge, U = j.pick;
  12967. return j = function(F) {
  12968. function R() {
  12969. var N = F !== null && F.apply(this, arguments) || this;
  12970. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  12971. }
  12972. return I(R, F), R.prototype.getPointSpline = function(N, b, x) {
  12973. var u = b.plotX || 0, f = b.plotY || 0, E = N[x - 1];
  12974. if (x = N[x + 1], E && !E.isNull && E.doCurve !== !1 && !b.isCliff && x && !x.isNull && x.doCurve !== !1 && !b.isCliff) {
  12975. N = E.plotY || 0;
  12976. var O = x.plotX || 0;
  12977. x = x.plotY || 0;
  12978. var B = 0, M = (1.5 * u + (E.plotX || 0)) / 2.5, S = (1.5 * f + N) / 2.5;
  12979. O = (1.5 * u + O) / 2.5;
  12980. var w = (1.5 * f + x) / 2.5;
  12981. O !== M && (B = (w - S) * (O - u) / (O - M) + f - w), S += B, w += B, S > N && S > f ? (S = Math.max(N, f), w = 2 * f - S) : S < N && S < f && (S = Math.min(N, f), w = 2 * f - S), w > x && w > f ? (w = Math.max(x, f), S = 2 * f - w) : w < x && w < f && (w = Math.min(x, f), S = 2 * f - w), b.rightContX = O, b.rightContY = w;
  12982. }
  12983. return b = ["C", U(E.rightContX, E.plotX, 0), U(E.rightContY, E.plotY, 0), U(M, u, 0), U(S, f, 0), u, f], E.rightContX = E.rightContY = void 0, b;
  12984. }, R.defaultOptions = H(Z.defaultOptions), R;
  12985. }(Z), y.registerSeriesType("spline", j), j;
  12986. }), T(
  12987. l,
  12988. "Series/AreaSpline/AreaSplineSeries.js",
  12989. [l["Series/Area/AreaSeries.js"], l["Series/Spline/SplineSeries.js"], l["Core/Legend/LegendSymbol.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]],
  12990. function(y, j, I, Z, H) {
  12991. var U = this && this.__extends || function() {
  12992. var b = function(x, u) {
  12993. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, E) {
  12994. f.__proto__ = E;
  12995. } || function(f, E) {
  12996. for (var O in E)
  12997. E.hasOwnProperty(O) && (f[O] = E[O]);
  12998. }, b(x, u);
  12999. };
  13000. return function(x, u) {
  13001. function f() {
  13002. this.constructor = x;
  13003. }
  13004. b(x, u), x.prototype = u === null ? Object.create(u) : (f.prototype = u.prototype, new f());
  13005. };
  13006. }(), F = y.prototype, R = H.extend, N = H.merge;
  13007. return H = function(b) {
  13008. function x() {
  13009. var u = b !== null && b.apply(this, arguments) || this;
  13010. return u.data = void 0, u.points = void 0, u.options = void 0, u;
  13011. }
  13012. return U(x, b), x.defaultOptions = N(j.defaultOptions, y.defaultOptions), x;
  13013. }(j), R(H.prototype, { getGraphPath: F.getGraphPath, getStackPoints: F.getStackPoints, drawGraph: F.drawGraph, drawLegendSymbol: I.drawRectangle }), Z.registerSeriesType("areaspline", H), H;
  13014. }
  13015. ), T(l, "Series/Column/ColumnSeries.js", [
  13016. l["Core/Animation/AnimationUtilities.js"],
  13017. l["Core/Color/Color.js"],
  13018. l["Core/Globals.js"],
  13019. l["Core/Legend/LegendSymbol.js"],
  13020. l["Core/Series/Series.js"],
  13021. l["Core/Series/SeriesRegistry.js"],
  13022. l["Core/Utilities.js"]
  13023. ], function(y, j, I, Z, H, U, F) {
  13024. var R = this && this.__extends || function() {
  13025. var c = function(p, i) {
  13026. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, s) {
  13027. h.__proto__ = s;
  13028. } || function(h, s) {
  13029. for (var t in s)
  13030. s.hasOwnProperty(t) && (h[t] = s[t]);
  13031. }, c(p, i);
  13032. };
  13033. return function(p, i) {
  13034. function h() {
  13035. this.constructor = p;
  13036. }
  13037. c(p, i), p.prototype = i === null ? Object.create(i) : (h.prototype = i.prototype, new h());
  13038. };
  13039. }(), N = y.animObject, b = j.parse, x = I.hasTouch;
  13040. y = I.noop;
  13041. var u = F.clamp, f = F.css, E = F.defined, O = F.extend, B = F.fireEvent, M = F.isArray, S = F.isNumber, w = F.merge, v = F.pick, a = F.objectEach;
  13042. return F = function(c) {
  13043. function p() {
  13044. var i = c !== null && c.apply(this, arguments) || this;
  13045. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  13046. }
  13047. return R(p, c), p.prototype.animate = function(i) {
  13048. var h = this, s = this.yAxis, t = h.options, o = this.chart.inverted, n = {}, A = o ? "translateX" : "translateY";
  13049. if (i)
  13050. n.scaleY = 1e-3, i = u(s.toPixels(t.threshold), s.pos, s.pos + s.len), o ? n.translateX = i - s.len : n.translateY = i, h.clipBox && h.setClip(), h.group.attr(n);
  13051. else {
  13052. var _ = Number(h.group.attr(A));
  13053. h.group.animate({ scaleY: 1 }, O(N(h.options.animation), { step: function(D, W) {
  13054. h.group && (n[A] = _ + W.pos * (s.pos - _), h.group.attr(n));
  13055. } }));
  13056. }
  13057. }, p.prototype.init = function(i, h) {
  13058. c.prototype.init.apply(this, arguments);
  13059. var s = this;
  13060. i = s.chart, i.hasRendered && i.series.forEach(function(t) {
  13061. t.type === s.type && (t.isDirty = !0);
  13062. });
  13063. }, p.prototype.getColumnMetrics = function() {
  13064. var i = this, h = i.options, s = i.xAxis, t = i.yAxis, o = s.options.reversedStacks;
  13065. o = s.reversed && !o || !s.reversed && o;
  13066. var n = {}, A, _ = 0;
  13067. h.grouping === !1 ? _ = 1 : i.chart.series.forEach(function(X) {
  13068. var g = X.yAxis, m = X.options;
  13069. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === g.len && t.pos === g.pos) {
  13070. if (m.stacking && m.stacking !== "group") {
  13071. A = X.stackKey, typeof n[A] > "u" && (n[A] = _++);
  13072. var L = n[A];
  13073. } else
  13074. m.grouping !== !1 && (L = _++);
  13075. X.columnIndex = L;
  13076. }
  13077. });
  13078. var D = Math.min(Math.abs(s.transA) * (s.ordinal && s.ordinal.slope || h.pointRange || s.closestPointRange || s.tickInterval || 1), s.len), W = D * h.groupPadding, P = (D - 2 * W) / (_ || 1);
  13079. return h = Math.min(h.maxPointWidth || s.len, v(h.pointWidth, P * (1 - 2 * h.pointPadding))), i.columnMetrics = { width: h, offset: (P - h) / 2 + (W + ((i.columnIndex || 0) + (o ? 1 : 0)) * P - D / 2) * (o ? -1 : 1), paddedWidth: P, columnCount: _ }, i.columnMetrics;
  13080. }, p.prototype.crispCol = function(i, h, s, t) {
  13081. var o = this.chart, n = this.borderWidth, A = -(n % 2 ? 0.5 : 0);
  13082. return n = n % 2 ? 0.5 : 1, o.inverted && o.renderer.isVML && (n += 1), this.options.crisp && (s = Math.round(i + s) + A, i = Math.round(i) + A, s -= i), t = Math.round(h + t) + n, A = 0.5 >= Math.abs(h) && 0.5 < t, h = Math.round(h) + n, t -= h, A && t && (--h, t += 1), { x: i, y: h, width: s, height: t };
  13083. }, p.prototype.adjustForMissingColumns = function(i, h, s, t) {
  13084. var o = this, n = this.options.stacking;
  13085. if (!s.isNull && 1 < t.columnCount) {
  13086. var A = 0, _ = 0;
  13087. a(this.yAxis.stacking && this.yAxis.stacking.stacks, function(D) {
  13088. if (typeof s.x == "number" && (D = D[s.x.toString()])) {
  13089. var W = D.points[o.index], P = D.total;
  13090. n ? (W && (A = _), D.hasValidPoints && _++) : M(W) && (A = W[1], _ = P || 0);
  13091. }
  13092. }), i = (s.plotX || 0) + ((_ - 1) * t.paddedWidth + h) / 2 - h - A * t.paddedWidth;
  13093. }
  13094. return i;
  13095. }, p.prototype.translate = function() {
  13096. var i = this, h = i.chart, s = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  13097. t = i.borderWidth = v(s.borderWidth, t ? 0 : 1);
  13098. var o = i.xAxis, n = i.yAxis, A = s.threshold, _ = i.translatedThreshold = n.getThreshold(A), D = v(s.minPointLength, 5), W = i.getColumnMetrics(), P = W.width, X = i.pointXOffset = W.offset, g = i.dataMin, m = i.dataMax, L = i.barW = Math.max(P, 1 + 2 * t);
  13099. h.inverted && (_ -= 0.5), s.pointPadding && (L = Math.ceil(L)), H.prototype.translate.apply(i), i.points.forEach(function(Y) {
  13100. var V = v(Y.yBottom, _), Q = 999 + Math.abs(V), k = Y.plotX || 0;
  13101. Q = u(Y.plotY, -Q, n.len + Q);
  13102. var G = Math.min(Q, V), z = Math.max(Q, V) - G, $ = P, q = k + X, it = L;
  13103. D && Math.abs(z) < D && (z = D, k = !n.reversed && !Y.negative || n.reversed && Y.negative, S(A) && S(m) && Y.y === A && m <= A && (n.min || 0) < A && (g !== m || (n.max || 0) <= A) && (k = !k), G = Math.abs(G - _) > D ? V - D : _ - (k ? D : 0)), E(Y.options.pointWidth) && ($ = it = Math.ceil(Y.options.pointWidth), q -= Math.round(($ - P) / 2)), s.centerInCategory && (q = i.adjustForMissingColumns(q, $, Y, W)), Y.barX = q, Y.pointWidth = $, Y.tooltipPos = h.inverted ? [u(n.len + n.pos - h.plotLeft - Q, n.pos - h.plotLeft, n.len + n.pos - h.plotLeft), o.len + o.pos - h.plotTop - q - it / 2, z] : [o.left - h.plotLeft + q + it / 2, u(Q + n.pos - h.plotTop, n.pos - h.plotTop, n.len + n.pos - h.plotTop), z], Y.shapeType = i.pointClass.prototype.shapeType || "rect", Y.shapeArgs = i.crispCol.apply(i, Y.isNull ? [q, _, it, 0] : [q, G, it, z]);
  13104. });
  13105. }, p.prototype.drawGraph = function() {
  13106. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  13107. }, p.prototype.pointAttribs = function(i, h) {
  13108. var s = this.options, t = this.pointAttrToOptions || {}, o = t.stroke || "borderColor", n = t["stroke-width"] || "borderWidth", A = i && i.color || this.color, _ = i && i[o] || s[o] || A;
  13109. t = i && i.options.dashStyle || s.dashStyle;
  13110. var D = i && i[n] || s[n] || this[n] || 0, W = v(i && i.opacity, s.opacity, 1);
  13111. if (i && this.zones.length) {
  13112. var P = i.getZone();
  13113. A = i.options.color || P && (P.color || i.nonZonedColor) || this.color, P && (_ = P.borderColor || _, t = P.dashStyle || t, D = P.borderWidth || D);
  13114. }
  13115. return h && i && (i = w(s.states[h], i.options.states && i.options.states[h] || {}), h = i.brightness, A = i.color || typeof h < "u" && b(A).brighten(i.brightness).get() || A, _ = i[o] || _, D = i[n] || D, t = i.dashStyle || t, W = v(i.opacity, W)), o = { fill: A, stroke: _, "stroke-width": D, opacity: W }, t && (o.dashstyle = t), o;
  13116. }, p.prototype.drawPoints = function() {
  13117. var i = this, h = this.chart, s = i.options, t = h.renderer, o = s.animationLimit || 250, n;
  13118. i.points.forEach(function(A) {
  13119. var _ = A.graphic, D = !!_, W = _ && h.pointCount < o ? "animate" : "attr";
  13120. S(A.plotY) && A.y !== null ? (n = A.shapeArgs, _ && A.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (A.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), _ || (A.graphic = _ = t[A.shapeType](n).add(A.group || i.group)) && i.enabledDataSorting && h.hasRendered && h.pointCount < o && (_.attr({ x: A.startXPos }), D = !0, W = "animate"), _ && D && _[W](w(n)), s.borderRadius && _[W]({ r: s.borderRadius }), h.styledMode || _[W](i.pointAttribs(A, A.selected && "select")).shadow(A.allowShadow !== !1 && s.shadow, null, s.stacking && !s.borderRadius), _ && (_.addClass(A.getClassName(), !0), _.attr({ visibility: A.visible ? "inherit" : "hidden" }))) : _ && (A.graphic = _.destroy());
  13121. });
  13122. }, p.prototype.drawTracker = function() {
  13123. var i = this, h = i.chart, s = h.pointer, t = function(n) {
  13124. var A = s.getPointFromEvent(n);
  13125. typeof A < "u" && (s.isDirectTouch = !0, A.onMouseOver(n));
  13126. }, o;
  13127. i.points.forEach(function(n) {
  13128. o = M(n.dataLabels) ? n.dataLabels : n.dataLabel ? [n.dataLabel] : [], n.graphic && (n.graphic.element.point = n), o.forEach(function(A) {
  13129. A.div ? A.div.point = n : A.element.point = n;
  13130. });
  13131. }), i._hasTracking || (i.trackerGroups.forEach(function(n) {
  13132. i[n] && (i[n].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(A) {
  13133. s.onTrackerMouseOut(A);
  13134. }), x && i[n].on(
  13135. "touchstart",
  13136. t
  13137. ), !h.styledMode && i.options.cursor && i[n].css(f).css({ cursor: i.options.cursor }));
  13138. }), i._hasTracking = !0), B(this, "afterDrawTracker");
  13139. }, p.prototype.remove = function() {
  13140. var i = this, h = i.chart;
  13141. h.hasRendered && h.series.forEach(function(s) {
  13142. s.type === i.type && (s.isDirty = !0);
  13143. }), H.prototype.remove.apply(i, arguments);
  13144. }, p.defaultOptions = w(H.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  13145. hover: { halo: !1, brightness: 0.1 },
  13146. select: { color: "#cccccc", borderColor: "#000000" }
  13147. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), p;
  13148. }(H), O(F.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: Z.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), U.registerSeriesType("column", F), F;
  13149. }), T(l, "Core/Series/DataLabel.js", [
  13150. l["Core/Animation/AnimationUtilities.js"],
  13151. l["Core/FormatUtilities.js"],
  13152. l["Core/Utilities.js"]
  13153. ], function(y, j, I) {
  13154. var Z = y.getDeferredAnimation, H = j.format, U = I.defined, F = I.extend, R = I.fireEvent, N = I.isArray, b = I.merge, x = I.objectEach, u = I.pick, f = I.splat, E;
  13155. return function(O) {
  13156. function B(p, i, h, s, t) {
  13157. var o = this, n = this.chart, A = this.isCartesian && n.inverted, _ = this.enabledDataSorting, D = u(p.dlBox && p.dlBox.centerX, p.plotX, -9999), W = u(p.plotY, -9999), P = i.getBBox(), X = h.rotation, g = h.align, m = n.isInsidePlot(D, Math.round(W), { inverted: A, paneCoordinates: !0, series: o }), L = function(k) {
  13158. _ && o.xAxis && !Y && o.setDataLabelStartPos(
  13159. p,
  13160. i,
  13161. t,
  13162. m,
  13163. k
  13164. );
  13165. }, Y = u(h.overflow, _ ? "none" : "justify") === "justify", V = this.visible && p.visible !== !1 && (p.series.forceDL || _ && !Y || m || u(h.inside, !!this.options.stacking) && s && n.isInsidePlot(D, A ? s.x + 1 : s.y + s.height - 1, { inverted: A, paneCoordinates: !0, series: o }));
  13166. if (V) {
  13167. var Q = n.renderer.fontMetrics(n.styledMode ? void 0 : h.style.fontSize, i).b;
  13168. s = F({ x: A ? this.yAxis.len - W : D, y: Math.round(A ? this.xAxis.len - D : W), width: 0, height: 0 }, s), F(h, { width: P.width, height: P.height }), X ? (Y = !1, D = n.renderer.rotCorr(Q, X), D = { x: s.x + (h.x || 0) + s.width / 2 + D.x, y: s.y + (h.y || 0) + { top: 0, middle: 0.5, bottom: 1 }[h.verticalAlign] * s.height }, L(D), i[t ? "attr" : "animate"](D).attr({ align: g }), L = (X + 720) % 360, L = 180 < L && 360 > L, g === "left" ? D.y -= L ? P.height : 0 : g === "center" ? (D.x -= P.width / 2, D.y -= P.height / 2) : g === "right" && (D.x -= P.width, D.y -= L ? 0 : P.height), i.placed = !0, i.alignAttr = D) : (L(s), i.align(h, void 0, s), D = i.alignAttr), Y && 0 <= s.height ? this.justifyDataLabel(i, h, D, P, s, t) : u(h.crop, !0) && (V = n.isInsidePlot(D.x, D.y, { paneCoordinates: !0, series: o }) && n.isInsidePlot(D.x + P.width, D.y + P.height, {
  13169. paneCoordinates: !0,
  13170. series: o
  13171. })), h.shape && !X && i[t ? "attr" : "animate"]({ anchorX: A ? n.plotWidth - p.plotY : p.plotX, anchorY: A ? n.plotHeight - p.plotX : p.plotY });
  13172. }
  13173. t && _ && (i.placed = !1), V || _ && !Y || (i.hide(!0), i.placed = !1);
  13174. }
  13175. function M(p, i) {
  13176. var h = i.filter;
  13177. return h ? (i = h.operator, p = p[h.property], h = h.value, i === ">" && p > h || i === "<" && p < h || i === ">=" && p >= h || i === "<=" && p <= h || i === "==" && p == h || i === "===" && p === h) : !0;
  13178. }
  13179. function S() {
  13180. var p = this, i = p.chart, h = p.options, s = p.points, t = p.hasRendered || 0, o = i.renderer, n = h.dataLabels, A, _ = n.animation;
  13181. if (_ = n.defer ? Z(
  13182. i,
  13183. _,
  13184. p
  13185. ) : { defer: 0, duration: 0 }, n = v(v(i.options.plotOptions && i.options.plotOptions.series && i.options.plotOptions.series.dataLabels, i.options.plotOptions && i.options.plotOptions[p.type] && i.options.plotOptions[p.type].dataLabels), n), R(this, "drawDataLabels"), N(n) || n.enabled || p._hasPointLabels) {
  13186. var D = p.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", n.zIndex || 6);
  13187. D.attr({ opacity: +t }), !t && (t = p.dataLabelsGroup) && (p.visible && D.show(!0), t[h.animation ? "animate" : "attr"]({ opacity: 1 }, _)), s.forEach(function(W) {
  13188. A = f(v(n, W.dlOptions || W.options && W.options.dataLabels)), A.forEach(function(P, X) {
  13189. var g = P.enabled && (!W.isNull || W.dataLabelOnNull) && M(W, P), m = W.connectors ? W.connectors[X] : W.connector, L = W.dataLabels ? W.dataLabels[X] : W.dataLabel, Y = u(P.distance, W.labelDistance), V = !L;
  13190. if (g) {
  13191. var Q = W.getLabelConfig(), k = u(P[W.formatPrefix + "Format"], P.format);
  13192. Q = U(k) ? H(k, Q, i) : (P[W.formatPrefix + "Formatter"] || P.formatter).call(Q, P), k = P.style;
  13193. var G = P.rotation;
  13194. i.styledMode || (k.color = u(P.color, k.color, p.color, "#000000"), k.color === "contrast" ? (W.contrastColor = o.getContrast(W.color || p.color), k.color = !U(Y) && P.inside || 0 > Y || h.stacking ? W.contrastColor : "#000000") : delete W.contrastColor, h.cursor && (k.cursor = h.cursor));
  13195. var z = { r: P.borderRadius || 0, rotation: G, padding: P.padding, zIndex: 1 };
  13196. i.styledMode || (z.fill = P.backgroundColor, z.stroke = P.borderColor, z["stroke-width"] = P.borderWidth), x(z, function($, q) {
  13197. typeof $ > "u" && delete z[q];
  13198. });
  13199. }
  13200. !L || g && U(Q) && !!L.div == !!P.useHTML || (W.dataLabel = L = W.dataLabel && W.dataLabel.destroy(), W.dataLabels && (W.dataLabels.length === 1 ? delete W.dataLabels : delete W.dataLabels[X]), X || delete W.dataLabel, m && (W.connector = W.connector.destroy(), W.connectors && (W.connectors.length === 1 ? delete W.connectors : delete W.connectors[X]))), g && U(Q) && (L ? z.text = Q : (W.dataLabels = W.dataLabels || [], L = W.dataLabels[X] = G ? o.text(Q, 0, -9999, P.useHTML).addClass("highcharts-data-label") : o.label(Q, 0, -9999, P.shape, null, null, P.useHTML, null, "data-label"), X || (W.dataLabel = L), L.addClass(" highcharts-data-label-color-" + W.colorIndex + " " + (P.className || "") + (P.useHTML ? " highcharts-tracker" : ""))), L.options = P, L.attr(z), i.styledMode || L.css(k).shadow(P.shadow), L.added || L.add(D), P.textPath && !P.useHTML && (L.setTextPath(W.getDataLabelPath && W.getDataLabelPath(L) || W.graphic, P.textPath), W.dataLabelPath && !P.textPath.enabled && (W.dataLabelPath = W.dataLabelPath.destroy())), p.alignDataLabel(W, L, P, null, V));
  13201. });
  13202. });
  13203. }
  13204. R(this, "afterDrawDataLabels");
  13205. }
  13206. function w(p, i, h, s, t, o) {
  13207. var n = this.chart, A = i.align, _ = i.verticalAlign, D = p.box ? 0 : p.padding || 0, W = i.x;
  13208. W = W === void 0 ? 0 : W;
  13209. var P = i.y;
  13210. P = P === void 0 ? 0 : P;
  13211. var X = (h.x || 0) + D;
  13212. if (0 > X) {
  13213. A === "right" && 0 <= W ? (i.align = "left", i.inside = !0) : W -= X;
  13214. var g = !0;
  13215. }
  13216. return X = (h.x || 0) + s.width - D, X > n.plotWidth && (A === "left" && 0 >= W ? (i.align = "right", i.inside = !0) : W += n.plotWidth - X, g = !0), X = h.y + D, 0 > X && (_ === "bottom" && 0 <= P ? (i.verticalAlign = "top", i.inside = !0) : P -= X, g = !0), X = (h.y || 0) + s.height - D, X > n.plotHeight && (_ === "top" && 0 >= P ? (i.verticalAlign = "bottom", i.inside = !0) : P += n.plotHeight - X, g = !0), g && (i.x = W, i.y = P, p.placed = !o, p.align(i, void 0, t)), g;
  13217. }
  13218. function v(p, i) {
  13219. var h = [], s;
  13220. if (N(p) && !N(i))
  13221. h = p.map(function(t) {
  13222. return b(t, i);
  13223. });
  13224. else if (N(i) && !N(p))
  13225. h = i.map(function(t) {
  13226. return b(p, t);
  13227. });
  13228. else if (N(p) || N(i))
  13229. for (s = Math.max(p.length, i.length); s--; )
  13230. h[s] = b(p[s], i[s]);
  13231. else
  13232. h = b(p, i);
  13233. return h;
  13234. }
  13235. function a(p, i, h, s, t) {
  13236. var o = this.chart, n = o.inverted, A = this.xAxis, _ = A.reversed, D = n ? i.height / 2 : i.width / 2;
  13237. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = n ? t.x : _ ? -D - p : A.width - D + p, i.startYPos = n ? _ ? this.yAxis.height - D + p : -D - p : t.y, s ? i.visibility === "hidden" && (i.show(), i.attr({ opacity: 0 }).animate({ opacity: 1 })) : i.attr({ opacity: 1 }).animate(
  13238. { opacity: 0 },
  13239. void 0,
  13240. i.hide
  13241. ), o.hasRendered && (h && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  13242. }
  13243. var c = [];
  13244. O.compose = function(p) {
  13245. if (c.indexOf(p) === -1) {
  13246. var i = p.prototype;
  13247. c.push(p), i.alignDataLabel = B, i.drawDataLabels = S, i.justifyDataLabel = w, i.setDataLabelStartPos = a;
  13248. }
  13249. };
  13250. }(E || (E = {})), E;
  13251. }), T(l, "Series/Column/ColumnDataLabel.js", [l["Core/Series/DataLabel.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  13252. var Z = j.series, H = I.merge, U = I.pick, F;
  13253. return function(R) {
  13254. function N(x, u, f, E, O) {
  13255. var B = this.chart.inverted, M = x.series, S = (M.xAxis ? M.xAxis.len : this.chart.plotSizeX) || 0;
  13256. M = (M.yAxis ? M.yAxis.len : this.chart.plotSizeY) || 0;
  13257. var w = x.dlBox || x.shapeArgs, v = U(x.below, x.plotY > U(this.translatedThreshold, M)), a = U(f.inside, !!this.options.stacking);
  13258. w && (E = H(w), 0 > E.y && (E.height += E.y, E.y = 0), w = E.y + E.height - M, 0 < w && w < E.height && (E.height -= w), B && (E = { x: M - E.y - E.height, y: S - E.x - E.width, width: E.height, height: E.width }), a || (B ? (E.x += v ? 0 : E.width, E.width = 0) : (E.y += v ? E.height : 0, E.height = 0))), f.align = U(f.align, !B || a ? "center" : v ? "right" : "left"), f.verticalAlign = U(f.verticalAlign, B || a ? "middle" : v ? "top" : "bottom"), Z.prototype.alignDataLabel.call(this, x, u, f, E, O), f.inside && x.contrastColor && u.css({ color: x.contrastColor });
  13259. }
  13260. var b = [];
  13261. R.compose = function(x) {
  13262. y.compose(Z), b.indexOf(x) === -1 && (b.push(x), x.prototype.alignDataLabel = N);
  13263. };
  13264. }(F || (F = {})), F;
  13265. }), T(l, "Series/Bar/BarSeries.js", [l["Series/Column/ColumnSeries.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  13266. var Z = this && this.__extends || function() {
  13267. var F = function(R, N) {
  13268. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, x) {
  13269. b.__proto__ = x;
  13270. } || function(b, x) {
  13271. for (var u in x)
  13272. x.hasOwnProperty(u) && (b[u] = x[u]);
  13273. }, F(R, N);
  13274. };
  13275. return function(R, N) {
  13276. function b() {
  13277. this.constructor = R;
  13278. }
  13279. F(R, N), R.prototype = N === null ? Object.create(N) : (b.prototype = N.prototype, new b());
  13280. };
  13281. }(), H = I.extend, U = I.merge;
  13282. return I = function(F) {
  13283. function R() {
  13284. var N = F !== null && F.apply(this, arguments) || this;
  13285. return N.data = void 0, N.options = void 0, N.points = void 0, N;
  13286. }
  13287. return Z(R, F), R.defaultOptions = U(
  13288. y.defaultOptions,
  13289. {}
  13290. ), R;
  13291. }(y), H(I.prototype, { inverted: !0 }), j.registerSeriesType("bar", I), I;
  13292. }), T(l, "Series/Scatter/ScatterSeries.js", [l["Series/Column/ColumnSeries.js"], l["Series/Line/LineSeries.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  13293. var H = this && this.__extends || function() {
  13294. var N = function(b, x) {
  13295. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, f) {
  13296. u.__proto__ = f;
  13297. } || function(u, f) {
  13298. for (var E in f)
  13299. f.hasOwnProperty(E) && (u[E] = f[E]);
  13300. }, N(b, x);
  13301. };
  13302. return function(b, x) {
  13303. function u() {
  13304. this.constructor = b;
  13305. }
  13306. N(b, x), b.prototype = x === null ? Object.create(x) : (u.prototype = x.prototype, new u());
  13307. };
  13308. }(), U = Z.addEvent, F = Z.extend, R = Z.merge;
  13309. return Z = function(N) {
  13310. function b() {
  13311. var x = N !== null && N.apply(this, arguments) || this;
  13312. return x.data = void 0, x.options = void 0, x.points = void 0, x;
  13313. }
  13314. return H(b, N), b.prototype.applyJitter = function() {
  13315. var x = this, u = this.options.jitter, f = this.points.length;
  13316. u && this.points.forEach(function(E, O) {
  13317. ["x", "y"].forEach(function(B, M) {
  13318. var S = "plot" + B.toUpperCase();
  13319. if (u[B] && !E.isNull) {
  13320. var w = x[B + "Axis"], v = u[B] * w.transA;
  13321. if (w && !w.isLog) {
  13322. var a = Math.max(0, E[S] - v);
  13323. w = Math.min(w.len, E[S] + v), M = 1e4 * Math.sin(O + M * f), E[S] = a + (w - a) * (M - Math.floor(M)), B === "x" && (E.clientX = E.plotX);
  13324. }
  13325. }
  13326. });
  13327. });
  13328. }, b.prototype.drawGraph = function() {
  13329. this.options.lineWidth ? N.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  13330. }, b.defaultOptions = R(j.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  13331. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  13332. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  13333. } }), b;
  13334. }(j), F(Z.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), U(Z, "afterTranslate", function() {
  13335. this.applyJitter();
  13336. }), I.registerSeriesType("scatter", Z), Z;
  13337. }), T(l, "Series/CenteredUtilities.js", [l["Core/Globals.js"], l["Core/Series/Series.js"], l["Core/Utilities.js"]], function(y, j, I) {
  13338. var Z = y.deg2rad, H = I.isNumber, U = I.pick, F = I.relativeLength, R;
  13339. return function(N) {
  13340. N.getCenter = function() {
  13341. var b = this.options, x = this.chart, u = 2 * (b.slicedOffset || 0), f = x.plotWidth - 2 * u, E = x.plotHeight - 2 * u, O = b.center, B = Math.min(f, E), M = b.size, S = b.innerSize || 0;
  13342. for (typeof M == "string" && (M = parseFloat(M)), typeof S == "string" && (S = parseFloat(S)), b = [U(O[0], "50%"), U(O[1], "50%"), U(M && 0 > M ? void 0 : b.size, "100%"), U(S && 0 > S ? void 0 : b.innerSize || 0, "0%")], !x.angular || this instanceof j || (b[3] = 0), O = 0; 4 > O; ++O)
  13343. M = b[O], x = 2 > O || O === 2 && /%$/.test(M), b[O] = F(M, [f, E, B, b[2]][O]) + (x ? u : 0);
  13344. return b[3] > b[2] && (b[3] = b[2]), b;
  13345. }, N.getStartAndEndRadians = function(b, x) {
  13346. return b = H(b) ? b : 0, x = H(x) && x > b && 360 > x - b ? x : b + 360, { start: Z * (b + -90), end: Z * (x + -90) };
  13347. };
  13348. }(R || (R = {})), R;
  13349. }), T(l, "Series/Pie/PiePoint.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Series/Point.js"], l["Core/Utilities.js"]], function(y, j, I) {
  13350. var Z = this && this.__extends || function() {
  13351. var x = function(u, f) {
  13352. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(E, O) {
  13353. E.__proto__ = O;
  13354. } || function(E, O) {
  13355. for (var B in O)
  13356. O.hasOwnProperty(B) && (E[B] = O[B]);
  13357. }, x(u, f);
  13358. };
  13359. return function(u, f) {
  13360. function E() {
  13361. this.constructor = u;
  13362. }
  13363. x(u, f), u.prototype = f === null ? Object.create(f) : (E.prototype = f.prototype, new E());
  13364. };
  13365. }(), H = y.setAnimation, U = I.addEvent, F = I.defined;
  13366. y = I.extend;
  13367. var R = I.isNumber, N = I.pick, b = I.relativeLength;
  13368. return j = function(x) {
  13369. function u() {
  13370. var f = x !== null && x.apply(this, arguments) || this;
  13371. return f.labelDistance = void 0, f.options = void 0, f.series = void 0, f;
  13372. }
  13373. return Z(u, x), u.prototype.getConnectorPath = function() {
  13374. var f = this.labelPosition, E = this.series.options.dataLabels, O = this.connectorShapes, B = E.connectorShape;
  13375. return O[B] && (B = O[B]), B.call(this, { x: f.final.x, y: f.final.y, alignment: f.alignment }, f.connectorPosition, E);
  13376. }, u.prototype.getTranslate = function() {
  13377. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  13378. }, u.prototype.haloPath = function(f) {
  13379. var E = this.shapeArgs;
  13380. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(E.x, E.y, E.r + f, E.r + f, { innerR: E.r - 1, start: E.start, end: E.end });
  13381. }, u.prototype.init = function() {
  13382. var f = this;
  13383. x.prototype.init.apply(
  13384. this,
  13385. arguments
  13386. ), this.name = N(this.name, "Slice");
  13387. var E = function(O) {
  13388. f.slice(O.type === "select");
  13389. };
  13390. return U(this, "select", E), U(this, "unselect", E), this;
  13391. }, u.prototype.isValid = function() {
  13392. return R(this.y) && 0 <= this.y;
  13393. }, u.prototype.setVisible = function(f, E) {
  13394. var O = this, B = this.series, M = B.chart, S = B.options.ignoreHiddenPoint;
  13395. E = N(E, S), f !== this.visible && (this.visible = this.options.visible = f = typeof f > "u" ? !this.visible : f, B.options.data[B.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(w) {
  13396. O[w] && O[w][f ? "show" : "hide"](f);
  13397. }), this.legendItem && M.legend.colorizeItem(this, f), f || this.state !== "hover" || this.setState(""), S && (B.isDirty = !0), E && M.redraw());
  13398. }, u.prototype.slice = function(f, E, O) {
  13399. var B = this.series;
  13400. H(O, B.chart), N(E, !0), this.sliced = this.options.sliced = F(f) ? f : !this.sliced, B.options.data[B.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  13401. }, u;
  13402. }(j), y(j.prototype, { connectorShapes: { fixedOffset: function(x, u, f) {
  13403. var E = u.breakAt;
  13404. return u = u.touchingSliceAt, [["M", x.x, x.y], f.softConnector ? ["C", x.x + (x.alignment === "left" ? -5 : 5), x.y, 2 * E.x - u.x, 2 * E.y - u.y, E.x, E.y] : ["L", E.x, E.y], ["L", u.x, u.y]];
  13405. }, straight: function(x, u) {
  13406. return u = u.touchingSliceAt, [["M", x.x, x.y], ["L", u.x, u.y]];
  13407. }, crookedLine: function(x, u, f) {
  13408. u = u.touchingSliceAt;
  13409. var E = this.series, O = E.center[0], B = E.chart.plotWidth, M = E.chart.plotLeft;
  13410. E = x.alignment;
  13411. var S = this.shapeArgs.r;
  13412. return f = b(f.crookDistance, 1), B = E === "left" ? O + S + (B + M - O - S) * (1 - f) : M + (O - S) * f, f = ["L", B, x.y], O = !0, (E === "left" ? B > x.x || B < u.x : B < x.x || B > u.x) && (O = !1), x = [["M", x.x, x.y]], O && x.push(f), x.push(["L", u.x, u.y]), x;
  13413. } } }), j;
  13414. }), T(l, "Series/Pie/PieSeries.js", [l["Series/CenteredUtilities.js"], l["Series/Column/ColumnSeries.js"], l["Core/Globals.js"], l["Core/Legend/LegendSymbol.js"], l["Series/Pie/PiePoint.js"], l["Core/Series/Series.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Renderer/SVG/Symbols.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F, R, N) {
  13415. var b = this && this.__extends || function() {
  13416. var S = function(w, v) {
  13417. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, c) {
  13418. a.__proto__ = c;
  13419. } || function(a, c) {
  13420. for (var p in c)
  13421. c.hasOwnProperty(p) && (a[p] = c[p]);
  13422. }, S(w, v);
  13423. };
  13424. return function(w, v) {
  13425. function a() {
  13426. this.constructor = w;
  13427. }
  13428. S(w, v), w.prototype = v === null ? Object.create(v) : (a.prototype = v.prototype, new a());
  13429. };
  13430. }(), x = y.getStartAndEndRadians;
  13431. I = I.noop;
  13432. var u = N.clamp, f = N.extend, E = N.fireEvent, O = N.merge, B = N.pick, M = N.relativeLength;
  13433. return N = function(S) {
  13434. function w() {
  13435. var v = S !== null && S.apply(this, arguments) || this;
  13436. return v.center = void 0, v.data = void 0, v.maxLabelDistance = void 0, v.options = void 0, v.points = void 0, v;
  13437. }
  13438. return b(w, S), w.prototype.animate = function(v) {
  13439. var a = this, c = a.points, p = a.startAngleRad;
  13440. v || c.forEach(function(i) {
  13441. var h = i.graphic, s = i.shapeArgs;
  13442. h && s && (h.attr({ r: B(i.startR, a.center && a.center[3] / 2), start: p, end: p }), h.animate({ r: s.r, start: s.start, end: s.end }, a.options.animation));
  13443. });
  13444. }, w.prototype.drawEmpty = function() {
  13445. var v = this.startAngleRad, a = this.endAngleRad, c = this.options;
  13446. if (this.total === 0 && this.center) {
  13447. var p = this.center[0], i = this.center[1];
  13448. this.graph || (this.graph = this.chart.renderer.arc(p, i, this.center[1] / 2, 0, v, a).addClass("highcharts-empty-series").add(this.group)), this.graph.attr({ d: R.arc(p, i, this.center[2] / 2, 0, { start: v, end: a, innerR: this.center[3] / 2 }) }), this.chart.styledMode || this.graph.attr({ "stroke-width": c.borderWidth, fill: c.fillColor || "none", stroke: c.color || "#cccccc" });
  13449. } else
  13450. this.graph && (this.graph = this.graph.destroy());
  13451. }, w.prototype.drawPoints = function() {
  13452. var v = this.chart.renderer;
  13453. this.points.forEach(function(a) {
  13454. a.graphic && a.hasNewShapeType() && (a.graphic = a.graphic.destroy()), a.graphic || (a.graphic = v[a.shapeType](a.shapeArgs).add(a.series.group), a.delayedRendering = !0);
  13455. });
  13456. }, w.prototype.generatePoints = function() {
  13457. S.prototype.generatePoints.call(this), this.updateTotals();
  13458. }, w.prototype.getX = function(v, a, c) {
  13459. var p = this.center, i = this.radii ? this.radii[c.index] || 0 : p[2] / 2;
  13460. return v = Math.asin(u((v - p[1]) / (i + c.labelDistance), -1, 1)), p[0] + (a ? -1 : 1) * Math.cos(v) * (i + c.labelDistance) + (0 < c.labelDistance ? (a ? -1 : 1) * this.options.dataLabels.padding : 0);
  13461. }, w.prototype.hasData = function() {
  13462. return !!this.processedXData.length;
  13463. }, w.prototype.redrawPoints = function() {
  13464. var v = this, a = v.chart, c = a.renderer, p = v.options.shadow, i, h, s, t;
  13465. this.drawEmpty(), !p || v.shadowGroup || a.styledMode || (v.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(v.group)), v.points.forEach(function(o) {
  13466. var n = {};
  13467. if (h = o.graphic, !o.isNull && h) {
  13468. var A = void 0;
  13469. t = o.shapeArgs, i = o.getTranslate(), a.styledMode || (A = o.shadowGroup, p && !A && (A = o.shadowGroup = c.g("shadow").add(v.shadowGroup)), A && A.attr(i), s = v.pointAttribs(o, o.selected && "select")), o.delayedRendering ? (h.setRadialReference(v.center).attr(t).attr(i), a.styledMode || h.attr(s).attr({ "stroke-linejoin": "round" }).shadow(p, A), o.delayedRendering = !1) : (h.setRadialReference(v.center), a.styledMode || O(!0, n, s), O(!0, n, t, i), h.animate(n)), h.attr({ visibility: o.visible ? "inherit" : "hidden" }), h.addClass(o.getClassName(), !0);
  13470. } else
  13471. h && (o.graphic = h.destroy());
  13472. });
  13473. }, w.prototype.sortByAngle = function(v, a) {
  13474. v.sort(function(c, p) {
  13475. return typeof c.angle < "u" && (p.angle - c.angle) * a;
  13476. });
  13477. }, w.prototype.translate = function(v) {
  13478. this.generatePoints();
  13479. var a = this.options, c = a.slicedOffset, p = c + (a.borderWidth || 0), i = x(a.startAngle, a.endAngle), h = this.startAngleRad = i.start;
  13480. i = (this.endAngleRad = i.end) - h;
  13481. var s = this.points, t = a.dataLabels.distance;
  13482. a = a.ignoreHiddenPoint;
  13483. var o = s.length, n, A = 0;
  13484. for (v || (this.center = v = this.getCenter()), n = 0; n < o; n++) {
  13485. var _ = s[n], D = h + A * i;
  13486. !_.isValid() || a && !_.visible || (A += _.percentage / 100);
  13487. var W = h + A * i, P = { x: v[0], y: v[1], r: v[2] / 2, innerR: v[3] / 2, start: Math.round(1e3 * D) / 1e3, end: Math.round(1e3 * W) / 1e3 };
  13488. _.shapeType = "arc", _.shapeArgs = P, _.labelDistance = B(_.options.dataLabels && _.options.dataLabels.distance, t), _.labelDistance = M(_.labelDistance, P.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, _.labelDistance), W = (W + D) / 2, W > 1.5 * Math.PI ? W -= 2 * Math.PI : W < -Math.PI / 2 && (W += 2 * Math.PI), _.slicedTranslation = { translateX: Math.round(Math.cos(W) * c), translateY: Math.round(Math.sin(W) * c) }, P = Math.cos(W) * v[2] / 2;
  13489. var X = Math.sin(W) * v[2] / 2;
  13490. _.tooltipPos = [v[0] + 0.7 * P, v[1] + 0.7 * X], _.half = W < -Math.PI / 2 || W > Math.PI / 2 ? 1 : 0, _.angle = W, D = Math.min(p, _.labelDistance / 5), _.labelPosition = { natural: { x: v[0] + P + Math.cos(W) * _.labelDistance, y: v[1] + X + Math.sin(W) * _.labelDistance }, final: {}, alignment: 0 > _.labelDistance ? "center" : _.half ? "right" : "left", connectorPosition: { breakAt: { x: v[0] + P + Math.cos(W) * D, y: v[1] + X + Math.sin(W) * D }, touchingSliceAt: { x: v[0] + P, y: v[1] + X } } };
  13491. }
  13492. E(this, "afterTranslate");
  13493. }, w.prototype.updateTotals = function() {
  13494. var v = this.points, a = v.length, c = this.options.ignoreHiddenPoint, p, i = 0;
  13495. for (p = 0; p < a; p++) {
  13496. var h = v[p];
  13497. !h.isValid() || c && !h.visible || (i += h.y);
  13498. }
  13499. for (this.total = i, p = 0; p < a; p++)
  13500. h = v[p], h.percentage = 0 < i && (h.visible || !c) ? h.y / i * 100 : 0, h.total = i;
  13501. }, w.defaultOptions = O(U.defaultOptions, {
  13502. center: [null, null],
  13503. clip: !1,
  13504. colorByPoint: !0,
  13505. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  13506. return this.point.isNull ? void 0 : this.point.name;
  13507. }, softConnector: !0, x: 0 },
  13508. fillColor: void 0,
  13509. ignoreHiddenPoint: !0,
  13510. inactiveOtherPoints: !0,
  13511. legendType: "point",
  13512. marker: null,
  13513. size: null,
  13514. showInLegend: !1,
  13515. slicedOffset: 10,
  13516. stickyTracking: !1,
  13517. tooltip: { followPointer: !0 },
  13518. borderColor: "#ffffff",
  13519. borderWidth: 1,
  13520. lineWidth: void 0,
  13521. states: { hover: { brightness: 0.1 } }
  13522. }), w;
  13523. }(U), f(N.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: Z.drawRectangle, drawTracker: j.prototype.drawTracker, getCenter: y.getCenter, getSymbol: I, isCartesian: !1, noSharedTooltip: !0, pointAttribs: j.prototype.pointAttribs, pointClass: H, requireSorting: !1, searchPoint: I, trackerGroups: ["group", "dataLabelsGroup"] }), F.registerSeriesType("pie", N), N;
  13524. }), T(l, "Series/Pie/PieDataLabel.js", [
  13525. l["Core/Series/DataLabel.js"],
  13526. l["Core/Globals.js"],
  13527. l["Core/Renderer/RendererUtilities.js"],
  13528. l["Core/Series/SeriesRegistry.js"],
  13529. l["Core/Utilities.js"]
  13530. ], function(y, j, I, Z, H) {
  13531. var U = j.noop, F = I.distribute, R = Z.series, N = H.arrayMax, b = H.clamp, x = H.defined, u = H.merge, f = H.pick, E = H.relativeLength, O;
  13532. return function(B) {
  13533. function M() {
  13534. var c = this, p = c.data, i = c.chart, h = c.options.dataLabels || {}, s = h.connectorPadding, t = i.plotWidth, o = i.plotHeight, n = i.plotLeft, A = Math.round(i.chartWidth / 3), _ = c.center, D = _[2] / 2, W = _[1], P = [[], []], X = [0, 0, 0, 0], g = c.dataLabelPositioners, m, L, Y, V, Q, k, G, z, $, q, it, et;
  13535. c.visible && (h.enabled || c._hasPointLabels) && (p.forEach(function(nt) {
  13536. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  13537. }), R.prototype.drawDataLabels.apply(c), p.forEach(function(nt) {
  13538. nt.dataLabel && (nt.visible ? (P[nt.half].push(nt), nt.dataLabel._pos = null, !x(h.style.width) && !x(nt.options.dataLabels && nt.options.dataLabels.style && nt.options.dataLabels.style.width) && nt.dataLabel.getBBox().width > A && (nt.dataLabel.css({ width: Math.round(0.7 * A) + "px" }), nt.dataLabel.shortened = !0)) : (nt.dataLabel = nt.dataLabel.destroy(), nt.dataLabels && nt.dataLabels.length === 1 && delete nt.dataLabels));
  13539. }), P.forEach(function(nt, rt) {
  13540. var ct = nt.length, gt = [], dt;
  13541. if (ct) {
  13542. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  13543. var ht = Math.max(0, W - D - c.maxLabelDistance), at = Math.min(W + D + c.maxLabelDistance, i.plotHeight);
  13544. nt.forEach(function(J) {
  13545. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, W - D - J.labelDistance), J.bottom = Math.min(W + D + J.labelDistance, i.plotHeight), dt = J.dataLabel.getBBox().height || 21, J.distributeBox = { target: J.labelPosition.natural.y - J.top + dt / 2, size: dt, rank: J.y }, gt.push(J.distributeBox));
  13546. }), ht = at + dt - ht, F(gt, ht, ht / 5);
  13547. }
  13548. for (it = 0; it < ct; it++) {
  13549. if (m = nt[it], k = m.labelPosition, V = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", $ = ht = k.natural.y, gt && x(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (G = m.distributeBox.size, $ = g.radialDistributionY(m))), delete m.positionIndex, h.justify)
  13550. z = g.justify(m, D, _);
  13551. else
  13552. switch (h.alignTo) {
  13553. case "connectors":
  13554. z = g.alignToConnectors(nt, rt, t, n);
  13555. break;
  13556. case "plotEdges":
  13557. z = g.alignToPlotEdges(V, rt, t, n);
  13558. break;
  13559. default:
  13560. z = g.radialDistributionX(c, m, $, ht);
  13561. }
  13562. V._attr = { visibility: q, align: k.alignment }, et = m.options.dataLabels || {}, V._pos = { x: z + f(et.x, h.x) + ({ left: s, right: -s }[k.alignment] || 0), y: $ + f(et.y, h.y) - 10 }, k.final.x = z, k.final.y = $, f(h.crop, !0) && (Q = V.getBBox().width, ht = null, z - Q < s && rt === 1 ? (ht = Math.round(Q - z + s), X[3] = Math.max(ht, X[3])) : z + Q > t - s && rt === 0 && (ht = Math.round(z + Q - t + s), X[1] = Math.max(ht, X[1])), 0 > $ - G / 2 ? X[0] = Math.max(Math.round(-$ + G / 2), X[0]) : $ + G / 2 > o && (X[2] = Math.max(Math.round($ + G / 2 - o), X[2])), V.sideOverflow = ht);
  13563. }
  13564. }
  13565. }), N(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  13566. if (et = u(h, nt.options.dataLabels), L = f(et.connectorWidth, 1)) {
  13567. var rt;
  13568. Y = nt.connector, (V = nt.dataLabel) && V._pos && nt.visible && 0 < nt.labelDistance ? (q = V._attr.visibility, (rt = !Y) && (nt.connector = Y = i.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + nt.colorIndex + (nt.className ? " " + nt.className : "")).add(c.dataLabelsGroup), i.styledMode || Y.attr({ "stroke-width": L, stroke: et.connectorColor || nt.color || "#666666" })), Y[rt ? "attr" : "animate"]({ d: nt.getConnectorPath() }), Y.attr("visibility", q)) : Y && (nt.connector = Y.destroy());
  13569. }
  13570. }));
  13571. }
  13572. function S() {
  13573. this.points.forEach(function(c) {
  13574. var p = c.dataLabel, i;
  13575. p && c.visible && ((i = p._pos) ? (p.sideOverflow && (p._attr.width = Math.max(p.getBBox().width - p.sideOverflow, 0), p.css({ width: p._attr.width + "px", textOverflow: (this.options.dataLabels.style || {}).textOverflow || "ellipsis" }), p.shortened = !0), p.attr(p._attr), p[p.moved ? "animate" : "attr"](i), p.moved = !0) : p && p.attr({ y: -9999 })), delete c.distributeBox;
  13576. }, this);
  13577. }
  13578. function w(c) {
  13579. var p = this.center, i = this.options, h = i.center, s = i.minSize || 80, t = i.size !== null;
  13580. if (!t) {
  13581. if (h[0] !== null)
  13582. var o = Math.max(p[2] - Math.max(c[1], c[3]), s);
  13583. else
  13584. o = Math.max(p[2] - c[1] - c[3], s), p[0] += (c[3] - c[1]) / 2;
  13585. h[1] !== null ? o = b(o, s, p[2] - Math.max(c[0], c[2])) : (o = b(o, s, p[2] - c[0] - c[2]), p[1] += (c[0] - c[2]) / 2), o < p[2] ? (p[2] = o, p[3] = Math.min(E(i.innerSize || 0, o), o), this.translate(p), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  13586. }
  13587. return t;
  13588. }
  13589. var v = [], a = { radialDistributionY: function(c) {
  13590. return c.top + c.distributeBox.pos;
  13591. }, radialDistributionX: function(c, p, i, h) {
  13592. return c.getX(i < p.top + 2 || i > p.bottom - 2 ? h : i, p.half, p);
  13593. }, justify: function(c, p, i) {
  13594. return i[0] + (c.half ? -1 : 1) * (p + c.labelDistance);
  13595. }, alignToPlotEdges: function(c, p, i, h) {
  13596. return c = c.getBBox().width, p ? c + h : i - c - h;
  13597. }, alignToConnectors: function(c, p, i, h) {
  13598. var s = 0, t;
  13599. return c.forEach(function(o) {
  13600. t = o.dataLabel.getBBox().width, t > s && (s = t);
  13601. }), p ? s + h : i - s - h;
  13602. } };
  13603. B.compose = function(c) {
  13604. y.compose(R), v.indexOf(c) === -1 && (v.push(c), c = c.prototype, c.dataLabelPositioners = a, c.alignDataLabel = U, c.drawDataLabels = M, c.placeDataLabels = S, c.verifyDataLabelOverflow = w);
  13605. };
  13606. }(O || (O = {})), O;
  13607. }), T(l, "Extensions/OverlappingDataLabels.js", [l["Core/Chart/Chart.js"], l["Core/Utilities.js"]], function(y, j) {
  13608. function I(b, x) {
  13609. var u = !1;
  13610. if (b) {
  13611. var f = b.newOpacity;
  13612. b.oldOpacity !== f && (b.alignAttr && b.placed ? (b[f ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), u = !0, b.alignAttr.opacity = f, b[b.isOld ? "animate" : "attr"](b.alignAttr, null, function() {
  13613. x.styledMode || b.css({ pointerEvents: f ? "auto" : "none" });
  13614. }), H(x, "afterHideOverlappingLabel")) : b.attr({ opacity: f })), b.isOld = !0;
  13615. }
  13616. return u;
  13617. }
  13618. var Z = j.addEvent, H = j.fireEvent, U = j.isArray, F = j.isNumber, R = j.objectEach, N = j.pick;
  13619. Z(y, "render", function() {
  13620. var b = this, x = [];
  13621. (this.labelCollectors || []).forEach(function(u) {
  13622. x = x.concat(u());
  13623. }), (this.yAxis || []).forEach(function(u) {
  13624. u.stacking && u.options.stackLabels && !u.options.stackLabels.allowOverlap && R(u.stacking.stacks, function(f) {
  13625. R(f, function(E) {
  13626. E.label && E.label.visibility !== "hidden" && x.push(E.label);
  13627. });
  13628. });
  13629. }), (this.series || []).forEach(function(u) {
  13630. var f = u.options.dataLabels;
  13631. u.visible && (f.enabled !== !1 || u._hasPointLabels) && (f = function(E) {
  13632. return E.forEach(function(O) {
  13633. O.visible && (U(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(B) {
  13634. var M = B.options;
  13635. B.labelrank = N(M.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), M.allowOverlap ? (B.oldOpacity = B.opacity, B.newOpacity = 1, I(B, b)) : x.push(B);
  13636. });
  13637. });
  13638. }, f(u.nodes || []), f(u.points));
  13639. }), this.hideOverlappingLabels(x);
  13640. }), y.prototype.hideOverlappingLabels = function(b) {
  13641. var x = this, u = b.length, f = x.renderer, E, O, B, M = !1, S = function(a) {
  13642. var c, p = a.box ? 0 : a.padding || 0, i = c = 0, h;
  13643. if (a && (!a.alignAttr || a.placed)) {
  13644. var s = a.alignAttr || { x: a.attr("x"), y: a.attr("y") }, t = a.parentGroup;
  13645. a.width || (c = a.getBBox(), a.width = c.width, a.height = c.height, c = f.fontMetrics(null, a.element).h);
  13646. var o = a.width - 2 * p;
  13647. return (h = { left: "0", center: "0.5", right: "1" }[a.alignValue]) ? i = +h * o : F(a.x) && Math.round(a.x) !== a.translateX && (i = a.x - a.translateX), { x: s.x + (t.translateX || 0) + p - (i || 0), y: s.y + (t.translateY || 0) + p - c, width: a.width - 2 * p, height: a.height - 2 * p };
  13648. }
  13649. };
  13650. for (O = 0; O < u; O++)
  13651. (E = b[O]) && (E.oldOpacity = E.opacity, E.newOpacity = 1, E.absoluteBox = S(E));
  13652. for (b.sort(function(a, c) {
  13653. return (c.labelrank || 0) - (a.labelrank || 0);
  13654. }), O = 0; O < u; O++) {
  13655. var w = (S = b[O]) && S.absoluteBox;
  13656. for (E = O + 1; E < u; ++E) {
  13657. var v = (B = b[E]) && B.absoluteBox;
  13658. !w || !v || S === B || S.newOpacity === 0 || B.newOpacity === 0 || v.x >= w.x + w.width || v.x + v.width <= w.x || v.y >= w.y + w.height || v.y + v.height <= w.y || ((S.labelrank < B.labelrank ? S : B).newOpacity = 0);
  13659. }
  13660. }
  13661. b.forEach(function(a) {
  13662. I(a, x) && (M = !0);
  13663. }), M && H(x, "afterHideAllOverlappingLabels");
  13664. };
  13665. }), T(
  13666. l,
  13667. "Core/Responsive.js",
  13668. [l["Core/Utilities.js"]],
  13669. function(y) {
  13670. var j = y.extend, I = y.find, Z = y.isArray, H = y.isObject, U = y.merge, F = y.objectEach, R = y.pick, N = y.splat, b = y.uniqueKey, x;
  13671. return function(u) {
  13672. var f = [];
  13673. u.compose = function(O) {
  13674. return f.indexOf(O) === -1 && (f.push(O), j(O.prototype, E.prototype)), O;
  13675. };
  13676. var E = function() {
  13677. function O() {
  13678. }
  13679. return O.prototype.currentOptions = function(B) {
  13680. function M(v, a, c, p) {
  13681. var i;
  13682. F(v, function(h, s) {
  13683. if (!p && -1 < S.collectionsWithUpdate.indexOf(s) && a[s])
  13684. for (h = N(h), c[s] = [], i = 0; i < Math.max(h.length, a[s].length); i++)
  13685. a[s][i] && (h[i] === void 0 ? c[s][i] = a[s][i] : (c[s][i] = {}, M(h[i], a[s][i], c[s][i], p + 1)));
  13686. else
  13687. H(h) ? (c[s] = Z(h) ? [] : {}, M(h, a[s] || {}, c[s], p + 1)) : c[s] = typeof a[s] > "u" ? null : a[s];
  13688. });
  13689. }
  13690. var S = this, w = {};
  13691. return M(B, this.options, w, 0), w;
  13692. }, O.prototype.matchResponsiveRule = function(B, M) {
  13693. var S = B.condition;
  13694. (S.callback || function() {
  13695. return this.chartWidth <= R(S.maxWidth, Number.MAX_VALUE) && this.chartHeight <= R(S.maxHeight, Number.MAX_VALUE) && this.chartWidth >= R(S.minWidth, 0) && this.chartHeight >= R(S.minHeight, 0);
  13696. }).call(this) && M.push(B._id);
  13697. }, O.prototype.setResponsive = function(B, M) {
  13698. var S = this, w = this.options.responsive, v = this.currentResponsive, a = [];
  13699. !M && w && w.rules && w.rules.forEach(function(c) {
  13700. typeof c._id > "u" && (c._id = b()), S.matchResponsiveRule(c, a);
  13701. }, this), M = U.apply(void 0, a.map(function(c) {
  13702. return I((w || {}).rules || [], function(p) {
  13703. return p._id === c;
  13704. });
  13705. }).map(function(c) {
  13706. return c && c.chartOptions;
  13707. })), M.isResponsiveOptions = !0, a = a.toString() || void 0, a !== (v && v.ruleIds) && (v && this.update(v.undoOptions, B, !0), a ? (v = this.currentOptions(M), v.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: a, mergedOptions: M, undoOptions: v }, this.update(M, B, !0)) : this.currentResponsive = void 0);
  13708. }, O;
  13709. }();
  13710. }(x || (x = {})), x;
  13711. }
  13712. ), T(l, "masters/highcharts.src.js", [
  13713. l["Core/Globals.js"],
  13714. l["Core/Utilities.js"],
  13715. l["Core/DefaultOptions.js"],
  13716. l["Core/Animation/Fx.js"],
  13717. l["Core/Animation/AnimationUtilities.js"],
  13718. l["Core/Renderer/HTML/AST.js"],
  13719. l["Core/FormatUtilities.js"],
  13720. l["Core/Renderer/RendererUtilities.js"],
  13721. l["Core/Renderer/SVG/SVGElement.js"],
  13722. l["Core/Renderer/SVG/SVGRenderer.js"],
  13723. l["Core/Renderer/HTML/HTMLElement.js"],
  13724. l["Core/Renderer/HTML/HTMLRenderer.js"],
  13725. l["Core/Axis/Axis.js"],
  13726. l["Core/Axis/DateTimeAxis.js"],
  13727. l["Core/Axis/LogarithmicAxis.js"],
  13728. l["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  13729. l["Core/Axis/Tick.js"],
  13730. l["Core/Tooltip.js"],
  13731. l["Core/Series/Point.js"],
  13732. l["Core/Pointer.js"],
  13733. l["Core/MSPointer.js"],
  13734. l["Core/Legend/Legend.js"],
  13735. l["Core/Chart/Chart.js"],
  13736. l["Core/Series/Series.js"],
  13737. l["Core/Series/SeriesRegistry.js"],
  13738. l["Series/Column/ColumnSeries.js"],
  13739. l["Series/Column/ColumnDataLabel.js"],
  13740. l["Series/Pie/PieSeries.js"],
  13741. l["Series/Pie/PieDataLabel.js"],
  13742. l["Core/Series/DataLabel.js"],
  13743. l["Core/Responsive.js"],
  13744. l["Core/Color/Color.js"],
  13745. l["Core/Time.js"]
  13746. ], function(y, j, I, Z, H, U, F, R, N, b, x, u, f, E, O, B, M, S, w, v, a, c, p, i, h, s, t, o, n, A, _, D, W) {
  13747. return y.animate = H.animate, y.animObject = H.animObject, y.getDeferredAnimation = H.getDeferredAnimation, y.setAnimation = H.setAnimation, y.stop = H.stop, y.timers = Z.timers, y.AST = U, y.Axis = f, y.Chart = p, y.chart = p.chart, y.Fx = Z, y.Legend = c, y.PlotLineOrBand = B, y.Point = w, y.Pointer = a.isRequired() ? a : v, y.Series = i, y.SVGElement = N, y.SVGRenderer = b, y.Tick = M, y.Time = W, y.Tooltip = S, y.Color = D, y.color = D.parse, u.compose(b), x.compose(N), y.defaultOptions = I.defaultOptions, y.getOptions = I.getOptions, y.time = I.defaultTime, y.setOptions = I.setOptions, y.dateFormat = F.dateFormat, y.format = F.format, y.numberFormat = F.numberFormat, y.addEvent = j.addEvent, y.arrayMax = j.arrayMax, y.arrayMin = j.arrayMin, y.attr = j.attr, y.clearTimeout = j.clearTimeout, y.correctFloat = j.correctFloat, y.createElement = j.createElement, y.css = j.css, y.defined = j.defined, y.destroyObjectProperties = j.destroyObjectProperties, y.discardElement = j.discardElement, y.distribute = R.distribute, y.erase = j.erase, y.error = j.error, y.extend = j.extend, y.extendClass = j.extendClass, y.find = j.find, y.fireEvent = j.fireEvent, y.getMagnitude = j.getMagnitude, y.getStyle = j.getStyle, y.inArray = j.inArray, y.isArray = j.isArray, y.isClass = j.isClass, y.isDOMElement = j.isDOMElement, y.isFunction = j.isFunction, y.isNumber = j.isNumber, y.isObject = j.isObject, y.isString = j.isString, y.keys = j.keys, y.merge = j.merge, y.normalizeTickInterval = j.normalizeTickInterval, y.objectEach = j.objectEach, y.offset = j.offset, y.pad = j.pad, y.pick = j.pick, y.pInt = j.pInt, y.relativeLength = j.relativeLength, y.removeEvent = j.removeEvent, y.seriesType = h.seriesType, y.splat = j.splat, y.stableSort = j.stableSort, y.syncTimeout = j.syncTimeout, y.timeUnits = j.timeUnits, y.uniqueKey = j.uniqueKey, y.useSerialIds = j.useSerialIds, y.wrap = j.wrap, t.compose(s), A.compose(i), E.compose(f), O.compose(f), n.compose(o), B.compose(f), _.compose(p), y;
  13748. }), l["masters/highcharts.src.js"]._modules = l, l["masters/highcharts.src.js"];
  13749. });
  13750. })(Up);
  13751. var L0 = Up.exports;
  13752. const to = /* @__PURE__ */ Mn(L0);
  13753. var Vp = { exports: {} };
  13754. (function(r) {
  13755. (function(d) {
  13756. r.exports ? (d.default = d, r.exports = d) : d(typeof Highcharts < "u" ? Highcharts : void 0);
  13757. })(function(d) {
  13758. function T(l, y, j, I) {
  13759. l.hasOwnProperty(y) || (l[y] = I.apply(null, j));
  13760. }
  13761. d = d ? d._modules : {}, T(d, "Extensions/Pane.js", [
  13762. d["Core/Chart/Chart.js"],
  13763. d["Series/CenteredUtilities.js"],
  13764. d["Core/Globals.js"],
  13765. d["Core/Pointer.js"],
  13766. d["Core/Utilities.js"]
  13767. ], function(l, y, j, I, Z) {
  13768. function H(x, u, f) {
  13769. return Math.sqrt(Math.pow(x - f[0], 2) + Math.pow(u - f[1], 2)) <= f[2] / 2;
  13770. }
  13771. var U = Z.addEvent, F = Z.extend, R = Z.merge, N = Z.pick, b = Z.splat;
  13772. return l.prototype.collectionsWithUpdate.push("pane"), Z = function() {
  13773. function x(u, f) {
  13774. this.options = this.chart = this.center = this.background = void 0, this.coll = "pane", this.defaultOptions = { center: ["50%", "50%"], size: "85%", innerSize: "0%", startAngle: 0 }, this.defaultBackgroundOptions = { shape: "circle", borderWidth: 1, borderColor: "#cccccc", backgroundColor: { linearGradient: {
  13775. x1: 0,
  13776. y1: 0,
  13777. x2: 0,
  13778. y2: 1
  13779. }, stops: [[0, "#ffffff"], [1, "#e6e6e6"]] }, from: -Number.MAX_VALUE, innerRadius: 0, to: Number.MAX_VALUE, outerRadius: "105%" }, this.init(u, f);
  13780. }
  13781. return x.prototype.init = function(u, f) {
  13782. this.chart = f, this.background = [], f.pane.push(this), this.setOptions(u);
  13783. }, x.prototype.setOptions = function(u) {
  13784. this.options = R(this.defaultOptions, this.chart.angular ? { background: {} } : void 0, u);
  13785. }, x.prototype.render = function() {
  13786. var u = this.options, f = this.options.background, E = this.chart.renderer;
  13787. if (this.group || (this.group = E.g("pane-group").attr({ zIndex: u.zIndex || 0 }).add()), this.updateCenter(), f)
  13788. for (f = b(f), u = Math.max(f.length, this.background.length || 0), E = 0; E < u; E++)
  13789. f[E] && this.axis ? this.renderBackground(R(this.defaultBackgroundOptions, f[E]), E) : this.background[E] && (this.background[E] = this.background[E].destroy(), this.background.splice(E, 1));
  13790. }, x.prototype.renderBackground = function(u, f) {
  13791. var E = "animate", O = { class: "highcharts-pane " + (u.className || "") };
  13792. this.chart.styledMode || F(O, { fill: u.backgroundColor, stroke: u.borderColor, "stroke-width": u.borderWidth }), this.background[f] || (this.background[f] = this.chart.renderer.path().add(this.group), E = "attr"), this.background[f][E]({ d: this.axis.getPlotBandPath(u.from, u.to, u) }).attr(O);
  13793. }, x.prototype.updateCenter = function(u) {
  13794. this.center = (u || this.axis || {}).center = y.getCenter.call(this);
  13795. }, x.prototype.update = function(u, f) {
  13796. R(!0, this.options, u), this.setOptions(this.options), this.render(), this.chart.axes.forEach(function(E) {
  13797. E.pane === this && (E.pane = null, E.update({}, f));
  13798. }, this);
  13799. }, x;
  13800. }(), l.prototype.getHoverPane = function(x) {
  13801. var u = this, f;
  13802. return x && u.pane.forEach(function(E) {
  13803. var O = x.chartX - u.plotLeft, B = x.chartY - u.plotTop;
  13804. H(u.inverted ? B : O, u.inverted ? O : B, E.center) && (f = E);
  13805. }), f;
  13806. }, U(l, "afterIsInsidePlot", function(x) {
  13807. this.polar && (x.isInsidePlot = this.pane.some(function(u) {
  13808. return H(x.x, x.y, u.center);
  13809. }));
  13810. }), U(I, "beforeGetHoverData", function(x) {
  13811. var u = this.chart;
  13812. u.polar ? (u.hoverPane = u.getHoverPane(x), x.filter = function(f) {
  13813. return f.visible && !(!x.shared && f.directTouch) && N(f.options.enableMouseTracking, !0) && (!u.hoverPane || f.xAxis.pane === u.hoverPane);
  13814. }) : u.hoverPane = void 0;
  13815. }), U(
  13816. I,
  13817. "afterGetHoverData",
  13818. function(x) {
  13819. var u = this.chart;
  13820. x.hoverPoint && x.hoverPoint.plotX && x.hoverPoint.plotY && u.hoverPane && !H(x.hoverPoint.plotX, x.hoverPoint.plotY, u.hoverPane.center) && (x.hoverPoint = void 0);
  13821. }
  13822. ), j.Pane = Z, j.Pane;
  13823. }), T(d, "Core/Axis/RadialAxis.js", [d["Core/Axis/AxisDefaults.js"], d["Core/DefaultOptions.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  13824. var Z = y.defaultOptions, H = j.noop, U = I.addEvent, F = I.correctFloat, R = I.defined, N = I.extend, b = I.fireEvent, x = I.merge, u = I.pick, f = I.relativeLength, E = I.wrap, O;
  13825. return function(B) {
  13826. function M() {
  13827. this.autoConnect = this.isCircular && typeof u(this.userMax, this.options.max) > "u" && F(this.endAngleRad - this.startAngleRad) === F(2 * Math.PI), !this.isCircular && this.chart.inverted && this.max++, this.autoConnect && (this.max += this.categories && 1 || this.pointRange || this.closestPointRange || 0);
  13828. }
  13829. function S() {
  13830. var $ = this;
  13831. return function() {
  13832. if ($.isRadial && $.tickPositions && $.options.labels && $.options.labels.allowOverlap !== !0)
  13833. return $.tickPositions.map(function(q) {
  13834. return $.ticks[q] && $.ticks[q].label;
  13835. }).filter(function(q) {
  13836. return !!q;
  13837. });
  13838. };
  13839. }
  13840. function w() {
  13841. return H;
  13842. }
  13843. function v($, q, it) {
  13844. var et = this.pane.center, nt = $.value;
  13845. if (this.isCircular) {
  13846. if (R(nt))
  13847. $.point && (rt = $.point.shapeArgs || {}, rt.start && (nt = this.chart.inverted ? this.translate($.point.rectPlotY, !0) : $.point.x));
  13848. else {
  13849. var rt = $.chartX || 0, ct = $.chartY || 0;
  13850. nt = this.translate(Math.atan2(ct - it, rt - q) - this.startAngleRad, !0);
  13851. }
  13852. $ = this.getPosition(nt), rt = $.x, ct = $.y;
  13853. } else
  13854. R(nt) || (rt = $.chartX, ct = $.chartY), R(rt) && R(ct) && (it = et[1] + this.chart.plotTop, nt = this.translate(Math.min(Math.sqrt(Math.pow(rt - q, 2) + Math.pow(ct - it, 2)), et[2] / 2) - et[3] / 2, !0));
  13855. return [nt, rt || 0, ct || 0];
  13856. }
  13857. function a($, q, it) {
  13858. $ = this.pane.center;
  13859. var et = this.chart, nt = this.left || 0, rt = this.top || 0, ct = u(q, $[2] / 2 - this.offset);
  13860. return typeof it > "u" && (it = this.horiz ? 0 : this.center && -this.center[3] / 2), it && (ct += it), this.isCircular || typeof q < "u" ? (q = this.chart.renderer.symbols.arc(nt + $[0], rt + $[1], ct, ct, { start: this.startAngleRad, end: this.endAngleRad, open: !0, innerR: 0 }), q.xBounds = [nt + $[0]], q.yBounds = [rt + $[1] - ct]) : (q = this.postTranslate(this.angleRad, ct), q = [["M", this.center[0] + et.plotLeft, this.center[1] + et.plotTop], ["L", q.x, q.y]]), q;
  13861. }
  13862. function c() {
  13863. this.constructor.prototype.getOffset.call(this), this.chart.axisOffset[this.side] = 0;
  13864. }
  13865. function p($, q, it) {
  13866. var et = this.chart, nt = function(yt) {
  13867. if (typeof yt == "string") {
  13868. var vt = parseInt(yt, 10);
  13869. return J.test(yt) && (vt = vt * gt / 100), vt;
  13870. }
  13871. return yt;
  13872. }, rt = this.center, ct = this.startAngleRad, gt = rt[2] / 2, dt = Math.min(this.offset, 0), ht = this.left || 0, at = this.top || 0, J = /%$/, tt = this.isCircular, st = u(nt(it.outerRadius), gt), lt = nt(it.innerRadius);
  13873. if (nt = u(nt(it.thickness), 10), this.options.gridLineInterpolation === "polygon")
  13874. dt = this.getPlotLinePath({ value: $ }).concat(this.getPlotLinePath({ value: q, reverse: !0 }));
  13875. else {
  13876. if ($ = Math.max($, this.min), q = Math.min(q, this.max), $ = this.translate($), q = this.translate(q), tt || (st = $ || 0, lt = q || 0), it.shape !== "circle" && tt)
  13877. it = ct + ($ || 0), ct += q || 0;
  13878. else {
  13879. it = -Math.PI / 2, ct = 1.5 * Math.PI;
  13880. var pt = !0;
  13881. }
  13882. st -= dt, dt = et.renderer.symbols.arc(ht + rt[0], at + rt[1], st, st, { start: Math.min(it, ct), end: Math.max(it, ct), innerR: u(lt, st - (nt - dt)), open: pt }), tt && (tt = (ct + it) / 2, ht = ht + rt[0] + rt[2] / 2 * Math.cos(tt), dt.xBounds = tt > -Math.PI / 2 && tt < Math.PI / 2 ? [ht, et.plotWidth] : [0, ht], dt.yBounds = [at + rt[1] + rt[2] / 2 * Math.sin(tt)], dt.yBounds[0] += tt > -Math.PI && 0 > tt || tt > Math.PI ? -10 : 10);
  13883. }
  13884. return dt;
  13885. }
  13886. function i($) {
  13887. var q = this, it = this.pane.center, et = this.chart, nt = et.inverted, rt = $.reverse, ct = this.pane.options.background ? this.pane.options.background[0] || this.pane.options.background : {}, gt = ct.innerRadius || "0%", dt = ct.outerRadius || "100%", ht = it[0] + et.plotLeft, at = it[1] + et.plotTop, J = this.height, tt = $.isCrosshair;
  13888. ct = it[3] / 2;
  13889. var st = $.value, lt, pt = this.getPosition(st), yt = pt.x;
  13890. if (pt = pt.y, tt && (pt = this.getCrosshairPosition($, ht, at), st = pt[0], yt = pt[1], pt = pt[2]), this.isCircular)
  13891. st = Math.sqrt(Math.pow(yt - ht, 2) + Math.pow(pt - at, 2)), rt = typeof gt == "string" ? f(gt, 1) : gt / st, et = typeof dt == "string" ? f(dt, 1) : dt / st, it && ct && (ct /= st, rt < ct && (rt = ct), et < ct && (et = ct)), it = [["M", ht + rt * (yt - ht), at - rt * (at - pt)], ["L", yt - (1 - et) * (yt - ht), pt + (1 - et) * (at - pt)]];
  13892. else if ((st = this.translate(st)) && (0 > st || st > J) && (st = 0), this.options.gridLineInterpolation === "circle")
  13893. it = this.getLinePath(0, st, ct);
  13894. else if (it = [], et[nt ? "yAxis" : "xAxis"].forEach(function(vt) {
  13895. vt.pane === q.pane && (lt = vt);
  13896. }), lt)
  13897. for (ht = lt.tickPositions, lt.autoConnect && (ht = ht.concat([ht[0]])), rt && (ht = ht.slice().reverse()), st && (st += ct), at = 0; at < ht.length; at++)
  13898. ct = lt.getPosition(ht[at], st), it.push(at ? ["L", ct.x, ct.y] : ["M", ct.x, ct.y]);
  13899. return it;
  13900. }
  13901. function h($, q) {
  13902. return $ = this.translate($), this.postTranslate(this.isCircular ? $ : this.angleRad, u(this.isCircular ? q : 0 > $ ? 0 : $, this.center[2] / 2) - this.offset);
  13903. }
  13904. function s() {
  13905. var $ = this.center, q = this.chart, it = this.options.title;
  13906. return { x: q.plotLeft + $[0] + (it.x || 0), y: q.plotTop + $[1] - { high: 0.5, middle: 0.25, low: 0 }[it.align] * $[2] + (it.y || 0) };
  13907. }
  13908. function t($) {
  13909. $.beforeSetTickPositions = M, $.createLabelCollector = S, $.getCrosshairPosition = v, $.getLinePath = a, $.getOffset = c, $.getPlotBandPath = p, $.getPlotLinePath = i, $.getPosition = h, $.getTitlePosition = s, $.postTranslate = X, $.setAxisSize = m, $.setAxisTranslation = L, $.setOptions = Y;
  13910. }
  13911. function o() {
  13912. var $ = this.chart, q = this.options, it = this.pane, et = it && it.options;
  13913. $.angular && this.isXAxis || !it || !$.angular && !$.polar || (this.angleRad = (q.angle || 0) * Math.PI / 180, this.startAngleRad = (et.startAngle - 90) * Math.PI / 180, this.endAngleRad = (u(et.endAngle, et.startAngle + 360) - 90) * Math.PI / 180, this.offset = q.offset || 0);
  13914. }
  13915. function n($) {
  13916. this.isRadial && ($.align = void 0, $.preventDefault());
  13917. }
  13918. function A() {
  13919. if (this.chart && this.chart.labelCollectors) {
  13920. var $ = this.labelCollector ? this.chart.labelCollectors.indexOf(this.labelCollector) : -1;
  13921. 0 <= $ && this.chart.labelCollectors.splice($, 1);
  13922. }
  13923. }
  13924. function _($) {
  13925. var q = this.chart, it = q.inverted, et = q.angular, nt = q.polar, rt = this.isXAxis, ct = this.coll, gt = et && rt, dt = q.options;
  13926. $ = $.userOptions.pane || 0, $ = this.pane = q.pane && q.pane[$];
  13927. var ht;
  13928. ct === "colorAxis" ? this.isRadial = !1 : (et ? (gt ? (this.isHidden = !0, this.createLabelCollector = w, this.getOffset = H, this.render = this.redraw = g, this.setTitle = this.setCategories = this.setScale = H) : t(this), (ht = !rt) && (this.defaultPolarOptions = G)) : nt && (t(this), this.defaultPolarOptions = (ht = this.horiz) ? k : x(ct === "xAxis" ? l.defaultXAxisOptions : l.defaultYAxisOptions, z), it && ct === "yAxis" && (this.defaultPolarOptions.stackLabels = l.defaultYAxisOptions.stackLabels, this.defaultPolarOptions.reversedStacks = !0)), et || nt ? (this.isRadial = !0, dt.chart.zoomType = null, this.labelCollector || (this.labelCollector = this.createLabelCollector()), this.labelCollector && q.labelCollectors.push(this.labelCollector)) : this.isRadial = !1, $ && ht && ($.axis = this), this.isCircular = ht);
  13929. }
  13930. function D() {
  13931. this.isRadial && this.beforeSetTickPositions();
  13932. }
  13933. function W($) {
  13934. var q = this.label;
  13935. if (q) {
  13936. var it = this.axis, et = q.getBBox(), nt = it.options.labels, rt = (it.translate(this.pos) + it.startAngleRad + Math.PI / 2) / Math.PI * 180 % 360, ct = Math.round(rt), gt = R(nt.y) ? 0 : 0.3 * -et.height, dt = nt.y, ht = 20, at = nt.align, J = "end", tt = 0 > ct ? ct + 360 : ct, st = tt, lt = 0, pt = 0;
  13937. if (it.isRadial) {
  13938. var yt = it.getPosition(this.pos, it.center[2] / 2 + f(u(nt.distance, -25), it.center[2] / 2, -it.center[2] / 2));
  13939. nt.rotation === "auto" ? q.attr({ rotation: rt }) : R(dt) || (dt = it.chart.renderer.fontMetrics(q.styles && q.styles.fontSize).b - et.height / 2), R(at) || (it.isCircular ? (et.width > it.len * it.tickInterval / (it.max - it.min) && (ht = 0), at = rt > ht && rt < 180 - ht ? "left" : rt > 180 + ht && rt < 360 - ht ? "right" : "center") : at = "center", q.attr({ align: at })), at === "auto" && it.tickPositions.length === 2 && it.isCircular && (90 < tt && 180 > tt ? tt = 180 - tt : 270 < tt && 360 >= tt && (tt = 540 - tt), 180 < st && 360 >= st && (st = 360 - st), (it.pane.options.startAngle === ct || it.pane.options.startAngle === ct + 360 || it.pane.options.startAngle === ct - 360) && (J = "start"), at = -90 <= ct && 90 >= ct || -360 <= ct && -270 >= ct || 270 <= ct && 360 >= ct ? J === "start" ? "right" : "left" : J === "start" ? "left" : "right", 70 < st && 110 > st && (at = "center"), 15 > tt || 180 <= tt && 195 > tt ? lt = 0.3 * et.height : 15 <= tt && 35 >= tt ? lt = J === "start" ? 0 : 0.75 * et.height : 195 <= tt && 215 >= tt ? lt = J === "start" ? 0.75 * et.height : 0 : 35 < tt && 90 >= tt ? lt = J === "start" ? 0.25 * -et.height : et.height : 215 < tt && 270 >= tt && (lt = J === "start" ? et.height : 0.25 * -et.height), 15 > st ? pt = J === "start" ? 0.15 * -et.height : 0.15 * et.height : 165 < st && 180 >= st && (pt = J === "start" ? 0.15 * et.height : 0.15 * -et.height), q.attr({ align: at }), q.translate(
  13940. pt,
  13941. lt + gt
  13942. )), $.pos.x = yt.x + (nt.x || 0), $.pos.y = yt.y + (dt || 0);
  13943. }
  13944. }
  13945. }
  13946. function P($) {
  13947. this.axis.getPosition && N($.pos, this.axis.getPosition(this.pos));
  13948. }
  13949. function X($, q) {
  13950. var it = this.chart, et = this.center;
  13951. return $ = this.startAngleRad + $, { x: it.plotLeft + et[0] + Math.cos($) * q, y: it.plotTop + et[1] + Math.sin($) * q };
  13952. }
  13953. function g() {
  13954. this.isDirty = !1;
  13955. }
  13956. function m() {
  13957. if (this.constructor.prototype.setAxisSize.call(this), this.isRadial) {
  13958. this.pane.updateCenter(this);
  13959. var $ = this.center = this.pane.center.slice();
  13960. if (this.isCircular)
  13961. this.sector = this.endAngleRad - this.startAngleRad;
  13962. else {
  13963. var q = this.postTranslate(this.angleRad, $[3] / 2);
  13964. $[0] = q.x - this.chart.plotLeft, $[1] = q.y - this.chart.plotTop;
  13965. }
  13966. this.len = this.width = this.height = ($[2] - $[3]) * u(this.sector, 1) / 2;
  13967. }
  13968. }
  13969. function L() {
  13970. this.constructor.prototype.setAxisTranslation.call(this), this.center && (this.transA = this.isCircular ? (this.endAngleRad - this.startAngleRad) / (this.max - this.min || 1) : (this.center[2] - this.center[3]) / 2 / (this.max - this.min || 1), this.minPixelPadding = this.isXAxis ? this.transA * this.minPointOffset : 0);
  13971. }
  13972. function Y($) {
  13973. $ = this.options = x(this.constructor.defaultOptions, this.defaultPolarOptions, Z[this.coll], $), $.plotBands || ($.plotBands = []), b(this, "afterSetOptions");
  13974. }
  13975. function V($, q, it, et, nt, rt, ct) {
  13976. var gt = this.axis;
  13977. return gt.isRadial ? ($ = gt.getPosition(this.pos, gt.center[2] / 2 + et), q = ["M", q, it, "L", $.x, $.y]) : q = $.call(this, q, it, et, nt, rt, ct), q;
  13978. }
  13979. var Q = [], k = { gridLineWidth: 1, labels: { align: void 0, distance: 15, x: 0, y: void 0, style: { textOverflow: "none" } }, maxPadding: 0, minPadding: 0, showLastLabel: !1, tickLength: 0 }, G = {
  13980. labels: { align: "center", x: 0, y: void 0 },
  13981. minorGridLineWidth: 0,
  13982. minorTickInterval: "auto",
  13983. minorTickLength: 10,
  13984. minorTickPosition: "inside",
  13985. minorTickWidth: 1,
  13986. tickLength: 10,
  13987. tickPosition: "inside",
  13988. tickWidth: 2,
  13989. title: { rotation: 0 },
  13990. zIndex: 2
  13991. }, z = { gridLineInterpolation: "circle", gridLineWidth: 1, labels: { align: "right", x: -3, y: -2 }, showLastLabel: !1, title: { x: 4, text: null, rotation: 90 } };
  13992. B.compose = function($, q) {
  13993. return Q.indexOf($) === -1 && (Q.push($), U($, "afterInit", o), U($, "autoLabelAlign", n), U($, "destroy", A), U($, "init", _), U($, "initialAxisTranslation", D)), Q.indexOf(q) === -1 && (Q.push(q), U(
  13994. q,
  13995. "afterGetLabelPosition",
  13996. W
  13997. ), U(q, "afterGetPosition", P), E(q.prototype, "getMarkPath", V)), $;
  13998. };
  13999. }(O || (O = {})), O;
  14000. }), T(d, "Series/AreaRange/AreaRangePoint.js", [d["Series/Area/AreaSeries.js"], d["Core/Series/Point.js"], d["Core/Utilities.js"]], function(l, y, j) {
  14001. var I = this && this.__extends || function() {
  14002. var F = function(R, N) {
  14003. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, x) {
  14004. b.__proto__ = x;
  14005. } || function(b, x) {
  14006. for (var u in x)
  14007. x.hasOwnProperty(u) && (b[u] = x[u]);
  14008. }, F(R, N);
  14009. };
  14010. return function(R, N) {
  14011. function b() {
  14012. this.constructor = R;
  14013. }
  14014. F(R, N), R.prototype = N === null ? Object.create(N) : (b.prototype = N.prototype, new b());
  14015. };
  14016. }(), Z = y.prototype, H = j.defined, U = j.isNumber;
  14017. return function(F) {
  14018. function R() {
  14019. var N = F !== null && F.apply(this, arguments) || this;
  14020. return N.high = void 0, N.low = void 0, N.options = void 0, N.plotHigh = void 0, N.plotLow = void 0, N.plotHighX = void 0, N.plotLowX = void 0, N.plotX = void 0, N.series = void 0, N;
  14021. }
  14022. return I(R, F), R.prototype.setState = function() {
  14023. var N = this.state, b = this.series, x = b.chart.polar;
  14024. H(this.plotHigh) || (this.plotHigh = b.yAxis.toPixels(
  14025. this.high,
  14026. !0
  14027. )), H(this.plotLow) || (this.plotLow = this.plotY = b.yAxis.toPixels(this.low, !0)), b.stateMarkerGraphic && (b.lowerStateMarkerGraphic = b.stateMarkerGraphic, b.stateMarkerGraphic = b.upperStateMarkerGraphic), this.graphic = this.upperGraphic, this.plotY = this.plotHigh, x && (this.plotX = this.plotHighX), Z.setState.apply(this, arguments), this.state = N, this.plotY = this.plotLow, this.graphic = this.lowerGraphic, x && (this.plotX = this.plotLowX), b.stateMarkerGraphic && (b.upperStateMarkerGraphic = b.stateMarkerGraphic, b.stateMarkerGraphic = b.lowerStateMarkerGraphic, b.lowerStateMarkerGraphic = void 0), Z.setState.apply(this, arguments);
  14028. }, R.prototype.haloPath = function() {
  14029. var N = this.series.chart.polar, b = [];
  14030. return this.plotY = this.plotLow, N && (this.plotX = this.plotLowX), this.isInside && (b = Z.haloPath.apply(this, arguments)), this.plotY = this.plotHigh, N && (this.plotX = this.plotHighX), this.isTopInside && (b = b.concat(Z.haloPath.apply(this, arguments))), b;
  14031. }, R.prototype.isValid = function() {
  14032. return U(this.low) && U(this.high);
  14033. }, R;
  14034. }(l.prototype.pointClass);
  14035. }), T(
  14036. d,
  14037. "Series/AreaRange/AreaRangeSeries.js",
  14038. [d["Series/AreaRange/AreaRangePoint.js"], d["Series/Area/AreaSeries.js"], d["Series/Column/ColumnSeries.js"], d["Core/Globals.js"], d["Core/Series/Series.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]],
  14039. function(l, y, j, I, Z, H, U) {
  14040. var F = this && this.__extends || function() {
  14041. var B = function(M, S) {
  14042. return B = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, v) {
  14043. w.__proto__ = v;
  14044. } || function(w, v) {
  14045. for (var a in v)
  14046. v.hasOwnProperty(a) && (w[a] = v[a]);
  14047. }, B(M, S);
  14048. };
  14049. return function(M, S) {
  14050. function w() {
  14051. this.constructor = M;
  14052. }
  14053. B(M, S), M.prototype = S === null ? Object.create(S) : (w.prototype = S.prototype, new w());
  14054. };
  14055. }(), R = y.prototype, N = j.prototype;
  14056. j = I.noop;
  14057. var b = Z.prototype, x = U.defined, u = U.extend, f = U.isArray, E = U.pick, O = U.merge;
  14058. return Z = function(B) {
  14059. function M() {
  14060. var S = B !== null && B.apply(this, arguments) || this;
  14061. return S.data = void 0, S.options = void 0, S.points = void 0, S.lowerStateMarkerGraphic = void 0, S.xAxis = void 0, S;
  14062. }
  14063. return F(M, B), M.prototype.toYData = function(S) {
  14064. return [S.low, S.high];
  14065. }, M.prototype.highToXY = function(S) {
  14066. var w = this.chart, v = this.xAxis.postTranslate(S.rectPlotX || 0, this.yAxis.len - S.plotHigh);
  14067. S.plotHighX = v.x - w.plotLeft, S.plotHigh = v.y - w.plotTop, S.plotLowX = S.plotX;
  14068. }, M.prototype.translate = function() {
  14069. var S = this, w = S.yAxis;
  14070. R.translate.apply(S), S.points.forEach(function(v) {
  14071. var a = v.high, c = v.plotY;
  14072. v.isNull ? v.plotY = null : (v.plotLow = c, v.plotHigh = w.translate(S.dataModify ? S.dataModify.modifyValue(a) : a, 0, 1, 0, 1), S.dataModify && (v.yBottom = v.plotHigh));
  14073. }), this.chart.polar && this.points.forEach(function(v) {
  14074. S.highToXY(v), v.tooltipPos = [(v.plotHighX + v.plotLowX) / 2, (v.plotHigh + v.plotLow) / 2];
  14075. });
  14076. }, M.prototype.getGraphPath = function(S) {
  14077. var w = [], v = [], a, c = R.getGraphPath, p = this.options, i = this.chart.polar, h = i && p.connectEnds !== !1, s = p.connectNulls, t = p.step;
  14078. for (S = S || this.points, a = S.length; a--; ) {
  14079. var o = S[a], n = i ? { plotX: o.rectPlotX, plotY: o.yBottom, doCurve: !1 } : { plotX: o.plotX, plotY: o.plotY, doCurve: !1 };
  14080. o.isNull || h || s || S[a + 1] && !S[a + 1].isNull || v.push(n);
  14081. var A = { polarPlotY: o.polarPlotY, rectPlotX: o.rectPlotX, yBottom: o.yBottom, plotX: E(
  14082. o.plotHighX,
  14083. o.plotX
  14084. ), plotY: o.plotHigh, isNull: o.isNull };
  14085. v.push(A), w.push(A), o.isNull || h || s || S[a - 1] && !S[a - 1].isNull || v.push(n);
  14086. }
  14087. return S = c.call(this, S), t && (t === !0 && (t = "left"), p.step = { left: "right", center: "center", right: "left" }[t]), w = c.call(this, w), v = c.call(this, v), p.step = t, p = [].concat(S, w), !this.chart.polar && v[0] && v[0][0] === "M" && (v[0] = ["L", v[0][1], v[0][2]]), this.graphPath = p, this.areaPath = S.concat(v), p.isArea = !0, p.xMap = S.xMap, this.areaPath.xMap = S.xMap, p;
  14088. }, M.prototype.drawDataLabels = function() {
  14089. var S = this.points, w = S.length, v, a = [], c = this.options.dataLabels, p, i = this.chart.inverted;
  14090. if (c) {
  14091. if (f(c))
  14092. var h = c[0] || { enabled: !1 }, s = c[1] || { enabled: !1 };
  14093. else
  14094. h = u({}, c), h.x = c.xHigh, h.y = c.yHigh, s = u({}, c), s.x = c.xLow, s.y = c.yLow;
  14095. if (h.enabled || this._hasPointLabels) {
  14096. for (v = w; v--; )
  14097. if (p = S[v]) {
  14098. var t = h.inside ? p.plotHigh < p.plotLow : p.plotHigh > p.plotLow;
  14099. p.y = p.high, p._plotY = p.plotY, p.plotY = p.plotHigh, a[v] = p.dataLabel, p.dataLabel = p.dataLabelUpper, p.below = t, i ? h.align || (h.align = t ? "right" : "left") : h.verticalAlign || (h.verticalAlign = t ? "top" : "bottom");
  14100. }
  14101. for (this.options.dataLabels = h, b.drawDataLabels && b.drawDataLabels.apply(this, arguments), v = w; v--; )
  14102. (p = S[v]) && (p.dataLabelUpper = p.dataLabel, p.dataLabel = a[v], delete p.dataLabels, p.y = p.low, p.plotY = p._plotY);
  14103. }
  14104. if (s.enabled || this._hasPointLabels) {
  14105. for (v = w; v--; )
  14106. (p = S[v]) && (t = s.inside ? p.plotHigh < p.plotLow : p.plotHigh > p.plotLow, p.below = !t, i ? s.align || (s.align = t ? "left" : "right") : s.verticalAlign || (s.verticalAlign = t ? "bottom" : "top"));
  14107. this.options.dataLabels = s, b.drawDataLabels && b.drawDataLabels.apply(this, arguments);
  14108. }
  14109. if (h.enabled)
  14110. for (v = w; v--; )
  14111. (p = S[v]) && (p.dataLabels = [p.dataLabelUpper, p.dataLabel].filter(function(o) {
  14112. return !!o;
  14113. }));
  14114. this.options.dataLabels = c;
  14115. }
  14116. }, M.prototype.alignDataLabel = function() {
  14117. N.alignDataLabel.apply(this, arguments);
  14118. }, M.prototype.drawPoints = function() {
  14119. var S = this.points.length, w;
  14120. for (b.drawPoints.apply(this, arguments), w = 0; w < S; ) {
  14121. var v = this.points[w];
  14122. v.origProps = { plotY: v.plotY, plotX: v.plotX, isInside: v.isInside, negative: v.negative, zone: v.zone, y: v.y }, v.lowerGraphic = v.graphic, v.graphic = v.upperGraphic, v.plotY = v.plotHigh, x(v.plotHighX) && (v.plotX = v.plotHighX), v.y = E(v.high, v.origProps.y), v.negative = v.y < (this.options.threshold || 0), this.zones.length && (v.zone = v.getZone()), this.chart.polar || (v.isInside = v.isTopInside = typeof v.plotY < "u" && 0 <= v.plotY && v.plotY <= this.yAxis.len && 0 <= v.plotX && v.plotX <= this.xAxis.len), w++;
  14123. }
  14124. for (b.drawPoints.apply(this, arguments), w = 0; w < S; )
  14125. v = this.points[w], v.upperGraphic = v.graphic, v.graphic = v.lowerGraphic, v.origProps && (u(v, v.origProps), delete v.origProps), w++;
  14126. }, M.defaultOptions = O(y.defaultOptions, {
  14127. lineWidth: 1,
  14128. threshold: null,
  14129. tooltip: { pointFormat: '<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14130. trackByArea: !0,
  14131. dataLabels: { align: void 0, verticalAlign: void 0, xLow: 0, xHigh: 0, yLow: 0, yHigh: 0 }
  14132. }), M;
  14133. }(y), u(Z.prototype, { pointArrayMap: ["low", "high"], pointValKey: "low", deferTranslatePolar: !0, pointClass: l, setStackedPoints: j }), H.registerSeriesType("arearange", Z), Z;
  14134. }
  14135. ), T(d, "Series/AreaSplineRange/AreaSplineRangeSeries.js", [
  14136. d["Series/AreaRange/AreaRangeSeries.js"],
  14137. d["Core/Series/SeriesRegistry.js"],
  14138. d["Core/Utilities.js"]
  14139. ], function(l, y, j) {
  14140. var I = this && this.__extends || function() {
  14141. var F = function(R, N) {
  14142. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, x) {
  14143. b.__proto__ = x;
  14144. } || function(b, x) {
  14145. for (var u in x)
  14146. x.hasOwnProperty(u) && (b[u] = x[u]);
  14147. }, F(R, N);
  14148. };
  14149. return function(R, N) {
  14150. function b() {
  14151. this.constructor = R;
  14152. }
  14153. F(R, N), R.prototype = N === null ? Object.create(N) : (b.prototype = N.prototype, new b());
  14154. };
  14155. }(), Z = y.seriesTypes.spline, H = j.merge;
  14156. j = j.extend;
  14157. var U = function(F) {
  14158. function R() {
  14159. var N = F !== null && F.apply(this, arguments) || this;
  14160. return N.options = void 0, N.data = void 0, N.points = void 0, N;
  14161. }
  14162. return I(R, F), R.defaultOptions = H(l.defaultOptions), R;
  14163. }(l);
  14164. return j(U.prototype, { getPointSpline: Z.prototype.getPointSpline }), y.registerSeriesType("areasplinerange", U), U;
  14165. }), T(d, "Series/BoxPlot/BoxPlotSeries.js", [d["Series/Column/ColumnSeries.js"], d["Core/Globals.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  14166. var Z = this && this.__extends || function() {
  14167. var R = function(N, b) {
  14168. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, u) {
  14169. x.__proto__ = u;
  14170. } || function(x, u) {
  14171. for (var f in u)
  14172. u.hasOwnProperty(f) && (x[f] = u[f]);
  14173. }, R(N, b);
  14174. };
  14175. return function(N, b) {
  14176. function x() {
  14177. this.constructor = N;
  14178. }
  14179. R(N, b), N.prototype = b === null ? Object.create(b) : (x.prototype = b.prototype, new x());
  14180. };
  14181. }();
  14182. y = y.noop;
  14183. var H = I.extend, U = I.merge, F = I.pick;
  14184. return I = function(R) {
  14185. function N() {
  14186. var b = R !== null && R.apply(this, arguments) || this;
  14187. return b.data = void 0, b.options = void 0, b.points = void 0, b;
  14188. }
  14189. return Z(N, R), N.prototype.pointAttribs = function() {
  14190. return {};
  14191. }, N.prototype.translate = function() {
  14192. var b = this.yAxis, x = this.pointArrayMap;
  14193. R.prototype.translate.apply(this), this.points.forEach(function(u) {
  14194. x.forEach(function(f) {
  14195. u[f] !== null && (u[f + "Plot"] = b.translate(u[f], 0, 1, 0, 1));
  14196. }), u.plotHigh = u.highPlot;
  14197. });
  14198. }, N.prototype.drawPoints = function() {
  14199. var b = this, x = b.options, u = b.chart, f = u.renderer, E, O, B, M, S, w, v = 0, a, c, p, i, h = b.doQuartiles !== !1, s, t = b.options.whiskerLength;
  14200. b.points.forEach(function(o) {
  14201. var n = o.graphic, A = n ? "animate" : "attr", _ = o.shapeArgs, D = {}, W = {}, P = {}, X = {}, g = o.color || b.color;
  14202. typeof o.plotY < "u" && (a = Math.round(_.width), c = Math.floor(_.x), p = c + a, i = Math.round(a / 2), E = Math.floor(h ? o.q1Plot : o.lowPlot), O = Math.floor(h ? o.q3Plot : o.lowPlot), B = Math.floor(o.highPlot), M = Math.floor(o.lowPlot), n || (o.graphic = n = f.g("point").add(b.group), o.stem = f.path().addClass("highcharts-boxplot-stem").add(n), t && (o.whiskers = f.path().addClass("highcharts-boxplot-whisker").add(n)), h && (o.box = f.path(void 0).addClass("highcharts-boxplot-box").add(n)), o.medianShape = f.path(void 0).addClass("highcharts-boxplot-median").add(n)), u.styledMode || (W.stroke = o.stemColor || x.stemColor || g, W["stroke-width"] = F(o.stemWidth, x.stemWidth, x.lineWidth), W.dashstyle = o.stemDashStyle || x.stemDashStyle || x.dashStyle, o.stem.attr(W), t && (P.stroke = o.whiskerColor || x.whiskerColor || g, P["stroke-width"] = F(o.whiskerWidth, x.whiskerWidth, x.lineWidth), P.dashstyle = o.whiskerDashStyle || x.whiskerDashStyle || x.dashStyle, o.whiskers.attr(P)), h && (D.fill = o.fillColor || x.fillColor || g, D.stroke = x.lineColor || g, D["stroke-width"] = x.lineWidth || 0, D.dashstyle = o.boxDashStyle || x.boxDashStyle || x.dashStyle, o.box.attr(D)), X.stroke = o.medianColor || x.medianColor || g, X["stroke-width"] = F(o.medianWidth, x.medianWidth, x.lineWidth), X.dashstyle = o.medianDashStyle || x.medianDashStyle || x.dashStyle, o.medianShape.attr(X)), w = o.stem.strokeWidth() % 2 / 2, v = c + i + w, n = [["M", v, O], ["L", v, B], ["M", v, E], ["L", v, M]], o.stem[A]({ d: n }), h && (w = o.box.strokeWidth() % 2 / 2, E = Math.floor(E) + w, O = Math.floor(O) + w, c += w, p += w, n = [["M", c, O], ["L", c, E], ["L", p, E], ["L", p, O], ["L", c, O], ["Z"]], o.box[A]({ d: n })), t && (w = o.whiskers.strokeWidth() % 2 / 2, B += w, M += w, s = /%$/.test(t) ? i * parseFloat(t) / 100 : t / 2, n = [["M", v - s, B], ["L", v + s, B], ["M", v - s, M], ["L", v + s, M]], o.whiskers[A]({ d: n })), S = Math.round(o.medianPlot), w = o.medianShape.strokeWidth() % 2 / 2, S += w, n = [["M", c, S], ["L", p, S]], o.medianShape[A]({ d: n }));
  14203. });
  14204. }, N.prototype.toYData = function(b) {
  14205. return [b.low, b.q1, b.median, b.q3, b.high];
  14206. }, N.defaultOptions = U(l.defaultOptions, {
  14207. threshold: null,
  14208. tooltip: { pointFormat: '<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>' },
  14209. whiskerLength: "50%",
  14210. fillColor: "#ffffff",
  14211. lineWidth: 1,
  14212. medianWidth: 2,
  14213. whiskerWidth: 2
  14214. }), N;
  14215. }(l), H(I.prototype, { pointArrayMap: ["low", "q1", "median", "q3", "high"], pointValKey: "high", drawDataLabels: y, setStackedPoints: y }), j.registerSeriesType("boxplot", I), I;
  14216. }), T(d, "Series/Bubble/BubbleLegendDefaults.js", [], function() {
  14217. return { borderColor: void 0, borderWidth: 2, className: void 0, color: void 0, connectorClassName: void 0, connectorColor: void 0, connectorDistance: 60, connectorWidth: 1, enabled: !1, labels: {
  14218. className: void 0,
  14219. allowOverlap: !1,
  14220. format: "",
  14221. formatter: void 0,
  14222. align: "right",
  14223. style: { fontSize: "10px", color: "#000000" },
  14224. x: 0,
  14225. y: 0
  14226. }, maxSize: 60, minSize: 10, legendIndex: 0, ranges: { value: void 0, borderColor: void 0, color: void 0, connectorColor: void 0 }, sizeBy: "area", sizeByAbsoluteValue: !1, zIndex: 1, zThreshold: 0 };
  14227. }), T(d, "Series/Bubble/BubbleLegendItem.js", [d["Core/Color/Color.js"], d["Core/FormatUtilities.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  14228. var Z = l.parse, H = j.noop, U = I.arrayMax, F = I.arrayMin, R = I.isNumber, N = I.merge, b = I.pick, x = I.stableSort;
  14229. return function() {
  14230. function u(f, E) {
  14231. this.options = this.symbols = this.visible = this.selected = this.ranges = this.movementX = this.maxLabel = this.legendSymbol = this.legendItemWidth = this.legendItemHeight = this.legendItem = this.legendGroup = this.legend = this.fontMetrics = this.chart = void 0, this.setState = H, this.init(f, E);
  14232. }
  14233. return u.prototype.init = function(f, E) {
  14234. this.options = f, this.visible = !0, this.chart = E.chart, this.legend = E;
  14235. }, u.prototype.addToLegend = function(f) {
  14236. f.splice(
  14237. this.options.legendIndex,
  14238. 0,
  14239. this
  14240. );
  14241. }, u.prototype.drawLegendSymbol = function(f) {
  14242. var E = this.chart, O = this.options, B = b(f.options.itemDistance, 20), M = O.ranges, S = O.connectorDistance;
  14243. this.fontMetrics = E.renderer.fontMetrics(O.labels.style.fontSize), M && M.length && R(M[0].value) ? (x(M, function(w, v) {
  14244. return v.value - w.value;
  14245. }), this.ranges = M, this.setOptions(), this.render(), f = this.getMaxLabelSize(), M = this.ranges[0].radius, E = 2 * M, S = S - M + f.width, S = 0 < S ? S : 0, this.maxLabel = f, this.movementX = O.labels.align === "left" ? S : 0, this.legendItemWidth = E + S + B, this.legendItemHeight = E + this.fontMetrics.h / 2) : f.options.bubbleLegend.autoRanges = !0;
  14246. }, u.prototype.setOptions = function() {
  14247. var f = this.ranges, E = this.options, O = this.chart.series[E.seriesIndex], B = this.legend.baseline, M = { zIndex: E.zIndex, "stroke-width": E.borderWidth }, S = { zIndex: E.zIndex, "stroke-width": E.connectorWidth }, w = { align: this.legend.options.rtl || E.labels.align === "left" ? "right" : "left", zIndex: E.zIndex }, v = O.options.marker.fillOpacity, a = this.chart.styledMode;
  14248. f.forEach(function(c, p) {
  14249. a || (M.stroke = b(c.borderColor, E.borderColor, O.color), M.fill = b(c.color, E.color, v !== 1 ? Z(O.color).setOpacity(v).get("rgba") : O.color), S.stroke = b(c.connectorColor, E.connectorColor, O.color)), f[p].radius = this.getRangeRadius(c.value), f[p] = N(f[p], { center: f[0].radius - f[p].radius + B }), a || N(!0, f[p], { bubbleAttribs: N(M), connectorAttribs: N(S), labelAttribs: w });
  14250. }, this);
  14251. }, u.prototype.getRangeRadius = function(f) {
  14252. var E = this.options;
  14253. return this.chart.series[this.options.seriesIndex].getRadius.call(
  14254. this,
  14255. E.ranges[E.ranges.length - 1].value,
  14256. E.ranges[0].value,
  14257. E.minSize,
  14258. E.maxSize,
  14259. f
  14260. );
  14261. }, u.prototype.render = function() {
  14262. var f = this.chart.renderer, E = this.options.zThreshold;
  14263. this.symbols || (this.symbols = { connectors: [], bubbleItems: [], labels: [] }), this.legendSymbol = f.g("bubble-legend"), this.legendItem = f.g("bubble-legend-item"), this.legendSymbol.translateX = 0, this.legendSymbol.translateY = 0, this.ranges.forEach(function(O) {
  14264. O.value >= E && this.renderRange(O);
  14265. }, this), this.legendSymbol.add(this.legendItem), this.legendItem.add(this.legendGroup), this.hideOverlappingLabels();
  14266. }, u.prototype.renderRange = function(f) {
  14267. var E = this.options, O = E.labels, B = this.chart, M = B.series[E.seriesIndex], S = B.renderer, w = this.symbols;
  14268. B = w.labels;
  14269. var v = f.center, a = Math.abs(f.radius), c = E.connectorDistance || 0, p = O.align, i = E.connectorWidth, h = this.ranges[0].radius || 0, s = v - a - E.borderWidth / 2 + i / 2, t = this.fontMetrics;
  14270. t = t.f / 2 - (t.h - t.f) / 2;
  14271. var o = S.styledMode;
  14272. c = this.legend.options.rtl || p === "left" ? -c : c, p === "center" && (c = 0, E.connectorDistance = 0, f.labelAttribs.align = "center"), p = s + E.labels.y;
  14273. var n = h + c + E.labels.x;
  14274. w.bubbleItems.push(S.circle(
  14275. h,
  14276. v + ((s % 1 ? 1 : 0.5) - (i % 2 ? 0 : 0.5)),
  14277. a
  14278. ).attr(o ? {} : f.bubbleAttribs).addClass((o ? "highcharts-color-" + M.colorIndex + " " : "") + "highcharts-bubble-legend-symbol " + (E.className || "")).add(this.legendSymbol)), w.connectors.push(S.path(S.crispLine([["M", h, s], ["L", h + c, s]], E.connectorWidth)).attr(o ? {} : f.connectorAttribs).addClass((o ? "highcharts-color-" + this.options.seriesIndex + " " : "") + "highcharts-bubble-legend-connectors " + (E.connectorClassName || "")).add(this.legendSymbol)), f = S.text(this.formatLabel(f), n, p + t).attr(o ? {} : f.labelAttribs).css(o ? {} : O.style).addClass("highcharts-bubble-legend-labels " + (E.labels.className || "")).add(this.legendSymbol), B.push(f), f.placed = !0, f.alignAttr = { x: n, y: p + t };
  14279. }, u.prototype.getMaxLabelSize = function() {
  14280. var f, E;
  14281. return this.symbols.labels.forEach(function(O) {
  14282. E = O.getBBox(!0), f = f ? E.width > f.width ? E : f : E;
  14283. }), f || {};
  14284. }, u.prototype.formatLabel = function(f) {
  14285. var E = this.options, O = E.labels.formatter;
  14286. E = E.labels.format;
  14287. var B = this.chart.numberFormatter;
  14288. return E ? y.format(E, f) : O ? O.call(f) : B(f.value, 1);
  14289. }, u.prototype.hideOverlappingLabels = function() {
  14290. var f = this.chart, E = this.symbols;
  14291. !this.options.labels.allowOverlap && E && (f.hideOverlappingLabels(E.labels), E.labels.forEach(function(O, B) {
  14292. O.newOpacity ? O.newOpacity !== O.oldOpacity && E.connectors[B].show() : E.connectors[B].hide();
  14293. }));
  14294. }, u.prototype.getRanges = function() {
  14295. var f = this.legend.bubbleLegend, E = f.options.ranges, O, B = Number.MAX_VALUE, M = -Number.MAX_VALUE;
  14296. f.chart.series.forEach(function(w) {
  14297. w.isBubble && !w.ignoreSeries && (O = w.zData.filter(R), O.length && (B = b(w.options.zMin, Math.min(B, Math.max(
  14298. F(O),
  14299. w.options.displayNegative === !1 ? w.options.zThreshold : -Number.MAX_VALUE
  14300. ))), M = b(w.options.zMax, Math.max(M, U(O)))));
  14301. });
  14302. var S = B === M ? [{ value: M }] : [{ value: B }, { value: (B + M) / 2 }, { value: M, autoRanges: !0 }];
  14303. return E.length && E[0].radius && S.reverse(), S.forEach(function(w, v) {
  14304. E && E[v] && (S[v] = N(E[v], w));
  14305. }), S;
  14306. }, u.prototype.predictBubbleSizes = function() {
  14307. var f = this.chart, E = this.fontMetrics, O = f.legend.options, B = O.floating, M = (O = O.layout === "horizontal") ? f.legend.lastLineHeight : 0, S = f.plotSizeX, w = f.plotSizeY, v = f.series[this.options.seriesIndex], a = v.getPxExtremes();
  14308. f = Math.ceil(a.minPxSize), a = Math.ceil(a.maxPxSize);
  14309. var c = Math.min(w, S);
  14310. return v = v.options.maxSize, B || !/%$/.test(v) ? E = a : (v = parseFloat(v), E = (c + M - E.h / 2) * v / 100 / (v / 100 + 1), (O && w - E >= S || !O && S - E >= w) && (E = a)), [f, Math.ceil(E)];
  14311. }, u.prototype.updateRanges = function(f, E) {
  14312. var O = this.legend.options.bubbleLegend;
  14313. O.minSize = f, O.maxSize = E, O.ranges = this.getRanges();
  14314. }, u.prototype.correctSizes = function() {
  14315. var f = this.legend, E = this.chart.series[this.options.seriesIndex].getPxExtremes();
  14316. 1 < Math.abs(Math.ceil(E.maxPxSize) - this.options.maxSize) && (this.updateRanges(this.options.minSize, E.maxPxSize), f.render());
  14317. }, u;
  14318. }();
  14319. }), T(d, "Series/Bubble/BubbleLegendComposition.js", [d["Series/Bubble/BubbleLegendDefaults.js"], d["Series/Bubble/BubbleLegendItem.js"], d["Core/DefaultOptions.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  14320. var Z = j.setOptions, H = I.addEvent, U = I.objectEach, F = I.wrap, R;
  14321. return function(N) {
  14322. function b(M, S, w) {
  14323. var v = this.legend, a = 0 <= x(this);
  14324. if (v && v.options.enabled && v.bubbleLegend && v.options.bubbleLegend.autoRanges && a) {
  14325. var c = v.bubbleLegend.options;
  14326. a = v.bubbleLegend.predictBubbleSizes(), v.bubbleLegend.updateRanges(a[0], a[1]), c.placed || (v.group.placed = !1, v.allItems.forEach(function(p) {
  14327. p.legendGroup.translateY = null;
  14328. })), v.render(), this.getMargins(), this.axes.forEach(function(p) {
  14329. p.visible && p.render(), c.placed || (p.setScale(), p.updateNames(), U(p.ticks, function(i) {
  14330. i.isNew = !0, i.isNewLabel = !0;
  14331. }));
  14332. }), c.placed = !0, this.getMargins(), M.call(this, S, w), v.bubbleLegend.correctSizes(), O(v, u(v));
  14333. } else
  14334. M.call(this, S, w), v && v.options.enabled && v.bubbleLegend && (v.render(), O(v, u(v)));
  14335. }
  14336. function x(M) {
  14337. M = M.series;
  14338. for (var S = 0; S < M.length; ) {
  14339. if (M[S] && M[S].isBubble && M[S].visible && M[S].zData.length)
  14340. return S;
  14341. S++;
  14342. }
  14343. return -1;
  14344. }
  14345. function u(M) {
  14346. M = M.allItems;
  14347. var S = [], w = M.length, v, a = 0;
  14348. for (v = 0; v < w; v++)
  14349. if (M[v].legendItemHeight && (M[v].itemHeight = M[v].legendItemHeight), M[v] === M[w - 1] || M[v + 1] && M[v]._legendItemPos[1] !== M[v + 1]._legendItemPos[1]) {
  14350. S.push({ height: 0 });
  14351. var c = S[S.length - 1];
  14352. for (a; a <= v; a++)
  14353. M[a].itemHeight > c.height && (c.height = M[a].itemHeight);
  14354. c.step = v;
  14355. }
  14356. return S;
  14357. }
  14358. function f(M) {
  14359. var S = this.bubbleLegend, w = this.options, v = w.bubbleLegend, a = x(this.chart);
  14360. S && S.ranges && S.ranges.length && (v.ranges.length && (v.autoRanges = !!v.ranges[0].autoRanges), this.destroyItem(S)), 0 <= a && w.enabled && v.enabled && (v.seriesIndex = a, this.bubbleLegend = new y(v, this), this.bubbleLegend.addToLegend(M.allItems));
  14361. }
  14362. function E() {
  14363. var M = this.chart, S = this.visible, w = this.chart.legend;
  14364. w && w.bubbleLegend && (this.visible = !S, this.ignoreSeries = S, M = 0 <= x(M), w.bubbleLegend.visible !== M && (w.update({ bubbleLegend: { enabled: M } }), w.bubbleLegend.visible = M), this.visible = S);
  14365. }
  14366. function O(M, S) {
  14367. var w = M.options.rtl, v, a, c, p = 0;
  14368. M.allItems.forEach(function(i, h) {
  14369. v = i.legendGroup.translateX, a = i._legendItemPos[1], ((c = i.movementX) || w && i.ranges) && (c = w ? v - i.options.maxSize / 2 : v + c, i.legendGroup.attr({ translateX: c })), h > S[p].step && p++, i.legendGroup.attr({ translateY: Math.round(a + S[p].height / 2) }), i._legendItemPos[1] = a + S[p].height / 2;
  14370. });
  14371. }
  14372. var B = [];
  14373. N.compose = function(M, S, w) {
  14374. B.indexOf(M) === -1 && (B.push(M), Z({ legend: { bubbleLegend: l } }), F(M.prototype, "drawChartBox", b)), B.indexOf(S) === -1 && (B.push(S), H(S, "afterGetAllItems", f)), B.indexOf(w) === -1 && (B.push(w), H(w, "legendItemClick", E));
  14375. };
  14376. }(R || (R = {})), R;
  14377. }), T(d, "Series/Bubble/BubblePoint.js", [d["Core/Series/Point.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(l, y, j) {
  14378. var I = this && this.__extends || function() {
  14379. var Z = function(H, U) {
  14380. return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(F, R) {
  14381. F.__proto__ = R;
  14382. } || function(F, R) {
  14383. for (var N in R)
  14384. R.hasOwnProperty(N) && (F[N] = R[N]);
  14385. }, Z(H, U);
  14386. };
  14387. return function(H, U) {
  14388. function F() {
  14389. this.constructor = H;
  14390. }
  14391. Z(H, U), H.prototype = U === null ? Object.create(U) : (F.prototype = U.prototype, new F());
  14392. };
  14393. }();
  14394. return j = j.extend, y = function(Z) {
  14395. function H() {
  14396. var U = Z !== null && Z.apply(this, arguments) || this;
  14397. return U.options = void 0, U.series = void 0, U;
  14398. }
  14399. return I(H, Z), H.prototype.haloPath = function(U) {
  14400. return l.prototype.haloPath.call(this, U === 0 ? 0 : (this.marker && this.marker.radius || 0) + U);
  14401. }, H;
  14402. }(y.seriesTypes.scatter.prototype.pointClass), j(y.prototype, { ttBelow: !1 }), y;
  14403. }), T(d, "Series/Bubble/BubbleSeries.js", [
  14404. d["Core/Axis/Axis.js"],
  14405. d["Series/Bubble/BubbleLegendComposition.js"],
  14406. d["Series/Bubble/BubblePoint.js"],
  14407. d["Core/Color/Color.js"],
  14408. d["Core/Globals.js"],
  14409. d["Core/Series/Series.js"],
  14410. d["Core/Series/SeriesRegistry.js"],
  14411. d["Core/Utilities.js"]
  14412. ], function(l, y, j, I, Z, H, U, F) {
  14413. var R = this && this.__extends || function() {
  14414. var w = function(v, a) {
  14415. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
  14416. c.__proto__ = p;
  14417. } || function(c, p) {
  14418. for (var i in p)
  14419. p.hasOwnProperty(i) && (c[i] = p[i]);
  14420. }, w(v, a);
  14421. };
  14422. return function(v, a) {
  14423. function c() {
  14424. this.constructor = v;
  14425. }
  14426. w(v, a), v.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c());
  14427. };
  14428. }(), N = I.parse;
  14429. I = Z.noop;
  14430. var b = U.seriesTypes;
  14431. Z = b.column;
  14432. var x = b.scatter;
  14433. b = F.addEvent;
  14434. var u = F.arrayMax, f = F.arrayMin, E = F.clamp, O = F.extend, B = F.isNumber, M = F.merge, S = F.pick;
  14435. return F = function(w) {
  14436. function v() {
  14437. var a = w !== null && w.apply(this, arguments) || this;
  14438. return a.data = void 0, a.maxPxSize = void 0, a.minPxSize = void 0, a.options = void 0, a.points = void 0, a.radii = void 0, a.yData = void 0, a.zData = void 0, a;
  14439. }
  14440. return R(v, w), v.prototype.animate = function(a) {
  14441. !a && this.points.length < this.options.animationLimit && this.points.forEach(function(c) {
  14442. var p = c.graphic;
  14443. p && p.width && (this.hasRendered || p.attr({ x: c.plotX, y: c.plotY, width: 1, height: 1 }), p.animate(this.markerAttribs(c), this.options.animation));
  14444. }, this);
  14445. }, v.prototype.getRadii = function() {
  14446. var a = this, c = this.zData, p = this.yData, i = [], h = this.chart.bubbleZExtremes, s = this.getPxExtremes(), t = s.minPxSize, o = s.maxPxSize;
  14447. if (!h) {
  14448. var n = Number.MAX_VALUE, A = -Number.MAX_VALUE, _;
  14449. this.chart.series.forEach(function(P) {
  14450. P.bubblePadding && (P.visible || !a.chart.options.chart.ignoreHiddenSeries) && (P = P.getZExtremes()) && (n = Math.min(n || P.zMin, P.zMin), A = Math.max(A || P.zMax, P.zMax), _ = !0);
  14451. }), _ ? (h = { zMin: n, zMax: A }, this.chart.bubbleZExtremes = h) : h = { zMin: 0, zMax: 0 };
  14452. }
  14453. var D = 0;
  14454. for (s = c.length; D < s; D++) {
  14455. var W = c[D];
  14456. i.push(this.getRadius(h.zMin, h.zMax, t, o, W, p[D]));
  14457. }
  14458. this.radii = i;
  14459. }, v.prototype.getRadius = function(a, c, p, i, h, s) {
  14460. var t = this.options, o = t.sizeBy !== "width", n = t.zThreshold, A = c - a, _ = 0.5;
  14461. if (s === null || h === null)
  14462. return null;
  14463. if (B(h)) {
  14464. if (t.sizeByAbsoluteValue && (h = Math.abs(h - n), A = Math.max(c - n, Math.abs(a - n)), a = 0), h < a)
  14465. return p / 2 - 1;
  14466. 0 < A && (_ = (h - a) / A);
  14467. }
  14468. return o && 0 <= _ && (_ = Math.sqrt(_)), Math.ceil(p + _ * (i - p)) / 2;
  14469. }, v.prototype.hasData = function() {
  14470. return !!this.processedXData.length;
  14471. }, v.prototype.pointAttribs = function(a, c) {
  14472. var p = this.options.marker.fillOpacity;
  14473. return a = H.prototype.pointAttribs.call(this, a, c), p !== 1 && (a.fill = N(a.fill).setOpacity(p).get("rgba")), a;
  14474. }, v.prototype.translate = function() {
  14475. w.prototype.translate.call(this), this.getRadii(), this.translateBubble();
  14476. }, v.prototype.translateBubble = function() {
  14477. for (var a = this.data, c = this.radii, p = this.getPxExtremes().minPxSize, i = a.length; i--; ) {
  14478. var h = a[i], s = c ? c[i] : 0;
  14479. B(s) && s >= p / 2 ? (h.marker = O(h.marker, { radius: s, width: 2 * s, height: 2 * s }), h.dlBox = { x: h.plotX - s, y: h.plotY - s, width: 2 * s, height: 2 * s }) : h.shapeArgs = h.plotY = h.dlBox = void 0;
  14480. }
  14481. }, v.prototype.getPxExtremes = function() {
  14482. var a = Math.min(this.chart.plotWidth, this.chart.plotHeight), c = function(i) {
  14483. if (typeof i == "string") {
  14484. var h = /%$/.test(i);
  14485. i = parseInt(i, 10);
  14486. }
  14487. return h ? a * i / 100 : i;
  14488. }, p = c(S(this.options.minSize, 8));
  14489. return c = Math.max(c(S(this.options.maxSize, "20%")), p), {
  14490. minPxSize: p,
  14491. maxPxSize: c
  14492. };
  14493. }, v.prototype.getZExtremes = function() {
  14494. var a = this.options, c = (this.zData || []).filter(B);
  14495. if (c.length) {
  14496. var p = S(a.zMin, E(f(c), a.displayNegative === !1 ? a.zThreshold || 0 : -Number.MAX_VALUE, Number.MAX_VALUE));
  14497. if (a = S(a.zMax, u(c)), B(p) && B(a))
  14498. return { zMin: p, zMax: a };
  14499. }
  14500. }, v.compose = y.compose, v.defaultOptions = M(x.defaultOptions, { dataLabels: { formatter: function() {
  14501. var a = this.series.chart.numberFormatter, c = this.point.z;
  14502. return B(c) ? a(c, -1) : "";
  14503. }, inside: !0, verticalAlign: "middle" }, animationLimit: 250, marker: {
  14504. lineColor: null,
  14505. lineWidth: 1,
  14506. fillOpacity: 0.5,
  14507. radius: null,
  14508. states: { hover: { radiusPlus: 0 } },
  14509. symbol: "circle"
  14510. }, minSize: 8, maxSize: "20%", softThreshold: !1, states: { hover: { halo: { size: 5 } } }, tooltip: { pointFormat: "({point.x}, {point.y}), Size: {point.z}" }, turboThreshold: 0, zThreshold: 0, zoneAxis: "z" }), v;
  14511. }(x), O(F.prototype, {
  14512. alignDataLabel: Z.prototype.alignDataLabel,
  14513. applyZones: I,
  14514. bubblePadding: !0,
  14515. buildKDTree: I,
  14516. directTouch: !0,
  14517. isBubble: !0,
  14518. pointArrayMap: ["y", "z"],
  14519. pointClass: j,
  14520. parallelArrays: ["x", "y", "z"],
  14521. trackerGroups: ["group", "dataLabelsGroup"],
  14522. specialGroup: "group",
  14523. zoneAxis: "z"
  14524. }), b(F, "updatedData", function(w) {
  14525. delete w.target.chart.bubbleZExtremes;
  14526. }), l.prototype.beforePadding = function() {
  14527. var w = this, v = this.len, a = this.chart, c = 0, p = v, i = this.isXAxis, h = i ? "xData" : "yData", s = this.min, t = this.max - s, o = v / t, n;
  14528. this.series.forEach(function(A) {
  14529. if (A.bubblePadding && (A.visible || !a.options.chart.ignoreHiddenSeries)) {
  14530. n = w.allowZoomOutside = !0;
  14531. var _ = A[h];
  14532. if (i && A.getRadii(0, 0, A), 0 < t) {
  14533. for (var D = _.length; D--; )
  14534. if (B(_[D]) && w.dataMin <= _[D] && _[D] <= w.max) {
  14535. var W = A.radii && A.radii[D] || 0;
  14536. c = Math.min((_[D] - s) * o - W, c), p = Math.max((_[D] - s) * o + W, p);
  14537. }
  14538. }
  14539. }
  14540. }), n && 0 < t && !this.logarithmic && (p -= v, o *= (v + Math.max(0, c) - Math.min(p, v)) / v, [["min", "userMin", c], ["max", "userMax", p]].forEach(function(A) {
  14541. typeof S(w.options[A[0]], w[A[1]]) > "u" && (w[A[0]] += A[2] / o);
  14542. }));
  14543. }, U.registerSeriesType("bubble", F), F;
  14544. }), T(d, "Series/ColumnRange/ColumnRangePoint.js", [d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(l, y) {
  14545. var j = this && this.__extends || function() {
  14546. var U = function(F, R) {
  14547. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(N, b) {
  14548. N.__proto__ = b;
  14549. } || function(N, b) {
  14550. for (var x in b)
  14551. b.hasOwnProperty(x) && (N[x] = b[x]);
  14552. }, U(F, R);
  14553. };
  14554. return function(F, R) {
  14555. function N() {
  14556. this.constructor = F;
  14557. }
  14558. U(F, R), F.prototype = R === null ? Object.create(R) : (N.prototype = R.prototype, new N());
  14559. };
  14560. }(), I = l.seriesTypes;
  14561. l = I.column.prototype.pointClass;
  14562. var Z = y.extend, H = y.isNumber;
  14563. return y = function(U) {
  14564. function F() {
  14565. var R = U !== null && U.apply(this, arguments) || this;
  14566. return R.series = void 0, R.options = void 0, R.barX = void 0, R.pointWidth = void 0, R.shapeType = void 0, R;
  14567. }
  14568. return j(F, U), F.prototype.isValid = function() {
  14569. return H(this.low);
  14570. }, F;
  14571. }(I.arearange.prototype.pointClass), Z(y.prototype, { setState: l.prototype.setState }), y;
  14572. }), T(d, "Series/ColumnRange/ColumnRangeSeries.js", [d["Series/ColumnRange/ColumnRangePoint.js"], d["Core/Globals.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  14573. var Z = this && this.__extends || function() {
  14574. var E = function(O, B) {
  14575. return E = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, S) {
  14576. M.__proto__ = S;
  14577. } || function(M, S) {
  14578. for (var w in S)
  14579. S.hasOwnProperty(w) && (M[w] = S[w]);
  14580. }, E(O, B);
  14581. };
  14582. return function(O, B) {
  14583. function M() {
  14584. this.constructor = O;
  14585. }
  14586. E(O, B), O.prototype = B === null ? Object.create(B) : (M.prototype = B.prototype, new M());
  14587. };
  14588. }();
  14589. y = y.noop;
  14590. var H = j.seriesTypes, U = H.arearange, F = H.column, R = F.prototype, N = U.prototype, b = I.clamp, x = I.merge, u = I.pick;
  14591. I = I.extend;
  14592. var f = { pointRange: null, marker: null, states: { hover: { halo: !1 } } };
  14593. return H = function(E) {
  14594. function O() {
  14595. var B = E !== null && E.apply(this, arguments) || this;
  14596. return B.data = void 0, B.points = void 0, B.options = void 0, B;
  14597. }
  14598. return Z(O, E), O.prototype.setOptions = function() {
  14599. return x(!0, arguments[0], { stacking: void 0 }), N.setOptions.apply(this, arguments);
  14600. }, O.prototype.translate = function() {
  14601. var B = this, M = B.yAxis, S = B.xAxis, w = S.startAngleRad, v, a = B.chart, c = B.xAxis.isRadial, p = Math.max(a.chartWidth, a.chartHeight) + 999, i;
  14602. R.translate.apply(B), B.points.forEach(function(h) {
  14603. var s = h.shapeArgs || {}, t = B.options.minPointLength;
  14604. h.plotHigh = i = b(M.translate(h.high, 0, 1, 0, 1), -p, p), h.plotLow = b(h.plotY, -p, p);
  14605. var o = i, n = u(
  14606. h.rectPlotY,
  14607. h.plotY
  14608. ) - i;
  14609. Math.abs(n) < t ? (t -= n, n += t, o -= t / 2) : 0 > n && (n *= -1, o -= n), c ? (v = h.barX + w, h.shapeType = "arc", h.shapeArgs = B.polarArc(o + n, o, v, v + h.pointWidth)) : (s.height = n, s.y = o, t = s.x, t = t === void 0 ? 0 : t, s = s.width, s = s === void 0 ? 0 : s, h.tooltipPos = a.inverted ? [M.len + M.pos - a.plotLeft - o - n / 2, S.len + S.pos - a.plotTop - t - s / 2, n] : [S.left - a.plotLeft + t + s / 2, M.pos - a.plotTop + o + n / 2, n]);
  14610. });
  14611. }, O.prototype.crispCol = function() {
  14612. return R.crispCol.apply(this, arguments);
  14613. }, O.prototype.drawPoints = function() {
  14614. return R.drawPoints.apply(this, arguments);
  14615. }, O.prototype.drawTracker = function() {
  14616. return R.drawTracker.apply(this, arguments);
  14617. }, O.prototype.getColumnMetrics = function() {
  14618. return R.getColumnMetrics.apply(this, arguments);
  14619. }, O.prototype.pointAttribs = function() {
  14620. return R.pointAttribs.apply(this, arguments);
  14621. }, O.prototype.adjustForMissingColumns = function() {
  14622. return R.adjustForMissingColumns.apply(this, arguments);
  14623. }, O.prototype.animate = function() {
  14624. return R.animate.apply(this, arguments);
  14625. }, O.prototype.translate3dPoints = function() {
  14626. return R.translate3dPoints.apply(this, arguments);
  14627. }, O.prototype.translate3dShapes = function() {
  14628. return R.translate3dShapes.apply(this, arguments);
  14629. }, O.defaultOptions = x(F.defaultOptions, U.defaultOptions, f), O;
  14630. }(U), I(H.prototype, { directTouch: !0, trackerGroups: ["group", "dataLabelsGroup"], drawGraph: y, getSymbol: y, polarArc: function() {
  14631. return R.polarArc.apply(this, arguments);
  14632. }, pointClass: l }), j.registerSeriesType("columnrange", H), H;
  14633. }), T(d, "Series/ColumnPyramid/ColumnPyramidSeries.js", [d["Series/Column/ColumnSeries.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(l, y, j) {
  14634. var I = this && this.__extends || function() {
  14635. var R = function(N, b) {
  14636. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, u) {
  14637. x.__proto__ = u;
  14638. } || function(x, u) {
  14639. for (var f in u)
  14640. u.hasOwnProperty(f) && (x[f] = u[f]);
  14641. }, R(N, b);
  14642. };
  14643. return function(N, b) {
  14644. function x() {
  14645. this.constructor = N;
  14646. }
  14647. R(N, b), N.prototype = b === null ? Object.create(b) : (x.prototype = b.prototype, new x());
  14648. };
  14649. }(), Z = l.prototype, H = j.clamp, U = j.merge, F = j.pick;
  14650. return j = function(R) {
  14651. function N() {
  14652. var b = R !== null && R.apply(this, arguments) || this;
  14653. return b.data = void 0, b.options = void 0, b.points = void 0, b;
  14654. }
  14655. return I(N, R), N.prototype.translate = function() {
  14656. var b = this, x = b.chart, u = b.options, f = b.dense = 2 > b.closestPointRange * b.xAxis.transA;
  14657. f = b.borderWidth = F(u.borderWidth, f ? 0 : 1);
  14658. var E = b.yAxis, O = u.threshold, B = b.translatedThreshold = E.getThreshold(O), M = F(u.minPointLength, 5), S = b.getColumnMetrics(), w = S.width, v = b.barW = Math.max(w, 1 + 2 * f), a = b.pointXOffset = S.offset;
  14659. x.inverted && (B -= 0.5), u.pointPadding && (v = Math.ceil(v)), Z.translate.apply(b), b.points.forEach(function(c) {
  14660. var p = F(c.yBottom, B), i = 999 + Math.abs(p), h = H(c.plotY, -i, E.len + i);
  14661. i = c.plotX + a;
  14662. var s = v / 2, t = Math.min(h, p);
  14663. p = Math.max(h, p) - t;
  14664. var o;
  14665. c.barX = i, c.pointWidth = w, c.tooltipPos = x.inverted ? [E.len + E.pos - x.plotLeft - h, b.xAxis.len - i - s, p] : [i + s, h + E.pos - x.plotTop, p], h = O + (c.total || c.y), u.stacking === "percent" && (h = O + (0 > c.y) ? -100 : 100), h = E.toPixels(h, !0);
  14666. var n = (o = x.plotHeight - h - (x.plotHeight - B)) ? s * (t - h) / o : 0, A = o ? s * (t + p - h) / o : 0;
  14667. o = i - n + s, n = i + n + s;
  14668. var _ = i + A + s;
  14669. A = i - A + s;
  14670. var D = t - M, W = t + p;
  14671. 0 > c.y && (D = t, W = t + p + M), x.inverted && (_ = E.width - t, o = h - (E.width - B), n = s * (h - _) / o, A = s * (h - (_ - p)) / o, o = i + s + n, n = o - 2 * n, _ = i - A + s, A = i + A + s, D = t, W = t + p - M, 0 > c.y && (W = t + p + M)), c.shapeType = "path", c.shapeArgs = { x: o, y: D, width: n - o, height: p, d: [["M", o, D], ["L", n, D], ["L", _, W], ["L", A, W], ["Z"]] };
  14672. });
  14673. }, N.defaultOptions = U(l.defaultOptions, {}), N;
  14674. }(l), y.registerSeriesType("columnpyramid", j), j;
  14675. }), T(d, "Series/ErrorBar/ErrorBarSeries.js", [d["Series/BoxPlot/BoxPlotSeries.js"], d["Series/Column/ColumnSeries.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  14676. var Z = this && this.__extends || function() {
  14677. var R = function(N, b) {
  14678. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, u) {
  14679. x.__proto__ = u;
  14680. } || function(x, u) {
  14681. for (var f in u)
  14682. u.hasOwnProperty(f) && (x[f] = u[f]);
  14683. }, R(N, b);
  14684. };
  14685. return function(N, b) {
  14686. function x() {
  14687. this.constructor = N;
  14688. }
  14689. R(N, b), N.prototype = b === null ? Object.create(b) : (x.prototype = b.prototype, new x());
  14690. };
  14691. }(), H = j.seriesTypes.arearange, U = I.merge;
  14692. I = I.extend;
  14693. var F = function(R) {
  14694. function N() {
  14695. var b = R !== null && R.apply(this, arguments) || this;
  14696. return b.data = void 0, b.options = void 0, b.points = void 0, b;
  14697. }
  14698. return Z(N, R), N.prototype.getColumnMetrics = function() {
  14699. return this.linkedParent && this.linkedParent.columnMetrics || y.prototype.getColumnMetrics.call(this);
  14700. }, N.prototype.drawDataLabels = function() {
  14701. var b = this.pointValKey;
  14702. H && (H.prototype.drawDataLabels.call(this), this.data.forEach(function(x) {
  14703. x.y = x[b];
  14704. }));
  14705. }, N.prototype.toYData = function(b) {
  14706. return [b.low, b.high];
  14707. }, N.defaultOptions = U(l.defaultOptions, {
  14708. color: "#000000",
  14709. grouping: !1,
  14710. linkedTo: ":previous",
  14711. tooltip: { pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14712. whiskerWidth: null
  14713. }), N;
  14714. }(l);
  14715. return I(F.prototype, { pointArrayMap: ["low", "high"], pointValKey: "high", doQuartiles: !1 }), j.registerSeriesType("errorbar", F), F;
  14716. }), T(d, "Series/Gauge/GaugePoint.js", [d["Core/Series/SeriesRegistry.js"]], function(l) {
  14717. var y = this && this.__extends || function() {
  14718. var j = function(I, Z) {
  14719. return j = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(H, U) {
  14720. H.__proto__ = U;
  14721. } || function(H, U) {
  14722. for (var F in U)
  14723. U.hasOwnProperty(F) && (H[F] = U[F]);
  14724. }, j(I, Z);
  14725. };
  14726. return function(I, Z) {
  14727. function H() {
  14728. this.constructor = I;
  14729. }
  14730. j(I, Z), I.prototype = Z === null ? Object.create(Z) : (H.prototype = Z.prototype, new H());
  14731. };
  14732. }();
  14733. return function(j) {
  14734. function I() {
  14735. var Z = j !== null && j.apply(this, arguments) || this;
  14736. return Z.options = void 0, Z.series = void 0, Z.shapeArgs = void 0, Z;
  14737. }
  14738. return y(I, j), I.prototype.setState = function(Z) {
  14739. this.state = Z;
  14740. }, I;
  14741. }(l.series.prototype.pointClass);
  14742. }), T(d, "Series/Gauge/GaugeSeries.js", [d["Series/Gauge/GaugePoint.js"], d["Core/Globals.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  14743. var Z = this && this.__extends || function() {
  14744. var f = function(E, O) {
  14745. return f = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, M) {
  14746. B.__proto__ = M;
  14747. } || function(B, M) {
  14748. for (var S in M)
  14749. M.hasOwnProperty(S) && (B[S] = M[S]);
  14750. }, f(E, O);
  14751. };
  14752. return function(E, O) {
  14753. function B() {
  14754. this.constructor = E;
  14755. }
  14756. f(E, O), E.prototype = O === null ? Object.create(O) : (B.prototype = O.prototype, new B());
  14757. };
  14758. }();
  14759. y = y.noop;
  14760. var H = j.series, U = j.seriesTypes.column, F = I.clamp, R = I.isNumber, N = I.extend, b = I.merge, x = I.pick, u = I.pInt;
  14761. return I = function(f) {
  14762. function E() {
  14763. var O = f !== null && f.apply(this, arguments) || this;
  14764. return O.data = void 0, O.points = void 0, O.options = void 0, O.yAxis = void 0, O;
  14765. }
  14766. return Z(E, f), E.prototype.translate = function() {
  14767. var O = this.yAxis, B = this.options, M = O.center;
  14768. this.generatePoints(), this.points.forEach(function(S) {
  14769. var w = b(B.dial, S.dial), v = u(x(w.radius, "80%")) * M[2] / 200, a = u(x(w.baseLength, "70%")) * v / 100, c = u(x(w.rearLength, "10%")) * v / 100, p = w.baseWidth || 3, i = w.topWidth || 1, h = B.overshoot, s = O.startAngleRad + O.translate(S.y, null, null, null, !0);
  14770. (R(h) || B.wrap === !1) && (h = R(h) ? h / 180 * Math.PI : 0, s = F(
  14771. s,
  14772. O.startAngleRad - h,
  14773. O.endAngleRad + h
  14774. )), s = 180 * s / Math.PI, S.shapeType = "path", S.shapeArgs = { d: w.path || [["M", -c, -p / 2], ["L", a, -p / 2], ["L", v, -i / 2], ["L", v, i / 2], ["L", a, p / 2], ["L", -c, p / 2], ["Z"]], translateX: M[0], translateY: M[1], rotation: s }, S.plotX = M[0], S.plotY = M[1];
  14775. });
  14776. }, E.prototype.drawPoints = function() {
  14777. var O = this, B = O.chart, M = O.yAxis.center, S = O.pivot, w = O.options, v = w.pivot, a = B.renderer;
  14778. O.points.forEach(function(c) {
  14779. var p = c.graphic, i = c.shapeArgs, h = i.d, s = b(w.dial, c.dial);
  14780. p ? (p.animate(i), i.d = h) : c.graphic = a[c.shapeType](i).attr({
  14781. rotation: i.rotation,
  14782. zIndex: 1
  14783. }).addClass("highcharts-dial").add(O.group), B.styledMode || c.graphic[p ? "animate" : "attr"]({ stroke: s.borderColor || "none", "stroke-width": s.borderWidth || 0, fill: s.backgroundColor || "#000000" });
  14784. }), S ? S.animate({ translateX: M[0], translateY: M[1] }) : (O.pivot = a.circle(0, 0, x(v.radius, 5)).attr({ zIndex: 2 }).addClass("highcharts-pivot").translate(M[0], M[1]).add(O.group), B.styledMode || O.pivot.attr({ "stroke-width": v.borderWidth || 0, stroke: v.borderColor || "#cccccc", fill: v.backgroundColor || "#000000" }));
  14785. }, E.prototype.animate = function(O) {
  14786. var B = this;
  14787. O || B.points.forEach(function(M) {
  14788. var S = M.graphic;
  14789. S && (S.attr({ rotation: 180 * B.yAxis.startAngleRad / Math.PI }), S.animate({ rotation: M.shapeArgs.rotation }, B.options.animation));
  14790. });
  14791. }, E.prototype.render = function() {
  14792. this.group = this.plotGroup("group", "series", this.visible ? "visible" : "hidden", this.options.zIndex, this.chart.seriesGroup), H.prototype.render.call(this), this.group.clip(this.chart.clipRect);
  14793. }, E.prototype.setData = function(O, B) {
  14794. H.prototype.setData.call(this, O, !1), this.processData(), this.generatePoints(), x(B, !0) && this.chart.redraw();
  14795. }, E.prototype.hasData = function() {
  14796. return !!this.points.length;
  14797. }, E.defaultOptions = b(H.defaultOptions, { dataLabels: { borderColor: "#cccccc", borderRadius: 3, borderWidth: 1, crop: !1, defer: !1, enabled: !0, verticalAlign: "top", y: 15, zIndex: 2 }, dial: {}, pivot: {}, tooltip: { headerFormat: "" }, showInLegend: !1 }), E;
  14798. }(H), N(I.prototype, { angular: !0, directTouch: !0, drawGraph: y, drawTracker: U.prototype.drawTracker, fixedBox: !0, forceDL: !0, noSharedTooltip: !0, pointClass: l, trackerGroups: [
  14799. "group",
  14800. "dataLabelsGroup"
  14801. ] }), j.registerSeriesType("gauge", I), I;
  14802. }), T(d, "Series/PackedBubble/PackedBubblePoint.js", [d["Core/Chart/Chart.js"], d["Core/Series/Point.js"], d["Core/Series/SeriesRegistry.js"]], function(l, y, j) {
  14803. var I = this && this.__extends || function() {
  14804. var Z = function(H, U) {
  14805. return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(F, R) {
  14806. F.__proto__ = R;
  14807. } || function(F, R) {
  14808. for (var N in R)
  14809. R.hasOwnProperty(N) && (F[N] = R[N]);
  14810. }, Z(H, U);
  14811. };
  14812. return function(H, U) {
  14813. function F() {
  14814. this.constructor = H;
  14815. }
  14816. Z(H, U), H.prototype = U === null ? Object.create(U) : (F.prototype = U.prototype, new F());
  14817. };
  14818. }();
  14819. return function(Z) {
  14820. function H() {
  14821. var U = Z !== null && Z.apply(this, arguments) || this;
  14822. return U.degree = NaN, U.mass = NaN, U.radius = NaN, U.options = void 0, U.series = void 0, U.value = null, U;
  14823. }
  14824. return I(H, Z), H.prototype.destroy = function() {
  14825. return this.series.layout && this.series.layout.removeElementFromCollection(this, this.series.layout.nodes), y.prototype.destroy.apply(this, arguments);
  14826. }, H.prototype.firePointEvent = function() {
  14827. var U = this.series.options;
  14828. if (this.isParentNode && U.parentNode) {
  14829. var F = U.allowPointSelect;
  14830. U.allowPointSelect = U.parentNode.allowPointSelect, y.prototype.firePointEvent.apply(this, arguments), U.allowPointSelect = F;
  14831. } else
  14832. y.prototype.firePointEvent.apply(this, arguments);
  14833. }, H.prototype.select = function() {
  14834. var U = this.series.chart;
  14835. this.isParentNode ? (U.getSelectedPoints = U.getSelectedParentNodes, y.prototype.select.apply(this, arguments), U.getSelectedPoints = l.prototype.getSelectedPoints) : y.prototype.select.apply(this, arguments);
  14836. }, H;
  14837. }(j.seriesTypes.bubble.prototype.pointClass);
  14838. }), T(d, "Series/Networkgraph/DraggableNodes.js", [d["Core/Chart/Chart.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(l, y, j) {
  14839. var I = j.addEvent;
  14840. y.dragNodesMixin = { onMouseDown: function(Z, H) {
  14841. H = this.chart.pointer.normalize(H), Z.fixedPosition = { chartX: H.chartX, chartY: H.chartY, plotX: Z.plotX, plotY: Z.plotY }, Z.inDragMode = !0;
  14842. }, onMouseMove: function(Z, H) {
  14843. if (Z.fixedPosition && Z.inDragMode) {
  14844. var U = this.chart, F = U.pointer.normalize(H);
  14845. H = Z.fixedPosition.chartX - F.chartX, F = Z.fixedPosition.chartY - F.chartY;
  14846. var R = void 0, N = void 0, b = U.graphLayoutsLookup;
  14847. (5 < Math.abs(H) || 5 < Math.abs(F)) && (R = Z.fixedPosition.plotX - H, N = Z.fixedPosition.plotY - F, U.isInsidePlot(R, N) && (Z.plotX = R, Z.plotY = N, Z.hasDragged = !0, this.redrawHalo(Z), b.forEach(function(x) {
  14848. x.restartSimulation();
  14849. })));
  14850. }
  14851. }, onMouseUp: function(Z, H) {
  14852. Z.fixedPosition && (Z.hasDragged && (this.layout.enableSimulation ? this.layout.start() : this.chart.redraw()), Z.inDragMode = Z.hasDragged = !1, this.options.fixedDraggable || delete Z.fixedPosition);
  14853. }, redrawHalo: function(Z) {
  14854. Z && this.halo && this.halo.attr({ d: Z.haloPath(this.options.states.hover.halo.size) });
  14855. } }, I(l, "load", function() {
  14856. var Z = this, H, U, F;
  14857. Z.container && (H = I(Z.container, "mousedown", function(R) {
  14858. var N = Z.hoverPoint;
  14859. N && N.series && N.series.hasDraggableNodes && N.series.options.draggable && (N.series.onMouseDown(N, R), U = I(Z.container, "mousemove", function(b) {
  14860. return N && N.series && N.series.onMouseMove(N, b);
  14861. }), F = I(Z.container.ownerDocument, "mouseup", function(b) {
  14862. return U(), F(), N && N.series && N.series.onMouseUp(N, b);
  14863. }));
  14864. })), I(Z, "destroy", function() {
  14865. H();
  14866. });
  14867. });
  14868. }), T(
  14869. d,
  14870. "Series/Networkgraph/Integrations.js",
  14871. [d["Core/Globals.js"]],
  14872. function(l) {
  14873. l.networkgraphIntegrations = { verlet: { attractiveForceFunction: function(y, j) {
  14874. return (j - y) / y;
  14875. }, repulsiveForceFunction: function(y, j) {
  14876. return (j - y) / y * (j > y ? 1 : 0);
  14877. }, barycenter: function() {
  14878. var y = this.options.gravitationalConstant, j = this.barycenter.xFactor, I = this.barycenter.yFactor;
  14879. j = (j - (this.box.left + this.box.width) / 2) * y, I = (I - (this.box.top + this.box.height) / 2) * y, this.nodes.forEach(function(Z) {
  14880. Z.fixedPosition || (Z.plotX -= j / Z.mass / Z.degree, Z.plotY -= I / Z.mass / Z.degree);
  14881. });
  14882. }, repulsive: function(y, j, I) {
  14883. j = j * this.diffTemperature / y.mass / y.degree, y.fixedPosition || (y.plotX += I.x * j, y.plotY += I.y * j);
  14884. }, attractive: function(y, j, I) {
  14885. var Z = y.getMass(), H = -I.x * j * this.diffTemperature;
  14886. j = -I.y * j * this.diffTemperature, y.fromNode.fixedPosition || (y.fromNode.plotX -= H * Z.fromNode / y.fromNode.degree, y.fromNode.plotY -= j * Z.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.plotX += H * Z.toNode / y.toNode.degree, y.toNode.plotY += j * Z.toNode / y.toNode.degree);
  14887. }, integrate: function(y, j) {
  14888. var I = -y.options.friction, Z = y.options.maxSpeed, H = (j.plotX + j.dispX - j.prevX) * I;
  14889. I *= j.plotY + j.dispY - j.prevY;
  14890. var U = Math.abs, F = U(H) / (H || 1);
  14891. U = U(I) / (I || 1), H = F * Math.min(Z, Math.abs(H)), I = U * Math.min(Z, Math.abs(I)), j.prevX = j.plotX + j.dispX, j.prevY = j.plotY + j.dispY, j.plotX += H, j.plotY += I, j.temperature = y.vectorLength({ x: H, y: I });
  14892. }, getK: function(y) {
  14893. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.5);
  14894. } }, euler: { attractiveForceFunction: function(y, j) {
  14895. return y * y / j;
  14896. }, repulsiveForceFunction: function(y, j) {
  14897. return j * j / y;
  14898. }, barycenter: function() {
  14899. var y = this.options.gravitationalConstant, j = this.barycenter.xFactor, I = this.barycenter.yFactor;
  14900. this.nodes.forEach(function(Z) {
  14901. if (!Z.fixedPosition) {
  14902. var H = Z.getDegree();
  14903. H *= 1 + H / 2, Z.dispX += (j - Z.plotX) * y * H / Z.degree, Z.dispY += (I - Z.plotY) * y * H / Z.degree;
  14904. }
  14905. });
  14906. }, repulsive: function(y, j, I, Z) {
  14907. y.dispX += I.x / Z * j / y.degree, y.dispY += I.y / Z * j / y.degree;
  14908. }, attractive: function(y, j, I, Z) {
  14909. var H = y.getMass(), U = I.x / Z * j;
  14910. j *= I.y / Z, y.fromNode.fixedPosition || (y.fromNode.dispX -= U * H.fromNode / y.fromNode.degree, y.fromNode.dispY -= j * H.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.dispX += U * H.toNode / y.toNode.degree, y.toNode.dispY += j * H.toNode / y.toNode.degree);
  14911. }, integrate: function(y, j) {
  14912. j.dispX += j.dispX * y.options.friction, j.dispY += j.dispY * y.options.friction;
  14913. var I = j.temperature = y.vectorLength({ x: j.dispX, y: j.dispY });
  14914. I !== 0 && (j.plotX += j.dispX / I * Math.min(Math.abs(j.dispX), y.temperature), j.plotY += j.dispY / I * Math.min(Math.abs(j.dispY), y.temperature));
  14915. }, getK: function(y) {
  14916. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.3);
  14917. } } };
  14918. }
  14919. ), T(
  14920. d,
  14921. "Series/Networkgraph/QuadTree.js",
  14922. [d["Core/Globals.js"], d["Core/Utilities.js"]],
  14923. function(l, y) {
  14924. y = y.extend;
  14925. var j = l.QuadTreeNode = function(I) {
  14926. this.box = I, this.boxSize = Math.min(I.width, I.height), this.nodes = [], this.body = this.isInternal = !1, this.isEmpty = !0;
  14927. };
  14928. y(j.prototype, { insert: function(I, Z) {
  14929. this.isInternal ? this.nodes[this.getBoxPosition(I)].insert(I, Z - 1) : (this.isEmpty = !1, this.body ? Z ? (this.isInternal = !0, this.divideBox(), this.body !== !0 && (this.nodes[this.getBoxPosition(this.body)].insert(this.body, Z - 1), this.body = !0), this.nodes[this.getBoxPosition(I)].insert(I, Z - 1)) : (Z = new j({
  14930. top: I.plotX,
  14931. left: I.plotY,
  14932. width: 0.1,
  14933. height: 0.1
  14934. }), Z.body = I, Z.isInternal = !1, this.nodes.push(Z)) : (this.isInternal = !1, this.body = I));
  14935. }, updateMassAndCenter: function() {
  14936. var I = 0, Z = 0, H = 0;
  14937. this.isInternal ? (this.nodes.forEach(function(U) {
  14938. U.isEmpty || (I += U.mass, Z += U.plotX * U.mass, H += U.plotY * U.mass);
  14939. }), Z /= I, H /= I) : this.body && (I = this.body.mass, Z = this.body.plotX, H = this.body.plotY), this.mass = I, this.plotX = Z, this.plotY = H;
  14940. }, divideBox: function() {
  14941. var I = this.box.width / 2, Z = this.box.height / 2;
  14942. this.nodes[0] = new j({
  14943. left: this.box.left,
  14944. top: this.box.top,
  14945. width: I,
  14946. height: Z
  14947. }), this.nodes[1] = new j({ left: this.box.left + I, top: this.box.top, width: I, height: Z }), this.nodes[2] = new j({ left: this.box.left + I, top: this.box.top + Z, width: I, height: Z }), this.nodes[3] = new j({ left: this.box.left, top: this.box.top + Z, width: I, height: Z });
  14948. }, getBoxPosition: function(I) {
  14949. var Z = I.plotY < this.box.top + this.box.height / 2;
  14950. return I.plotX < this.box.left + this.box.width / 2 ? Z ? 0 : 3 : Z ? 1 : 2;
  14951. } }), l = l.QuadTree = function(I, Z, H, U) {
  14952. this.box = { left: I, top: Z, width: H, height: U }, this.maxDepth = 25, this.root = new j(
  14953. this.box,
  14954. "0"
  14955. ), this.root.isInternal = !0, this.root.isRoot = !0, this.root.divideBox();
  14956. }, y(l.prototype, { insertNodes: function(I) {
  14957. I.forEach(function(Z) {
  14958. this.root.insert(Z, this.maxDepth);
  14959. }, this);
  14960. }, visitNodeRecursive: function(I, Z, H) {
  14961. var U;
  14962. I || (I = this.root), I === this.root && Z && (U = Z(I)), U !== !1 && (I.nodes.forEach(function(F) {
  14963. if (F.isInternal) {
  14964. if (Z && (U = Z(F)), U === !1)
  14965. return;
  14966. this.visitNodeRecursive(F, Z, H);
  14967. } else
  14968. F.body && Z && Z(F.body);
  14969. H && H(F);
  14970. }, this), I === this.root && H && H(I));
  14971. }, calculateMassAndCenter: function() {
  14972. this.visitNodeRecursive(
  14973. null,
  14974. null,
  14975. function(I) {
  14976. I.updateMassAndCenter();
  14977. }
  14978. );
  14979. } });
  14980. }
  14981. ), T(d, "Series/Networkgraph/Layouts.js", [d["Core/Chart/Chart.js"], d["Core/Animation/AnimationUtilities.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  14982. var Z = y.setAnimation;
  14983. y = I.addEvent;
  14984. var H = I.clamp, U = I.defined, F = I.extend, R = I.isFunction, N = I.pick;
  14985. j.layouts = { "reingold-fruchterman": function() {
  14986. } }, F(j.layouts["reingold-fruchterman"].prototype, {
  14987. init: function(b) {
  14988. this.options = b, this.nodes = [], this.links = [], this.series = [], this.box = {
  14989. x: 0,
  14990. y: 0,
  14991. width: 0,
  14992. height: 0
  14993. }, this.setInitialRendering(!0), this.integration = j.networkgraphIntegrations[b.integration], this.enableSimulation = b.enableSimulation, this.attractiveForce = N(b.attractiveForce, this.integration.attractiveForceFunction), this.repulsiveForce = N(b.repulsiveForce, this.integration.repulsiveForceFunction), this.approximation = b.approximation;
  14994. },
  14995. updateSimulation: function(b) {
  14996. this.enableSimulation = N(b, this.options.enableSimulation);
  14997. },
  14998. start: function() {
  14999. var b = this.series, x = this.options;
  15000. this.currentStep = 0, this.forces = b[0] && b[0].forces || [], this.chart = b[0] && b[0].chart, this.initialRendering && (this.initPositions(), b.forEach(function(u) {
  15001. u.finishedAnimating = !0, u.render();
  15002. })), this.setK(), this.resetSimulation(x), this.enableSimulation && this.step();
  15003. },
  15004. step: function() {
  15005. var b = this, x = this.series;
  15006. b.currentStep++, b.approximation === "barnes-hut" && (b.createQuadTree(), b.quadTree.calculateMassAndCenter()), b.forces.forEach(function(u) {
  15007. b[u + "Forces"](b.temperature);
  15008. }), b.applyLimits(b.temperature), b.temperature = b.coolDown(
  15009. b.startTemperature,
  15010. b.diffTemperature,
  15011. b.currentStep
  15012. ), b.prevSystemTemperature = b.systemTemperature, b.systemTemperature = b.getSystemTemperature(), b.enableSimulation && (x.forEach(function(u) {
  15013. u.chart && u.render();
  15014. }), b.maxIterations-- && isFinite(b.temperature) && !b.isStable() ? (b.simulation && j.win.cancelAnimationFrame(b.simulation), b.simulation = j.win.requestAnimationFrame(function() {
  15015. b.step();
  15016. })) : b.simulation = !1);
  15017. },
  15018. stop: function() {
  15019. this.simulation && j.win.cancelAnimationFrame(this.simulation);
  15020. },
  15021. setArea: function(b, x, u, f) {
  15022. this.box = {
  15023. left: b,
  15024. top: x,
  15025. width: u,
  15026. height: f
  15027. };
  15028. },
  15029. setK: function() {
  15030. this.k = this.options.linkLength || this.integration.getK(this);
  15031. },
  15032. addElementsToCollection: function(b, x) {
  15033. b.forEach(function(u) {
  15034. x.indexOf(u) === -1 && x.push(u);
  15035. });
  15036. },
  15037. removeElementFromCollection: function(b, x) {
  15038. b = x.indexOf(b), b !== -1 && x.splice(b, 1);
  15039. },
  15040. clear: function() {
  15041. this.nodes.length = 0, this.links.length = 0, this.series.length = 0, this.resetSimulation();
  15042. },
  15043. resetSimulation: function() {
  15044. this.forcedStop = !1, this.systemTemperature = 0, this.setMaxIterations(), this.setTemperature(), this.setDiffTemperature();
  15045. },
  15046. restartSimulation: function() {
  15047. this.simulation ? this.resetSimulation() : (this.setInitialRendering(!1), this.enableSimulation ? this.start() : this.setMaxIterations(1), this.chart && this.chart.redraw(), this.setInitialRendering(!0));
  15048. },
  15049. setMaxIterations: function(b) {
  15050. this.maxIterations = N(b, this.options.maxIterations);
  15051. },
  15052. setTemperature: function() {
  15053. this.temperature = this.startTemperature = Math.sqrt(this.nodes.length);
  15054. },
  15055. setDiffTemperature: function() {
  15056. this.diffTemperature = this.startTemperature / (this.options.maxIterations + 1);
  15057. },
  15058. setInitialRendering: function(b) {
  15059. this.initialRendering = b;
  15060. },
  15061. createQuadTree: function() {
  15062. this.quadTree = new j.QuadTree(this.box.left, this.box.top, this.box.width, this.box.height), this.quadTree.insertNodes(this.nodes);
  15063. },
  15064. initPositions: function() {
  15065. var b = this.options.initialPositions;
  15066. R(b) ? (b.call(this), this.nodes.forEach(function(x) {
  15067. U(x.prevX) || (x.prevX = x.plotX), U(x.prevY) || (x.prevY = x.plotY), x.dispX = 0, x.dispY = 0;
  15068. })) : b === "circle" ? this.setCircularPositions() : this.setRandomPositions();
  15069. },
  15070. setCircularPositions: function() {
  15071. function b(S) {
  15072. S.linksFrom.forEach(function(w) {
  15073. B[w.toNode.id] || (B[w.toNode.id] = !0, O.push(w.toNode), b(w.toNode));
  15074. });
  15075. }
  15076. var x = this.box, u = this.nodes, f = 2 * Math.PI / (u.length + 1), E = u.filter(function(S) {
  15077. return S.linksTo.length === 0;
  15078. }), O = [], B = {}, M = this.options.initialPositionRadius;
  15079. E.forEach(function(S) {
  15080. O.push(S), b(S);
  15081. }), O.length ? u.forEach(function(S) {
  15082. O.indexOf(S) === -1 && O.push(S);
  15083. }) : O = u, O.forEach(function(S, w) {
  15084. S.plotX = S.prevX = N(S.plotX, x.width / 2 + M * Math.cos(w * f)), S.plotY = S.prevY = N(S.plotY, x.height / 2 + M * Math.sin(w * f)), S.dispX = 0, S.dispY = 0;
  15085. });
  15086. },
  15087. setRandomPositions: function() {
  15088. function b(E) {
  15089. return E = E * E / Math.PI, E -= Math.floor(E);
  15090. }
  15091. var x = this.box, u = this.nodes, f = u.length + 1;
  15092. u.forEach(function(E, O) {
  15093. E.plotX = E.prevX = N(E.plotX, x.width * b(O)), E.plotY = E.prevY = N(E.plotY, x.height * b(f + O)), E.dispX = 0, E.dispY = 0;
  15094. });
  15095. },
  15096. force: function(b) {
  15097. this.integration[b].apply(this, Array.prototype.slice.call(arguments, 1));
  15098. },
  15099. barycenterForces: function() {
  15100. this.getBarycenter(), this.force("barycenter");
  15101. },
  15102. getBarycenter: function() {
  15103. var b = 0, x = 0, u = 0;
  15104. return this.nodes.forEach(function(f) {
  15105. x += f.plotX * f.mass, u += f.plotY * f.mass, b += f.mass;
  15106. }), this.barycenter = { x, y: u, xFactor: x / b, yFactor: u / b };
  15107. },
  15108. barnesHutApproximation: function(b, x) {
  15109. var u = this.getDistXY(b, x), f = this.vectorLength(u);
  15110. if (b !== x && f !== 0)
  15111. if (x.isInternal)
  15112. if (x.boxSize / f < this.options.theta && f !== 0) {
  15113. var E = this.repulsiveForce(f, this.k);
  15114. this.force("repulsive", b, E * x.mass, u, f);
  15115. var O = !1;
  15116. } else
  15117. O = !0;
  15118. else
  15119. E = this.repulsiveForce(f, this.k), this.force("repulsive", b, E * x.mass, u, f);
  15120. return O;
  15121. },
  15122. repulsiveForces: function() {
  15123. var b = this;
  15124. b.approximation === "barnes-hut" ? b.nodes.forEach(function(x) {
  15125. b.quadTree.visitNodeRecursive(
  15126. null,
  15127. function(u) {
  15128. return b.barnesHutApproximation(x, u);
  15129. }
  15130. );
  15131. }) : b.nodes.forEach(function(x) {
  15132. b.nodes.forEach(function(u) {
  15133. if (x !== u && !x.fixedPosition) {
  15134. var f = b.getDistXY(x, u), E = b.vectorLength(f);
  15135. if (E !== 0) {
  15136. var O = b.repulsiveForce(E, b.k);
  15137. b.force("repulsive", x, O * u.mass, f, E);
  15138. }
  15139. }
  15140. });
  15141. });
  15142. },
  15143. attractiveForces: function() {
  15144. var b = this, x, u, f;
  15145. b.links.forEach(function(E) {
  15146. E.fromNode && E.toNode && (x = b.getDistXY(E.fromNode, E.toNode), u = b.vectorLength(x), u !== 0 && (f = b.attractiveForce(u, b.k), b.force("attractive", E, f, x, u)));
  15147. });
  15148. },
  15149. applyLimits: function() {
  15150. var b = this;
  15151. b.nodes.forEach(function(x) {
  15152. x.fixedPosition || (b.integration.integrate(b, x), b.applyLimitBox(x, b.box), x.dispX = 0, x.dispY = 0);
  15153. });
  15154. },
  15155. applyLimitBox: function(b, x) {
  15156. var u = b.radius;
  15157. b.plotX = H(b.plotX, x.left + u, x.width - u), b.plotY = H(b.plotY, x.top + u, x.height - u);
  15158. },
  15159. coolDown: function(b, x, u) {
  15160. return b - x * u;
  15161. },
  15162. isStable: function() {
  15163. return 1e-5 > Math.abs(this.systemTemperature - this.prevSystemTemperature) || 0 >= this.temperature;
  15164. },
  15165. getSystemTemperature: function() {
  15166. return this.nodes.reduce(function(b, x) {
  15167. return b + x.temperature;
  15168. }, 0);
  15169. },
  15170. vectorLength: function(b) {
  15171. return Math.sqrt(b.x * b.x + b.y * b.y);
  15172. },
  15173. getDistR: function(b, x) {
  15174. return b = this.getDistXY(b, x), this.vectorLength(b);
  15175. },
  15176. getDistXY: function(b, x) {
  15177. var u = b.plotX - x.plotX;
  15178. return b = b.plotY - x.plotY, { x: u, y: b, absX: Math.abs(u), absY: Math.abs(b) };
  15179. }
  15180. }), y(l, "predraw", function() {
  15181. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(b) {
  15182. b.stop();
  15183. });
  15184. }), y(l, "render", function() {
  15185. function b(f) {
  15186. f.maxIterations-- && isFinite(f.temperature) && !f.isStable() && !f.enableSimulation && (f.beforeStep && f.beforeStep(), f.step(), u = !1, x = !0);
  15187. }
  15188. var x = !1;
  15189. if (this.graphLayoutsLookup) {
  15190. for (Z(!1, this), this.graphLayoutsLookup.forEach(function(f) {
  15191. f.start();
  15192. }); !u; ) {
  15193. var u = !0;
  15194. this.graphLayoutsLookup.forEach(b);
  15195. }
  15196. x && this.series.forEach(function(f) {
  15197. f && f.layout && f.render();
  15198. });
  15199. }
  15200. }), y(l, "beforePrint", function() {
  15201. this.graphLayoutsLookup && (this.graphLayoutsLookup.forEach(function(b) {
  15202. b.updateSimulation(!1);
  15203. }), this.redraw());
  15204. }), y(l, "afterPrint", function() {
  15205. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(b) {
  15206. b.updateSimulation();
  15207. }), this.redraw();
  15208. });
  15209. }), T(d, "Series/PackedBubble/PackedBubbleComposition.js", [d["Core/Chart/Chart.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(l, y, j) {
  15210. var I = y.layouts["reingold-fruchterman"], Z = j.addEvent, H = j.extendClass, U = j.pick;
  15211. l.prototype.getSelectedParentNodes = function() {
  15212. var F = [];
  15213. return this.series.forEach(function(R) {
  15214. R.parentNode && R.parentNode.selected && F.push(R.parentNode);
  15215. }), F;
  15216. }, y.networkgraphIntegrations.packedbubble = { repulsiveForceFunction: function(F, R, N, b) {
  15217. return Math.min(F, (N.marker.radius + b.marker.radius) / 2);
  15218. }, barycenter: function() {
  15219. var F = this, R = F.options.gravitationalConstant, N = F.box, b = F.nodes, x, u;
  15220. b.forEach(function(f) {
  15221. F.options.splitSeries && !f.isParentNode ? (x = f.series.parentNode.plotX, u = f.series.parentNode.plotY) : (x = N.width / 2, u = N.height / 2), f.fixedPosition || (f.plotX -= (f.plotX - x) * R / (f.mass * Math.sqrt(b.length)), f.plotY -= (f.plotY - u) * R / (f.mass * Math.sqrt(b.length)));
  15222. });
  15223. }, repulsive: function(F, R, N, b) {
  15224. var x = R * this.diffTemperature / F.mass / F.degree;
  15225. R = N.x * x, N = N.y * x, F.fixedPosition || (F.plotX += R, F.plotY += N), b.fixedPosition || (b.plotX -= R, b.plotY -= N);
  15226. }, integrate: y.networkgraphIntegrations.verlet.integrate, getK: y.noop }, y.layouts.packedbubble = H(I, { beforeStep: function() {
  15227. this.options.marker && this.series.forEach(function(F) {
  15228. F && F.calculateParentRadius();
  15229. });
  15230. }, isStable: function() {
  15231. var F = Math.abs(this.prevSystemTemperature - this.systemTemperature);
  15232. return 1 > Math.abs(10 * this.systemTemperature / Math.sqrt(this.nodes.length)) && 1e-5 > F || 0 >= this.temperature;
  15233. }, setCircularPositions: function() {
  15234. var F = this, R = F.box, N = F.nodes, b = 2 * Math.PI / (N.length + 1), x, u, f = F.options.initialPositionRadius;
  15235. N.forEach(function(E, O) {
  15236. F.options.splitSeries && !E.isParentNode ? (x = E.series.parentNode.plotX, u = E.series.parentNode.plotY) : (x = R.width / 2, u = R.height / 2), E.plotX = E.prevX = U(E.plotX, x + f * Math.cos(E.index || O * b)), E.plotY = E.prevY = U(E.plotY, u + f * Math.sin(E.index || O * b)), E.dispX = 0, E.dispY = 0;
  15237. });
  15238. }, repulsiveForces: function() {
  15239. var F = this, R, N, b, x = F.options.bubblePadding;
  15240. F.nodes.forEach(function(u) {
  15241. u.degree = u.mass, u.neighbours = 0, F.nodes.forEach(function(f) {
  15242. R = 0, u === f || u.fixedPosition || !F.options.seriesInteraction && u.series !== f.series || (b = F.getDistXY(u, f), N = F.vectorLength(b) - (u.marker.radius + f.marker.radius + x), 0 > N && (u.degree += 0.01, u.neighbours++, R = F.repulsiveForce(-N / Math.sqrt(u.neighbours), F.k, u, f)), F.force("repulsive", u, R * f.mass, b, f, N));
  15243. });
  15244. });
  15245. }, applyLimitBox: function(F) {
  15246. if (this.options.splitSeries && !F.isParentNode && this.options.parentNodeLimit) {
  15247. var R = this.getDistXY(F, F.series.parentNode), N = F.series.parentNodeRadius - F.marker.radius - this.vectorLength(R);
  15248. 0 > N && N > -2 * F.marker.radius && (F.plotX -= 0.01 * R.x, F.plotY -= 0.01 * R.y);
  15249. }
  15250. I.prototype.applyLimitBox.apply(this, arguments);
  15251. } }), Z(l, "beforeRedraw", function() {
  15252. this.allDataPoints && delete this.allDataPoints;
  15253. });
  15254. }), T(d, "Series/PackedBubble/PackedBubbleSeries.js", [d["Core/Color/Color.js"], d["Core/Globals.js"], d["Series/PackedBubble/PackedBubblePoint.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(l, y, j, I, Z) {
  15255. var H = this && this.__extends || function() {
  15256. var w = function(v, a) {
  15257. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
  15258. c.__proto__ = p;
  15259. } || function(c, p) {
  15260. for (var i in p)
  15261. p.hasOwnProperty(i) && (c[i] = p[i]);
  15262. }, w(v, a);
  15263. };
  15264. return function(v, a) {
  15265. function c() {
  15266. this.constructor = v;
  15267. }
  15268. w(v, a), v.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c());
  15269. };
  15270. }(), U = l.parse, F = I.series, R = I.seriesTypes.bubble, N = Z.addEvent, b = Z.clamp, x = Z.defined, u = Z.extend, f = Z.fireEvent, E = Z.isArray, O = Z.isNumber, B = Z.merge, M = Z.pick, S = y.dragNodesMixin;
  15271. return l = function(w) {
  15272. function v() {
  15273. var a = w !== null && w.apply(this, arguments) || this;
  15274. return a.chart = void 0, a.data = void 0, a.layout = void 0, a.options = void 0, a.points = void 0, a.xData = void 0, a;
  15275. }
  15276. return H(v, w), v.prototype.accumulateAllPoints = function(a) {
  15277. var c = a.chart, p = [], i, h;
  15278. for (i = 0; i < c.series.length; i++)
  15279. if (a = c.series[i], a.is("packedbubble") && a.visible || !c.options.chart.ignoreHiddenSeries)
  15280. for (h = 0; h < a.yData.length; h++)
  15281. p.push([null, null, a.yData[h], a.index, h, { id: h, marker: { radius: 0 } }]);
  15282. return p;
  15283. }, v.prototype.addLayout = function() {
  15284. var a = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, p = this.chart.graphLayoutsLookup, i = this.chart.options.chart;
  15285. c || (this.chart.graphLayoutsStorage = c = {}, this.chart.graphLayoutsLookup = p = []);
  15286. var h = c[a.type];
  15287. h || (a.enableSimulation = x(i.forExport) ? !i.forExport : a.enableSimulation, c[a.type] = h = new y.layouts[a.type](), h.init(a), p.splice(h.index, 0, h)), this.layout = h, this.points.forEach(function(s) {
  15288. s.mass = 2, s.degree = 1, s.collisionNmb = 1;
  15289. }), h.setArea(0, 0, this.chart.plotWidth, this.chart.plotHeight), h.addElementsToCollection([this], h.series), h.addElementsToCollection(this.points, h.nodes);
  15290. }, v.prototype.addSeriesLayout = function() {
  15291. var a = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, p = this.chart.graphLayoutsLookup, i = B(a, a.parentNodeOptions, { enableSimulation: this.layout.options.enableSimulation }), h = c[a.type + "-series"];
  15292. h || (c[a.type + "-series"] = h = new y.layouts[a.type](), h.init(i), p.splice(h.index, 0, h)), this.parentNodeLayout = h, this.createParentNodes();
  15293. }, v.prototype.calculateParentRadius = function() {
  15294. var a = this.seriesBox();
  15295. this.parentNodeRadius = b(Math.sqrt(2 * this.parentNodeMass / Math.PI) + 20, 20, a ? Math.max(Math.sqrt(Math.pow(
  15296. a.width,
  15297. 2
  15298. ) + Math.pow(a.height, 2)) / 2 + 20, 20) : Math.sqrt(2 * this.parentNodeMass / Math.PI) + 20), this.parentNode && (this.parentNode.marker.radius = this.parentNode.radius = this.parentNodeRadius);
  15299. }, v.prototype.calculateZExtremes = function() {
  15300. var a = this.options.zMin, c = this.options.zMax, p = 1 / 0, i = -1 / 0;
  15301. return a && c ? [a, c] : (this.chart.series.forEach(function(h) {
  15302. h.yData.forEach(function(s) {
  15303. x(s) && (s > i && (i = s), s < p && (p = s));
  15304. });
  15305. }), a = M(a, p), c = M(c, i), [a, c]);
  15306. }, v.prototype.checkOverlap = function(a, c) {
  15307. var p = a[0] - c[0], i = a[1] - c[1];
  15308. return -1e-3 > Math.sqrt(p * p + i * i) - Math.abs(a[2] + c[2]);
  15309. }, v.prototype.createParentNodes = function() {
  15310. var a = this, c = a.chart, p = a.parentNodeLayout, i, h = a.parentNode, s = a.pointClass, t = a.layout.options, o = { radius: a.parentNodeRadius, lineColor: a.color, fillColor: U(a.color).brighten(0.4).get() };
  15311. t.parentNodeOptions && (o = B(t.parentNodeOptions.marker || {}, o)), a.parentNodeMass = 0, a.points.forEach(function(n) {
  15312. a.parentNodeMass += Math.PI * Math.pow(n.marker.radius, 2);
  15313. }), a.calculateParentRadius(), p.nodes.forEach(function(n) {
  15314. n.seriesIndex === a.index && (i = !0);
  15315. }), p.setArea(0, 0, c.plotWidth, c.plotHeight), i || (h || (h = new s().init(this, { mass: a.parentNodeRadius / 2, marker: o, dataLabels: { inside: !1 }, states: { normal: { marker: o }, hover: { marker: o } }, dataLabelOnNull: !0, degree: a.parentNodeRadius, isParentNode: !0, seriesIndex: a.index })), a.parentNode && (h.plotX = a.parentNode.plotX, h.plotY = a.parentNode.plotY), a.parentNode = h, p.addElementsToCollection([a], p.series), p.addElementsToCollection([h], p.nodes));
  15316. }, v.prototype.deferLayout = function() {
  15317. var a = this.options.layoutAlgorithm;
  15318. this.visible && (this.addLayout(), a.splitSeries && this.addSeriesLayout());
  15319. }, v.prototype.destroy = function() {
  15320. this.chart.graphLayoutsLookup && this.chart.graphLayoutsLookup.forEach(function(a) {
  15321. a.removeElementFromCollection(this, a.series);
  15322. }, this), this.parentNode && this.parentNodeLayout && (this.parentNodeLayout.removeElementFromCollection(this.parentNode, this.parentNodeLayout.nodes), this.parentNode.dataLabel && (this.parentNode.dataLabel = this.parentNode.dataLabel.destroy())), F.prototype.destroy.apply(this, arguments);
  15323. }, v.prototype.drawDataLabels = function() {
  15324. var a = this.options.dataLabels.textPath, c = this.points;
  15325. F.prototype.drawDataLabels.apply(this, arguments), this.parentNode && (this.parentNode.formatPrefix = "parentNode", this.points = [this.parentNode], this.options.dataLabels.textPath = this.options.dataLabels.parentNodeTextPath, F.prototype.drawDataLabels.apply(this, arguments), this.points = c, this.options.dataLabels.textPath = a);
  15326. }, v.prototype.drawGraph = function() {
  15327. if (this.layout && this.layout.options.splitSeries) {
  15328. var a = this.chart, c = this.layout.options.parentNodeOptions.marker, p = { fill: c.fillColor || U(this.color).brighten(0.4).get(), opacity: c.fillOpacity, stroke: c.lineColor || this.color, "stroke-width": M(c.lineWidth, this.options.lineWidth) };
  15329. this.parentNodesGroup || (this.parentNodesGroup = this.plotGroup("parentNodesGroup", "parentNode", this.visible ? "inherit" : "hidden", 0.1, a.seriesGroup), this.group.attr({ zIndex: 2 })), this.calculateParentRadius(), c = B({
  15330. x: this.parentNode.plotX - this.parentNodeRadius,
  15331. y: this.parentNode.plotY - this.parentNodeRadius,
  15332. width: 2 * this.parentNodeRadius,
  15333. height: 2 * this.parentNodeRadius
  15334. }, p), this.parentNode.graphic || (this.graph = this.parentNode.graphic = a.renderer.symbol(p.symbol).add(this.parentNodesGroup)), this.parentNode.graphic.attr(c);
  15335. }
  15336. }, v.prototype.drawTracker = function() {
  15337. var a = this.parentNode;
  15338. if (w.prototype.drawTracker.call(this), a) {
  15339. var c = E(a.dataLabels) ? a.dataLabels : a.dataLabel ? [a.dataLabel] : [];
  15340. a.graphic && (a.graphic.element.point = a), c.forEach(function(p) {
  15341. p.div ? p.div.point = a : p.element.point = a;
  15342. });
  15343. }
  15344. }, v.prototype.getPointRadius = function() {
  15345. var a = this, c = a.chart, p = a.options, i = p.useSimulation, h = Math.min(c.plotWidth, c.plotHeight), s = {}, t = [], o = c.allDataPoints, n, A, _, D;
  15346. ["minSize", "maxSize"].forEach(function(P) {
  15347. var X = parseInt(p[P], 10), g = /%$/.test(p[P]);
  15348. s[P] = g ? h * X / 100 : X * Math.sqrt(o.length);
  15349. }), c.minRadius = n = s.minSize / Math.sqrt(o.length), c.maxRadius = A = s.maxSize / Math.sqrt(o.length);
  15350. var W = i ? a.calculateZExtremes() : [n, A];
  15351. (o || []).forEach(function(P, X) {
  15352. _ = i ? b(P[2], W[0], W[1]) : P[2], D = a.getRadius(W[0], W[1], n, A, _), D === 0 && (D = null), o[X][2] = D, t.push(D);
  15353. }), a.radii = t;
  15354. }, v.prototype.init = function() {
  15355. return F.prototype.init.apply(this, arguments), this.eventsToUnbind.push(N(this, "updatedData", function() {
  15356. this.chart.series.forEach(function(a) {
  15357. a.type === this.type && (a.isDirty = !0);
  15358. }, this);
  15359. })), this;
  15360. }, v.prototype.onMouseUp = function(a) {
  15361. if (a.fixedPosition && !a.removed) {
  15362. var c, p, i = this.layout, h = this.parentNodeLayout;
  15363. h && i.options.dragBetweenSeries && h.nodes.forEach(function(s) {
  15364. a && a.marker && s !== a.series.parentNode && (c = i.getDistXY(a, s), p = i.vectorLength(c) - s.marker.radius - a.marker.radius, 0 > p && (s.series.addPoint(B(a.options, { plotX: a.plotX, plotY: a.plotY }), !1), i.removeElementFromCollection(a, i.nodes), a.remove()));
  15365. }), S.onMouseUp.apply(this, arguments);
  15366. }
  15367. }, v.prototype.placeBubbles = function(a) {
  15368. var c = this.checkOverlap, p = this.positionBubble, i = [], h = 1, s = 0, t = 0, o = [], n;
  15369. if (a = a.sort(function(A, _) {
  15370. return _[2] - A[2];
  15371. }), a.length) {
  15372. if (i.push([[0, 0, a[0][2], a[0][3], a[0][4]]]), 1 < a.length)
  15373. for (i.push([[0, 0 - a[1][2] - a[0][2], a[1][2], a[1][3], a[1][4]]]), n = 2; n < a.length; n++)
  15374. a[n][2] = a[n][2] || 1, o = p(i[h][s], i[h - 1][t], a[n]), c(o, i[h][0]) ? (i.push([]), t = 0, i[h + 1].push(p(i[h][s], i[h][0], a[n])), h++, s = 0) : 1 < h && i[h - 1][t + 1] && c(o, i[h - 1][t + 1]) ? (t++, i[h].push(p(i[h][s], i[h - 1][t], a[n])), s++) : (s++, i[h].push(o));
  15375. this.chart.stages = i, this.chart.rawPositions = [].concat.apply([], i), this.resizeRadius(), o = this.chart.rawPositions;
  15376. }
  15377. return o;
  15378. }, v.prototype.pointAttribs = function(a, c) {
  15379. var p = this.options, i = p.marker;
  15380. return a && a.isParentNode && p.layoutAlgorithm && p.layoutAlgorithm.parentNodeOptions && (i = p.layoutAlgorithm.parentNodeOptions.marker), p = i.fillOpacity, a = F.prototype.pointAttribs.call(this, a, c), p !== 1 && (a["fill-opacity"] = p), a;
  15381. }, v.prototype.positionBubble = function(a, c, p) {
  15382. var i = Math.sqrt, h = Math.asin, s = Math.acos, t = Math.pow, o = Math.abs;
  15383. return i = i(t(a[0] - c[0], 2) + t(a[1] - c[1], 2)), s = s((t(i, 2) + t(p[2] + c[2], 2) - t(p[2] + a[2], 2)) / (2 * (p[2] + c[2]) * i)), h = h(o(a[0] - c[0]) / i), a = (0 > a[1] - c[1] ? 0 : Math.PI) + s + h * (0 > (a[0] - c[0]) * (a[1] - c[1]) ? 1 : -1), [c[0] + (c[2] + p[2]) * Math.sin(a), c[1] - (c[2] + p[2]) * Math.cos(a), p[2], p[3], p[4]];
  15384. }, v.prototype.render = function() {
  15385. var a = [];
  15386. F.prototype.render.apply(this, arguments), this.options.dataLabels.allowOverlap || (this.data.forEach(function(c) {
  15387. E(c.dataLabels) && c.dataLabels.forEach(function(p) {
  15388. a.push(p);
  15389. });
  15390. }), this.options.useSimulation && this.chart.hideOverlappingLabels(a));
  15391. }, v.prototype.resizeRadius = function() {
  15392. var a = this.chart, c = a.rawPositions, p = Math.min, i = Math.max, h = a.plotLeft, s = a.plotTop, t = a.plotHeight, o = a.plotWidth, n, A, _, D = n = Number.POSITIVE_INFINITY, W = A = Number.NEGATIVE_INFINITY;
  15393. for (_ = 0; _ < c.length; _++) {
  15394. var P = c[_][2];
  15395. D = p(
  15396. D,
  15397. c[_][0] - P
  15398. ), W = i(W, c[_][0] + P), n = p(n, c[_][1] - P), A = i(A, c[_][1] + P);
  15399. }
  15400. if (_ = [W - D, A - n], p = p.apply([], [(o - h) / _[0], (t - s) / _[1]]), 1e-10 < Math.abs(p - 1)) {
  15401. for (_ = 0; _ < c.length; _++)
  15402. c[_][2] *= p;
  15403. this.placeBubbles(c);
  15404. } else
  15405. a.diffY = t / 2 + s - n - (A - n) / 2, a.diffX = o / 2 + h - D - (W - D) / 2;
  15406. }, v.prototype.seriesBox = function() {
  15407. var a = this.chart, c = Math.max, p = Math.min, i, h = [a.plotLeft, a.plotLeft + a.plotWidth, a.plotTop, a.plotTop + a.plotHeight];
  15408. return this.data.forEach(function(s) {
  15409. x(s.plotX) && x(s.plotY) && s.marker.radius && (i = s.marker.radius, h[0] = p(h[0], s.plotX - i), h[1] = c(h[1], s.plotX + i), h[2] = p(h[2], s.plotY - i), h[3] = c(h[3], s.plotY + i));
  15410. }), O(h.width / h.height) ? h : null;
  15411. }, v.prototype.setVisible = function() {
  15412. var a = this;
  15413. F.prototype.setVisible.apply(a, arguments), a.parentNodeLayout && a.graph ? a.visible ? (a.graph.show(), a.parentNode.dataLabel && a.parentNode.dataLabel.show()) : (a.graph.hide(), a.parentNodeLayout.removeElementFromCollection(a.parentNode, a.parentNodeLayout.nodes), a.parentNode.dataLabel && a.parentNode.dataLabel.hide()) : a.layout && (a.visible ? a.layout.addElementsToCollection(
  15414. a.points,
  15415. a.layout.nodes
  15416. ) : a.points.forEach(function(c) {
  15417. a.layout.removeElementFromCollection(c, a.layout.nodes);
  15418. }));
  15419. }, v.prototype.translate = function() {
  15420. var a = this.chart, c = this.data, p = this.index, i, h = this.options.useSimulation;
  15421. if (this.processedXData = this.xData, this.generatePoints(), x(a.allDataPoints) || (a.allDataPoints = this.accumulateAllPoints(this), this.getPointRadius()), h)
  15422. var s = a.allDataPoints;
  15423. else
  15424. s = this.placeBubbles(a.allDataPoints), this.options.draggable = !1;
  15425. for (i = 0; i < s.length; i++)
  15426. if (s[i][3] === p) {
  15427. var t = c[s[i][4]], o = M(s[i][2], void 0);
  15428. h || (t.plotX = s[i][0] - a.plotLeft + a.diffX, t.plotY = s[i][1] - a.plotTop + a.diffY), O(o) && (t.marker = u(t.marker, { radius: o, width: 2 * o, height: 2 * o }), t.radius = o);
  15429. }
  15430. h && this.deferLayout(), f(this, "afterTranslate");
  15431. }, v.defaultOptions = B(R.defaultOptions, { minSize: "10%", maxSize: "50%", sizeBy: "area", zoneAxis: "y", crisp: !1, tooltip: { pointFormat: "Value: {point.value}" }, draggable: !0, useSimulation: !0, parentNode: { allowPointSelect: !1 }, dataLabels: { formatter: function() {
  15432. var a = this.series.chart.numberFormatter, c = this.point.value;
  15433. return O(c) ? a(c, -1) : "";
  15434. }, parentNodeFormatter: function() {
  15435. return this.name;
  15436. }, parentNodeTextPath: { enabled: !0 }, padding: 0, style: { transition: "opacity 2000ms" } }, layoutAlgorithm: { initialPositions: "circle", initialPositionRadius: 20, bubblePadding: 5, parentNodeLimit: !1, seriesInteraction: !0, dragBetweenSeries: !1, parentNodeOptions: { maxIterations: 400, gravitationalConstant: 0.03, maxSpeed: 50, initialPositionRadius: 100, seriesInteraction: !0, marker: {
  15437. fillColor: null,
  15438. fillOpacity: 1,
  15439. lineWidth: null,
  15440. lineColor: null,
  15441. symbol: "circle"
  15442. } }, enableSimulation: !0, type: "packedbubble", integration: "packedbubble", maxIterations: 1e3, splitSeries: !1, maxSpeed: 5, gravitationalConstant: 0.01, friction: -0.981 } }), v;
  15443. }(R), u(l.prototype, {
  15444. alignDataLabel: F.prototype.alignDataLabel,
  15445. axisTypes: [],
  15446. directTouch: !0,
  15447. forces: ["barycenter", "repulsive"],
  15448. hasDraggableNodes: !0,
  15449. isCartesian: !1,
  15450. noSharedTooltip: !0,
  15451. onMouseDown: S.onMouseDown,
  15452. onMouseMove: S.onMouseMove,
  15453. pointArrayMap: ["value"],
  15454. pointClass: j,
  15455. pointValKey: "value",
  15456. redrawHalo: S.redrawHalo,
  15457. requireSorting: !1,
  15458. searchPoint: y.noop,
  15459. trackerGroups: ["group", "dataLabelsGroup", "parentNodesGroup"]
  15460. }), I.registerSeriesType("packedbubble", l), l;
  15461. }), T(d, "Series/Polygon/PolygonSeries.js", [d["Core/Globals.js"], d["Core/Legend/LegendSymbol.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  15462. var Z = this && this.__extends || function() {
  15463. var x = function(u, f) {
  15464. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(E, O) {
  15465. E.__proto__ = O;
  15466. } || function(E, O) {
  15467. for (var B in O)
  15468. O.hasOwnProperty(B) && (E[B] = O[B]);
  15469. }, x(u, f);
  15470. };
  15471. return function(u, f) {
  15472. function E() {
  15473. this.constructor = u;
  15474. }
  15475. x(u, f), u.prototype = f === null ? Object.create(f) : (E.prototype = f.prototype, new E());
  15476. };
  15477. }();
  15478. l = l.noop;
  15479. var H = j.series, U = j.seriesTypes, F = U.area, R = U.line, N = U.scatter;
  15480. U = I.extend;
  15481. var b = I.merge;
  15482. return I = function(x) {
  15483. function u() {
  15484. var f = x !== null && x.apply(this, arguments) || this;
  15485. return f.data = void 0, f.options = void 0, f.points = void 0, f;
  15486. }
  15487. return Z(u, x), u.prototype.getGraphPath = function() {
  15488. for (var f = R.prototype.getGraphPath.call(this), E = f.length + 1; E--; )
  15489. (E === f.length || f[E][0] === "M") && 0 < E && f.splice(E, 0, ["Z"]);
  15490. return this.areaPath = f;
  15491. }, u.prototype.drawGraph = function() {
  15492. this.options.fillColor = this.color, F.prototype.drawGraph.call(this);
  15493. }, u.defaultOptions = b(N.defaultOptions, { marker: { enabled: !1, states: { hover: { enabled: !1 } } }, stickyTracking: !1, tooltip: { followPointer: !0, pointFormat: "" }, trackByArea: !0 }), u;
  15494. }(N), U(I.prototype, { type: "polygon", drawLegendSymbol: y.drawRectangle, drawTracker: H.prototype.drawTracker, setStackedPoints: l }), j.registerSeriesType("polygon", I), I;
  15495. }), T(d, "Core/Axis/WaterfallAxis.js", [d["Extensions/Stacking.js"], d["Core/Utilities.js"]], function(l, y) {
  15496. var j = y.addEvent, I = y.objectEach, Z;
  15497. return function(H) {
  15498. function U() {
  15499. var x = this.waterfall.stacks;
  15500. x && (x.changed = !1, delete x.alreadyChanged);
  15501. }
  15502. function F() {
  15503. var x = this.options.stackLabels;
  15504. x && x.enabled && this.waterfall.stacks && this.waterfall.renderStackTotals();
  15505. }
  15506. function R() {
  15507. for (var x = this.axes, u = this.series, f = u.length; f--; )
  15508. u[f].options.stacking && (x.forEach(function(E) {
  15509. E.isXAxis || (E.waterfall.stacks.changed = !0);
  15510. }), f = 0);
  15511. }
  15512. function N() {
  15513. this.waterfall || (this.waterfall = new b(this));
  15514. }
  15515. var b = function() {
  15516. function x(u) {
  15517. this.axis = u, this.stacks = { changed: !1 };
  15518. }
  15519. return x.prototype.renderStackTotals = function() {
  15520. var u = this.axis, f = u.waterfall.stacks, E = u.stacking && u.stacking.stackTotalGroup, O = new l(u, u.options.stackLabels, !1, 0, void 0);
  15521. this.dummyStackItem = O, I(f, function(B) {
  15522. I(B, function(M) {
  15523. O.total = M.stackTotal, M.label && (O.label = M.label), l.prototype.render.call(O, E), M.label = O.label, delete O.label;
  15524. });
  15525. }), O.total = null;
  15526. }, x;
  15527. }();
  15528. H.Composition = b, H.compose = function(x, u) {
  15529. j(x, "init", N), j(x, "afterBuildStacks", U), j(x, "afterRender", F), j(u, "beforeRedraw", R);
  15530. };
  15531. }(Z || (Z = {})), Z;
  15532. }), T(d, "Series/Waterfall/WaterfallPoint.js", [d["Series/Column/ColumnSeries.js"], d["Core/Series/Point.js"], d["Core/Utilities.js"]], function(l, y, j) {
  15533. var I = this && this.__extends || function() {
  15534. var H = function(U, F) {
  15535. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(R, N) {
  15536. R.__proto__ = N;
  15537. } || function(R, N) {
  15538. for (var b in N)
  15539. N.hasOwnProperty(b) && (R[b] = N[b]);
  15540. }, H(U, F);
  15541. };
  15542. return function(U, F) {
  15543. function R() {
  15544. this.constructor = U;
  15545. }
  15546. H(U, F), U.prototype = F === null ? Object.create(F) : (R.prototype = F.prototype, new R());
  15547. };
  15548. }(), Z = j.isNumber;
  15549. return function(H) {
  15550. function U() {
  15551. var F = H !== null && H.apply(this, arguments) || this;
  15552. return F.options = void 0, F.series = void 0, F;
  15553. }
  15554. return I(U, H), U.prototype.getClassName = function() {
  15555. var F = y.prototype.getClassName.call(this);
  15556. return this.isSum ? F += " highcharts-sum" : this.isIntermediateSum && (F += " highcharts-intermediate-sum"), F;
  15557. }, U.prototype.isValid = function() {
  15558. return Z(this.y) || this.isSum || !!this.isIntermediateSum;
  15559. }, U;
  15560. }(l.prototype.pointClass);
  15561. }), T(d, "Series/Waterfall/WaterfallSeries.js", [d["Core/Axis/Axis.js"], d["Core/Chart/Chart.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"], d["Core/Axis/WaterfallAxis.js"], d["Series/Waterfall/WaterfallPoint.js"]], function(l, y, j, I, Z, H) {
  15562. var U = this && this.__extends || function() {
  15563. var M = function(S, w) {
  15564. return M = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, a) {
  15565. v.__proto__ = a;
  15566. } || function(v, a) {
  15567. for (var c in a)
  15568. a.hasOwnProperty(c) && (v[c] = a[c]);
  15569. }, M(S, w);
  15570. };
  15571. return function(S, w) {
  15572. function v() {
  15573. this.constructor = S;
  15574. }
  15575. M(S, w), S.prototype = w === null ? Object.create(w) : (v.prototype = w.prototype, new v());
  15576. };
  15577. }(), F = j.seriesTypes, R = F.column, N = F.line, b = I.arrayMax, x = I.arrayMin, u = I.correctFloat;
  15578. F = I.extend;
  15579. var f = I.isNumber, E = I.merge, O = I.objectEach, B = I.pick;
  15580. return I = function(M) {
  15581. function S() {
  15582. var w = M !== null && M.apply(this, arguments) || this;
  15583. return w.chart = void 0, w.data = void 0, w.options = void 0, w.points = void 0, w.stackedYNeg = void 0, w.stackedYPos = void 0, w.stackKey = void 0, w.xData = void 0, w.yAxis = void 0, w.yData = void 0, w;
  15584. }
  15585. return U(S, M), S.prototype.generatePoints = function() {
  15586. var w;
  15587. R.prototype.generatePoints.apply(this);
  15588. var v = 0;
  15589. for (w = this.points.length; v < w; v++) {
  15590. var a = this.points[v], c = this.processedYData[v];
  15591. (a.isIntermediateSum || a.isSum) && (a.y = u(c));
  15592. }
  15593. }, S.prototype.translate = function() {
  15594. var w = this.options, v = this.yAxis, a = B(w.minPointLength, 5), c = a / 2, p = w.threshold || 0, i = p, h = p;
  15595. w = w.stacking;
  15596. var s = v.waterfall.stacks[this.stackKey];
  15597. R.prototype.translate.apply(this);
  15598. for (var t = this.points, o = 0; o < t.length; o++) {
  15599. var n = t[o], A = this.processedYData[o], _ = n.shapeArgs;
  15600. if (_ && f(A)) {
  15601. var D = [0, A], W = n.y;
  15602. if (w) {
  15603. if (s) {
  15604. if (D = s[o], w === "overlap") {
  15605. var P = D.stackState[D.stateIndex--];
  15606. P = 0 <= W ? P : P - W, Object.hasOwnProperty.call(D, "absolutePos") && delete D.absolutePos, Object.hasOwnProperty.call(D, "absoluteNeg") && delete D.absoluteNeg;
  15607. } else
  15608. 0 <= W ? (P = D.threshold + D.posTotal, D.posTotal -= W) : (P = D.threshold + D.negTotal, D.negTotal -= W, P -= W), !D.posTotal && Object.hasOwnProperty.call(D, "absolutePos") && (D.posTotal = D.absolutePos, delete D.absolutePos), !D.negTotal && Object.hasOwnProperty.call(D, "absoluteNeg") && (D.negTotal = D.absoluteNeg, delete D.absoluteNeg);
  15609. n.isSum || (D.connectorThreshold = D.threshold + D.stackTotal), v.reversed ? (A = 0 <= W ? P - W : P + W, W = P) : (A = P, W = P - W), n.below = A <= p, _.y = v.translate(A, !1, !0, !1, !0) || 0, _.height = Math.abs(_.y - (v.translate(W, !1, !0, !1, !0) || 0)), (W = v.waterfall.dummyStackItem) && (W.x = o, W.label = s[o].label, W.setOffset(this.pointXOffset || 0, this.barW || 0, this.stackedYNeg[o], this.stackedYPos[o]));
  15610. }
  15611. } else
  15612. P = Math.max(i, i + W) + D[0], _.y = v.translate(
  15613. P,
  15614. !1,
  15615. !0,
  15616. !1,
  15617. !0
  15618. ) || 0, n.isSum ? (_.y = v.translate(D[1], !1, !0, !1, !0) || 0, _.height = Math.min(v.translate(D[0], !1, !0, !1, !0) || 0, v.len) - _.y, n.below = D[1] <= p) : n.isIntermediateSum ? (0 <= W ? (A = D[1] + h, W = h) : (A = h, W = D[1] + h), v.reversed && (A ^= W, W ^= A, A ^= W), _.y = v.translate(A, !1, !0, !1, !0) || 0, _.height = Math.abs(_.y - Math.min(v.translate(W, !1, !0, !1, !0) || 0, v.len)), h += D[1], n.below = A <= p) : (_.height = 0 < A ? (v.translate(i, !1, !0, !1, !0) || 0) - _.y : (v.translate(i, !1, !0, !1, !0) || 0) - (v.translate(i - A, !1, !0, !1, !0) || 0), i += A, n.below = i < p), 0 > _.height && (_.y += _.height, _.height *= -1);
  15619. n.plotY = _.y = Math.round(_.y || 0) - this.borderWidth % 2 / 2, _.height = Math.max(Math.round(_.height || 0), 1e-3), n.yBottom = _.y + _.height, _.height <= a && !n.isNull ? (_.height = a, _.y -= c, n.plotY = _.y, n.minPointLengthOffset = 0 > n.y ? -c : c) : (n.isNull && (_.width = 0), n.minPointLengthOffset = 0), W = n.plotY + (n.negative ? _.height : 0), n.below && (n.plotY += _.height), n.tooltipPos && (this.chart.inverted ? n.tooltipPos[0] = v.len - W : n.tooltipPos[1] = W);
  15620. }
  15621. }
  15622. }, S.prototype.processData = function(w) {
  15623. var v = this.options, a = this.yData, c = v.data, p = a.length, i = v.threshold || 0, h, s, t, o, n;
  15624. for (n = s = h = t = o = 0; n < p; n++) {
  15625. var A = a[n], _ = c && c[n] ? c[n] : {};
  15626. A === "sum" || _.isSum ? a[n] = u(s) : A === "intermediateSum" || _.isIntermediateSum ? (a[n] = u(h), h = 0) : (s += A, h += A), t = Math.min(s, t), o = Math.max(s, o);
  15627. }
  15628. M.prototype.processData.call(this, w), v.stacking || (this.dataMin = t + i, this.dataMax = o);
  15629. }, S.prototype.toYData = function(w) {
  15630. return w.isSum ? "sum" : w.isIntermediateSum ? "intermediateSum" : w.y;
  15631. }, S.prototype.updateParallelArrays = function(w, v) {
  15632. M.prototype.updateParallelArrays.call(this, w, v), (this.yData[0] === "sum" || this.yData[0] === "intermediateSum") && (this.yData[0] = null);
  15633. }, S.prototype.pointAttribs = function(w, v) {
  15634. var a = this.options.upColor;
  15635. return a && !w.options.color && (w.color = 0 < w.y ? a : null), w = R.prototype.pointAttribs.call(this, w, v), delete w.dashstyle, w;
  15636. }, S.prototype.getGraphPath = function() {
  15637. return [["M", 0, 0]];
  15638. }, S.prototype.getCrispPath = function() {
  15639. var w = this.data, v = this.yAxis, a = w.length, c = Math.round(this.graph.strokeWidth()) % 2 / 2, p = Math.round(this.borderWidth) % 2 / 2, i = this.xAxis.reversed, h = this.yAxis.reversed, s = this.options.stacking, t = [], o;
  15640. for (o = 1; o < a; o++) {
  15641. var n = w[o].shapeArgs, A = w[o - 1], _ = w[o - 1].shapeArgs, D = v.waterfall.stacks[this.stackKey], W = 0 < A.y ? -_.height : 0;
  15642. D && _ && n && (D = D[o - 1], s ? (D = D.connectorThreshold, W = Math.round(v.translate(D, 0, 1, 0, 1) + (h ? W : 0)) - c) : W = _.y + A.minPointLengthOffset + p - c, t.push(["M", (_.x || 0) + (i ? 0 : _.width || 0), W], ["L", (n.x || 0) + (i && n.width || 0), W])), _ && t.length && (!s && 0 > A.y && !h || 0 < A.y && h) && ((A = t[t.length - 2]) && typeof A[2] == "number" && (A[2] += _.height || 0), (A = t[t.length - 1]) && typeof A[2] == "number" && (A[2] += _.height || 0));
  15643. }
  15644. return t;
  15645. }, S.prototype.drawGraph = function() {
  15646. N.prototype.drawGraph.call(this), this.graph.attr({ d: this.getCrispPath() });
  15647. }, S.prototype.setStackedPoints = function() {
  15648. function w(V, Q, k, G) {
  15649. if (Y)
  15650. for (k; k < Y; k++)
  15651. X.stackState[k] += G;
  15652. else
  15653. X.stackState[0] = V, Y = X.stackState.length;
  15654. X.stackState.push(X.stackState[Y - 1] + Q);
  15655. }
  15656. var v = this.options, a = this.yAxis.waterfall.stacks, c = v.threshold, p = c || 0, i = p, h = this.stackKey, s = this.xData, t = s.length, o, n, A;
  15657. this.yAxis.stacking.usePercentage = !1;
  15658. var _ = n = A = p;
  15659. if (this.visible || !this.chart.options.chart.ignoreHiddenSeries) {
  15660. var D = a.changed;
  15661. (o = a.alreadyChanged) && 0 > o.indexOf(h) && (D = !0), a[h] || (a[h] = {}), o = a[h];
  15662. for (var W = 0; W < t; W++) {
  15663. var P = s[W];
  15664. (!o[P] || D) && (o[P] = { negTotal: 0, posTotal: 0, stackTotal: 0, threshold: 0, stateIndex: 0, stackState: [], label: D && o[P] ? o[P].label : void 0 });
  15665. var X = o[P], g = this.yData[W];
  15666. 0 <= g ? X.posTotal += g : X.negTotal += g;
  15667. var m = v.data[W];
  15668. P = X.absolutePos = X.posTotal;
  15669. var L = X.absoluteNeg = X.negTotal;
  15670. X.stackTotal = P + L;
  15671. var Y = X.stackState.length;
  15672. m && m.isIntermediateSum ? (w(A, n, 0, A), A = n, n = c, p ^= i, i ^= p, p ^= i) : m && m.isSum ? (w(c, _, Y), p = c) : (w(p, g, 0, _), m && (_ += g, n += g)), X.stateIndex++, X.threshold = p, p += X.stackTotal;
  15673. }
  15674. a.changed = !1, a.alreadyChanged || (a.alreadyChanged = []), a.alreadyChanged.push(h);
  15675. }
  15676. }, S.prototype.getExtremes = function() {
  15677. var w = this.options.stacking;
  15678. if (w) {
  15679. var v = this.yAxis;
  15680. v = v.waterfall.stacks;
  15681. var a = this.stackedYNeg = [], c = this.stackedYPos = [];
  15682. return w === "overlap" ? O(v[this.stackKey], function(p) {
  15683. a.push(x(p.stackState)), c.push(b(p.stackState));
  15684. }) : O(v[this.stackKey], function(p) {
  15685. a.push(p.negTotal + p.threshold), c.push(p.posTotal + p.threshold);
  15686. }), { dataMin: x(a), dataMax: b(c) };
  15687. }
  15688. return { dataMin: this.dataMin, dataMax: this.dataMax };
  15689. }, S.defaultOptions = E(R.defaultOptions, { dataLabels: { inside: !0 }, lineWidth: 1, lineColor: "#333333", dashStyle: "Dot", borderColor: "#333333", states: { hover: { lineWidthPlus: 0 } } }), S;
  15690. }(R), F(I.prototype, { getZonesGraphs: N.prototype.getZonesGraphs, pointValKey: "y", showLine: !0, pointClass: H }), j.registerSeriesType("waterfall", I), Z.compose(l, y), I;
  15691. }), T(d, "Extensions/Polar.js", [
  15692. d["Core/Animation/AnimationUtilities.js"],
  15693. d["Core/Chart/Chart.js"],
  15694. d["Core/Globals.js"],
  15695. d["Extensions/Pane.js"],
  15696. d["Core/Pointer.js"],
  15697. d["Core/Series/Series.js"],
  15698. d["Core/Series/SeriesRegistry.js"],
  15699. d["Core/Renderer/SVG/SVGRenderer.js"],
  15700. d["Core/Utilities.js"]
  15701. ], function(l, y, j, I, Z, H, U, F, R) {
  15702. var N = l.animObject;
  15703. U = U.seriesTypes;
  15704. var b = R.addEvent, x = R.defined, u = R.find, f = R.isNumber, E = R.pick, O = R.splat, B = R.uniqueKey;
  15705. l = R.wrap;
  15706. var M = H.prototype;
  15707. Z = Z.prototype, M.searchPointByAngle = function(v) {
  15708. var a = this.chart, c = this.xAxis.pane.center;
  15709. return this.searchKDTree({ clientX: 180 + -180 / Math.PI * Math.atan2(v.chartX - c[0] - a.plotLeft, v.chartY - c[1] - a.plotTop) });
  15710. }, M.getConnectors = function(v, a, c, p) {
  15711. var i = p ? 1 : 0, h = 0 <= a && a <= v.length - 1 ? a : 0 > a ? v.length - 1 + a : 0;
  15712. a = 0 > h - 1 ? v.length - (1 + i) : h - 1, i = h + 1 > v.length - 1 ? i : h + 1;
  15713. var s = v[a];
  15714. i = v[i];
  15715. var t = s.plotX;
  15716. s = s.plotY;
  15717. var o = i.plotX, n = i.plotY;
  15718. i = v[h].plotX, h = v[h].plotY, t = (1.5 * i + t) / 2.5, s = (1.5 * h + s) / 2.5, o = (1.5 * i + o) / 2.5;
  15719. var A = (1.5 * h + n) / 2.5;
  15720. n = Math.sqrt(Math.pow(t - i, 2) + Math.pow(s - h, 2));
  15721. var _ = Math.sqrt(Math.pow(o - i, 2) + Math.pow(A - h, 2));
  15722. return t = Math.atan2(s - h, t - i), A = Math.PI / 2 + (t + Math.atan2(A - h, o - i)) / 2, Math.abs(t - A) > Math.PI / 2 && (A -= Math.PI), t = i + Math.cos(A) * n, s = h + Math.sin(A) * n, o = i + Math.cos(Math.PI + A) * _, A = h + Math.sin(Math.PI + A) * _, i = { rightContX: o, rightContY: A, leftContX: t, leftContY: s, plotX: i, plotY: h }, c && (i.prevPointCont = this.getConnectors(v, a, !1, p)), i;
  15723. }, M.toXY = function(v) {
  15724. var a = this.chart, c = this.xAxis, p = this.yAxis, i = v.plotX, h = v.plotY, s = v.series, t = a.inverted, o = v.y, n = t ? i : p.len - h;
  15725. t && s && !s.isRadialBar && (v.plotY = h = typeof o == "number" && p.translate(o) || 0), v.rectPlotX = i, v.rectPlotY = h, p.center && (n += p.center[3] / 2), f(h) && (p = t ? p.postTranslate(h, n) : c.postTranslate(i, n), v.plotX = v.polarPlotX = p.x - a.plotLeft, v.plotY = v.polarPlotY = p.y - a.plotTop), this.kdByAngle ? (a = (i / Math.PI * 180 + c.pane.options.startAngle) % 360, 0 > a && (a += 360), v.clientX = a) : v.clientX = v.plotX;
  15726. }, U.spline && (l(U.spline.prototype, "getPointSpline", function(v, a, c, p) {
  15727. return this.chart.polar ? p ? (v = this.getConnectors(a, p, !0, this.connectEnds), a = v.prevPointCont && v.prevPointCont.rightContX, c = v.prevPointCont && v.prevPointCont.rightContY, v = ["C", f(a) ? a : v.plotX, f(c) ? c : v.plotY, f(v.leftContX) ? v.leftContX : v.plotX, f(v.leftContY) ? v.leftContY : v.plotY, v.plotX, v.plotY]) : v = ["M", c.plotX, c.plotY] : v = v.call(this, a, c, p), v;
  15728. }), U.areasplinerange && (U.areasplinerange.prototype.getPointSpline = U.spline.prototype.getPointSpline)), b(H, "afterTranslate", function() {
  15729. var v = this.chart;
  15730. if (v.polar && this.xAxis) {
  15731. if ((this.kdByAngle = v.tooltip && v.tooltip.shared) ? this.searchPoint = this.searchPointByAngle : this.options.findNearestPointBy = "xy", !this.preventPostTranslate)
  15732. for (var a = this.points, c = a.length; c--; )
  15733. this.toXY(a[c]), !v.hasParallelCoordinates && !this.yAxis.reversed && a[c].y < this.yAxis.min && (a[c].isNull = !0);
  15734. this.hasClipCircleSetter || (this.hasClipCircleSetter = !!this.eventsToUnbind.push(b(this, "afterRender", function() {
  15735. if (v.polar) {
  15736. var p = this.yAxis.pane.center;
  15737. this.clipCircle ? this.clipCircle.animate({ x: p[0], y: p[1], r: p[2] / 2, innerR: p[3] / 2 }) : this.clipCircle = v.renderer.clipCircle(p[0], p[1], p[2] / 2, p[3] / 2), this.group.clip(this.clipCircle), this.setClip = j.noop;
  15738. }
  15739. })));
  15740. }
  15741. }, { order: 2 }), l(
  15742. U.line.prototype,
  15743. "getGraphPath",
  15744. function(v, a) {
  15745. var c = this, p;
  15746. if (this.chart.polar) {
  15747. for (a = a || this.points, p = 0; p < a.length; p++)
  15748. if (!a[p].isNull) {
  15749. var i = p;
  15750. break;
  15751. }
  15752. if (this.options.connectEnds !== !1 && typeof i < "u") {
  15753. this.connectEnds = !0, a.splice(a.length, 0, a[i]);
  15754. var h = !0;
  15755. }
  15756. a.forEach(function(s) {
  15757. typeof s.polarPlotY > "u" && c.toXY(s);
  15758. });
  15759. }
  15760. return p = v.apply(this, [].slice.call(arguments, 1)), h && a.pop(), p;
  15761. }
  15762. );
  15763. var S = function(v, a) {
  15764. var c = this, p = this.chart, i = this.options.animation, h = this.group, s = this.markerGroup, t = this.xAxis && this.xAxis.center, o = p.plotLeft, n = p.plotTop, A, _, D, W;
  15765. if (p.polar) {
  15766. if (c.isRadialBar)
  15767. a || (c.startAngleRad = E(c.translatedThreshold, c.xAxis.startAngleRad), j.seriesTypes.pie.prototype.animate.call(c, a));
  15768. else if (p.renderer.isSVG)
  15769. if (i = N(i), c.is("column")) {
  15770. if (!a) {
  15771. var P = t[3] / 2;
  15772. c.points.forEach(function(X) {
  15773. A = X.graphic, D = (_ = X.shapeArgs) && _.r, W = _ && _.innerR, A && _ && (A.attr({ r: P, innerR: P }), A.animate({ r: D, innerR: W }, c.options.animation));
  15774. });
  15775. }
  15776. } else
  15777. a ? (v = { translateX: t[0] + o, translateY: t[1] + n, scaleX: 1e-3, scaleY: 1e-3 }, h.attr(v), s && s.attr(v)) : (v = { translateX: o, translateY: n, scaleX: 1, scaleY: 1 }, h.animate(v, i), s && s.animate(v, i));
  15778. } else
  15779. v.call(this, a);
  15780. };
  15781. if (l(M, "animate", S), U.column) {
  15782. var w = U.arearange.prototype;
  15783. U = U.column.prototype, U.polarArc = function(v, a, c, p) {
  15784. var i = this.xAxis.center, h = this.yAxis.len, s = i[3] / 2;
  15785. return a = h - a + s, v = h - E(v, h) + s, this.yAxis.reversed && (0 > a && (a = s), 0 > v && (v = s)), { x: i[0], y: i[1], r: a, innerR: v, start: c, end: p };
  15786. }, l(U, "animate", S), l(U, "translate", function(v) {
  15787. var a = this.options, c = a.stacking, p = this.chart, i = this.xAxis, h = this.yAxis, s = h.reversed, t = h.center, o = i.startAngleRad, n = i.endAngleRad - o;
  15788. if (this.preventPostTranslate = !0, v.call(this), i.isRadial) {
  15789. v = this.points, i = v.length;
  15790. var A = h.translate(h.min), _ = h.translate(h.max);
  15791. if (a = a.threshold || 0, p.inverted && f(a)) {
  15792. var D = h.translate(a);
  15793. x(D) && (0 > D ? D = 0 : D > n && (D = n), this.translatedThreshold = D + o);
  15794. }
  15795. for (; i--; ) {
  15796. a = v[i];
  15797. var W = a.barX, P = a.x, X = a.y;
  15798. if (a.shapeType = "arc", p.inverted) {
  15799. if (a.plotY = h.translate(X), c && h.stacking) {
  15800. if (X = h.stacking.stacks[(0 > X ? "-" : "") + this.stackKey], this.visible && X && X[P] && !a.isNull) {
  15801. var g = X[P].points[this.getStackIndicator(void 0, P, this.index).key], m = h.translate(g[0]);
  15802. g = h.translate(g[1]), x(m) && (m = R.clamp(m, 0, n));
  15803. }
  15804. } else
  15805. m = D, g = a.plotY;
  15806. m > g && (g = [m, m = g][0]), s ? g > A ? g = A : m < _ ? m = _ : (m > A || g < _) && (m = g = n) : m < A ? m = A : g > _ ? g = _ : (g < A || m > _) && (m = g = 0), h.min > h.max && (m = g = s ? n : 0), m += o, g += o, t && (a.barX = W += t[3] / 2), P = Math.max(W, 0), X = Math.max(W + a.pointWidth, 0), a.shapeArgs = { x: t && t[0], y: t && t[1], r: X, innerR: P, start: m, end: g }, a.opacity = m === g ? 0 : void 0, a.plotY = (x(this.translatedThreshold) && (m < this.translatedThreshold ? m : g)) - o;
  15807. } else
  15808. m = W + o, a.shapeArgs = this.polarArc(a.yBottom, a.plotY, m, m + a.pointWidth);
  15809. this.toXY(a), p.inverted ? (W = h.postTranslate(a.rectPlotY, W + a.pointWidth / 2), a.tooltipPos = [W.x - p.plotLeft, W.y - p.plotTop]) : a.tooltipPos = [a.plotX, a.plotY], t && (a.ttBelow = a.plotY > t[1]);
  15810. }
  15811. }
  15812. }), U.findAlignments = function(v, a) {
  15813. return a.align === null && (a.align = 20 < v && 160 > v ? "left" : 200 < v && 340 > v ? "right" : "center"), a.verticalAlign === null && (a.verticalAlign = 45 > v || 315 < v ? "bottom" : 135 < v && 225 > v ? "top" : "middle"), a;
  15814. }, w && (w.findAlignments = U.findAlignments), l(U, "alignDataLabel", function(v, a, c, p, i, h) {
  15815. var s = this.chart, t = E(p.inside, !!this.options.stacking);
  15816. s.polar ? (v = a.rectPlotX / Math.PI * 180, s.inverted ? (this.forceDL = s.isInsidePlot(a.plotX, Math.round(a.plotY)), t && a.shapeArgs ? (i = a.shapeArgs, i = this.yAxis.postTranslate(((i.start || 0) + (i.end || 0)) / 2 - this.xAxis.startAngleRad, a.barX + a.pointWidth / 2), i = { x: i.x - s.plotLeft, y: i.y - s.plotTop }) : a.tooltipPos && (i = { x: a.tooltipPos[0], y: a.tooltipPos[1] }), p.align = E(p.align, "center"), p.verticalAlign = E(
  15817. p.verticalAlign,
  15818. "middle"
  15819. )) : this.findAlignments && (p = this.findAlignments(v, p)), M.alignDataLabel.call(this, a, c, p, i, h), this.isRadialBar && a.shapeArgs && a.shapeArgs.start === a.shapeArgs.end && c.hide(!0)) : v.call(this, a, c, p, i, h);
  15820. });
  15821. }
  15822. l(Z, "getCoordinates", function(v, a) {
  15823. var c = this.chart, p = { xAxis: [], yAxis: [] };
  15824. return c.polar ? c.axes.forEach(function(i) {
  15825. var h = i.isXAxis, s = i.center;
  15826. if (i.coll !== "colorAxis") {
  15827. var t = a.chartX - s[0] - c.plotLeft;
  15828. s = a.chartY - s[1] - c.plotTop, p[h ? "xAxis" : "yAxis"].push({ axis: i, value: i.translate(h ? Math.PI - Math.atan2(t, s) : Math.sqrt(Math.pow(
  15829. t,
  15830. 2
  15831. ) + Math.pow(s, 2)), !0) });
  15832. }
  15833. }) : p = v.call(this, a), p;
  15834. }), F.prototype.clipCircle = function(v, a, c, p) {
  15835. var i = B(), h = this.createElement("clipPath").attr({ id: i }).add(this.defs);
  15836. return v = p ? this.arc(v, a, c, p, 0, 2 * Math.PI).add(h) : this.circle(v, a, c).add(h), v.id = i, v.clipPath = h, v;
  15837. }, b(y, "getAxes", function() {
  15838. this.pane || (this.pane = []), this.options.pane = O(this.options.pane), this.options.pane.forEach(function(v) {
  15839. new I(v, this);
  15840. }, this);
  15841. }), b(y, "afterDrawChartBox", function() {
  15842. this.pane.forEach(function(v) {
  15843. v.render();
  15844. });
  15845. }), b(
  15846. H,
  15847. "afterInit",
  15848. function() {
  15849. var v = this.chart;
  15850. v.inverted && v.polar && (this.isRadialSeries = !0, this.is("column") && (this.isRadialBar = !0));
  15851. }
  15852. ), l(y.prototype, "get", function(v, a) {
  15853. return u(this.pane || [], function(c) {
  15854. return c.options.id === a;
  15855. }) || v.call(this, a);
  15856. });
  15857. }), T(d, "masters/highcharts-more.src.js", [d["Core/Globals.js"], d["Core/Axis/RadialAxis.js"], d["Series/Bubble/BubbleSeries.js"]], function(l, y, j) {
  15858. y.compose(l.Axis, l.Tick), j.compose(l.Chart, l.Legend, l.Series);
  15859. });
  15860. });
  15861. })(Vp);
  15862. var _0 = Vp.exports;
  15863. const D0 = /* @__PURE__ */ Mn(_0);
  15864. var $p = { exports: {} };
  15865. (function(r) {
  15866. (function(d) {
  15867. r.exports ? (d.default = d, r.exports = d) : d(typeof Highcharts < "u" ? Highcharts : void 0);
  15868. })(function(d) {
  15869. function T(l, y, j, I) {
  15870. l.hasOwnProperty(y) || (l[y] = I.apply(null, j));
  15871. }
  15872. d = d ? d._modules : {}, T(
  15873. d,
  15874. "Extensions/FullScreen.js",
  15875. [d["Core/Chart/Chart.js"], d["Core/Globals.js"], d["Core/Renderer/HTML/AST.js"], d["Core/Utilities.js"]],
  15876. function(l, y, j, I) {
  15877. var Z = I.addEvent;
  15878. return I = function() {
  15879. function H(U) {
  15880. this.chart = U, this.isOpen = !1, U = U.renderTo, this.browserProps || (typeof U.requestFullscreen == "function" ? this.browserProps = { fullscreenChange: "fullscreenchange", requestFullscreen: "requestFullscreen", exitFullscreen: "exitFullscreen" } : U.mozRequestFullScreen ? this.browserProps = { fullscreenChange: "mozfullscreenchange", requestFullscreen: "mozRequestFullScreen", exitFullscreen: "mozCancelFullScreen" } : U.webkitRequestFullScreen ? this.browserProps = {
  15881. fullscreenChange: "webkitfullscreenchange",
  15882. requestFullscreen: "webkitRequestFullScreen",
  15883. exitFullscreen: "webkitExitFullscreen"
  15884. } : U.msRequestFullscreen && (this.browserProps = { fullscreenChange: "MSFullscreenChange", requestFullscreen: "msRequestFullscreen", exitFullscreen: "msExitFullscreen" }));
  15885. }
  15886. return H.prototype.close = function() {
  15887. var U = this.chart, F = U.options.chart;
  15888. this.isOpen && this.browserProps && U.container.ownerDocument instanceof Document && U.container.ownerDocument[this.browserProps.exitFullscreen](), this.unbindFullscreenEvent && (this.unbindFullscreenEvent = this.unbindFullscreenEvent()), U.setSize(this.origWidth, this.origHeight, !1), this.origHeight = this.origWidth = void 0, F.width = this.origWidthOption, F.height = this.origHeightOption, this.origHeightOption = this.origWidthOption = void 0, this.isOpen = !1, this.setButtonText();
  15889. }, H.prototype.open = function() {
  15890. var U = this, F = U.chart, R = F.options.chart;
  15891. if (R && (U.origWidthOption = R.width, U.origHeightOption = R.height), U.origWidth = F.chartWidth, U.origHeight = F.chartHeight, U.browserProps) {
  15892. var N = Z(
  15893. F.container.ownerDocument,
  15894. U.browserProps.fullscreenChange,
  15895. function() {
  15896. U.isOpen ? (U.isOpen = !1, U.close()) : (F.setSize(null, null, !1), U.isOpen = !0, U.setButtonText());
  15897. }
  15898. ), b = Z(F, "destroy", N);
  15899. U.unbindFullscreenEvent = function() {
  15900. N(), b();
  15901. }, (R = F.renderTo[U.browserProps.requestFullscreen]()) && R.catch(function() {
  15902. alert("Full screen is not supported inside a frame.");
  15903. });
  15904. }
  15905. }, H.prototype.setButtonText = function() {
  15906. var U = this.chart, F = U.exportDivElements, R = U.options.exporting, N = R && R.buttons && R.buttons.contextButton.menuItems;
  15907. U = U.options.lang, R && R.menuItemDefinitions && U && U.exitFullscreen && U.viewFullscreen && N && F && (F = F[N.indexOf("viewFullscreen")]) && j.setElementHTML(F, this.isOpen ? U.exitFullscreen : R.menuItemDefinitions.viewFullscreen.text || U.viewFullscreen);
  15908. }, H.prototype.toggle = function() {
  15909. this.isOpen ? this.close() : this.open();
  15910. }, H;
  15911. }(), y.Fullscreen = I, Z(l, "beforeRender", function() {
  15912. this.fullscreen = new y.Fullscreen(this);
  15913. }), y.Fullscreen;
  15914. }
  15915. ), T(d, "Core/Chart/ChartNavigationComposition.js", [], function() {
  15916. var l;
  15917. return function(y) {
  15918. y.compose = function(I) {
  15919. return I.navigation || (I.navigation = new j(I)), I;
  15920. };
  15921. var j = function() {
  15922. function I(Z) {
  15923. this.updates = [], this.chart = Z;
  15924. }
  15925. return I.prototype.addUpdate = function(Z) {
  15926. this.chart.navigation.updates.push(Z);
  15927. }, I.prototype.update = function(Z, H) {
  15928. var U = this;
  15929. this.updates.forEach(function(F) {
  15930. F.call(U.chart, Z, H);
  15931. });
  15932. }, I;
  15933. }();
  15934. y.Additions = j;
  15935. }(l || (l = {})), l;
  15936. }), T(d, "Extensions/Exporting/ExportingDefaults.js", [d["Core/Globals.js"]], function(l) {
  15937. return { exporting: { type: "image/png", url: "https://export.highcharts.com/", printMaxWidth: 780, scale: 2, buttons: { contextButton: {
  15938. className: "highcharts-contextbutton",
  15939. menuClassName: "highcharts-contextmenu",
  15940. symbol: "menu",
  15941. titleKey: "contextButtonTitle",
  15942. menuItems: "viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")
  15943. } }, menuItemDefinitions: { viewFullscreen: { textKey: "viewFullscreen", onclick: function() {
  15944. this.fullscreen.toggle();
  15945. } }, printChart: { textKey: "printChart", onclick: function() {
  15946. this.print();
  15947. } }, separator: { separator: !0 }, downloadPNG: { textKey: "downloadPNG", onclick: function() {
  15948. this.exportChart();
  15949. } }, downloadJPEG: {
  15950. textKey: "downloadJPEG",
  15951. onclick: function() {
  15952. this.exportChart({ type: "image/jpeg" });
  15953. }
  15954. }, downloadPDF: { textKey: "downloadPDF", onclick: function() {
  15955. this.exportChart({ type: "application/pdf" });
  15956. } }, downloadSVG: { textKey: "downloadSVG", onclick: function() {
  15957. this.exportChart({ type: "image/svg+xml" });
  15958. } } } }, lang: {
  15959. viewFullscreen: "View in full screen",
  15960. exitFullscreen: "Exit from full screen",
  15961. printChart: "Print chart",
  15962. downloadPNG: "Download PNG image",
  15963. downloadJPEG: "Download JPEG image",
  15964. downloadPDF: "Download PDF document",
  15965. downloadSVG: "Download SVG vector image",
  15966. contextButtonTitle: "Chart context menu"
  15967. }, navigation: { buttonOptions: { symbolSize: 14, symbolX: 12.5, symbolY: 10.5, align: "right", buttonSpacing: 3, height: 22, verticalAlign: "top", width: 24, symbolFill: "#666666", symbolStroke: "#666666", symbolStrokeWidth: 3, theme: { padding: 5 } }, menuStyle: { border: "1px solid #999999", background: "#ffffff", padding: "5px 0" }, menuItemStyle: { padding: "0.5em 1em", color: "#333333", background: "none", fontSize: l.isTouchDevice ? "14px" : "11px", transition: "background 250ms, color 250ms" }, menuItemHoverStyle: {
  15968. background: "#335cad",
  15969. color: "#ffffff"
  15970. } } };
  15971. }), T(d, "Extensions/Exporting/ExportingSymbols.js", [], function() {
  15972. var l;
  15973. return function(y) {
  15974. function j(H, U, F, R) {
  15975. return [["M", H, U + 2.5], ["L", H + F, U + 2.5], ["M", H, U + R / 2 + 0.5], ["L", H + F, U + R / 2 + 0.5], ["M", H, U + R - 1.5], ["L", H + F, U + R - 1.5]];
  15976. }
  15977. function I(H, U, F, R) {
  15978. return H = R / 3 - 2, R = [], R = R.concat(this.circle(F - H, U, H, H), this.circle(F - H, U + H + 4, H, H), this.circle(F - H, U + 2 * (H + 4), H, H));
  15979. }
  15980. var Z = [];
  15981. y.compose = function(H) {
  15982. Z.indexOf(H) === -1 && (Z.push(H), H = H.prototype.symbols, H.menu = j, H.menuball = I.bind(H));
  15983. };
  15984. }(l || (l = {})), l;
  15985. }), T(d, "Core/HttpUtilities.js", [d["Core/Globals.js"], d["Core/Utilities.js"]], function(l, y) {
  15986. var j = l.doc, I = y.createElement, Z = y.discardElement, H = y.merge, U = y.objectEach, F = { ajax: function(R) {
  15987. var N = H(!0, { url: !1, type: "get", dataType: "json", success: !1, error: !1, data: !1, headers: {} }, R);
  15988. R = { json: "application/json", xml: "application/xml", text: "text/plain", octet: "application/octet-stream" };
  15989. var b = new XMLHttpRequest();
  15990. if (!N.url)
  15991. return !1;
  15992. b.open(N.type.toUpperCase(), N.url, !0), N.headers["Content-Type"] || b.setRequestHeader(
  15993. "Content-Type",
  15994. R[N.dataType] || R.text
  15995. ), U(N.headers, function(x, u) {
  15996. b.setRequestHeader(u, x);
  15997. }), b.onreadystatechange = function() {
  15998. if (b.readyState === 4) {
  15999. if (b.status === 200) {
  16000. var x = b.responseText;
  16001. if (N.dataType === "json")
  16002. try {
  16003. x = JSON.parse(x);
  16004. } catch (u) {
  16005. N.error && N.error(b, u);
  16006. return;
  16007. }
  16008. return N.success && N.success(x);
  16009. }
  16010. N.error && N.error(b, b.responseText);
  16011. }
  16012. };
  16013. try {
  16014. N.data = JSON.stringify(N.data);
  16015. } catch {
  16016. }
  16017. b.send(N.data || !0);
  16018. }, getJSON: function(R, N) {
  16019. F.ajax({ url: R, success: N, dataType: "json", headers: { "Content-Type": "text/plain" } });
  16020. }, post: function(R, N, b) {
  16021. var x = I("form", H({ method: "post", action: R, enctype: "multipart/form-data" }, b), { display: "none" }, j.body);
  16022. U(N, function(u, f) {
  16023. I("input", { type: "hidden", name: f, value: u }, null, x);
  16024. }), x.submit(), Z(x);
  16025. } };
  16026. return F;
  16027. }), T(d, "Extensions/Exporting/Exporting.js", [
  16028. d["Core/Renderer/HTML/AST.js"],
  16029. d["Core/Chart/Chart.js"],
  16030. d["Core/Chart/ChartNavigationComposition.js"],
  16031. d["Core/DefaultOptions.js"],
  16032. d["Extensions/Exporting/ExportingDefaults.js"],
  16033. d["Extensions/Exporting/ExportingSymbols.js"],
  16034. d["Core/Globals.js"],
  16035. d["Core/HttpUtilities.js"],
  16036. d["Core/Utilities.js"]
  16037. ], function(l, y, j, I, Z, H, U, F, R) {
  16038. y = I.defaultOptions;
  16039. var N = U.doc, b = U.win, x = R.addEvent, u = R.css, f = R.createElement, E = R.discardElement, O = R.extend, B = R.find, M = R.fireEvent, S = R.isObject, w = R.merge, v = R.objectEach, a = R.pick, c = R.removeEvent, p = R.uniqueKey, i;
  16040. return function(h) {
  16041. function s(nt) {
  16042. var rt = this, ct = rt.renderer, gt = w(rt.options.navigation.buttonOptions, nt), dt = gt.onclick, ht = gt.menuItems, at = gt.symbolSize || 12;
  16043. if (rt.btnCount || (rt.btnCount = 0), rt.exportDivElements || (rt.exportDivElements = [], rt.exportSVGElements = []), gt.enabled !== !1 && gt.theme) {
  16044. var J = gt.theme, tt = J.states, st = tt && tt.hover;
  16045. tt = tt && tt.select;
  16046. var lt;
  16047. rt.styledMode || (J.fill = a(J.fill, "#ffffff"), J.stroke = a(J.stroke, "none")), delete J.states, dt ? lt = function(vt) {
  16048. vt && vt.stopPropagation(), dt.call(rt, vt);
  16049. } : ht && (lt = function(vt) {
  16050. vt && vt.stopPropagation(), rt.contextMenu(pt.menuClassName, ht, pt.translateX, pt.translateY, pt.width, pt.height, pt), pt.setState(2);
  16051. }), gt.text && gt.symbol ? J.paddingLeft = a(J.paddingLeft, 30) : gt.text || O(J, { width: gt.width, height: gt.height, padding: 0 }), rt.styledMode || (J["stroke-linecap"] = "round", J.fill = a(J.fill, "#ffffff"), J.stroke = a(J.stroke, "none"));
  16052. var pt = ct.button(gt.text, 0, 0, lt, J, st, tt).addClass(nt.className).attr({ title: a(rt.options.lang[gt._titleKey || gt.titleKey], "") });
  16053. if (pt.menuClassName = nt.menuClassName || "highcharts-menu-" + rt.btnCount++, gt.symbol) {
  16054. var yt = ct.symbol(gt.symbol, gt.symbolX - at / 2, gt.symbolY - at / 2, at, at, { width: at, height: at }).addClass("highcharts-button-symbol").attr({ zIndex: 1 }).add(pt);
  16055. rt.styledMode || yt.attr({ stroke: gt.symbolStroke, fill: gt.symbolFill, "stroke-width": gt.symbolStrokeWidth || 1 });
  16056. }
  16057. pt.add(rt.exportingGroup).align(O(
  16058. gt,
  16059. { width: pt.width, x: a(gt.x, rt.buttonOffset) }
  16060. ), !0, "spacingBox"), rt.buttonOffset += (pt.width + gt.buttonSpacing) * (gt.align === "right" ? -1 : 1), rt.exportSVGElements.push(pt, yt);
  16061. }
  16062. }
  16063. function t() {
  16064. if (this.printReverseInfo) {
  16065. var nt = this.printReverseInfo, rt = nt.childNodes, ct = nt.origDisplay;
  16066. nt = nt.resetParams, this.moveContainers(this.renderTo), [].forEach.call(rt, function(gt, dt) {
  16067. gt.nodeType === 1 && (gt.style.display = ct[dt] || "");
  16068. }), this.isPrinting = !1, nt && this.setSize.apply(this, nt), delete this.printReverseInfo, et = void 0, M(this, "afterPrint");
  16069. }
  16070. }
  16071. function o() {
  16072. var nt = N.body, rt = this.options.exporting.printMaxWidth, ct = { childNodes: nt.childNodes, origDisplay: [], resetParams: void 0 };
  16073. this.isPrinting = !0, this.pointer.reset(null, 0), M(this, "beforePrint"), rt && this.chartWidth > rt && (ct.resetParams = [this.options.chart.width, void 0, !1], this.setSize(rt, void 0, !1)), [].forEach.call(ct.childNodes, function(gt, dt) {
  16074. gt.nodeType === 1 && (ct.origDisplay[dt] = gt.style.display, gt.style.display = "none");
  16075. }), this.moveContainers(nt), this.printReverseInfo = ct;
  16076. }
  16077. function n(nt) {
  16078. nt.renderExporting(), x(nt, "redraw", nt.renderExporting), x(nt, "destroy", nt.destroyExport);
  16079. }
  16080. function A(nt, rt, ct, gt, dt, ht, at) {
  16081. var J = this, tt = J.options.navigation, st = J.chartWidth, lt = J.chartHeight, pt = "cache-" + nt, yt = Math.max(dt, ht), vt = J[pt];
  16082. if (!vt) {
  16083. J.exportContextMenu = J[pt] = vt = f("div", { className: nt }, { position: "absolute", zIndex: 1e3, padding: yt + "px", pointerEvents: "auto" }, J.fixedDiv || J.container);
  16084. var Mt = f("ul", { className: "highcharts-menu" }, { listStyle: "none", margin: 0, padding: 0 }, vt);
  16085. J.styledMode || u(Mt, O(
  16086. { MozBoxShadow: "3px 3px 10px #888", WebkitBoxShadow: "3px 3px 10px #888", boxShadow: "3px 3px 10px #888" },
  16087. tt.menuStyle
  16088. )), vt.hideMenu = function() {
  16089. u(vt, { display: "none" }), at && at.setState(0), J.openMenu = !1, u(J.renderTo, { overflow: "hidden" }), u(J.container, { overflow: "hidden" }), R.clearTimeout(vt.hideTimer), M(J, "exportMenuHidden");
  16090. }, J.exportEvents.push(x(vt, "mouseleave", function() {
  16091. vt.hideTimer = b.setTimeout(vt.hideMenu, 500);
  16092. }), x(vt, "mouseenter", function() {
  16093. R.clearTimeout(vt.hideTimer);
  16094. }), x(N, "mouseup", function(Pt) {
  16095. J.pointer.inClass(Pt.target, nt) || vt.hideMenu();
  16096. }), x(vt, "click", function() {
  16097. J.openMenu && vt.hideMenu();
  16098. })), rt.forEach(function(Pt) {
  16099. if (typeof Pt == "string" && (Pt = J.options.exporting.menuItemDefinitions[Pt]), S(Pt, !0)) {
  16100. var At = void 0;
  16101. Pt.separator ? At = f("hr", void 0, void 0, Mt) : (Pt.textKey === "viewData" && J.isDataTableVisible && (Pt.textKey = "hideData"), At = f("li", { className: "highcharts-menu-item", onclick: function(St) {
  16102. St && St.stopPropagation(), vt.hideMenu(), Pt.onclick && Pt.onclick.apply(J, arguments);
  16103. } }, void 0, Mt), l.setElementHTML(At, Pt.text || J.options.lang[Pt.textKey]), J.styledMode || (At.onmouseover = function() {
  16104. u(this, tt.menuItemHoverStyle);
  16105. }, At.onmouseout = function() {
  16106. u(this, tt.menuItemStyle);
  16107. }, u(At, O({ cursor: "pointer" }, tt.menuItemStyle)))), J.exportDivElements.push(At);
  16108. }
  16109. }), J.exportDivElements.push(Mt, vt), J.exportMenuWidth = vt.offsetWidth, J.exportMenuHeight = vt.offsetHeight;
  16110. }
  16111. rt = { display: "block" }, ct + J.exportMenuWidth > st ? rt.right = st - ct - dt - yt + "px" : rt.left = ct - yt + "px", gt + ht + J.exportMenuHeight > lt && at.alignOptions.verticalAlign !== "top" ? rt.bottom = lt - gt - yt + "px" : rt.top = gt + ht - yt + "px", u(vt, rt), u(J.renderTo, { overflow: "" }), u(J.container, { overflow: "" }), J.openMenu = !0, M(J, "exportMenuShown");
  16112. }
  16113. function _(nt) {
  16114. var rt = nt ? nt.target : this, ct = rt.exportSVGElements, gt = rt.exportDivElements;
  16115. nt = rt.exportEvents;
  16116. var dt;
  16117. ct && (ct.forEach(function(ht, at) {
  16118. ht && (ht.onclick = ht.ontouchstart = null, dt = "cache-" + ht.menuClassName, rt[dt] && delete rt[dt], ct[at] = ht.destroy());
  16119. }), ct.length = 0), rt.exportingGroup && (rt.exportingGroup.destroy(), delete rt.exportingGroup), gt && (gt.forEach(function(ht, at) {
  16120. ht && (R.clearTimeout(ht.hideTimer), c(ht, "mouseleave"), gt[at] = ht.onmouseout = ht.onmouseover = ht.ontouchstart = ht.onclick = null, E(ht));
  16121. }), gt.length = 0), nt && (nt.forEach(function(ht) {
  16122. ht();
  16123. }), nt.length = 0);
  16124. }
  16125. function D(nt, rt) {
  16126. rt = this.getSVGForExport(nt, rt), nt = w(this.options.exporting, nt), F.post(nt.url, { filename: nt.filename ? nt.filename.replace(/\//g, "-") : this.getFilename(), type: nt.type, width: nt.width || 0, scale: nt.scale, svg: rt }, nt.formAttributes);
  16127. }
  16128. function W() {
  16129. return this.styledMode && this.inlineStyles(), this.container.innerHTML;
  16130. }
  16131. function P() {
  16132. var nt = this.userOptions.title && this.userOptions.title.text, rt = this.options.exporting.filename;
  16133. return rt ? rt.replace(/\//g, "-") : (typeof nt == "string" && (rt = nt.toLowerCase().replace(/<\/?[^>]+(>|$)/g, "").replace(/[\s_]+/g, "-").replace(
  16134. /[^a-z0-9\-]/g,
  16135. ""
  16136. ).replace(/^[\-]+/g, "").replace(/[\-]+/g, "-").substr(0, 24).replace(/[\-]+$/g, "")), (!rt || 5 > rt.length) && (rt = "chart"), rt);
  16137. }
  16138. function X(nt) {
  16139. var rt, ct = w(this.options, nt);
  16140. ct.plotOptions = w(this.userOptions.plotOptions, nt && nt.plotOptions), ct.time = w(this.userOptions.time, nt && nt.time);
  16141. var gt = f("div", null, { position: "absolute", top: "-9999em", width: this.chartWidth + "px", height: this.chartHeight + "px" }, N.body), dt = this.renderTo.style.width, ht = this.renderTo.style.height;
  16142. dt = ct.exporting.sourceWidth || ct.chart.width || /px$/.test(dt) && parseInt(dt, 10) || (ct.isGantt ? 800 : 600), ht = ct.exporting.sourceHeight || ct.chart.height || /px$/.test(ht) && parseInt(ht, 10) || 400, O(ct.chart, { animation: !1, renderTo: gt, forExport: !0, renderer: "SVGRenderer", width: dt, height: ht }), ct.exporting.enabled = !1, delete ct.data, ct.series = [], this.series.forEach(function(tt) {
  16143. rt = w(tt.userOptions, { animation: !1, enableMouseTracking: !1, showCheckbox: !1, visible: tt.visible }), rt.isInternal || ct.series.push(rt);
  16144. });
  16145. var at = {};
  16146. this.axes.forEach(function(tt) {
  16147. tt.userOptions.internalKey || (tt.userOptions.internalKey = p()), tt.options.isInternal || (at[tt.coll] || (at[tt.coll] = !0, ct[tt.coll] = []), ct[tt.coll].push(w(tt.userOptions, { visible: tt.visible })));
  16148. });
  16149. var J = new this.constructor(ct, this.callback);
  16150. return nt && ["xAxis", "yAxis", "series"].forEach(function(tt) {
  16151. var st = {};
  16152. nt[tt] && (st[tt] = nt[tt], J.update(st));
  16153. }), this.axes.forEach(function(tt) {
  16154. var st = B(J.axes, function(yt) {
  16155. return yt.options.internalKey === tt.userOptions.internalKey;
  16156. }), lt = tt.getExtremes(), pt = lt.userMin;
  16157. lt = lt.userMax, st && (typeof pt < "u" && pt !== st.min || typeof lt < "u" && lt !== st.max) && st.setExtremes(
  16158. pt,
  16159. lt,
  16160. !0,
  16161. !1
  16162. );
  16163. }), ht = J.getChartHTML(), M(this, "getSVG", { chartCopy: J }), ht = this.sanitizeSVG(ht, ct), ct = null, J.destroy(), E(gt), ht;
  16164. }
  16165. function g(nt, rt) {
  16166. var ct = this.options.exporting;
  16167. return this.getSVG(w({ chart: { borderRadius: 0 } }, ct.chartOptions, rt, { exporting: { sourceWidth: nt && nt.sourceWidth || ct.sourceWidth, sourceHeight: nt && nt.sourceHeight || ct.sourceHeight } }));
  16168. }
  16169. function m(nt) {
  16170. return nt.replace(/([A-Z])/g, function(rt, ct) {
  16171. return "-" + ct.toLowerCase();
  16172. });
  16173. }
  16174. function L() {
  16175. function nt(J) {
  16176. function tt(St, Dt) {
  16177. if (lt = pt = !1, ct.length) {
  16178. for (yt = ct.length; yt-- && !pt; )
  16179. pt = ct[yt].test(Dt);
  16180. lt = !pt;
  16181. }
  16182. for (Dt === "transform" && St === "none" && (lt = !0), yt = rt.length; yt-- && !lt; )
  16183. lt = rt[yt].test(Dt) || typeof St == "function";
  16184. lt || Mt[Dt] === St && J.nodeName !== "svg" || gt[J.nodeName][Dt] === St || (q && q.indexOf(Dt) === -1 ? st += m(Dt) + ":" + St + ";" : St && J.setAttribute(m(Dt), St));
  16185. }
  16186. var st = "", lt, pt, yt;
  16187. if (J.nodeType === 1 && it.indexOf(J.nodeName) === -1) {
  16188. var vt = b.getComputedStyle(J, null), Mt = J.nodeName === "svg" ? {} : b.getComputedStyle(J.parentNode, null);
  16189. if (!gt[J.nodeName]) {
  16190. dt = at.getElementsByTagName("svg")[0];
  16191. var Pt = at.createElementNS(J.namespaceURI, J.nodeName);
  16192. dt.appendChild(Pt), gt[J.nodeName] = w(b.getComputedStyle(Pt, null)), J.nodeName === "text" && delete gt.text.fill, dt.removeChild(Pt);
  16193. }
  16194. if (U.isFirefox || U.isMS)
  16195. for (var At in vt)
  16196. tt(vt[At], At);
  16197. else
  16198. v(vt, tt);
  16199. st && (vt = J.getAttribute("style"), J.setAttribute("style", (vt ? vt + ";" : "") + st)), J.nodeName === "svg" && J.setAttribute("stroke-width", "1px"), J.nodeName !== "text" && [].forEach.call(J.children || J.childNodes, nt);
  16200. }
  16201. }
  16202. var rt = $, ct = h.inlineWhitelist, gt = {}, dt, ht = N.createElement("iframe");
  16203. u(ht, { width: "1px", height: "1px", visibility: "hidden" }), N.body.appendChild(ht);
  16204. var at = ht.contentWindow.document;
  16205. at.open(), at.write('<svg xmlns="http://www.w3.org/2000/svg"></svg>'), at.close(), nt(this.container.querySelector("svg")), dt.parentNode.removeChild(dt), ht.parentNode.removeChild(ht);
  16206. }
  16207. function Y(nt) {
  16208. (this.fixedDiv ? [this.fixedDiv, this.scrollingContainer] : [this.container]).forEach(function(rt) {
  16209. nt.appendChild(rt);
  16210. });
  16211. }
  16212. function V() {
  16213. var nt = this;
  16214. nt.exporting = { update: function(rt, ct) {
  16215. nt.isDirtyExporting = !0, w(!0, nt.options.exporting, rt), a(ct, !0) && nt.redraw();
  16216. } }, j.compose(nt).navigation.addUpdate(function(rt, ct) {
  16217. nt.isDirtyExporting = !0, w(!0, nt.options.navigation, rt), a(ct, !0) && nt.redraw();
  16218. });
  16219. }
  16220. function Q() {
  16221. var nt = this;
  16222. nt.isPrinting || (et = nt, U.isSafari || nt.beforePrint(), setTimeout(function() {
  16223. b.focus(), b.print(), U.isSafari || setTimeout(function() {
  16224. nt.afterPrint();
  16225. }, 1e3);
  16226. }, 1));
  16227. }
  16228. function k() {
  16229. var nt = this, rt = nt.options.exporting, ct = rt.buttons, gt = nt.isDirtyExporting || !nt.exportSVGElements;
  16230. nt.buttonOffset = 0, nt.isDirtyExporting && nt.destroyExport(), gt && rt.enabled !== !1 && (nt.exportEvents = [], nt.exportingGroup = nt.exportingGroup || nt.renderer.g("exporting-group").attr({ zIndex: 3 }).add(), v(ct, function(dt) {
  16231. nt.addButton(dt);
  16232. }), nt.isDirtyExporting = !1);
  16233. }
  16234. function G(nt, rt) {
  16235. var ct = nt.indexOf("</svg>") + 6, gt = nt.substr(ct);
  16236. return nt = nt.substr(0, ct), rt && rt.exporting && rt.exporting.allowHTML && gt && (gt = '<foreignObject x="0" y="0" width="' + rt.chart.width + '" height="' + rt.chart.height + '"><body xmlns="http://www.w3.org/1999/xhtml">' + gt.replace(/(<(?:img|br).*?(?=>))>/g, "$1 />") + "</body></foreignObject>", nt = nt.replace("</svg>", gt + "</svg>")), nt = nt.replace(/zIndex="[^"]+"/g, "").replace(/symbolName="[^"]+"/g, "").replace(
  16237. /jQuery[0-9]+="[^"]+"/g,
  16238. ""
  16239. ).replace(/url\(("|&quot;)(.*?)("|&quot;);?\)/g, "url($2)").replace(/url\([^#]+#/g, "url(#").replace(/<svg /, '<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (|NS[0-9]+:)href=/g, " xlink:href=").replace(/\n/, " ").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g, '$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g, " ").replace(/&shy;/g, "­"), this.ieSanitizeSVG && (nt = this.ieSanitizeSVG(nt)), nt;
  16240. }
  16241. var z = [], $ = [
  16242. /-/,
  16243. /^(clipPath|cssText|d|height|width)$/,
  16244. /^font$/,
  16245. /[lL]ogical(Width|Height)$/,
  16246. /perspective/,
  16247. /TapHighlightColor/,
  16248. /^transition/,
  16249. /^length$/
  16250. ], q = "fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" ");
  16251. h.inlineWhitelist = [];
  16252. var it = ["clipPath", "defs", "desc"], et;
  16253. h.compose = function(nt, rt) {
  16254. H.compose(rt), z.indexOf(nt) === -1 && (z.push(nt), rt = nt.prototype, rt.afterPrint = t, rt.exportChart = D, rt.inlineStyles = L, rt.print = Q, rt.sanitizeSVG = G, rt.getChartHTML = W, rt.getSVG = X, rt.getSVGForExport = g, rt.getFilename = P, rt.moveContainers = Y, rt.beforePrint = o, rt.contextMenu = A, rt.addButton = s, rt.destroyExport = _, rt.renderExporting = k, rt.callbacks.push(n), x(nt, "init", V), U.isSafari && U.win.matchMedia("print").addListener(function(ct) {
  16255. et && (ct.matches ? et.beforePrint() : et.afterPrint());
  16256. }));
  16257. };
  16258. }(i || (i = {})), y.exporting = w(Z.exporting, y.exporting), y.lang = w(Z.lang, y.lang), y.navigation = w(Z.navigation, y.navigation), i;
  16259. }), T(d, "masters/modules/exporting.src.js", [d["Core/Globals.js"], d["Extensions/Exporting/Exporting.js"], d["Core/HttpUtilities.js"]], function(l, y, j) {
  16260. l.HttpUtilities = j, l.ajax = j.ajax, l.getJSON = j.getJSON, l.post = j.post, y.compose(l.Chart, l.Renderer);
  16261. });
  16262. });
  16263. })($p);
  16264. var I0 = $p.exports;
  16265. const R0 = /* @__PURE__ */ Mn(I0);
  16266. var Zp = { exports: {} };
  16267. (function(r) {
  16268. (function(d) {
  16269. r.exports ? (d.default = d, r.exports = d) : d(typeof Highcharts < "u" ? Highcharts : void 0);
  16270. })(function(d) {
  16271. function T(l, y, j, I) {
  16272. l.hasOwnProperty(y) || (l[y] = I.apply(null, j));
  16273. }
  16274. d = d ? d._modules : {}, T(d, "Extensions/Boost/Boostables.js", [], function() {
  16275. return "area arearange column columnrange bar line scatter heatmap bubble treemap".split(" ");
  16276. }), T(d, "Extensions/Boost/BoostableMap.js", [d["Extensions/Boost/Boostables.js"]], function(l) {
  16277. var y = {};
  16278. return l.forEach(function(j) {
  16279. y[j] = 1;
  16280. }), y;
  16281. }), T(d, "Extensions/Boost/WGLShader.js", [d["Core/Utilities.js"]], function(l) {
  16282. var y = l.clamp, j = l.error, I = l.pick;
  16283. return function(Z) {
  16284. function H() {
  16285. v.length && j("[highcharts boost] shader error - " + v.join(`
  16286. `));
  16287. }
  16288. function U(c, p) {
  16289. var i = Z.createShader(p === "vertex" ? Z.VERTEX_SHADER : Z.FRAGMENT_SHADER);
  16290. return Z.shaderSource(i, c), Z.compileShader(i), Z.getShaderParameter(i, Z.COMPILE_STATUS) ? i : (v.push("when compiling " + p + ` shader:
  16291. ` + Z.getShaderInfoLog(i)), !1);
  16292. }
  16293. function F() {
  16294. function c(h) {
  16295. return Z.getUniformLocation(b, h);
  16296. }
  16297. var p = U(
  16298. `#version 100
  16299. #define LN10 2.302585092994046
  16300. precision highp float;
  16301. attribute vec4 aVertexPosition;
  16302. attribute vec4 aColor;
  16303. varying highp vec2 position;
  16304. varying highp vec4 vColor;
  16305. uniform mat4 uPMatrix;
  16306. uniform float pSize;
  16307. uniform float translatedThreshold;
  16308. uniform bool hasThreshold;
  16309. uniform bool skipTranslation;
  16310. uniform float xAxisTrans;
  16311. uniform float xAxisMin;
  16312. uniform float xAxisMinPad;
  16313. uniform float xAxisPointRange;
  16314. uniform float xAxisLen;
  16315. uniform bool xAxisPostTranslate;
  16316. uniform float xAxisOrdinalSlope;
  16317. uniform float xAxisOrdinalOffset;
  16318. uniform float xAxisPos;
  16319. uniform bool xAxisCVSCoord;
  16320. uniform bool xAxisIsLog;
  16321. uniform bool xAxisReversed;
  16322. uniform float yAxisTrans;
  16323. uniform float yAxisMin;
  16324. uniform float yAxisMinPad;
  16325. uniform float yAxisPointRange;
  16326. uniform float yAxisLen;
  16327. uniform bool yAxisPostTranslate;
  16328. uniform float yAxisOrdinalSlope;
  16329. uniform float yAxisOrdinalOffset;
  16330. uniform float yAxisPos;
  16331. uniform bool yAxisCVSCoord;
  16332. uniform bool yAxisIsLog;
  16333. uniform bool yAxisReversed;
  16334. uniform bool isBubble;
  16335. uniform bool bubbleSizeByArea;
  16336. uniform float bubbleZMin;
  16337. uniform float bubbleZMax;
  16338. uniform float bubbleZThreshold;
  16339. uniform float bubbleMinSize;
  16340. uniform float bubbleMaxSize;
  16341. uniform bool bubbleSizeAbs;
  16342. uniform bool isInverted;
  16343. float bubbleRadius(){
  16344. float value = aVertexPosition.w;
  16345. float zMax = bubbleZMax;
  16346. float zMin = bubbleZMin;
  16347. float radius = 0.0;
  16348. float pos = 0.0;
  16349. float zRange = zMax - zMin;
  16350. if (bubbleSizeAbs){
  16351. value = value - bubbleZThreshold;
  16352. zMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);
  16353. zMin = 0.0;
  16354. }
  16355. if (value < zMin){
  16356. radius = bubbleZMin / 2.0 - 1.0;
  16357. } else {
  16358. pos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;
  16359. if (bubbleSizeByArea && pos > 0.0){
  16360. pos = sqrt(pos);
  16361. }
  16362. radius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;
  16363. }
  16364. return radius * 2.0;
  16365. }
  16366. float translate(float val,
  16367. float pointPlacement,
  16368. float localA,
  16369. float localMin,
  16370. float minPixelPadding,
  16371. float pointRange,
  16372. float len,
  16373. bool cvsCoord,
  16374. bool isLog,
  16375. bool reversed
  16376. ){
  16377. float sign = 1.0;
  16378. float cvsOffset = 0.0;
  16379. if (cvsCoord) {
  16380. sign *= -1.0;
  16381. cvsOffset = len;
  16382. }
  16383. if (isLog) {
  16384. val = log(val) / LN10;
  16385. }
  16386. if (reversed) {
  16387. sign *= -1.0;
  16388. cvsOffset -= sign * len;
  16389. }
  16390. return sign * (val - localMin) * localA + cvsOffset +
  16391. (sign * minPixelPadding);
  16392. }
  16393. float xToPixels(float value) {
  16394. if (skipTranslation){
  16395. return value;// + xAxisPos;
  16396. }
  16397. return translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;
  16398. }
  16399. float yToPixels(float value, float checkTreshold) {
  16400. float v;
  16401. if (skipTranslation){
  16402. v = value;// + yAxisPos;
  16403. } else {
  16404. v = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;
  16405. if (v > yAxisLen) {
  16406. v = yAxisLen;
  16407. }
  16408. }
  16409. if (checkTreshold > 0.0 && hasThreshold) {
  16410. v = min(v, translatedThreshold);
  16411. }
  16412. return v;
  16413. }
  16414. void main(void) {
  16415. if (isBubble){
  16416. gl_PointSize = bubbleRadius();
  16417. } else {
  16418. gl_PointSize = pSize;
  16419. }
  16420. vColor = aColor;
  16421. if (skipTranslation && isInverted) {
  16422. gl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);
  16423. } else if (isInverted) {
  16424. gl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);
  16425. } else {
  16426. gl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);
  16427. }
  16428. }`,
  16429. "vertex"
  16430. ), i = U(`precision highp float;
  16431. uniform vec4 fillColor;
  16432. varying highp vec2 position;
  16433. varying highp vec4 vColor;
  16434. uniform sampler2D uSampler;
  16435. uniform bool isCircle;
  16436. uniform bool hasColor;
  16437. void main(void) {
  16438. vec4 col = fillColor;
  16439. vec4 tcol = texture2D(uSampler, gl_PointCoord.st);
  16440. if (hasColor) {
  16441. col = vColor;
  16442. }
  16443. if (isCircle) {
  16444. col *= tcol;
  16445. if (tcol.r < 0.0) {
  16446. discard;
  16447. } else {
  16448. gl_FragColor = col;
  16449. }
  16450. } else {
  16451. gl_FragColor = col;
  16452. }
  16453. }`, "fragment");
  16454. return !p || !i ? (b = !1, H(), !1) : (b = Z.createProgram(), Z.attachShader(b, p), Z.attachShader(b, i), Z.linkProgram(b), Z.getProgramParameter(b, Z.LINK_STATUS) ? (Z.useProgram(b), Z.bindAttribLocation(b, 0, "aVertexPosition"), x = c("uPMatrix"), u = c("pSize"), f = c("fillColor"), E = c("isBubble"), O = c("bubbleSizeAbs"), B = c("bubbleSizeByArea"), a = c("uSampler"), M = c("skipTranslation"), S = c("isCircle"), w = c("isInverted"), !0) : (v.push(Z.getProgramInfoLog(b)), H(), b = !1));
  16455. }
  16456. function R(c, p) {
  16457. Z && b && (c = N[c] = N[c] || Z.getUniformLocation(b, c), Z.uniform1f(c, p));
  16458. }
  16459. var N = {}, b, x, u, f, E, O, B, M, S, w, v = [], a;
  16460. return Z && !F() ? !1 : { psUniform: function() {
  16461. return u;
  16462. }, pUniform: function() {
  16463. return x;
  16464. }, fillColorUniform: function() {
  16465. return f;
  16466. }, setBubbleUniforms: function(c, p, i) {
  16467. var h = c.options, s = Number.MAX_VALUE, t = -Number.MAX_VALUE;
  16468. if (Z && b && c.is("bubble")) {
  16469. var o = c.getPxExtremes();
  16470. s = I(h.zMin, y(p, h.displayNegative === !1 ? h.zThreshold : -Number.MAX_VALUE, s)), t = I(h.zMax, Math.max(t, i)), Z.uniform1i(E, 1), Z.uniform1i(S, 1), Z.uniform1i(B, c.options.sizeBy !== "width"), Z.uniform1i(O, c.options.sizeByAbsoluteValue), R("bubbleZMin", s), R("bubbleZMax", t), R("bubbleZThreshold", c.options.zThreshold), R("bubbleMinSize", o.minPxSize), R("bubbleMaxSize", o.maxPxSize);
  16471. }
  16472. }, bind: function() {
  16473. Z && b && Z.useProgram(b);
  16474. }, program: function() {
  16475. return b;
  16476. }, create: F, setUniform: R, setPMatrix: function(c) {
  16477. Z && b && Z.uniformMatrix4fv(x, !1, c);
  16478. }, setColor: function(c) {
  16479. Z && b && Z.uniform4f(f, c[0] / 255, c[1] / 255, c[2] / 255, c[3]);
  16480. }, setPointSize: function(c) {
  16481. Z && b && Z.uniform1f(u, c);
  16482. }, setSkipTranslation: function(c) {
  16483. Z && b && Z.uniform1i(M, c === !0 ? 1 : 0);
  16484. }, setTexture: function(c) {
  16485. Z && b && Z.uniform1i(a, c);
  16486. }, setDrawAsCircle: function(c) {
  16487. Z && b && Z.uniform1i(S, c ? 1 : 0);
  16488. }, reset: function() {
  16489. Z && b && (Z.uniform1i(E, 0), Z.uniform1i(S, 0));
  16490. }, setInverted: function(c) {
  16491. Z && b && Z.uniform1i(w, c);
  16492. }, destroy: function() {
  16493. Z && b && (Z.deleteProgram(b), b = !1);
  16494. } };
  16495. };
  16496. }), T(d, "Extensions/Boost/WGLVBuffer.js", [], function() {
  16497. return function(l, y, j) {
  16498. function I() {
  16499. Z && (l.deleteBuffer(Z), H = Z = !1), R = 0, U = j || 2, N = [];
  16500. }
  16501. var Z = !1, H = !1, U = j || 2, F = !1, R = 0, N;
  16502. return {
  16503. destroy: I,
  16504. bind: function() {
  16505. if (!Z)
  16506. return !1;
  16507. l.vertexAttribPointer(H, U, l.FLOAT, !1, 0, 0);
  16508. },
  16509. data: N,
  16510. build: function(b, x, u) {
  16511. var f;
  16512. return N = b || [], N && N.length !== 0 || F ? (U = u || U, Z && l.deleteBuffer(Z), F || (f = new Float32Array(N)), Z = l.createBuffer(), l.bindBuffer(l.ARRAY_BUFFER, Z), l.bufferData(l.ARRAY_BUFFER, F || f, l.STATIC_DRAW), H = l.getAttribLocation(y.program(), x), l.enableVertexAttribArray(H), !0) : (I(), !1);
  16513. },
  16514. render: function(b, x, u) {
  16515. var f = F ? F.length : N.length;
  16516. return !Z || !f || ((!b || b > f || 0 > b) && (b = 0), (!x || x > f) && (x = f), b >= x) ? !1 : (l.drawArrays(l[(u || "points").toUpperCase()], b / U, (x - b) / U), !0);
  16517. },
  16518. allocate: function(b) {
  16519. R = -1, F = new Float32Array(4 * b);
  16520. },
  16521. push: function(b, x, u, f) {
  16522. F && (F[++R] = b, F[++R] = x, F[++R] = u, F[++R] = f);
  16523. }
  16524. };
  16525. };
  16526. }), T(d, "Extensions/Boost/WGLRenderer.js", [d["Core/Color/Color.js"], d["Extensions/Boost/WGLShader.js"], d["Extensions/Boost/WGLVBuffer.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(l, y, j, I, Z) {
  16527. var H = l.parse, U = I.doc, F = Z.isNumber, R = Z.isObject, N = Z.merge, b = Z.objectEach, x = Z.pick;
  16528. return function(u) {
  16529. function f(m) {
  16530. if (m.isSeriesBoosting) {
  16531. var L = !!m.options.stacking, Y = m.xData || m.options.xData || m.processedXData;
  16532. return L = (L ? m.data : Y || m.options.data).length, m.type === "treemap" ? L *= 12 : m.type === "heatmap" ? L *= 6 : P[m.type] && (L *= 2), L;
  16533. }
  16534. return 0;
  16535. }
  16536. function E() {
  16537. h.clear(h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT);
  16538. }
  16539. function O(m, L) {
  16540. function Y($t) {
  16541. $t && (L.colorData.push($t[0]), L.colorData.push($t[1]), L.colorData.push($t[2]), L.colorData.push($t[3]));
  16542. }
  16543. function V($t, ue, ge, Re, De) {
  16544. Y(De), g.usePreallocated ? (p.push($t, ue, ge ? 1 : 0, Re || 1), i += 4) : (o.push($t), o.push(ue), o.push(ge ? 1 : 0), o.push(Re || 1));
  16545. }
  16546. function Q() {
  16547. L.segments.length && (L.segments[L.segments.length - 1].to = o.length || i);
  16548. }
  16549. function k() {
  16550. L.segments.length && L.segments[L.segments.length - 1].from === (o.length || i) || (Q(), L.segments.push({ from: o.length || i }));
  16551. }
  16552. function G($t, ue, ge, Re, De) {
  16553. Y(De), V($t + ge, ue), Y(De), V($t, ue), Y(De), V($t, ue + Re), Y(De), V($t, ue + Re), Y(De), V($t + ge, ue + Re), Y(De), V($t + ge, ue);
  16554. }
  16555. function z($t, ue) {
  16556. g.useGPUTranslations || (L.skipTranslation = !0, $t.x = lt.toPixels($t.x, !0), $t.y = st.toPixels($t.y, !0)), ue ? o = [$t.x, $t.y, 0, 2].concat(o) : V($t.x, $t.y, 0, 2);
  16557. }
  16558. var $ = m.pointArrayMap && m.pointArrayMap.join(",") === "low,high", q = m.chart, it = m.options, et = !!it.stacking, nt = it.data, rt = m.xAxis.getExtremes(), ct = rt.min, gt = rt.max;
  16559. rt = m.yAxis.getExtremes();
  16560. var dt = rt.min, ht = rt.max, at = m.xData || it.xData || m.processedXData, J = m.yData || it.yData || m.processedYData, tt = m.zData || it.zData || m.processedZData, st = m.yAxis, lt = m.xAxis, pt = m.chart.plotWidth, yt = !at || at.length === 0, vt = it.connectNulls;
  16561. rt = m.points || !1;
  16562. var Mt = !1, Pt = !1, At, St, Dt = et ? m.data : at || nt, Lt = { x: Number.MAX_VALUE, y: 0 }, Nt = { x: -Number.MAX_VALUE, y: 0 }, Et = 0, Kt = !1, Gt, Wt, Jt, be, zt = -1, Vt = !1, Ce = !1, _r, uo = typeof q.index > "u", Pn = !1, En = !1, $e = !1, On = P[m.type], Ln = !1, Jr = !0, fo = !0, Hs = it.zoneAxis || "y", Dr = it.zones || !1, Xi = !1, go = it.threshold, _n = !1;
  16563. if (!(it.boostData && 0 < it.boostData.length)) {
  16564. if (it.gapSize && (_n = it.gapUnit !== "value" ? it.gapSize * m.closestPointRange : it.gapSize), Dr) {
  16565. var Ir = [];
  16566. Dr.forEach(function($t, ue) {
  16567. if ($t.color) {
  16568. var ge = H($t.color).rgba;
  16569. ge[0] /= 255, ge[1] /= 255, ge[2] /= 255, Ir[ue] = ge, Xi || typeof $t.value < "u" || (Xi = ge);
  16570. }
  16571. }), Xi || (at = m.pointAttribs && m.pointAttribs().fill || m.color, Xi = H(at).rgba, Xi[0] /= 255, Xi[1] /= 255, Xi[2] /= 255);
  16572. }
  16573. if (q.inverted && (pt = m.chart.plotHeight), m.closestPointRangePx = Number.MAX_VALUE, k(), rt && 0 < rt.length)
  16574. L.skipTranslation = !0, L.drawMode = "triangles", rt[0].node && rt[0].node.levelDynamic && rt.sort(function($t, ue) {
  16575. if ($t.node) {
  16576. if ($t.node.levelDynamic > ue.node.levelDynamic)
  16577. return 1;
  16578. if ($t.node.levelDynamic < ue.node.levelDynamic)
  16579. return -1;
  16580. }
  16581. return 0;
  16582. }), rt.forEach(function($t) {
  16583. var ue = $t.plotY;
  16584. if (typeof ue < "u" && !isNaN(ue) && $t.y !== null && $t.shapeArgs) {
  16585. var ge = $t.shapeArgs;
  16586. ue = ge.x, ue = ue === void 0 ? 0 : ue;
  16587. var Re = ge.y;
  16588. Re = Re === void 0 ? 0 : Re;
  16589. var De = ge.width;
  16590. De = De === void 0 ? 0 : De, ge = ge.height, ge = ge === void 0 ? 0 : ge;
  16591. var qr = q.styledMode ? $t.series.colorAttribs($t) : qr = $t.series.pointAttribs($t);
  16592. $t = qr["stroke-width"] || 0, $e = H(qr.fill).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255, m.type === "treemap" && ($t = $t || 1, St = H(qr.stroke).rgba, St[0] /= 255, St[1] /= 255, St[2] /= 255, G(ue, Re, De, ge, St), $t /= 2), m.type === "heatmap" && q.inverted && (ue = lt.len - ue, Re = st.len - Re, De = -De, ge = -ge), G(ue + $t, Re + $t, De - 2 * $t, ge - 2 * $t, $e);
  16593. }
  16594. });
  16595. else {
  16596. for (rt = function() {
  16597. if (Jt = Dt[++zt], typeof Jt > "u")
  16598. return "continue";
  16599. if (uo)
  16600. return "break";
  16601. var $t = nt && nt[zt];
  16602. if (!yt && R($t, !0) && $t.color && ($e = H($t.color).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255), yt ? (Gt = Jt[0], Wt = Jt[1], Dt[zt + 1] && (Ce = Dt[zt + 1][0]), Dt[zt - 1] && (Vt = Dt[zt - 1][0]), 3 <= Jt.length && (be = Jt[2], Jt[2] > L.zMax && (L.zMax = Jt[2]), Jt[2] < L.zMin && (L.zMin = Jt[2]))) : (Gt = Jt, Wt = J[zt], Dt[zt + 1] && (Ce = Dt[zt + 1]), Dt[zt - 1] && (Vt = Dt[zt - 1]), tt && tt.length && (be = tt[zt], tt[zt] > L.zMax && (L.zMax = tt[zt]), tt[zt] < L.zMin && (L.zMin = tt[zt]))), !vt && (Gt === null || Wt === null))
  16603. return k(), "continue";
  16604. if (Ce && Ce >= ct && Ce <= gt && (Pn = !0), Vt && Vt >= ct && Vt <= gt && (En = !0), $ ? (yt && (Wt = Jt.slice(1, 3)), _r = Wt[0], Wt = Wt[1]) : et && (Gt = Jt.x, Wt = Jt.stackY, _r = Wt - Jt.y), dt !== null && typeof dt < "u" && ht !== null && typeof ht < "u" && (Jr = Wt >= dt && Wt <= ht), Gt > gt && Nt.x < gt && (Nt.x = Gt, Nt.y = Wt), Gt < ct && Lt.x > ct && (Lt.x = Gt, Lt.y = Wt), Wt === null && vt)
  16605. return "continue";
  16606. if (Wt === null || !Jr && !Pn && !En)
  16607. return k(), "continue";
  16608. if ((Ce >= ct || Gt >= ct) && (Vt <= gt || Gt <= gt) && (Ln = !0), !Ln && !Pn && !En)
  16609. return "continue";
  16610. if (_n && Gt - Vt > _n && k(), Dr) {
  16611. var ue;
  16612. Dr.some(function(ge, Re) {
  16613. var De = Dr[Re - 1];
  16614. return Hs === "x" ? typeof ge.value < "u" && Gt <= ge.value ? (Ir[Re] && (!De || Gt >= De.value) && (ue = Ir[Re]), !0) : !1 : typeof ge.value < "u" && Wt <= ge.value ? (Ir[Re] && (!De || Wt >= De.value) && (ue = Ir[Re]), !0) : !1;
  16615. }), $e = ue || Xi || $e;
  16616. }
  16617. if (!g.useGPUTranslations && (L.skipTranslation = !0, Gt = lt.toPixels(Gt, !0), Wt = st.toPixels(Wt, !0), Gt > pt && L.drawMode === "points"))
  16618. return "continue";
  16619. if (L.hasMarkers && Ln && Mt !== !1 && (m.closestPointRangePx = Math.min(m.closestPointRangePx, Math.abs(Gt - Mt))), !g.useGPUTranslations && !g.usePreallocated && Mt && 1 > Math.abs(Gt - Mt) && Pt && 1 > Math.abs(Wt - Pt))
  16620. return g.debug.showSkipSummary && ++Et, "continue";
  16621. On && (At = _r, (_r === !1 || typeof _r > "u") && (At = 0 > Wt ? Wt : 0), $ || et || (At = Math.max(go === null ? dt : go, dt)), g.useGPUTranslations || (At = st.toPixels(At, !0)), V(Gt, At, 0, 0, $e)), it.step && !fo && V(Gt, Pt, 0, 2, $e), V(Gt, Wt, 0, m.type === "bubble" ? be || 1 : 2, $e), Mt = Gt, Pt = Wt, Kt = !0, fo = !1;
  16622. }; zt < Dt.length - 1 && rt() !== "break"; )
  16623. ;
  16624. g.debug.showSkipSummary && console.log("skipped points:", Et), Kt || vt === !1 || m.drawMode !== "line_strip" || (Lt.x < Number.MAX_VALUE && z(Lt, !0), Nt.x > -Number.MAX_VALUE && z(Nt));
  16625. }
  16626. Q();
  16627. }
  16628. }
  16629. function B() {
  16630. D = [], A.data = o = [], n = [], p && p.destroy();
  16631. }
  16632. function M(m) {
  16633. c && (c.setUniform("xAxisTrans", m.transA), c.setUniform("xAxisMin", m.min), c.setUniform("xAxisMinPad", m.minPixelPadding), c.setUniform("xAxisPointRange", m.pointRange), c.setUniform("xAxisLen", m.len), c.setUniform(
  16634. "xAxisPos",
  16635. m.pos
  16636. ), c.setUniform("xAxisCVSCoord", !m.horiz), c.setUniform("xAxisIsLog", !!m.logarithmic), c.setUniform("xAxisReversed", !!m.reversed));
  16637. }
  16638. function S(m) {
  16639. c && (c.setUniform("yAxisTrans", m.transA), c.setUniform("yAxisMin", m.min), c.setUniform("yAxisMinPad", m.minPixelPadding), c.setUniform("yAxisPointRange", m.pointRange), c.setUniform("yAxisLen", m.len), c.setUniform("yAxisPos", m.pos), c.setUniform("yAxisCVSCoord", !m.horiz), c.setUniform("yAxisIsLog", !!m.logarithmic), c.setUniform("yAxisReversed", !!m.reversed));
  16640. }
  16641. function w(m, L) {
  16642. c.setUniform("hasThreshold", m), c.setUniform("translatedThreshold", L);
  16643. }
  16644. function v(m) {
  16645. if (m)
  16646. s = m.chartWidth || 800, t = m.chartHeight || 400;
  16647. else
  16648. return !1;
  16649. if (!(h && s && t && c))
  16650. return !1;
  16651. g.debug.timeRendering && console.time("gl rendering"), h.canvas.width = s, h.canvas.height = t, c.bind(), h.viewport(0, 0, s, t), c.setPMatrix([2 / s, 0, 0, 0, 0, -(2 / t), 0, 0, 0, 0, -2, 0, -1, 1, -1, 1]), 1 < g.lineWidth && !I.isMS && h.lineWidth(g.lineWidth), p.build(A.data, "aVertexPosition", 4), p.bind(), c.setInverted(m.inverted), D.forEach(function(L, Y) {
  16652. var V = L.series.options, Q = V.marker, k = typeof V.lineWidth < "u" ? V.lineWidth : 1, G = V.threshold, z = F(G), $ = L.series.yAxis.getThreshold(G);
  16653. if (G = x(V.marker ? V.marker.enabled : null, L.series.xAxis.isRadial ? !0 : null, L.series.closestPointRangePx > 2 * ((V.marker ? V.marker.radius : 10) || 10)), Q = W[Q && Q.symbol || L.series.symbol] || W.circle, L.segments.length !== 0 && L.segments[0].from !== L.segments[0].to) {
  16654. if (Q.isReady && (h.bindTexture(h.TEXTURE_2D, Q.handle), c.setTexture(Q.handle)), m.styledMode ? Q = L.series.markerGroup && L.series.markerGroup.getStyle("fill") : (Q = L.drawMode === "points" && L.series.pointAttribs && L.series.pointAttribs().fill || L.series.color, V.colorByPoint && (Q = L.series.chart.options.colors[Y])), L.series.fillOpacity && V.fillOpacity && (Q = new l(Q).setOpacity(x(V.fillOpacity, 1)).get()), Q = H(Q).rgba, g.useAlpha || (Q[3] = 1), L.drawMode === "lines" && g.useAlpha && 1 > Q[3] && (Q[3] /= 10), V.boostBlending === "add" ? (h.blendFunc(h.SRC_ALPHA, h.ONE), h.blendEquation(h.FUNC_ADD)) : V.boostBlending === "mult" || V.boostBlending === "multiply" ? h.blendFunc(h.DST_COLOR, h.ZERO) : V.boostBlending === "darken" ? (h.blendFunc(h.ONE, h.ONE), h.blendEquation(h.FUNC_MIN)) : h.blendFuncSeparate(h.SRC_ALPHA, h.ONE_MINUS_SRC_ALPHA, h.ONE, h.ONE_MINUS_SRC_ALPHA), c.reset(), 0 < L.colorData.length ? (c.setUniform("hasColor", 1), Y = j(h, c), Y.build(L.colorData, "aColor", 4), Y.bind()) : h.disableVertexAttribArray(h.getAttribLocation(c.program(), "aColor")), c.setColor(Q), M(L.series.xAxis), S(L.series.yAxis), w(z, $), L.drawMode === "points" && (V.marker && F(V.marker.radius) ? c.setPointSize(2 * V.marker.radius) : c.setPointSize(1)), c.setSkipTranslation(L.skipTranslation), L.series.type === "bubble" && c.setBubbleUniforms(L.series, L.zMin, L.zMax), c.setDrawAsCircle(X[L.series.type] || !1), 0 < k || L.drawMode !== "line_strip")
  16655. for (k = 0; k < L.segments.length; k++)
  16656. p.render(L.segments[k].from, L.segments[k].to, L.drawMode);
  16657. if (L.hasMarkers && G)
  16658. for (V.marker && F(V.marker.radius) ? c.setPointSize(2 * V.marker.radius) : c.setPointSize(10), c.setDrawAsCircle(!0), k = 0; k < L.segments.length; k++)
  16659. p.render(L.segments[k].from, L.segments[k].to, "POINTS");
  16660. }
  16661. }), g.debug.timeRendering && console.timeEnd("gl rendering"), u && u(), B();
  16662. }
  16663. function a(m) {
  16664. if (E(), m.renderer.forExport)
  16665. return v(m);
  16666. _ ? v(m) : setTimeout(function() {
  16667. a(m);
  16668. }, 1);
  16669. }
  16670. var c = !1, p = !1, i = 0, h = !1, s = 0, t = 0, o = !1, n = !1, A = {}, _ = !1, D = [], W = {}, P = { column: !0, columnrange: !0, bar: !0, area: !0, arearange: !0 }, X = { scatter: !0, bubble: !0 }, g = { pointSize: 1, lineWidth: 1, fillColor: "#AA00AA", useAlpha: !0, usePreallocated: !1, useGPUTranslations: !1, debug: { timeRendering: !1, timeSeriesProcessing: !1, timeSetup: !1, timeBufferCopy: !1, timeKDTree: !1, showSkipSummary: !1 } };
  16671. return A = { allocateBufferForSingleSeries: function(m) {
  16672. var L = 0;
  16673. g.usePreallocated && (m.isSeriesBoosting && (L = f(m)), p.allocate(L));
  16674. }, pushSeries: function(m) {
  16675. 0 < D.length && D[D.length - 1].hasMarkers && (D[D.length - 1].markerTo = n.length), g.debug.timeSeriesProcessing && console.time("building " + m.type + " series");
  16676. var L = { segments: [], markerFrom: n.length, colorData: [], series: m, zMin: Number.MAX_VALUE, zMax: -Number.MAX_VALUE, hasMarkers: m.options.marker ? m.options.marker.enabled !== !1 : !1, showMarkers: !0, drawMode: {
  16677. area: "lines",
  16678. arearange: "lines",
  16679. areaspline: "line_strip",
  16680. column: "lines",
  16681. columnrange: "lines",
  16682. bar: "lines",
  16683. line: "line_strip",
  16684. scatter: "points",
  16685. heatmap: "triangles",
  16686. treemap: "triangles",
  16687. bubble: "points"
  16688. }[m.type] || "line_strip" };
  16689. m.index >= D.length ? D.push(L) : D[m.index] = L, O(m, L), g.debug.timeSeriesProcessing && console.timeEnd("building " + m.type + " series");
  16690. }, setSize: function(m, L) {
  16691. s === m && t === L || !c || (s = m, t = L, c.bind(), c.setPMatrix([2 / s, 0, 0, 0, 0, -(2 / t), 0, 0, 0, 0, -2, 0, -1, 1, -1, 1]));
  16692. }, inited: function() {
  16693. return _;
  16694. }, setThreshold: w, init: function(m, L) {
  16695. function Y(k, G) {
  16696. var z = { isReady: !1, texture: U.createElement("canvas"), handle: h.createTexture() }, $ = z.texture.getContext("2d");
  16697. W[k] = z, z.texture.width = 512, z.texture.height = 512, $.mozImageSmoothingEnabled = !1, $.webkitImageSmoothingEnabled = !1, $.msImageSmoothingEnabled = !1, $.imageSmoothingEnabled = !1, $.strokeStyle = "rgba(255, 255, 255, 0)", $.fillStyle = "#FFF", G($);
  16698. try {
  16699. h.activeTexture(h.TEXTURE0), h.bindTexture(h.TEXTURE_2D, z.handle), h.texImage2D(h.TEXTURE_2D, 0, h.RGBA, h.RGBA, h.UNSIGNED_BYTE, z.texture), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_S, h.CLAMP_TO_EDGE), h.texParameteri(
  16700. h.TEXTURE_2D,
  16701. h.TEXTURE_WRAP_T,
  16702. h.CLAMP_TO_EDGE
  16703. ), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MAG_FILTER, h.LINEAR), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MIN_FILTER, h.LINEAR), h.bindTexture(h.TEXTURE_2D, null), z.isReady = !0;
  16704. } catch {
  16705. }
  16706. }
  16707. var V = 0, Q = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"];
  16708. if (_ = !1, !m)
  16709. return !1;
  16710. for (g.debug.timeSetup && console.time("gl setup"); V < Q.length && !(h = m.getContext(Q[V], {})); V++)
  16711. ;
  16712. if (h)
  16713. L || B();
  16714. else
  16715. return !1;
  16716. return h.enable(h.BLEND), h.blendFunc(h.SRC_ALPHA, h.ONE_MINUS_SRC_ALPHA), h.disable(h.DEPTH_TEST), h.depthFunc(h.LESS), c = y(h), c ? (p = j(h, c), Y("circle", function(k) {
  16717. k.beginPath(), k.arc(256, 256, 256, 0, 2 * Math.PI), k.stroke(), k.fill();
  16718. }), Y("square", function(k) {
  16719. k.fillRect(0, 0, 512, 512);
  16720. }), Y("diamond", function(k) {
  16721. k.beginPath(), k.moveTo(256, 0), k.lineTo(512, 256), k.lineTo(256, 512), k.lineTo(0, 256), k.lineTo(256, 0), k.fill();
  16722. }), Y("triangle", function(k) {
  16723. k.beginPath(), k.moveTo(0, 512), k.lineTo(256, 0), k.lineTo(512, 512), k.lineTo(0, 512), k.fill();
  16724. }), Y("triangle-down", function(k) {
  16725. k.beginPath(), k.moveTo(0, 0), k.lineTo(256, 512), k.lineTo(
  16726. 512,
  16727. 0
  16728. ), k.lineTo(0, 0), k.fill();
  16729. }), _ = !0, g.debug.timeSetup && console.timeEnd("gl setup"), !0) : !1;
  16730. }, render: a, settings: g, valid: function() {
  16731. return h !== !1;
  16732. }, clear: E, flush: B, setXAxis: M, setYAxis: S, data: o, gl: function() {
  16733. return h;
  16734. }, allocateBuffer: function(m) {
  16735. var L = 0;
  16736. g.usePreallocated && (m.series.forEach(function(Y) {
  16737. Y.isSeriesBoosting && (L += f(Y));
  16738. }), p.allocate(L));
  16739. }, destroy: function() {
  16740. B(), p.destroy(), c.destroy(), h && (b(W, function(m) {
  16741. m.handle && h.deleteTexture(m.handle);
  16742. }), h.canvas.width = 1, h.canvas.height = 1);
  16743. }, setOptions: function(m) {
  16744. N(
  16745. !0,
  16746. g,
  16747. m
  16748. );
  16749. } };
  16750. };
  16751. }), T(d, "Extensions/Boost/BoostAttach.js", [d["Core/Chart/Chart.js"], d["Extensions/Boost/WGLRenderer.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  16752. var Z = j.doc, H = I.error, U;
  16753. return function(F, R) {
  16754. var N = F.chartWidth, b = F.chartHeight, x = F, u = F.seriesGroup || R.group, f = Z.implementation.hasFeature("www.http://w3.org/TR/SVG11/feature#Extensibility", "1.1");
  16755. return x = F.isChartSeriesBoosting() ? F : R, f = !1, U || (U = Z.createElement("canvas")), x.renderTarget || (x.canvas = U, F.renderer.forExport || !f ? (x.renderTarget = F.renderer.image("", 0, 0, N, b).addClass("highcharts-boost-canvas").add(u), x.boostClear = function() {
  16756. x.renderTarget.attr({ href: "" });
  16757. }, x.boostCopy = function() {
  16758. x.boostResizeTarget(), x.renderTarget.attr({ href: x.canvas.toDataURL("image/png") });
  16759. }) : (x.renderTargetFo = F.renderer.createElement("foreignObject").add(u), x.renderTarget = Z.createElement("canvas"), x.renderTargetCtx = x.renderTarget.getContext("2d"), x.renderTargetFo.element.appendChild(x.renderTarget), x.boostClear = function() {
  16760. x.renderTarget.width = x.canvas.width, x.renderTarget.height = x.canvas.height;
  16761. }, x.boostCopy = function() {
  16762. x.renderTarget.width = x.canvas.width, x.renderTarget.height = x.canvas.height, x.renderTargetCtx.drawImage(x.canvas, 0, 0);
  16763. }), x.boostResizeTarget = function() {
  16764. N = F.chartWidth, b = F.chartHeight, (x.renderTargetFo || x.renderTarget).attr({ x: 0, y: 0, width: N, height: b }).css({ pointerEvents: "none", mixedBlendMode: "normal", opacity: 1 }), x instanceof l && x.markerGroup.translate(F.plotLeft, F.plotTop);
  16765. }, x.boostClipRect = F.renderer.clipRect(), (x.renderTargetFo || x.renderTarget).clip(x.boostClipRect), x instanceof l && (x.markerGroup = x.renderer.g().add(u), x.markerGroup.translate(R.xAxis.pos, R.yAxis.pos))), x.canvas.width = N, x.canvas.height = b, x.boostClipRect.attr(F.getBoostClipRect(x)), x.boostResizeTarget(), x.boostClear(), x.ogl || (x.ogl = y(function() {
  16766. x.ogl.settings.debug.timeBufferCopy && console.time("buffer copy"), x.boostCopy(), x.ogl.settings.debug.timeBufferCopy && console.timeEnd("buffer copy");
  16767. }), x.ogl.init(x.canvas) || H("[highcharts boost] - unable to init WebGL renderer"), x.ogl.setOptions(F.options.boost || {}), x instanceof l && x.ogl.allocateBuffer(F)), x.ogl.setSize(N, b), x.ogl;
  16768. };
  16769. }), T(d, "Extensions/Boost/BoostUtils.js", [d["Core/Globals.js"], d["Extensions/Boost/BoostableMap.js"], d["Extensions/Boost/BoostAttach.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  16770. function Z() {
  16771. for (var u = [], f = 0; f < arguments.length; f++)
  16772. u[f] = arguments[f];
  16773. var E = -Number.MAX_VALUE;
  16774. return u.forEach(function(O) {
  16775. if (typeof O < "u" && O !== null && typeof O.length < "u" && 0 < O.length)
  16776. return E = O.length, !0;
  16777. }), E;
  16778. }
  16779. function H(u, f, E) {
  16780. u && f.renderTarget && f.canvas && !(E || f.chart).isChartSeriesBoosting() && u.render(E || f.chart);
  16781. }
  16782. function U(u, f) {
  16783. u && f.renderTarget && f.canvas && !f.chart.isChartSeriesBoosting() && u.allocateBufferForSingleSeries(f);
  16784. }
  16785. function F(u, f, E, O, B, M) {
  16786. B = B || 0, O = O || 3e3;
  16787. for (var S = B + O, w = !0; w && B < S && B < u.length; )
  16788. w = f(u[B], B), ++B;
  16789. w && (B < u.length ? M ? F(u, f, E, O, B, M) : N.requestAnimationFrame ? N.requestAnimationFrame(function() {
  16790. F(u, f, E, O, B);
  16791. }) : setTimeout(function() {
  16792. F(u, f, E, O, B);
  16793. }) : E && E());
  16794. }
  16795. function R() {
  16796. var u = 0, f, E = [
  16797. "webgl",
  16798. "experimental-webgl",
  16799. "moz-webgl",
  16800. "webkit-3d"
  16801. ], O = !1;
  16802. if (typeof N.WebGLRenderingContext < "u")
  16803. for (f = b.createElement("canvas"); u < E.length; u++)
  16804. try {
  16805. if (O = f.getContext(E[u]), typeof O < "u" && O !== null)
  16806. return !0;
  16807. } catch {
  16808. }
  16809. return !1;
  16810. }
  16811. var N = l.win, b = l.doc, x = I.pick;
  16812. return I = { patientMax: Z, boostEnabled: function(u) {
  16813. return x(u && u.options && u.options.boost && u.options.boost.enabled, !0);
  16814. }, shouldForceChartSeriesBoosting: function(u) {
  16815. var f = 0, E = 0, O = x(u.options.boost && u.options.boost.allowForce, !0);
  16816. if (typeof u.boostForceChartBoost < "u")
  16817. return u.boostForceChartBoost;
  16818. if (1 < u.series.length)
  16819. for (var B = 0; B < u.series.length; B++) {
  16820. var M = u.series[B];
  16821. M.options.boostThreshold !== 0 && M.visible !== !1 && M.type !== "heatmap" && (y[M.type] && ++E, Z(M.processedXData, M.options.data, M.points) >= (M.options.boostThreshold || Number.MAX_VALUE) && ++f);
  16822. }
  16823. return u.boostForceChartBoost = O && (E === u.series.length && 0 < f || 5 < f), u.boostForceChartBoost;
  16824. }, renderIfNotSeriesBoosting: H, allocateIfNotSeriesBoosting: U, eachAsync: F, hasWebGLSupport: R, pointDrawHandler: function(u) {
  16825. var f = !0;
  16826. if (this.chart.options && this.chart.options.boost && (f = typeof this.chart.options.boost.enabled > "u" ? !0 : this.chart.options.boost.enabled), !f || !this.isSeriesBoosting)
  16827. return u.call(this);
  16828. this.chart.isBoosting = !0, (u = j(this.chart, this)) && (U(u, this), u.pushSeries(this)), H(u, this);
  16829. } }, l.hasWebGLSupport = R, I;
  16830. }), T(
  16831. d,
  16832. "Extensions/Boost/BoostInit.js",
  16833. [d["Core/Chart/Chart.js"], d["Core/Globals.js"], d["Core/Series/Series.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"], d["Extensions/Boost/BoostUtils.js"], d["Extensions/Boost/BoostAttach.js"]],
  16834. function(l, y, j, I, Z, H, U) {
  16835. var F = y.noop, R = I.seriesTypes, N = Z.addEvent, b = Z.extend, x = Z.fireEvent, u = Z.wrap, f = H.eachAsync, E = H.pointDrawHandler, O = H.allocateIfNotSeriesBoosting, B = H.renderIfNotSeriesBoosting, M = H.shouldForceChartSeriesBoosting, S;
  16836. return function() {
  16837. b(j.prototype, { renderCanvas: function() {
  16838. function w(dt, ht) {
  16839. var at = !1, J = typeof i.index > "u", tt = !0;
  16840. if (typeof dt > "u")
  16841. return !0;
  16842. if (!J) {
  16843. if (G)
  16844. var st = dt[0], lt = dt[1];
  16845. else
  16846. st = dt, lt = o[ht];
  16847. Y ? (G && (lt = dt.slice(1, 3)), at = lt[0], lt = lt[1]) : V && (st = dt.x, lt = dt.stackY, at = lt - dt.y), k || (tt = lt >= D && lt <= W), lt !== null && st >= A && st <= _ && tt && (dt = h.toPixels(st, !0), g ? ((typeof q > "u" || dt === X) && (Y || (at = lt), (typeof it > "u" || lt > $) && ($ = lt, it = ht), (typeof q > "u" || at < z) && (z = at, q = ht)), dt !== X && (typeof q < "u" && (lt = s.toPixels($, !0), L = s.toPixels(z, !0), rt(dt, lt, it), L !== lt && rt(dt, L, q)), q = it = void 0, X = dt)) : (lt = Math.ceil(s.toPixels(lt, !0)), rt(dt, lt, ht)));
  16848. }
  16849. return !J;
  16850. }
  16851. function v() {
  16852. x(a, "renderedCanvas"), delete a.buildKDTree, a.buildKDTree(), ct.debug.timeKDTree && console.timeEnd("kd tree building");
  16853. }
  16854. var a = this, c = a.options || {}, p = !1, i = a.chart, h = this.xAxis, s = this.yAxis, t = c.xData || a.processedXData, o = c.yData || a.processedYData, n = c.data;
  16855. p = h.getExtremes();
  16856. var A = p.min, _ = p.max;
  16857. p = s.getExtremes();
  16858. var D = p.min, W = p.max, P = {}, X, g = !!a.sampling, m = c.enableMouseTracking !== !1, L = s.getThreshold(c.threshold), Y = a.pointArrayMap && a.pointArrayMap.join(",") === "low,high", V = !!c.stacking, Q = a.cropStart || 0, k = a.requireSorting, G = !t, z, $, q, it, et = c.findNearestPointBy === "x", nt = this.xData || this.options.xData || this.processedXData || !1, rt = function(dt, ht, at) {
  16859. dt = Math.ceil(dt), S = et ? dt : dt + "," + ht, m && !P[S] && (P[S] = !0, i.inverted && (dt = h.len - dt, ht = s.len - ht), gt.push({ x: nt ? nt[Q + at] : !1, clientX: dt, plotX: dt, plotY: ht, i: Q + at }));
  16860. };
  16861. p = U(i, a), i.isBoosting = !0;
  16862. var ct = p.settings;
  16863. if (this.visible) {
  16864. (this.points || this.graph) && this.destroyGraphics(), i.isChartSeriesBoosting() ? (this.markerGroup && this.markerGroup !== i.markerGroup && this.markerGroup.destroy(), this.markerGroup = i.markerGroup, this.renderTarget && (this.renderTarget = this.renderTarget.destroy())) : (this.markerGroup === i.markerGroup && (this.markerGroup = void 0), this.markerGroup = a.plotGroup("markerGroup", "markers", !0, 1, i.seriesGroup));
  16865. var gt = this.points = [];
  16866. a.buildKDTree = F, p && (O(p, this), p.pushSeries(a), B(p, this, i)), i.renderer.forExport || (ct.debug.timeKDTree && console.time("kd tree building"), f(V ? a.data : t || n, w, v));
  16867. }
  16868. } }), ["heatmap", "treemap"].forEach(function(w) {
  16869. R[w] && u(R[w].prototype, "drawPoints", E);
  16870. }), R.bubble && (delete R.bubble.prototype.buildKDTree, u(R.bubble.prototype, "markerAttribs", function(w) {
  16871. return this.isSeriesBoosting ? !1 : w.apply(this, [].slice.call(arguments, 1));
  16872. })), R.scatter.prototype.fill = !0, b(R.area.prototype, { fill: !0, fillOpacity: !0, sampling: !0 }), b(R.column.prototype, { fill: !0, sampling: !0 }), l.prototype.propsRequireUpdateSeries.push("boost"), l.prototype.callbacks.push(function(w) {
  16873. N(w, "predraw", function() {
  16874. w.boostForceChartBoost = void 0, w.boostForceChartBoost = M(w), w.isBoosting = !1, !w.isChartSeriesBoosting() && w.didBoost && (w.didBoost = !1), w.boostClear && w.boostClear(), w.canvas && w.ogl && w.isChartSeriesBoosting() && (w.didBoost = !0, w.ogl.allocateBuffer(w)), w.markerGroup && w.xAxis && 0 < w.xAxis.length && w.yAxis && 0 < w.yAxis.length && w.markerGroup.translate(w.xAxis[0].pos, w.yAxis[0].pos);
  16875. }), N(w, "render", function() {
  16876. w.ogl && w.isChartSeriesBoosting() && w.ogl.render(w);
  16877. });
  16878. var v = -1, a = -1;
  16879. N(w.pointer, "afterGetHoverData", function() {
  16880. var c = w.hoverSeries;
  16881. if (w.markerGroup && c) {
  16882. var p = w.inverted ? c.yAxis : c.xAxis;
  16883. c = w.inverted ? c.xAxis : c.yAxis, (p && p.pos !== v || c && c.pos !== a) && (w.markerGroup.translate(p.pos, c.pos), v = p.pos, a = c.pos);
  16884. }
  16885. });
  16886. });
  16887. };
  16888. }
  16889. ), T(
  16890. d,
  16891. "Extensions/BoostCanvas.js",
  16892. [d["Core/Chart/Chart.js"], d["Core/Color/Color.js"], d["Core/Globals.js"], d["Core/Series/Series.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]],
  16893. function(l, y, j, I, Z, H) {
  16894. var U = y.parse, F = j.doc, R = j.noop, N = Z.seriesTypes, b = H.addEvent, x = H.extend, u = H.fireEvent, f = H.isNumber, E = H.merge, O = H.pick, B = H.wrap, M;
  16895. return function() {
  16896. j.seriesTypes.heatmap && B(j.seriesTypes.heatmap.prototype, "drawPoints", function() {
  16897. var S = this.chart, w = this.getContext(), v = this.chart.inverted, a = this.xAxis, c = this.yAxis;
  16898. w ? (this.points.forEach(function(p) {
  16899. var i = p.plotY;
  16900. if (typeof i < "u" && !isNaN(i) && p.y !== null && w) {
  16901. var h = p.shapeArgs || {};
  16902. i = h.x, i = i === void 0 ? 0 : i;
  16903. var s = h.y;
  16904. s = s === void 0 ? 0 : s;
  16905. var t = h.width;
  16906. t = t === void 0 ? 0 : t, h = h.height, h = h === void 0 ? 0 : h, p = S.styledMode ? p.series.colorAttribs(p) : p.series.pointAttribs(p), w.fillStyle = p.fill, v ? w.fillRect(c.len - s + a.left, a.len - i + c.top, -h, -t) : w.fillRect(i + a.left, s + c.top, t, h);
  16907. }
  16908. }), this.canvasToSVG()) : this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser");
  16909. }), x(I.prototype, { getContext: function() {
  16910. var S = this.chart, w = S.chartWidth, v = S.chartHeight, a = S.seriesGroup || this.group, c = this, p = function(h, s, t, o, n, A, _) {
  16911. h.call(this, t, s, o, n, A, _);
  16912. };
  16913. S.isChartSeriesBoosting() && (c = S, a = S.seriesGroup);
  16914. var i = c.ctx;
  16915. return c.canvas || (c.canvas = F.createElement("canvas"), c.renderTarget = S.renderer.image("", 0, 0, w, v).addClass("highcharts-boost-canvas").add(a), c.ctx = i = c.canvas.getContext("2d"), S.inverted && ["moveTo", "lineTo", "rect", "arc"].forEach(function(h) {
  16916. B(i, h, p);
  16917. }), c.boostCopy = function() {
  16918. c.renderTarget.attr({ href: c.canvas.toDataURL("image/png") });
  16919. }, c.boostClear = function() {
  16920. i.clearRect(0, 0, c.canvas.width, c.canvas.height), c === this && c.renderTarget.attr({ href: "" });
  16921. }, c.boostClipRect = S.renderer.clipRect(), c.renderTarget.clip(c.boostClipRect)), c.canvas.width !== w && (c.canvas.width = w), c.canvas.height !== v && (c.canvas.height = v), c.renderTarget.attr({ x: 0, y: 0, width: w, height: v, style: "pointer-events: none", href: "" }), c.boostClipRect.attr(S.getBoostClipRect(c)), i;
  16922. }, canvasToSVG: function() {
  16923. this.chart.isChartSeriesBoosting() ? this.boostClear && this.boostClear() : (this.boostCopy || this.chart.boostCopy) && (this.boostCopy || this.chart.boostCopy)();
  16924. }, cvsLineTo: function(S, w, v) {
  16925. S.lineTo(w, v);
  16926. }, renderCanvas: function() {
  16927. var S = this, w = S.options, v = S.chart, a = this.xAxis, c = this.yAxis, p = (v.options.boost || {}).timeRendering || !1, i = 0, h = S.processedXData, s = S.processedYData, t = w.data, o = a.getExtremes(), n = o.min, A = o.max;
  16928. o = c.getExtremes();
  16929. var _ = o.min, D = o.max, W = {}, P, X = !!S.sampling, g = w.marker && w.marker.radius, m = this.cvsDrawPoint, L = w.lineWidth ? this.cvsLineTo : void 0, Y = g && 1 >= g ? this.cvsMarkerSquare : this.cvsMarkerCircle, V = this.cvsStrokeBatch || 1e3, Q = w.enableMouseTracking !== !1, k;
  16930. o = w.threshold;
  16931. var G = c.getThreshold(o), z = f(o), $ = G, q = this.fill, it = S.pointArrayMap && S.pointArrayMap.join(",") === "low,high", et = !!w.stacking, nt = S.cropStart || 0;
  16932. o = v.options.loading;
  16933. var rt = S.requireSorting, ct, gt = w.connectNulls, dt = !h, ht, at, J, tt, st, lt = et ? S.data : h || t, pt = S.fillOpacity ? y.parse(S.color).setOpacity(O(w.fillOpacity, 0.75)).get() : S.color, yt = function() {
  16934. q ? (Dt.fillStyle = pt, Dt.fill()) : (Dt.strokeStyle = S.color, Dt.lineWidth = w.lineWidth, Dt.stroke());
  16935. }, vt = function(Lt, Nt, Et, Kt) {
  16936. i === 0 && (Dt.beginPath(), L && (Dt.lineJoin = "round")), v.scroller && S.options.className === "highcharts-navigator-series" ? (Nt += v.scroller.top, Et && (Et += v.scroller.top)) : Nt += v.plotTop, Lt += v.plotLeft, ct ? Dt.moveTo(Lt, Nt) : m ? m(Dt, Lt, Nt, Et, k) : L ? L(Dt, Lt, Nt) : Y && Y.call(S, Dt, Lt, Nt, g, Kt), i += 1, i === V && (yt(), i = 0), k = { clientX: Lt, plotY: Nt, yBottom: Et };
  16937. }, Mt = w.findNearestPointBy === "x", Pt = this.xData || this.options.xData || this.processedXData || !1, At = function(Lt, Nt, Et) {
  16938. st = Mt ? Lt : Lt + "," + Nt, Q && !W[st] && (W[st] = !0, v.inverted && (Lt = a.len - Lt, Nt = c.len - Nt), St.push({ x: Pt ? Pt[nt + Et] : !1, clientX: Lt, plotX: Lt, plotY: Nt, i: nt + Et }));
  16939. };
  16940. this.renderTarget && this.renderTarget.attr({ href: "" }), (this.points || this.graph) && this.destroyGraphics(), S.plotGroup("group", "series", S.visible ? "visible" : "hidden", w.zIndex, v.seriesGroup), S.markerGroup = S.group, b(S, "destroy", function() {
  16941. S.markerGroup = null;
  16942. });
  16943. var St = this.points = [], Dt = this.getContext();
  16944. S.buildKDTree = R, this.boostClear && this.boostClear(), this.visible && (99999 < t.length && (v.options.loading = E(o, { labelStyle: {
  16945. backgroundColor: U("#ffffff").setOpacity(0.75).get(),
  16946. padding: "1em",
  16947. borderRadius: "0.5em"
  16948. }, style: { backgroundColor: "none", opacity: 1 } }), H.clearTimeout(M), v.showLoading("Drawing..."), v.options.loading = o), p && console.time("canvas rendering"), j.eachAsync(lt, function(Lt, Nt) {
  16949. var Et = !1, Kt = !1, Gt = !1, Wt = !1, Jt = typeof v.index > "u", be = !0;
  16950. if (!Jt) {
  16951. if (dt) {
  16952. var zt = Lt[0], Vt = Lt[1];
  16953. lt[Nt + 1] && (Gt = lt[Nt + 1][0]), lt[Nt - 1] && (Wt = lt[Nt - 1][0]);
  16954. } else
  16955. zt = Lt, Vt = s[Nt], lt[Nt + 1] && (Gt = lt[Nt + 1]), lt[Nt - 1] && (Wt = lt[Nt - 1]);
  16956. if (Gt && Gt >= n && Gt <= A && (Et = !0), Wt && Wt >= n && Wt <= A && (Kt = !0), it) {
  16957. dt && (Vt = Lt.slice(1, 3));
  16958. var Ce = Vt[0];
  16959. Vt = Vt[1];
  16960. } else
  16961. et && (zt = Lt.x, Vt = Lt.stackY, Ce = Vt - Lt.y);
  16962. Lt = Vt === null, rt || (be = Vt >= _ && Vt <= D), !Lt && (zt >= n && zt <= A && be || Et || Kt) && (zt = Math.round(a.toPixels(zt, !0)), X ? ((typeof J > "u" || zt === P) && (it || (Ce = Vt), (typeof tt > "u" || Vt > at) && (at = Vt, tt = Nt), (typeof J > "u" || Ce < ht) && (ht = Ce, J = Nt)), zt !== P && (typeof J < "u" && (Vt = c.toPixels(at, !0), G = c.toPixels(ht, !0), vt(zt, z ? Math.min(Vt, $) : Vt, z ? Math.max(G, $) : G, Nt), At(zt, Vt, tt), G !== Vt && At(zt, G, J)), J = tt = void 0, P = zt)) : (Vt = Math.round(c.toPixels(Vt, !0)), vt(zt, Vt, G, Nt), At(zt, Vt, Nt))), ct = Lt && !gt, Nt % 5e4 === 0 && (S.boostCopy || S.chart.boostCopy) && (S.boostCopy || S.chart.boostCopy)();
  16963. }
  16964. return !Jt;
  16965. }, function() {
  16966. var Lt = v.loadingDiv, Nt = v.loadingShown;
  16967. yt(), S.canvasToSVG(), p && console.timeEnd("canvas rendering"), u(S, "renderedCanvas"), Nt && (x(Lt.style, { transition: "opacity 250ms", opacity: 0 }), v.loadingShown = !1, M = setTimeout(function() {
  16968. Lt.parentNode && Lt.parentNode.removeChild(Lt), v.loadingDiv = v.loadingSpan = null;
  16969. }, 250)), delete S.buildKDTree, S.buildKDTree();
  16970. }, v.renderer.forExport ? Number.MAX_VALUE : void 0));
  16971. } }), N.scatter.prototype.cvsMarkerCircle = function(S, w, v, a) {
  16972. S.moveTo(w, v), S.arc(w, v, a, 0, 2 * Math.PI, !1);
  16973. }, N.scatter.prototype.cvsMarkerSquare = function(S, w, v, a) {
  16974. S.rect(w - a, v - a, 2 * a, 2 * a);
  16975. }, N.scatter.prototype.fill = !0, N.bubble && (N.bubble.prototype.cvsMarkerCircle = function(S, w, v, a, c) {
  16976. S.moveTo(w, v), S.arc(w, v, this.radii && this.radii[c], 0, 2 * Math.PI, !1);
  16977. }, N.bubble.prototype.cvsStrokeBatch = 1), x(N.area.prototype, {
  16978. cvsDrawPoint: function(S, w, v, a, c) {
  16979. c && w !== c.clientX && (S.moveTo(c.clientX, c.yBottom), S.lineTo(c.clientX, c.plotY), S.lineTo(w, v), S.lineTo(w, a));
  16980. },
  16981. fill: !0,
  16982. fillOpacity: !0,
  16983. sampling: !0
  16984. }), x(N.column.prototype, { cvsDrawPoint: function(S, w, v, a) {
  16985. S.rect(w - 1, v, 1, a - v);
  16986. }, fill: !0, sampling: !0 }), l.prototype.callbacks.push(function(S) {
  16987. b(S, "predraw", function() {
  16988. S.renderTarget && S.renderTarget.attr({ href: "" }), S.canvas && S.canvas.getContext("2d").clearRect(0, 0, S.canvas.width, S.canvas.height);
  16989. }), b(S, "render", function() {
  16990. S.boostCopy && S.boostCopy();
  16991. });
  16992. });
  16993. };
  16994. }
  16995. ), T(d, "Extensions/Boost/BoostOverrides.js", [
  16996. d["Core/Chart/Chart.js"],
  16997. d["Core/DefaultOptions.js"],
  16998. d["Core/Series/Point.js"],
  16999. d["Core/Series/Series.js"],
  17000. d["Core/Series/SeriesRegistry.js"],
  17001. d["Core/Utilities.js"],
  17002. d["Extensions/Boost/BoostUtils.js"],
  17003. d["Extensions/Boost/Boostables.js"],
  17004. d["Extensions/Boost/BoostableMap.js"]
  17005. ], function(l, y, j, I, Z, H, U, F, R) {
  17006. y = y.getOptions;
  17007. var N = Z.seriesTypes;
  17008. Z = H.addEvent;
  17009. var b = H.error, x = H.isArray, u = H.isNumber, f = H.pick, E = H.wrap, O = U.boostEnabled, B = U.shouldForceChartSeriesBoosting, M = y().plotOptions;
  17010. l.prototype.isChartSeriesBoosting = function() {
  17011. return f(this.options.boost && this.options.boost.seriesThreshold, 50) <= this.series.length || B(this);
  17012. }, l.prototype.getBoostClipRect = function(S) {
  17013. var w = { x: this.plotLeft, y: this.plotTop, width: this.plotWidth, height: this.plotHeight };
  17014. return S === this && (S = this.inverted ? this.xAxis : this.yAxis, 1 >= S.length ? (w.y = Math.min(S[0].pos, w.y), w.height = S[0].pos - this.plotTop + S[0].len) : w.height = this.plotHeight), w;
  17015. }, I.prototype.getPoint = function(S) {
  17016. var w = S, v = this.xData || this.options.xData || this.processedXData || !1;
  17017. return !S || S instanceof this.pointClass || (w = new this.pointClass().init(this, this.options.data[S.i], v ? v[S.i] : void 0), w.category = f(this.xAxis.categories ? this.xAxis.categories[w.x] : w.x, w.x), w.dist = S.dist, w.distX = S.distX, w.plotX = S.plotX, w.plotY = S.plotY, w.index = S.i, w.isInside = this.isPointInside(S)), w;
  17018. }, E(I.prototype, "searchPoint", function(S) {
  17019. return this.getPoint(S.apply(this, [].slice.call(arguments, 1)));
  17020. }), E(j.prototype, "haloPath", function(S) {
  17021. var w = this.series, v = this.plotX, a = this.plotY, c = w.chart.inverted;
  17022. w.isSeriesBoosting && c && (this.plotX = w.yAxis.len - a, this.plotY = w.xAxis.len - v);
  17023. var p = S.apply(this, Array.prototype.slice.call(
  17024. arguments,
  17025. 1
  17026. ));
  17027. return w.isSeriesBoosting && c && (this.plotX = v, this.plotY = a), p;
  17028. }), E(I.prototype, "markerAttribs", function(S, w) {
  17029. var v = w.plotX, a = w.plotY, c = this.chart.inverted;
  17030. this.isSeriesBoosting && c && (w.plotX = this.yAxis.len - a, w.plotY = this.xAxis.len - v);
  17031. var p = S.apply(this, Array.prototype.slice.call(arguments, 1));
  17032. return this.isSeriesBoosting && c && (w.plotX = v, w.plotY = a), p;
  17033. }), Z(I, "destroy", function() {
  17034. var S = this, w = S.chart;
  17035. w.markerGroup === S.markerGroup && (S.markerGroup = null), w.hoverPoints && (w.hoverPoints = w.hoverPoints.filter(function(v) {
  17036. return v.series === S;
  17037. })), w.hoverPoint && w.hoverPoint.series === S && (w.hoverPoint = null);
  17038. }), E(I.prototype, "getExtremes", function(S) {
  17039. return this.isSeriesBoosting && this.hasExtremes && this.hasExtremes() ? {} : S.apply(this, Array.prototype.slice.call(arguments, 1));
  17040. }), ["translate", "generatePoints", "drawTracker", "drawPoints", "render"].forEach(function(S) {
  17041. function w(v) {
  17042. var a = this.options.stacking && (S === "translate" || S === "generatePoints");
  17043. !this.isSeriesBoosting || a || !O(this.chart) || this.type === "heatmap" || this.type === "treemap" || !R[this.type] || this.options.boostThreshold === 0 ? v.call(this) : this[S + "Canvas"] && this[S + "Canvas"]();
  17044. }
  17045. E(I.prototype, S, w), S === "translate" && "column bar arearange columnrange heatmap treemap".split(" ").forEach(function(v) {
  17046. N[v] && E(N[v].prototype, S, w);
  17047. });
  17048. }), E(I.prototype, "processData", function(S) {
  17049. function w(c) {
  17050. return v.forceCrop ? !1 : v.chart.isChartSeriesBoosting() || (c ? c.length : 0) >= (v.options.boostThreshold || Number.MAX_VALUE);
  17051. }
  17052. var v = this, a = this.options.data;
  17053. O(this.chart) && R[this.type] ? (w(a) && this.type !== "heatmap" && this.type !== "treemap" && !this.options.stacking && this.hasExtremes && this.hasExtremes(!0) || (S.apply(this, Array.prototype.slice.call(arguments, 1)), a = this.processedXData), (this.isSeriesBoosting = w(a)) ? (a = void 0, this.options.data && this.options.data.length && (a = this.getFirstValidPoint(this.options.data), u(a) || x(a) || b(12, !1, this.chart)), this.enterBoost()) : this.exitBoost && this.exitBoost()) : S.apply(this, Array.prototype.slice.call(arguments, 1));
  17054. }), Z(I, "hide", function() {
  17055. this.canvas && this.renderTarget && (this.ogl && this.ogl.clear(), this.boostClear());
  17056. }), I.prototype.enterBoost = function() {
  17057. this.alteredByBoost = [], ["allowDG", "directTouch", "stickyTracking"].forEach(function(S) {
  17058. this.alteredByBoost.push({ prop: S, val: this[S], own: Object.hasOwnProperty.call(this, S) });
  17059. }, this), this.directTouch = this.allowDG = !1, this.finishedAnimating = this.stickyTracking = !0, this.labelBySeries && (this.labelBySeries = this.labelBySeries.destroy());
  17060. }, I.prototype.exitBoost = function() {
  17061. (this.alteredByBoost || []).forEach(
  17062. function(S) {
  17063. S.own ? this[S.prop] = S.val : delete this[S.prop];
  17064. },
  17065. this
  17066. ), this.boostClear && this.boostClear();
  17067. }, I.prototype.hasExtremes = function(S) {
  17068. var w = this.options, v = this.xAxis && this.xAxis.options, a = this.yAxis && this.yAxis.options, c = this.colorAxis && this.colorAxis.options;
  17069. return w.data.length > (w.boostThreshold || Number.MAX_VALUE) && u(a.min) && u(a.max) && (!S || u(v.min) && u(v.max)) && (!c || u(c.min) && u(c.max));
  17070. }, I.prototype.destroyGraphics = function() {
  17071. var S = this, w = this, v = this.points, a, c;
  17072. if (v)
  17073. for (c = 0; c < v.length; c += 1)
  17074. (a = v[c]) && a.destroyElements && a.destroyElements();
  17075. [
  17076. "graph",
  17077. "area",
  17078. "tracker"
  17079. ].forEach(function(p) {
  17080. w[p] && (w[p] = w[p].destroy());
  17081. }), this.getZonesGraphs && this.getZonesGraphs([["graph", "highcharts-graph"]]).forEach(function(p) {
  17082. var i = S[p[0]];
  17083. i && (S[p[0]] = i.destroy());
  17084. });
  17085. }, F.forEach(function(S) {
  17086. M[S] && (M[S].boostThreshold = 5e3, M[S].boostData = [], N[S].prototype.fillOpacity = !0);
  17087. });
  17088. }), T(d, "Extensions/Boost/NamedColors.js", [d["Core/Color/Color.js"]], function(l) {
  17089. var y = {
  17090. aliceblue: "#f0f8ff",
  17091. antiquewhite: "#faebd7",
  17092. aqua: "#00ffff",
  17093. aquamarine: "#7fffd4",
  17094. azure: "#f0ffff",
  17095. beige: "#f5f5dc",
  17096. bisque: "#ffe4c4",
  17097. black: "#000000",
  17098. blanchedalmond: "#ffebcd",
  17099. blue: "#0000ff",
  17100. blueviolet: "#8a2be2",
  17101. brown: "#a52a2a",
  17102. burlywood: "#deb887",
  17103. cadetblue: "#5f9ea0",
  17104. chartreuse: "#7fff00",
  17105. chocolate: "#d2691e",
  17106. coral: "#ff7f50",
  17107. cornflowerblue: "#6495ed",
  17108. cornsilk: "#fff8dc",
  17109. crimson: "#dc143c",
  17110. cyan: "#00ffff",
  17111. darkblue: "#00008b",
  17112. darkcyan: "#008b8b",
  17113. darkgoldenrod: "#b8860b",
  17114. darkgray: "#a9a9a9",
  17115. darkgreen: "#006400",
  17116. darkkhaki: "#bdb76b",
  17117. darkmagenta: "#8b008b",
  17118. darkolivegreen: "#556b2f",
  17119. darkorange: "#ff8c00",
  17120. darkorchid: "#9932cc",
  17121. darkred: "#8b0000",
  17122. darksalmon: "#e9967a",
  17123. darkseagreen: "#8fbc8f",
  17124. darkslateblue: "#483d8b",
  17125. darkslategray: "#2f4f4f",
  17126. darkturquoise: "#00ced1",
  17127. darkviolet: "#9400d3",
  17128. deeppink: "#ff1493",
  17129. deepskyblue: "#00bfff",
  17130. dimgray: "#696969",
  17131. dodgerblue: "#1e90ff",
  17132. feldspar: "#d19275",
  17133. firebrick: "#b22222",
  17134. floralwhite: "#fffaf0",
  17135. forestgreen: "#228b22",
  17136. fuchsia: "#ff00ff",
  17137. gainsboro: "#dcdcdc",
  17138. ghostwhite: "#f8f8ff",
  17139. gold: "#ffd700",
  17140. goldenrod: "#daa520",
  17141. gray: "#808080",
  17142. green: "#008000",
  17143. greenyellow: "#adff2f",
  17144. honeydew: "#f0fff0",
  17145. hotpink: "#ff69b4",
  17146. indianred: "#cd5c5c",
  17147. indigo: "#4b0082",
  17148. ivory: "#fffff0",
  17149. khaki: "#f0e68c",
  17150. lavender: "#e6e6fa",
  17151. lavenderblush: "#fff0f5",
  17152. lawngreen: "#7cfc00",
  17153. lemonchiffon: "#fffacd",
  17154. lightblue: "#add8e6",
  17155. lightcoral: "#f08080",
  17156. lightcyan: "#e0ffff",
  17157. lightgoldenrodyellow: "#fafad2",
  17158. lightgrey: "#d3d3d3",
  17159. lightgreen: "#90ee90",
  17160. lightpink: "#ffb6c1",
  17161. lightsalmon: "#ffa07a",
  17162. lightseagreen: "#20b2aa",
  17163. lightskyblue: "#87cefa",
  17164. lightslateblue: "#8470ff",
  17165. lightslategray: "#778899",
  17166. lightsteelblue: "#b0c4de",
  17167. lightyellow: "#ffffe0",
  17168. lime: "#00ff00",
  17169. limegreen: "#32cd32",
  17170. linen: "#faf0e6",
  17171. magenta: "#ff00ff",
  17172. maroon: "#800000",
  17173. mediumaquamarine: "#66cdaa",
  17174. mediumblue: "#0000cd",
  17175. mediumorchid: "#ba55d3",
  17176. mediumpurple: "#9370d8",
  17177. mediumseagreen: "#3cb371",
  17178. mediumslateblue: "#7b68ee",
  17179. mediumspringgreen: "#00fa9a",
  17180. mediumturquoise: "#48d1cc",
  17181. mediumvioletred: "#c71585",
  17182. midnightblue: "#191970",
  17183. mintcream: "#f5fffa",
  17184. mistyrose: "#ffe4e1",
  17185. moccasin: "#ffe4b5",
  17186. navajowhite: "#ffdead",
  17187. navy: "#000080",
  17188. oldlace: "#fdf5e6",
  17189. olive: "#808000",
  17190. olivedrab: "#6b8e23",
  17191. orange: "#ffa500",
  17192. orangered: "#ff4500",
  17193. orchid: "#da70d6",
  17194. palegoldenrod: "#eee8aa",
  17195. palegreen: "#98fb98",
  17196. paleturquoise: "#afeeee",
  17197. palevioletred: "#d87093",
  17198. papayawhip: "#ffefd5",
  17199. peachpuff: "#ffdab9",
  17200. peru: "#cd853f",
  17201. pink: "#ffc0cb",
  17202. plum: "#dda0dd",
  17203. powderblue: "#b0e0e6",
  17204. purple: "#800080",
  17205. red: "#ff0000",
  17206. rosybrown: "#bc8f8f",
  17207. royalblue: "#4169e1",
  17208. saddlebrown: "#8b4513",
  17209. salmon: "#fa8072",
  17210. sandybrown: "#f4a460",
  17211. seagreen: "#2e8b57",
  17212. seashell: "#fff5ee",
  17213. sienna: "#a0522d",
  17214. silver: "#c0c0c0",
  17215. skyblue: "#87ceeb",
  17216. slateblue: "#6a5acd",
  17217. slategray: "#708090",
  17218. snow: "#fffafa",
  17219. springgreen: "#00ff7f",
  17220. steelblue: "#4682b4",
  17221. tan: "#d2b48c",
  17222. teal: "#008080",
  17223. thistle: "#d8bfd8",
  17224. tomato: "#ff6347",
  17225. turquoise: "#40e0d0",
  17226. violet: "#ee82ee",
  17227. violetred: "#d02090",
  17228. wheat: "#f5deb3",
  17229. white: "#ffffff",
  17230. whitesmoke: "#f5f5f5",
  17231. yellow: "#ffff00",
  17232. yellowgreen: "#9acd32"
  17233. };
  17234. return l.names = y;
  17235. }), T(d, "Extensions/Boost/Boost.js", [d["Extensions/Boost/BoostUtils.js"], d["Extensions/Boost/BoostInit.js"], d["Extensions/BoostCanvas.js"], d["Core/Utilities.js"]], function(l, y, j, I) {
  17236. I = I.error, l = l.hasWebGLSupport, l() ? y() : typeof j < "u" ? j() : I(26);
  17237. }), T(d, "masters/modules/boost.src.js", [], function() {
  17238. });
  17239. });
  17240. })(Zp);
  17241. var N0 = Zp.exports;
  17242. const B0 = /* @__PURE__ */ Mn(N0), j0 = (r) => {
  17243. let d = window.location.protocol;
  17244. /^http(s)?:&/.test(d) || (d = "http:");
  17245. let T = {
  17246. lang: {
  17247. // Highcharts
  17248. contextButtonTitle: "图表导出菜单",
  17249. decimalPoint: ".",
  17250. downloadJPEG: "下载 JPEG 图片",
  17251. downloadPDF: "下载 PDF 文件",
  17252. downloadPNG: "下载 PNG 文件",
  17253. downloadSVG: "下载 SVG 文件",
  17254. downloadXLS: "下载 XLS 文件",
  17255. drillUpText: "◁ 返回 {series.name}",
  17256. exitFullscreen: "退出全屏",
  17257. exportData: {
  17258. categoryDatetimeHeader: "时间",
  17259. categoryHeader: "类别"
  17260. },
  17261. openInCloud: "在 Highcharts Cloud 中打开",
  17262. invalidDate: "无效的时间",
  17263. loading: "加载中...",
  17264. months: [
  17265. "一月",
  17266. "二月",
  17267. "三月",
  17268. "四月",
  17269. "五月",
  17270. "六月",
  17271. "七月",
  17272. "八月",
  17273. "九月",
  17274. "十月",
  17275. "十一月",
  17276. "十二月"
  17277. ],
  17278. navigation: {
  17279. popup: {
  17280. addButton: "新增",
  17281. arrowLine: "直线",
  17282. arrowRay: "射线",
  17283. arrowSegment: "线段",
  17284. background: "背景",
  17285. backgroundColor: "背景颜色",
  17286. backgroundColors: "背景颜色",
  17287. borderColor: "边框颜色",
  17288. borderRadius: "圆角",
  17289. borderWidth: "边框大小",
  17290. circle: "圆",
  17291. color: "颜色",
  17292. connector: "连接",
  17293. crooked3: "Crooked 3 line",
  17294. crooked5: "Crooked 5 line",
  17295. crosshairX: "竖直准星线",
  17296. crosshairY: "水平准星线",
  17297. editButton: "编辑",
  17298. elliott3: "Elliott 3 line",
  17299. elliott5: "Elliott 5 line",
  17300. fibonacci: "斐波纳契",
  17301. fill: "填充颜色",
  17302. flags: "标志",
  17303. fontSize: "字体大小",
  17304. format: "文本",
  17305. height: "高度",
  17306. horizontalLine: "水平线",
  17307. infinityLine: "无限线",
  17308. innerBackground: "内背景",
  17309. label: "文字标签",
  17310. labelOptions: "文字标签配置",
  17311. labels: "文字标签",
  17312. line: "线",
  17313. lines: "线条",
  17314. measure: "Measure",
  17315. measureX: "Measure X",
  17316. measureXY: "Measure XY",
  17317. measureY: "Measure Y",
  17318. name: "名字",
  17319. outerBackground: "外背景",
  17320. padding: "内间距",
  17321. parallelChannel: "并行通道",
  17322. pitchfork: "杈子",
  17323. ray: "射线",
  17324. rectangle: "矩形",
  17325. removeButton: "删除",
  17326. saveButton: "保存",
  17327. segment: "段落",
  17328. series: "数据列",
  17329. shapeOptions: "图形配置",
  17330. shapes: "图形",
  17331. simpleShapes: "简单图形",
  17332. stroke: "线条颜色",
  17333. strokeWidth: "线条粗细",
  17334. style: "样式",
  17335. title: "标题",
  17336. tunnel: "通道",
  17337. typeOptions: "详情",
  17338. verticalArrow: "竖直箭头",
  17339. verticalCounter: "竖直计数器",
  17340. verticalLabel: "竖直标签",
  17341. verticalLine: "竖直线",
  17342. volume: "成交量"
  17343. }
  17344. },
  17345. noData: "暂无数据",
  17346. numericSymbols: null,
  17347. printChart: "打印图表",
  17348. resetZoom: "重置缩放比例",
  17349. resetZoomTitle: "重置为原始大小",
  17350. shortMonths: [
  17351. "一月",
  17352. "二月",
  17353. "三月",
  17354. "四月",
  17355. "五月",
  17356. "六月",
  17357. "七月",
  17358. "八月",
  17359. "九月",
  17360. "十月",
  17361. "十一月",
  17362. "十二月"
  17363. ],
  17364. thousandsSep: ",",
  17365. viewData: "查看数据表格",
  17366. viewFullscreen: "全屏查看",
  17367. weekdays: [
  17368. "星期天",
  17369. "星期一",
  17370. "星期二",
  17371. "星期三",
  17372. "星期四",
  17373. "星期五",
  17374. "星期六"
  17375. ],
  17376. viewData: "查看数据表格",
  17377. // Highstock
  17378. rangeSelectorFrom: "开始时间",
  17379. rangeSelectorTo: "结束时间",
  17380. rangeSelectorZoom: "范围",
  17381. // Highmaps
  17382. zoomIn: "缩小",
  17383. zoomOut: "放大"
  17384. },
  17385. global: {
  17386. // 不使用 UTC时间
  17387. useUTC: !1,
  17388. timezoneOffset: -8 * 60,
  17389. canvasToolsURL: d + "//cdn.hcharts.cn/highcharts/modules/canvas-tools.js",
  17390. VMLRadialGradientURL: d + +"//cdn.hcharts.cn/highcharts/gfx/vml-radial-gradient.png"
  17391. },
  17392. exporting: {
  17393. url: d + "//export.highcharts.com.cn"
  17394. },
  17395. credits: {
  17396. text: "Highcharts.com.cn",
  17397. href: "https://www.highcharts.com.cn"
  17398. },
  17399. /**
  17400. * Highstock
  17401. */
  17402. rangeSelector: {
  17403. inputDateFormat: "%Y-%m-%d",
  17404. buttons: [
  17405. {
  17406. type: "month",
  17407. count: 1,
  17408. text: "月"
  17409. },
  17410. {
  17411. type: "month",
  17412. count: 3,
  17413. text: "季度"
  17414. },
  17415. {
  17416. type: "month",
  17417. count: 6,
  17418. text: "半年"
  17419. },
  17420. {
  17421. type: "ytd",
  17422. text: "YTD"
  17423. },
  17424. {
  17425. type: "year",
  17426. count: 1,
  17427. text: "年"
  17428. },
  17429. {
  17430. type: "all",
  17431. text: "所有"
  17432. }
  17433. ]
  17434. },
  17435. plotOptions: {
  17436. series: {
  17437. dataGrouping: {
  17438. dateTimeLabelFormats: {
  17439. /* millisecond: [
  17440. '%Y-%m-%d %H:%M:%S.%L',
  17441. '%Y-%m-%d %H:%M:%S.%L',
  17442. ' ~ %H:%M:%S.%L',
  17443. ],
  17444. second: ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S', ' ~ %H:%M:%S'],
  17445. minute: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'],
  17446. hour: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'], */
  17447. day: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17448. week: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17449. month: ["%Y/%m", "%Y/%m", " ~ %Y/%m"],
  17450. year: ["%Y", "%Y", " ~ %Y"]
  17451. }
  17452. }
  17453. }
  17454. }
  17455. };
  17456. r.setOptions(T);
  17457. };
  17458. //! moment.js
  17459. //! version : 2.29.4
  17460. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  17461. //! license : MIT
  17462. //! momentjs.com
  17463. var Kp;
  17464. function Xt() {
  17465. return Kp.apply(null, arguments);
  17466. }
  17467. function W0(r) {
  17468. Kp = r;
  17469. }
  17470. function Wi(r) {
  17471. return r instanceof Array || Object.prototype.toString.call(r) === "[object Array]";
  17472. }
  17473. function Zr(r) {
  17474. return r != null && Object.prototype.toString.call(r) === "[object Object]";
  17475. }
  17476. function me(r, d) {
  17477. return Object.prototype.hasOwnProperty.call(r, d);
  17478. }
  17479. function kl(r) {
  17480. if (Object.getOwnPropertyNames)
  17481. return Object.getOwnPropertyNames(r).length === 0;
  17482. var d;
  17483. for (d in r)
  17484. if (me(r, d))
  17485. return !1;
  17486. return !0;
  17487. }
  17488. function hi(r) {
  17489. return r === void 0;
  17490. }
  17491. function gr(r) {
  17492. return typeof r == "number" || Object.prototype.toString.call(r) === "[object Number]";
  17493. }
  17494. function so(r) {
  17495. return r instanceof Date || Object.prototype.toString.call(r) === "[object Date]";
  17496. }
  17497. function Jp(r, d) {
  17498. var T = [], l, y = r.length;
  17499. for (l = 0; l < y; ++l)
  17500. T.push(d(r[l], l));
  17501. return T;
  17502. }
  17503. function Er(r, d) {
  17504. for (var T in d)
  17505. me(d, T) && (r[T] = d[T]);
  17506. return me(d, "toString") && (r.toString = d.toString), me(d, "valueOf") && (r.valueOf = d.valueOf), r;
  17507. }
  17508. function Zi(r, d, T, l) {
  17509. return Su(r, d, T, l, !0).utc();
  17510. }
  17511. function z0() {
  17512. return {
  17513. empty: !1,
  17514. unusedTokens: [],
  17515. unusedInput: [],
  17516. overflow: -2,
  17517. charsLeftOver: 0,
  17518. nullInput: !1,
  17519. invalidEra: null,
  17520. invalidMonth: null,
  17521. invalidFormat: !1,
  17522. userInvalidated: !1,
  17523. iso: !1,
  17524. parsedDateParts: [],
  17525. era: null,
  17526. meridiem: null,
  17527. rfc2822: !1,
  17528. weekdayMismatch: !1
  17529. };
  17530. }
  17531. function oe(r) {
  17532. return r._pf == null && (r._pf = z0()), r._pf;
  17533. }
  17534. var fl;
  17535. Array.prototype.some ? fl = Array.prototype.some : fl = function(r) {
  17536. var d = Object(this), T = d.length >>> 0, l;
  17537. for (l = 0; l < T; l++)
  17538. if (l in d && r.call(this, d[l], l, d))
  17539. return !0;
  17540. return !1;
  17541. };
  17542. function Al(r) {
  17543. if (r._isValid == null) {
  17544. var d = oe(r), T = fl.call(d.parsedDateParts, function(y) {
  17545. return y != null;
  17546. }), l = !isNaN(r._d.getTime()) && d.overflow < 0 && !d.empty && !d.invalidEra && !d.invalidMonth && !d.invalidWeekday && !d.weekdayMismatch && !d.nullInput && !d.invalidFormat && !d.userInvalidated && (!d.meridiem || d.meridiem && T);
  17547. if (r._strict && (l = l && d.charsLeftOver === 0 && d.unusedTokens.length === 0 && d.bigHour === void 0), Object.isFrozen == null || !Object.isFrozen(r))
  17548. r._isValid = l;
  17549. else
  17550. return l;
  17551. }
  17552. return r._isValid;
  17553. }
  17554. function As(r) {
  17555. var d = Zi(NaN);
  17556. return r != null ? Er(oe(d), r) : oe(d).userInvalidated = !0, d;
  17557. }
  17558. var Ap = Xt.momentProperties = [], rl = !1;
  17559. function Tl(r, d) {
  17560. var T, l, y, j = Ap.length;
  17561. if (hi(d._isAMomentObject) || (r._isAMomentObject = d._isAMomentObject), hi(d._i) || (r._i = d._i), hi(d._f) || (r._f = d._f), hi(d._l) || (r._l = d._l), hi(d._strict) || (r._strict = d._strict), hi(d._tzm) || (r._tzm = d._tzm), hi(d._isUTC) || (r._isUTC = d._isUTC), hi(d._offset) || (r._offset = d._offset), hi(d._pf) || (r._pf = oe(d)), hi(d._locale) || (r._locale = d._locale), j > 0)
  17562. for (T = 0; T < j; T++)
  17563. l = Ap[T], y = d[l], hi(y) || (r[l] = y);
  17564. return r;
  17565. }
  17566. function ao(r) {
  17567. Tl(this, r), this._d = new Date(r._d != null ? r._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), rl === !1 && (rl = !0, Xt.updateOffset(this), rl = !1);
  17568. }
  17569. function zi(r) {
  17570. return r instanceof ao || r != null && r._isAMomentObject != null;
  17571. }
  17572. function qp(r) {
  17573. Xt.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + r);
  17574. }
  17575. function Li(r, d) {
  17576. var T = !0;
  17577. return Er(function() {
  17578. if (Xt.deprecationHandler != null && Xt.deprecationHandler(null, r), T) {
  17579. var l = [], y, j, I, Z = arguments.length;
  17580. for (j = 0; j < Z; j++) {
  17581. if (y = "", typeof arguments[j] == "object") {
  17582. y += `
  17583. [` + j + "] ";
  17584. for (I in arguments[0])
  17585. me(arguments[0], I) && (y += I + ": " + arguments[0][I] + ", ");
  17586. y = y.slice(0, -2);
  17587. } else
  17588. y = arguments[j];
  17589. l.push(y);
  17590. }
  17591. qp(
  17592. r + `
  17593. Arguments: ` + Array.prototype.slice.call(l).join("") + `
  17594. ` + new Error().stack
  17595. ), T = !1;
  17596. }
  17597. return d.apply(this, arguments);
  17598. }, d);
  17599. }
  17600. var Tp = {};
  17601. function Qp(r, d) {
  17602. Xt.deprecationHandler != null && Xt.deprecationHandler(r, d), Tp[r] || (qp(d), Tp[r] = !0);
  17603. }
  17604. Xt.suppressDeprecationWarnings = !1;
  17605. Xt.deprecationHandler = null;
  17606. function Ki(r) {
  17607. return typeof Function < "u" && r instanceof Function || Object.prototype.toString.call(r) === "[object Function]";
  17608. }
  17609. function Y0(r) {
  17610. var d, T;
  17611. for (T in r)
  17612. me(r, T) && (d = r[T], Ki(d) ? this[T] = d : this["_" + T] = d);
  17613. this._config = r, this._dayOfMonthOrdinalParseLenient = new RegExp(
  17614. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
  17615. );
  17616. }
  17617. function gl(r, d) {
  17618. var T = Er({}, r), l;
  17619. for (l in d)
  17620. me(d, l) && (Zr(r[l]) && Zr(d[l]) ? (T[l] = {}, Er(T[l], r[l]), Er(T[l], d[l])) : d[l] != null ? T[l] = d[l] : delete T[l]);
  17621. for (l in r)
  17622. me(r, l) && !me(d, l) && Zr(r[l]) && (T[l] = Er({}, T[l]));
  17623. return T;
  17624. }
  17625. function Pl(r) {
  17626. r != null && this.set(r);
  17627. }
  17628. var ml;
  17629. Object.keys ? ml = Object.keys : ml = function(r) {
  17630. var d, T = [];
  17631. for (d in r)
  17632. me(r, d) && T.push(d);
  17633. return T;
  17634. };
  17635. var X0 = {
  17636. sameDay: "[Today at] LT",
  17637. nextDay: "[Tomorrow at] LT",
  17638. nextWeek: "dddd [at] LT",
  17639. lastDay: "[Yesterday at] LT",
  17640. lastWeek: "[Last] dddd [at] LT",
  17641. sameElse: "L"
  17642. };
  17643. function G0(r, d, T) {
  17644. var l = this._calendar[r] || this._calendar.sameElse;
  17645. return Ki(l) ? l.call(d, T) : l;
  17646. }
  17647. function $i(r, d, T) {
  17648. var l = "" + Math.abs(r), y = d - l.length, j = r >= 0;
  17649. return (j ? T ? "+" : "" : "-") + Math.pow(10, Math.max(0, y)).toString().substr(1) + l;
  17650. }
  17651. var El = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, ns = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, nl = {}, vn = {};
  17652. function Zt(r, d, T, l) {
  17653. var y = l;
  17654. typeof l == "string" && (y = function() {
  17655. return this[l]();
  17656. }), r && (vn[r] = y), d && (vn[d[0]] = function() {
  17657. return $i(y.apply(this, arguments), d[1], d[2]);
  17658. }), T && (vn[T] = function() {
  17659. return this.localeData().ordinal(
  17660. y.apply(this, arguments),
  17661. r
  17662. );
  17663. });
  17664. }
  17665. function H0(r) {
  17666. return r.match(/\[[\s\S]/) ? r.replace(/^\[|\]$/g, "") : r.replace(/\\/g, "");
  17667. }
  17668. function F0(r) {
  17669. var d = r.match(El), T, l;
  17670. for (T = 0, l = d.length; T < l; T++)
  17671. vn[d[T]] ? d[T] = vn[d[T]] : d[T] = H0(d[T]);
  17672. return function(y) {
  17673. var j = "", I;
  17674. for (I = 0; I < l; I++)
  17675. j += Ki(d[I]) ? d[I].call(y, r) : d[I];
  17676. return j;
  17677. };
  17678. }
  17679. function as(r, d) {
  17680. return r.isValid() ? (d = tu(d, r.localeData()), nl[d] = nl[d] || F0(d), nl[d](r)) : r.localeData().invalidDate();
  17681. }
  17682. function tu(r, d) {
  17683. var T = 5;
  17684. function l(y) {
  17685. return d.longDateFormat(y) || y;
  17686. }
  17687. for (ns.lastIndex = 0; T >= 0 && ns.test(r); )
  17688. r = r.replace(
  17689. ns,
  17690. l
  17691. ), ns.lastIndex = 0, T -= 1;
  17692. return r;
  17693. }
  17694. var U0 = {
  17695. LTS: "h:mm:ss A",
  17696. LT: "h:mm A",
  17697. L: "MM/DD/YYYY",
  17698. LL: "MMMM D, YYYY",
  17699. LLL: "MMMM D, YYYY h:mm A",
  17700. LLLL: "dddd, MMMM D, YYYY h:mm A"
  17701. };
  17702. function V0(r) {
  17703. var d = this._longDateFormat[r], T = this._longDateFormat[r.toUpperCase()];
  17704. return d || !T ? d : (this._longDateFormat[r] = T.match(El).map(function(l) {
  17705. return l === "MMMM" || l === "MM" || l === "DD" || l === "dddd" ? l.slice(1) : l;
  17706. }).join(""), this._longDateFormat[r]);
  17707. }
  17708. var $0 = "Invalid date";
  17709. function Z0() {
  17710. return this._invalidDate;
  17711. }
  17712. var K0 = "%d", J0 = /\d{1,2}/;
  17713. function q0(r) {
  17714. return this._ordinal.replace("%d", r);
  17715. }
  17716. var Q0 = {
  17717. future: "in %s",
  17718. past: "%s ago",
  17719. s: "a few seconds",
  17720. ss: "%d seconds",
  17721. m: "a minute",
  17722. mm: "%d minutes",
  17723. h: "an hour",
  17724. hh: "%d hours",
  17725. d: "a day",
  17726. dd: "%d days",
  17727. w: "a week",
  17728. ww: "%d weeks",
  17729. M: "a month",
  17730. MM: "%d months",
  17731. y: "a year",
  17732. yy: "%d years"
  17733. };
  17734. function t1(r, d, T, l) {
  17735. var y = this._relativeTime[T];
  17736. return Ki(y) ? y(r, d, T, l) : y.replace(/%d/i, r);
  17737. }
  17738. function e1(r, d) {
  17739. var T = this._relativeTime[r > 0 ? "future" : "past"];
  17740. return Ki(T) ? T(d) : T.replace(/%s/i, d);
  17741. }
  17742. var qn = {};
  17743. function ti(r, d) {
  17744. var T = r.toLowerCase();
  17745. qn[T] = qn[T + "s"] = qn[d] = r;
  17746. }
  17747. function _i(r) {
  17748. return typeof r == "string" ? qn[r] || qn[r.toLowerCase()] : void 0;
  17749. }
  17750. function Ol(r) {
  17751. var d = {}, T, l;
  17752. for (l in r)
  17753. me(r, l) && (T = _i(l), T && (d[T] = r[l]));
  17754. return d;
  17755. }
  17756. var eu = {};
  17757. function ei(r, d) {
  17758. eu[r] = d;
  17759. }
  17760. function i1(r) {
  17761. var d = [], T;
  17762. for (T in r)
  17763. me(r, T) && d.push({ unit: T, priority: eu[T] });
  17764. return d.sort(function(l, y) {
  17765. return l.priority - y.priority;
  17766. }), d;
  17767. }
  17768. function Ts(r) {
  17769. return r % 4 === 0 && r % 100 !== 0 || r % 400 === 0;
  17770. }
  17771. function Ti(r) {
  17772. return r < 0 ? Math.ceil(r) || 0 : Math.floor(r);
  17773. }
  17774. function le(r) {
  17775. var d = +r, T = 0;
  17776. return d !== 0 && isFinite(d) && (T = Ti(d)), T;
  17777. }
  17778. function kn(r, d) {
  17779. return function(T) {
  17780. return T != null ? (iu(this, r, T), Xt.updateOffset(this, d), this) : ys(this, r);
  17781. };
  17782. }
  17783. function ys(r, d) {
  17784. return r.isValid() ? r._d["get" + (r._isUTC ? "UTC" : "") + d]() : NaN;
  17785. }
  17786. function iu(r, d, T) {
  17787. r.isValid() && !isNaN(T) && (d === "FullYear" && Ts(r.year()) && r.month() === 1 && r.date() === 29 ? (T = le(T), r._d["set" + (r._isUTC ? "UTC" : "") + d](
  17788. T,
  17789. r.month(),
  17790. Ds(T, r.month())
  17791. )) : r._d["set" + (r._isUTC ? "UTC" : "") + d](T));
  17792. }
  17793. function r1(r) {
  17794. return r = _i(r), Ki(this[r]) ? this[r]() : this;
  17795. }
  17796. function n1(r, d) {
  17797. if (typeof r == "object") {
  17798. r = Ol(r);
  17799. var T = i1(r), l, y = T.length;
  17800. for (l = 0; l < y; l++)
  17801. this[T[l].unit](r[T[l].unit]);
  17802. } else if (r = _i(r), Ki(this[r]))
  17803. return this[r](d);
  17804. return this;
  17805. }
  17806. var ru = /\d/, vi = /\d\d/, nu = /\d{3}/, Ll = /\d{4}/, Ps = /[+-]?\d{6}/, Pe = /\d\d?/, ou = /\d\d\d\d?/, su = /\d\d\d\d\d\d?/, Es = /\d{1,3}/, _l = /\d{1,4}/, Os = /[+-]?\d{1,6}/, An = /\d+/, Ls = /[+-]?\d+/, o1 = /Z|[+-]\d\d:?\d\d/gi, _s = /Z|[+-]\d\d(?::?\d\d)?/gi, s1 = /[+-]?\d+(\.\d{1,3})?/, lo = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, vs;
  17807. vs = {};
  17808. function Ft(r, d, T) {
  17809. vs[r] = Ki(d) ? d : function(l, y) {
  17810. return l && T ? T : d;
  17811. };
  17812. }
  17813. function a1(r, d) {
  17814. return me(vs, r) ? vs[r](d._strict, d._locale) : new RegExp(l1(r));
  17815. }
  17816. function l1(r) {
  17817. return yi(
  17818. r.replace("\\", "").replace(
  17819. /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  17820. function(d, T, l, y, j) {
  17821. return T || l || y || j;
  17822. }
  17823. )
  17824. );
  17825. }
  17826. function yi(r) {
  17827. return r.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
  17828. }
  17829. var yl = {};
  17830. function we(r, d) {
  17831. var T, l = d, y;
  17832. for (typeof r == "string" && (r = [r]), gr(d) && (l = function(j, I) {
  17833. I[d] = le(j);
  17834. }), y = r.length, T = 0; T < y; T++)
  17835. yl[r[T]] = l;
  17836. }
  17837. function ho(r, d) {
  17838. we(r, function(T, l, y, j) {
  17839. y._w = y._w || {}, d(T, y._w, y, j);
  17840. });
  17841. }
  17842. function h1(r, d, T) {
  17843. d != null && me(yl, r) && yl[r](d, T._a, T, r);
  17844. }
  17845. var Qe = 0, pr = 1, Ui = 2, Xe = 3, ji = 4, ur = 5, Ur = 6, c1 = 7, p1 = 8;
  17846. function u1(r, d) {
  17847. return (r % d + d) % d;
  17848. }
  17849. var We;
  17850. Array.prototype.indexOf ? We = Array.prototype.indexOf : We = function(r) {
  17851. var d;
  17852. for (d = 0; d < this.length; ++d)
  17853. if (this[d] === r)
  17854. return d;
  17855. return -1;
  17856. };
  17857. function Ds(r, d) {
  17858. if (isNaN(r) || isNaN(d))
  17859. return NaN;
  17860. var T = u1(d, 12);
  17861. return r += (d - T) / 12, T === 1 ? Ts(r) ? 29 : 28 : 31 - T % 7 % 2;
  17862. }
  17863. Zt("M", ["MM", 2], "Mo", function() {
  17864. return this.month() + 1;
  17865. });
  17866. Zt("MMM", 0, 0, function(r) {
  17867. return this.localeData().monthsShort(this, r);
  17868. });
  17869. Zt("MMMM", 0, 0, function(r) {
  17870. return this.localeData().months(this, r);
  17871. });
  17872. ti("month", "M");
  17873. ei("month", 8);
  17874. Ft("M", Pe);
  17875. Ft("MM", Pe, vi);
  17876. Ft("MMM", function(r, d) {
  17877. return d.monthsShortRegex(r);
  17878. });
  17879. Ft("MMMM", function(r, d) {
  17880. return d.monthsRegex(r);
  17881. });
  17882. we(["M", "MM"], function(r, d) {
  17883. d[pr] = le(r) - 1;
  17884. });
  17885. we(["MMM", "MMMM"], function(r, d, T, l) {
  17886. var y = T._locale.monthsParse(r, l, T._strict);
  17887. y != null ? d[pr] = y : oe(T).invalidMonth = r;
  17888. });
  17889. var d1 = "January_February_March_April_May_June_July_August_September_October_November_December".split(
  17890. "_"
  17891. ), au = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), lu = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, f1 = lo, g1 = lo;
  17892. function m1(r, d) {
  17893. return r ? Wi(this._months) ? this._months[r.month()] : this._months[(this._months.isFormat || lu).test(d) ? "format" : "standalone"][r.month()] : Wi(this._months) ? this._months : this._months.standalone;
  17894. }
  17895. function y1(r, d) {
  17896. return r ? Wi(this._monthsShort) ? this._monthsShort[r.month()] : this._monthsShort[lu.test(d) ? "format" : "standalone"][r.month()] : Wi(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
  17897. }
  17898. function v1(r, d, T) {
  17899. var l, y, j, I = r.toLocaleLowerCase();
  17900. if (!this._monthsParse)
  17901. for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], l = 0; l < 12; ++l)
  17902. j = Zi([2e3, l]), this._shortMonthsParse[l] = this.monthsShort(
  17903. j,
  17904. ""
  17905. ).toLocaleLowerCase(), this._longMonthsParse[l] = this.months(j, "").toLocaleLowerCase();
  17906. return T ? d === "MMM" ? (y = We.call(this._shortMonthsParse, I), y !== -1 ? y : null) : (y = We.call(this._longMonthsParse, I), y !== -1 ? y : null) : d === "MMM" ? (y = We.call(this._shortMonthsParse, I), y !== -1 ? y : (y = We.call(this._longMonthsParse, I), y !== -1 ? y : null)) : (y = We.call(this._longMonthsParse, I), y !== -1 ? y : (y = We.call(this._shortMonthsParse, I), y !== -1 ? y : null));
  17907. }
  17908. function x1(r, d, T) {
  17909. var l, y, j;
  17910. if (this._monthsParseExact)
  17911. return v1.call(this, r, d, T);
  17912. for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), l = 0; l < 12; l++) {
  17913. if (y = Zi([2e3, l]), T && !this._longMonthsParse[l] && (this._longMonthsParse[l] = new RegExp(
  17914. "^" + this.months(y, "").replace(".", "") + "$",
  17915. "i"
  17916. ), this._shortMonthsParse[l] = new RegExp(
  17917. "^" + this.monthsShort(y, "").replace(".", "") + "$",
  17918. "i"
  17919. )), !T && !this._monthsParse[l] && (j = "^" + this.months(y, "") + "|^" + this.monthsShort(y, ""), this._monthsParse[l] = new RegExp(j.replace(".", ""), "i")), T && d === "MMMM" && this._longMonthsParse[l].test(r))
  17920. return l;
  17921. if (T && d === "MMM" && this._shortMonthsParse[l].test(r))
  17922. return l;
  17923. if (!T && this._monthsParse[l].test(r))
  17924. return l;
  17925. }
  17926. }
  17927. function hu(r, d) {
  17928. var T;
  17929. if (!r.isValid())
  17930. return r;
  17931. if (typeof d == "string") {
  17932. if (/^\d+$/.test(d))
  17933. d = le(d);
  17934. else if (d = r.localeData().monthsParse(d), !gr(d))
  17935. return r;
  17936. }
  17937. return T = Math.min(r.date(), Ds(r.year(), d)), r._d["set" + (r._isUTC ? "UTC" : "") + "Month"](d, T), r;
  17938. }
  17939. function cu(r) {
  17940. return r != null ? (hu(this, r), Xt.updateOffset(this, !0), this) : ys(this, "Month");
  17941. }
  17942. function b1() {
  17943. return Ds(this.year(), this.month());
  17944. }
  17945. function S1(r) {
  17946. return this._monthsParseExact ? (me(this, "_monthsRegex") || pu.call(this), r ? this._monthsShortStrictRegex : this._monthsShortRegex) : (me(this, "_monthsShortRegex") || (this._monthsShortRegex = f1), this._monthsShortStrictRegex && r ? this._monthsShortStrictRegex : this._monthsShortRegex);
  17947. }
  17948. function w1(r) {
  17949. return this._monthsParseExact ? (me(this, "_monthsRegex") || pu.call(this), r ? this._monthsStrictRegex : this._monthsRegex) : (me(this, "_monthsRegex") || (this._monthsRegex = g1), this._monthsStrictRegex && r ? this._monthsStrictRegex : this._monthsRegex);
  17950. }
  17951. function pu() {
  17952. function r(I, Z) {
  17953. return Z.length - I.length;
  17954. }
  17955. var d = [], T = [], l = [], y, j;
  17956. for (y = 0; y < 12; y++)
  17957. j = Zi([2e3, y]), d.push(this.monthsShort(j, "")), T.push(this.months(j, "")), l.push(this.months(j, "")), l.push(this.monthsShort(j, ""));
  17958. for (d.sort(r), T.sort(r), l.sort(r), y = 0; y < 12; y++)
  17959. d[y] = yi(d[y]), T[y] = yi(T[y]);
  17960. for (y = 0; y < 24; y++)
  17961. l[y] = yi(l[y]);
  17962. this._monthsRegex = new RegExp("^(" + l.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
  17963. "^(" + T.join("|") + ")",
  17964. "i"
  17965. ), this._monthsShortStrictRegex = new RegExp(
  17966. "^(" + d.join("|") + ")",
  17967. "i"
  17968. );
  17969. }
  17970. Zt("Y", 0, 0, function() {
  17971. var r = this.year();
  17972. return r <= 9999 ? $i(r, 4) : "+" + r;
  17973. });
  17974. Zt(0, ["YY", 2], 0, function() {
  17975. return this.year() % 100;
  17976. });
  17977. Zt(0, ["YYYY", 4], 0, "year");
  17978. Zt(0, ["YYYYY", 5], 0, "year");
  17979. Zt(0, ["YYYYYY", 6, !0], 0, "year");
  17980. ti("year", "y");
  17981. ei("year", 1);
  17982. Ft("Y", Ls);
  17983. Ft("YY", Pe, vi);
  17984. Ft("YYYY", _l, Ll);
  17985. Ft("YYYYY", Os, Ps);
  17986. Ft("YYYYYY", Os, Ps);
  17987. we(["YYYYY", "YYYYYY"], Qe);
  17988. we("YYYY", function(r, d) {
  17989. d[Qe] = r.length === 2 ? Xt.parseTwoDigitYear(r) : le(r);
  17990. });
  17991. we("YY", function(r, d) {
  17992. d[Qe] = Xt.parseTwoDigitYear(r);
  17993. });
  17994. we("Y", function(r, d) {
  17995. d[Qe] = parseInt(r, 10);
  17996. });
  17997. function Qn(r) {
  17998. return Ts(r) ? 366 : 365;
  17999. }
  18000. Xt.parseTwoDigitYear = function(r) {
  18001. return le(r) + (le(r) > 68 ? 1900 : 2e3);
  18002. };
  18003. var uu = kn("FullYear", !0);
  18004. function C1() {
  18005. return Ts(this.year());
  18006. }
  18007. function M1(r, d, T, l, y, j, I) {
  18008. var Z;
  18009. return r < 100 && r >= 0 ? (Z = new Date(r + 400, d, T, l, y, j, I), isFinite(Z.getFullYear()) && Z.setFullYear(r)) : Z = new Date(r, d, T, l, y, j, I), Z;
  18010. }
  18011. function eo(r) {
  18012. var d, T;
  18013. return r < 100 && r >= 0 ? (T = Array.prototype.slice.call(arguments), T[0] = r + 400, d = new Date(Date.UTC.apply(null, T)), isFinite(d.getUTCFullYear()) && d.setUTCFullYear(r)) : d = new Date(Date.UTC.apply(null, arguments)), d;
  18014. }
  18015. function xs(r, d, T) {
  18016. var l = 7 + d - T, y = (7 + eo(r, 0, l).getUTCDay() - d) % 7;
  18017. return -y + l - 1;
  18018. }
  18019. function du(r, d, T, l, y) {
  18020. var j = (7 + T - l) % 7, I = xs(r, l, y), Z = 1 + 7 * (d - 1) + j + I, H, U;
  18021. return Z <= 0 ? (H = r - 1, U = Qn(H) + Z) : Z > Qn(r) ? (H = r + 1, U = Z - Qn(r)) : (H = r, U = Z), {
  18022. year: H,
  18023. dayOfYear: U
  18024. };
  18025. }
  18026. function io(r, d, T) {
  18027. var l = xs(r.year(), d, T), y = Math.floor((r.dayOfYear() - l - 1) / 7) + 1, j, I;
  18028. return y < 1 ? (I = r.year() - 1, j = y + dr(I, d, T)) : y > dr(r.year(), d, T) ? (j = y - dr(r.year(), d, T), I = r.year() + 1) : (I = r.year(), j = y), {
  18029. week: j,
  18030. year: I
  18031. };
  18032. }
  18033. function dr(r, d, T) {
  18034. var l = xs(r, d, T), y = xs(r + 1, d, T);
  18035. return (Qn(r) - l + y) / 7;
  18036. }
  18037. Zt("w", ["ww", 2], "wo", "week");
  18038. Zt("W", ["WW", 2], "Wo", "isoWeek");
  18039. ti("week", "w");
  18040. ti("isoWeek", "W");
  18041. ei("week", 5);
  18042. ei("isoWeek", 5);
  18043. Ft("w", Pe);
  18044. Ft("ww", Pe, vi);
  18045. Ft("W", Pe);
  18046. Ft("WW", Pe, vi);
  18047. ho(
  18048. ["w", "ww", "W", "WW"],
  18049. function(r, d, T, l) {
  18050. d[l.substr(0, 1)] = le(r);
  18051. }
  18052. );
  18053. function k1(r) {
  18054. return io(r, this._week.dow, this._week.doy).week;
  18055. }
  18056. var A1 = {
  18057. dow: 0,
  18058. // Sunday is the first day of the week.
  18059. doy: 6
  18060. // The week that contains Jan 6th is the first week of the year.
  18061. };
  18062. function T1() {
  18063. return this._week.dow;
  18064. }
  18065. function P1() {
  18066. return this._week.doy;
  18067. }
  18068. function E1(r) {
  18069. var d = this.localeData().week(this);
  18070. return r == null ? d : this.add((r - d) * 7, "d");
  18071. }
  18072. function O1(r) {
  18073. var d = io(this, 1, 4).week;
  18074. return r == null ? d : this.add((r - d) * 7, "d");
  18075. }
  18076. Zt("d", 0, "do", "day");
  18077. Zt("dd", 0, 0, function(r) {
  18078. return this.localeData().weekdaysMin(this, r);
  18079. });
  18080. Zt("ddd", 0, 0, function(r) {
  18081. return this.localeData().weekdaysShort(this, r);
  18082. });
  18083. Zt("dddd", 0, 0, function(r) {
  18084. return this.localeData().weekdays(this, r);
  18085. });
  18086. Zt("e", 0, 0, "weekday");
  18087. Zt("E", 0, 0, "isoWeekday");
  18088. ti("day", "d");
  18089. ti("weekday", "e");
  18090. ti("isoWeekday", "E");
  18091. ei("day", 11);
  18092. ei("weekday", 11);
  18093. ei("isoWeekday", 11);
  18094. Ft("d", Pe);
  18095. Ft("e", Pe);
  18096. Ft("E", Pe);
  18097. Ft("dd", function(r, d) {
  18098. return d.weekdaysMinRegex(r);
  18099. });
  18100. Ft("ddd", function(r, d) {
  18101. return d.weekdaysShortRegex(r);
  18102. });
  18103. Ft("dddd", function(r, d) {
  18104. return d.weekdaysRegex(r);
  18105. });
  18106. ho(["dd", "ddd", "dddd"], function(r, d, T, l) {
  18107. var y = T._locale.weekdaysParse(r, l, T._strict);
  18108. y != null ? d.d = y : oe(T).invalidWeekday = r;
  18109. });
  18110. ho(["d", "e", "E"], function(r, d, T, l) {
  18111. d[l] = le(r);
  18112. });
  18113. function L1(r, d) {
  18114. return typeof r != "string" ? r : isNaN(r) ? (r = d.weekdaysParse(r), typeof r == "number" ? r : null) : parseInt(r, 10);
  18115. }
  18116. function _1(r, d) {
  18117. return typeof r == "string" ? d.weekdaysParse(r) % 7 || 7 : isNaN(r) ? null : r;
  18118. }
  18119. function Dl(r, d) {
  18120. return r.slice(d, 7).concat(r.slice(0, d));
  18121. }
  18122. var D1 = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), fu = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), I1 = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), R1 = lo, N1 = lo, B1 = lo;
  18123. function j1(r, d) {
  18124. var T = Wi(this._weekdays) ? this._weekdays : this._weekdays[r && r !== !0 && this._weekdays.isFormat.test(d) ? "format" : "standalone"];
  18125. return r === !0 ? Dl(T, this._week.dow) : r ? T[r.day()] : T;
  18126. }
  18127. function W1(r) {
  18128. return r === !0 ? Dl(this._weekdaysShort, this._week.dow) : r ? this._weekdaysShort[r.day()] : this._weekdaysShort;
  18129. }
  18130. function z1(r) {
  18131. return r === !0 ? Dl(this._weekdaysMin, this._week.dow) : r ? this._weekdaysMin[r.day()] : this._weekdaysMin;
  18132. }
  18133. function Y1(r, d, T) {
  18134. var l, y, j, I = r.toLocaleLowerCase();
  18135. if (!this._weekdaysParse)
  18136. for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], l = 0; l < 7; ++l)
  18137. j = Zi([2e3, 1]).day(l), this._minWeekdaysParse[l] = this.weekdaysMin(
  18138. j,
  18139. ""
  18140. ).toLocaleLowerCase(), this._shortWeekdaysParse[l] = this.weekdaysShort(
  18141. j,
  18142. ""
  18143. ).toLocaleLowerCase(), this._weekdaysParse[l] = this.weekdays(j, "").toLocaleLowerCase();
  18144. return T ? d === "dddd" ? (y = We.call(this._weekdaysParse, I), y !== -1 ? y : null) : d === "ddd" ? (y = We.call(this._shortWeekdaysParse, I), y !== -1 ? y : null) : (y = We.call(this._minWeekdaysParse, I), y !== -1 ? y : null) : d === "dddd" ? (y = We.call(this._weekdaysParse, I), y !== -1 || (y = We.call(this._shortWeekdaysParse, I), y !== -1) ? y : (y = We.call(this._minWeekdaysParse, I), y !== -1 ? y : null)) : d === "ddd" ? (y = We.call(this._shortWeekdaysParse, I), y !== -1 || (y = We.call(this._weekdaysParse, I), y !== -1) ? y : (y = We.call(this._minWeekdaysParse, I), y !== -1 ? y : null)) : (y = We.call(this._minWeekdaysParse, I), y !== -1 || (y = We.call(this._weekdaysParse, I), y !== -1) ? y : (y = We.call(this._shortWeekdaysParse, I), y !== -1 ? y : null));
  18145. }
  18146. function X1(r, d, T) {
  18147. var l, y, j;
  18148. if (this._weekdaysParseExact)
  18149. return Y1.call(this, r, d, T);
  18150. for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), l = 0; l < 7; l++) {
  18151. if (y = Zi([2e3, 1]).day(l), T && !this._fullWeekdaysParse[l] && (this._fullWeekdaysParse[l] = new RegExp(
  18152. "^" + this.weekdays(y, "").replace(".", "\\.?") + "$",
  18153. "i"
  18154. ), this._shortWeekdaysParse[l] = new RegExp(
  18155. "^" + this.weekdaysShort(y, "").replace(".", "\\.?") + "$",
  18156. "i"
  18157. ), this._minWeekdaysParse[l] = new RegExp(
  18158. "^" + this.weekdaysMin(y, "").replace(".", "\\.?") + "$",
  18159. "i"
  18160. )), this._weekdaysParse[l] || (j = "^" + this.weekdays(y, "") + "|^" + this.weekdaysShort(y, "") + "|^" + this.weekdaysMin(y, ""), this._weekdaysParse[l] = new RegExp(j.replace(".", ""), "i")), T && d === "dddd" && this._fullWeekdaysParse[l].test(r))
  18161. return l;
  18162. if (T && d === "ddd" && this._shortWeekdaysParse[l].test(r))
  18163. return l;
  18164. if (T && d === "dd" && this._minWeekdaysParse[l].test(r))
  18165. return l;
  18166. if (!T && this._weekdaysParse[l].test(r))
  18167. return l;
  18168. }
  18169. }
  18170. function G1(r) {
  18171. if (!this.isValid())
  18172. return r != null ? this : NaN;
  18173. var d = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  18174. return r != null ? (r = L1(r, this.localeData()), this.add(r - d, "d")) : d;
  18175. }
  18176. function H1(r) {
  18177. if (!this.isValid())
  18178. return r != null ? this : NaN;
  18179. var d = (this.day() + 7 - this.localeData()._week.dow) % 7;
  18180. return r == null ? d : this.add(r - d, "d");
  18181. }
  18182. function F1(r) {
  18183. if (!this.isValid())
  18184. return r != null ? this : NaN;
  18185. if (r != null) {
  18186. var d = _1(r, this.localeData());
  18187. return this.day(this.day() % 7 ? d : d - 7);
  18188. } else
  18189. return this.day() || 7;
  18190. }
  18191. function U1(r) {
  18192. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Il.call(this), r ? this._weekdaysStrictRegex : this._weekdaysRegex) : (me(this, "_weekdaysRegex") || (this._weekdaysRegex = R1), this._weekdaysStrictRegex && r ? this._weekdaysStrictRegex : this._weekdaysRegex);
  18193. }
  18194. function V1(r) {
  18195. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Il.call(this), r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (me(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = N1), this._weekdaysShortStrictRegex && r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
  18196. }
  18197. function $1(r) {
  18198. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Il.call(this), r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (me(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = B1), this._weekdaysMinStrictRegex && r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
  18199. }
  18200. function Il() {
  18201. function r(F, R) {
  18202. return R.length - F.length;
  18203. }
  18204. var d = [], T = [], l = [], y = [], j, I, Z, H, U;
  18205. for (j = 0; j < 7; j++)
  18206. I = Zi([2e3, 1]).day(j), Z = yi(this.weekdaysMin(I, "")), H = yi(this.weekdaysShort(I, "")), U = yi(this.weekdays(I, "")), d.push(Z), T.push(H), l.push(U), y.push(Z), y.push(H), y.push(U);
  18207. d.sort(r), T.sort(r), l.sort(r), y.sort(r), this._weekdaysRegex = new RegExp("^(" + y.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
  18208. "^(" + l.join("|") + ")",
  18209. "i"
  18210. ), this._weekdaysShortStrictRegex = new RegExp(
  18211. "^(" + T.join("|") + ")",
  18212. "i"
  18213. ), this._weekdaysMinStrictRegex = new RegExp(
  18214. "^(" + d.join("|") + ")",
  18215. "i"
  18216. );
  18217. }
  18218. function Rl() {
  18219. return this.hours() % 12 || 12;
  18220. }
  18221. function Z1() {
  18222. return this.hours() || 24;
  18223. }
  18224. Zt("H", ["HH", 2], 0, "hour");
  18225. Zt("h", ["hh", 2], 0, Rl);
  18226. Zt("k", ["kk", 2], 0, Z1);
  18227. Zt("hmm", 0, 0, function() {
  18228. return "" + Rl.apply(this) + $i(this.minutes(), 2);
  18229. });
  18230. Zt("hmmss", 0, 0, function() {
  18231. return "" + Rl.apply(this) + $i(this.minutes(), 2) + $i(this.seconds(), 2);
  18232. });
  18233. Zt("Hmm", 0, 0, function() {
  18234. return "" + this.hours() + $i(this.minutes(), 2);
  18235. });
  18236. Zt("Hmmss", 0, 0, function() {
  18237. return "" + this.hours() + $i(this.minutes(), 2) + $i(this.seconds(), 2);
  18238. });
  18239. function gu(r, d) {
  18240. Zt(r, 0, 0, function() {
  18241. return this.localeData().meridiem(
  18242. this.hours(),
  18243. this.minutes(),
  18244. d
  18245. );
  18246. });
  18247. }
  18248. gu("a", !0);
  18249. gu("A", !1);
  18250. ti("hour", "h");
  18251. ei("hour", 13);
  18252. function mu(r, d) {
  18253. return d._meridiemParse;
  18254. }
  18255. Ft("a", mu);
  18256. Ft("A", mu);
  18257. Ft("H", Pe);
  18258. Ft("h", Pe);
  18259. Ft("k", Pe);
  18260. Ft("HH", Pe, vi);
  18261. Ft("hh", Pe, vi);
  18262. Ft("kk", Pe, vi);
  18263. Ft("hmm", ou);
  18264. Ft("hmmss", su);
  18265. Ft("Hmm", ou);
  18266. Ft("Hmmss", su);
  18267. we(["H", "HH"], Xe);
  18268. we(["k", "kk"], function(r, d, T) {
  18269. var l = le(r);
  18270. d[Xe] = l === 24 ? 0 : l;
  18271. });
  18272. we(["a", "A"], function(r, d, T) {
  18273. T._isPm = T._locale.isPM(r), T._meridiem = r;
  18274. });
  18275. we(["h", "hh"], function(r, d, T) {
  18276. d[Xe] = le(r), oe(T).bigHour = !0;
  18277. });
  18278. we("hmm", function(r, d, T) {
  18279. var l = r.length - 2;
  18280. d[Xe] = le(r.substr(0, l)), d[ji] = le(r.substr(l)), oe(T).bigHour = !0;
  18281. });
  18282. we("hmmss", function(r, d, T) {
  18283. var l = r.length - 4, y = r.length - 2;
  18284. d[Xe] = le(r.substr(0, l)), d[ji] = le(r.substr(l, 2)), d[ur] = le(r.substr(y)), oe(T).bigHour = !0;
  18285. });
  18286. we("Hmm", function(r, d, T) {
  18287. var l = r.length - 2;
  18288. d[Xe] = le(r.substr(0, l)), d[ji] = le(r.substr(l));
  18289. });
  18290. we("Hmmss", function(r, d, T) {
  18291. var l = r.length - 4, y = r.length - 2;
  18292. d[Xe] = le(r.substr(0, l)), d[ji] = le(r.substr(l, 2)), d[ur] = le(r.substr(y));
  18293. });
  18294. function K1(r) {
  18295. return (r + "").toLowerCase().charAt(0) === "p";
  18296. }
  18297. var J1 = /[ap]\.?m?\.?/i, q1 = kn("Hours", !0);
  18298. function Q1(r, d, T) {
  18299. return r > 11 ? T ? "pm" : "PM" : T ? "am" : "AM";
  18300. }
  18301. var yu = {
  18302. calendar: X0,
  18303. longDateFormat: U0,
  18304. invalidDate: $0,
  18305. ordinal: K0,
  18306. dayOfMonthOrdinalParse: J0,
  18307. relativeTime: Q0,
  18308. months: d1,
  18309. monthsShort: au,
  18310. week: A1,
  18311. weekdays: D1,
  18312. weekdaysMin: I1,
  18313. weekdaysShort: fu,
  18314. meridiemParse: J1
  18315. }, Oe = {}, $n = {}, ro;
  18316. function tb(r, d) {
  18317. var T, l = Math.min(r.length, d.length);
  18318. for (T = 0; T < l; T += 1)
  18319. if (r[T] !== d[T])
  18320. return T;
  18321. return l;
  18322. }
  18323. function Pp(r) {
  18324. return r && r.toLowerCase().replace("_", "-");
  18325. }
  18326. function eb(r) {
  18327. for (var d = 0, T, l, y, j; d < r.length; ) {
  18328. for (j = Pp(r[d]).split("-"), T = j.length, l = Pp(r[d + 1]), l = l ? l.split("-") : null; T > 0; ) {
  18329. if (y = Is(j.slice(0, T).join("-")), y)
  18330. return y;
  18331. if (l && l.length >= T && tb(j, l) >= T - 1)
  18332. break;
  18333. T--;
  18334. }
  18335. d++;
  18336. }
  18337. return ro;
  18338. }
  18339. function ib(r) {
  18340. return r.match("^[^/\\\\]*$") != null;
  18341. }
  18342. function Is(r) {
  18343. var d = null, T;
  18344. if (Oe[r] === void 0 && typeof module < "u" && module && module.exports && ib(r))
  18345. try {
  18346. d = ro._abbr, T = require, T("./locale/" + r), Lr(d);
  18347. } catch {
  18348. Oe[r] = null;
  18349. }
  18350. return Oe[r];
  18351. }
  18352. function Lr(r, d) {
  18353. var T;
  18354. return r && (hi(d) ? T = yr(r) : T = Nl(r, d), T ? ro = T : typeof console < "u" && console.warn && console.warn(
  18355. "Locale " + r + " not found. Did you forget to load it?"
  18356. )), ro._abbr;
  18357. }
  18358. function Nl(r, d) {
  18359. if (d !== null) {
  18360. var T, l = yu;
  18361. if (d.abbr = r, Oe[r] != null)
  18362. Qp(
  18363. "defineLocaleOverride",
  18364. "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
  18365. ), l = Oe[r]._config;
  18366. else if (d.parentLocale != null)
  18367. if (Oe[d.parentLocale] != null)
  18368. l = Oe[d.parentLocale]._config;
  18369. else if (T = Is(d.parentLocale), T != null)
  18370. l = T._config;
  18371. else
  18372. return $n[d.parentLocale] || ($n[d.parentLocale] = []), $n[d.parentLocale].push({
  18373. name: r,
  18374. config: d
  18375. }), null;
  18376. return Oe[r] = new Pl(gl(l, d)), $n[r] && $n[r].forEach(function(y) {
  18377. Nl(y.name, y.config);
  18378. }), Lr(r), Oe[r];
  18379. } else
  18380. return delete Oe[r], null;
  18381. }
  18382. function rb(r, d) {
  18383. if (d != null) {
  18384. var T, l, y = yu;
  18385. Oe[r] != null && Oe[r].parentLocale != null ? Oe[r].set(gl(Oe[r]._config, d)) : (l = Is(r), l != null && (y = l._config), d = gl(y, d), l == null && (d.abbr = r), T = new Pl(d), T.parentLocale = Oe[r], Oe[r] = T), Lr(r);
  18386. } else
  18387. Oe[r] != null && (Oe[r].parentLocale != null ? (Oe[r] = Oe[r].parentLocale, r === Lr() && Lr(r)) : Oe[r] != null && delete Oe[r]);
  18388. return Oe[r];
  18389. }
  18390. function yr(r) {
  18391. var d;
  18392. if (r && r._locale && r._locale._abbr && (r = r._locale._abbr), !r)
  18393. return ro;
  18394. if (!Wi(r)) {
  18395. if (d = Is(r), d)
  18396. return d;
  18397. r = [r];
  18398. }
  18399. return eb(r);
  18400. }
  18401. function nb() {
  18402. return ml(Oe);
  18403. }
  18404. function Bl(r) {
  18405. var d, T = r._a;
  18406. return T && oe(r).overflow === -2 && (d = T[pr] < 0 || T[pr] > 11 ? pr : T[Ui] < 1 || T[Ui] > Ds(T[Qe], T[pr]) ? Ui : T[Xe] < 0 || T[Xe] > 24 || T[Xe] === 24 && (T[ji] !== 0 || T[ur] !== 0 || T[Ur] !== 0) ? Xe : T[ji] < 0 || T[ji] > 59 ? ji : T[ur] < 0 || T[ur] > 59 ? ur : T[Ur] < 0 || T[Ur] > 999 ? Ur : -1, oe(r)._overflowDayOfYear && (d < Qe || d > Ui) && (d = Ui), oe(r)._overflowWeeks && d === -1 && (d = c1), oe(r)._overflowWeekday && d === -1 && (d = p1), oe(r).overflow = d), r;
  18407. }
  18408. var ob = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, sb = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ab = /Z|[+-]\d\d(?::?\d\d)?/, os = [
  18409. ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
  18410. ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
  18411. ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
  18412. ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
  18413. ["YYYY-DDD", /\d{4}-\d{3}/],
  18414. ["YYYY-MM", /\d{4}-\d\d/, !1],
  18415. ["YYYYYYMMDD", /[+-]\d{10}/],
  18416. ["YYYYMMDD", /\d{8}/],
  18417. ["GGGG[W]WWE", /\d{4}W\d{3}/],
  18418. ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
  18419. ["YYYYDDD", /\d{7}/],
  18420. ["YYYYMM", /\d{6}/, !1],
  18421. ["YYYY", /\d{4}/, !1]
  18422. ], ol = [
  18423. ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
  18424. ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
  18425. ["HH:mm:ss", /\d\d:\d\d:\d\d/],
  18426. ["HH:mm", /\d\d:\d\d/],
  18427. ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
  18428. ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
  18429. ["HHmmss", /\d\d\d\d\d\d/],
  18430. ["HHmm", /\d\d\d\d/],
  18431. ["HH", /\d\d/]
  18432. ], lb = /^\/?Date\((-?\d+)/i, hb = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, cb = {
  18433. UT: 0,
  18434. GMT: 0,
  18435. EDT: -4 * 60,
  18436. EST: -5 * 60,
  18437. CDT: -5 * 60,
  18438. CST: -6 * 60,
  18439. MDT: -6 * 60,
  18440. MST: -7 * 60,
  18441. PDT: -7 * 60,
  18442. PST: -8 * 60
  18443. };
  18444. function vu(r) {
  18445. var d, T, l = r._i, y = ob.exec(l) || sb.exec(l), j, I, Z, H, U = os.length, F = ol.length;
  18446. if (y) {
  18447. for (oe(r).iso = !0, d = 0, T = U; d < T; d++)
  18448. if (os[d][1].exec(y[1])) {
  18449. I = os[d][0], j = os[d][2] !== !1;
  18450. break;
  18451. }
  18452. if (I == null) {
  18453. r._isValid = !1;
  18454. return;
  18455. }
  18456. if (y[3]) {
  18457. for (d = 0, T = F; d < T; d++)
  18458. if (ol[d][1].exec(y[3])) {
  18459. Z = (y[2] || " ") + ol[d][0];
  18460. break;
  18461. }
  18462. if (Z == null) {
  18463. r._isValid = !1;
  18464. return;
  18465. }
  18466. }
  18467. if (!j && Z != null) {
  18468. r._isValid = !1;
  18469. return;
  18470. }
  18471. if (y[4])
  18472. if (ab.exec(y[4]))
  18473. H = "Z";
  18474. else {
  18475. r._isValid = !1;
  18476. return;
  18477. }
  18478. r._f = I + (Z || "") + (H || ""), Wl(r);
  18479. } else
  18480. r._isValid = !1;
  18481. }
  18482. function pb(r, d, T, l, y, j) {
  18483. var I = [
  18484. ub(r),
  18485. au.indexOf(d),
  18486. parseInt(T, 10),
  18487. parseInt(l, 10),
  18488. parseInt(y, 10)
  18489. ];
  18490. return j && I.push(parseInt(j, 10)), I;
  18491. }
  18492. function ub(r) {
  18493. var d = parseInt(r, 10);
  18494. return d <= 49 ? 2e3 + d : d <= 999 ? 1900 + d : d;
  18495. }
  18496. function db(r) {
  18497. return r.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
  18498. }
  18499. function fb(r, d, T) {
  18500. if (r) {
  18501. var l = fu.indexOf(r), y = new Date(
  18502. d[0],
  18503. d[1],
  18504. d[2]
  18505. ).getDay();
  18506. if (l !== y)
  18507. return oe(T).weekdayMismatch = !0, T._isValid = !1, !1;
  18508. }
  18509. return !0;
  18510. }
  18511. function gb(r, d, T) {
  18512. if (r)
  18513. return cb[r];
  18514. if (d)
  18515. return 0;
  18516. var l = parseInt(T, 10), y = l % 100, j = (l - y) / 100;
  18517. return j * 60 + y;
  18518. }
  18519. function xu(r) {
  18520. var d = hb.exec(db(r._i)), T;
  18521. if (d) {
  18522. if (T = pb(
  18523. d[4],
  18524. d[3],
  18525. d[2],
  18526. d[5],
  18527. d[6],
  18528. d[7]
  18529. ), !fb(d[1], T, r))
  18530. return;
  18531. r._a = T, r._tzm = gb(d[8], d[9], d[10]), r._d = eo.apply(null, r._a), r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), oe(r).rfc2822 = !0;
  18532. } else
  18533. r._isValid = !1;
  18534. }
  18535. function mb(r) {
  18536. var d = lb.exec(r._i);
  18537. if (d !== null) {
  18538. r._d = /* @__PURE__ */ new Date(+d[1]);
  18539. return;
  18540. }
  18541. if (vu(r), r._isValid === !1)
  18542. delete r._isValid;
  18543. else
  18544. return;
  18545. if (xu(r), r._isValid === !1)
  18546. delete r._isValid;
  18547. else
  18548. return;
  18549. r._strict ? r._isValid = !1 : Xt.createFromInputFallback(r);
  18550. }
  18551. Xt.createFromInputFallback = Li(
  18552. "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
  18553. function(r) {
  18554. r._d = /* @__PURE__ */ new Date(r._i + (r._useUTC ? " UTC" : ""));
  18555. }
  18556. );
  18557. function gn(r, d, T) {
  18558. return r ?? d ?? T;
  18559. }
  18560. function yb(r) {
  18561. var d = new Date(Xt.now());
  18562. return r._useUTC ? [
  18563. d.getUTCFullYear(),
  18564. d.getUTCMonth(),
  18565. d.getUTCDate()
  18566. ] : [d.getFullYear(), d.getMonth(), d.getDate()];
  18567. }
  18568. function jl(r) {
  18569. var d, T, l = [], y, j, I;
  18570. if (!r._d) {
  18571. for (y = yb(r), r._w && r._a[Ui] == null && r._a[pr] == null && vb(r), r._dayOfYear != null && (I = gn(r._a[Qe], y[Qe]), (r._dayOfYear > Qn(I) || r._dayOfYear === 0) && (oe(r)._overflowDayOfYear = !0), T = eo(I, 0, r._dayOfYear), r._a[pr] = T.getUTCMonth(), r._a[Ui] = T.getUTCDate()), d = 0; d < 3 && r._a[d] == null; ++d)
  18572. r._a[d] = l[d] = y[d];
  18573. for (; d < 7; d++)
  18574. r._a[d] = l[d] = r._a[d] == null ? d === 2 ? 1 : 0 : r._a[d];
  18575. r._a[Xe] === 24 && r._a[ji] === 0 && r._a[ur] === 0 && r._a[Ur] === 0 && (r._nextDay = !0, r._a[Xe] = 0), r._d = (r._useUTC ? eo : M1).apply(
  18576. null,
  18577. l
  18578. ), j = r._useUTC ? r._d.getUTCDay() : r._d.getDay(), r._tzm != null && r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), r._nextDay && (r._a[Xe] = 24), r._w && typeof r._w.d < "u" && r._w.d !== j && (oe(r).weekdayMismatch = !0);
  18579. }
  18580. }
  18581. function vb(r) {
  18582. var d, T, l, y, j, I, Z, H, U;
  18583. d = r._w, d.GG != null || d.W != null || d.E != null ? (j = 1, I = 4, T = gn(
  18584. d.GG,
  18585. r._a[Qe],
  18586. io(Te(), 1, 4).year
  18587. ), l = gn(d.W, 1), y = gn(d.E, 1), (y < 1 || y > 7) && (H = !0)) : (j = r._locale._week.dow, I = r._locale._week.doy, U = io(Te(), j, I), T = gn(d.gg, r._a[Qe], U.year), l = gn(d.w, U.week), d.d != null ? (y = d.d, (y < 0 || y > 6) && (H = !0)) : d.e != null ? (y = d.e + j, (d.e < 0 || d.e > 6) && (H = !0)) : y = j), l < 1 || l > dr(T, j, I) ? oe(r)._overflowWeeks = !0 : H != null ? oe(r)._overflowWeekday = !0 : (Z = du(T, l, y, j, I), r._a[Qe] = Z.year, r._dayOfYear = Z.dayOfYear);
  18588. }
  18589. Xt.ISO_8601 = function() {
  18590. };
  18591. Xt.RFC_2822 = function() {
  18592. };
  18593. function Wl(r) {
  18594. if (r._f === Xt.ISO_8601) {
  18595. vu(r);
  18596. return;
  18597. }
  18598. if (r._f === Xt.RFC_2822) {
  18599. xu(r);
  18600. return;
  18601. }
  18602. r._a = [], oe(r).empty = !0;
  18603. var d = "" + r._i, T, l, y, j, I, Z = d.length, H = 0, U, F;
  18604. for (y = tu(r._f, r._locale).match(El) || [], F = y.length, T = 0; T < F; T++)
  18605. j = y[T], l = (d.match(a1(j, r)) || [])[0], l && (I = d.substr(0, d.indexOf(l)), I.length > 0 && oe(r).unusedInput.push(I), d = d.slice(
  18606. d.indexOf(l) + l.length
  18607. ), H += l.length), vn[j] ? (l ? oe(r).empty = !1 : oe(r).unusedTokens.push(j), h1(j, l, r)) : r._strict && !l && oe(r).unusedTokens.push(j);
  18608. oe(r).charsLeftOver = Z - H, d.length > 0 && oe(r).unusedInput.push(d), r._a[Xe] <= 12 && oe(r).bigHour === !0 && r._a[Xe] > 0 && (oe(r).bigHour = void 0), oe(r).parsedDateParts = r._a.slice(0), oe(r).meridiem = r._meridiem, r._a[Xe] = xb(
  18609. r._locale,
  18610. r._a[Xe],
  18611. r._meridiem
  18612. ), U = oe(r).era, U !== null && (r._a[Qe] = r._locale.erasConvertYear(U, r._a[Qe])), jl(r), Bl(r);
  18613. }
  18614. function xb(r, d, T) {
  18615. var l;
  18616. return T == null ? d : r.meridiemHour != null ? r.meridiemHour(d, T) : (r.isPM != null && (l = r.isPM(T), l && d < 12 && (d += 12), !l && d === 12 && (d = 0)), d);
  18617. }
  18618. function bb(r) {
  18619. var d, T, l, y, j, I, Z = !1, H = r._f.length;
  18620. if (H === 0) {
  18621. oe(r).invalidFormat = !0, r._d = /* @__PURE__ */ new Date(NaN);
  18622. return;
  18623. }
  18624. for (y = 0; y < H; y++)
  18625. j = 0, I = !1, d = Tl({}, r), r._useUTC != null && (d._useUTC = r._useUTC), d._f = r._f[y], Wl(d), Al(d) && (I = !0), j += oe(d).charsLeftOver, j += oe(d).unusedTokens.length * 10, oe(d).score = j, Z ? j < l && (l = j, T = d) : (l == null || j < l || I) && (l = j, T = d, I && (Z = !0));
  18626. Er(r, T || d);
  18627. }
  18628. function Sb(r) {
  18629. if (!r._d) {
  18630. var d = Ol(r._i), T = d.day === void 0 ? d.date : d.day;
  18631. r._a = Jp(
  18632. [d.year, d.month, T, d.hour, d.minute, d.second, d.millisecond],
  18633. function(l) {
  18634. return l && parseInt(l, 10);
  18635. }
  18636. ), jl(r);
  18637. }
  18638. }
  18639. function wb(r) {
  18640. var d = new ao(Bl(bu(r)));
  18641. return d._nextDay && (d.add(1, "d"), d._nextDay = void 0), d;
  18642. }
  18643. function bu(r) {
  18644. var d = r._i, T = r._f;
  18645. return r._locale = r._locale || yr(r._l), d === null || T === void 0 && d === "" ? As({ nullInput: !0 }) : (typeof d == "string" && (r._i = d = r._locale.preparse(d)), zi(d) ? new ao(Bl(d)) : (so(d) ? r._d = d : Wi(T) ? bb(r) : T ? Wl(r) : Cb(r), Al(r) || (r._d = null), r));
  18646. }
  18647. function Cb(r) {
  18648. var d = r._i;
  18649. hi(d) ? r._d = new Date(Xt.now()) : so(d) ? r._d = new Date(d.valueOf()) : typeof d == "string" ? mb(r) : Wi(d) ? (r._a = Jp(d.slice(0), function(T) {
  18650. return parseInt(T, 10);
  18651. }), jl(r)) : Zr(d) ? Sb(r) : gr(d) ? r._d = new Date(d) : Xt.createFromInputFallback(r);
  18652. }
  18653. function Su(r, d, T, l, y) {
  18654. var j = {};
  18655. return (d === !0 || d === !1) && (l = d, d = void 0), (T === !0 || T === !1) && (l = T, T = void 0), (Zr(r) && kl(r) || Wi(r) && r.length === 0) && (r = void 0), j._isAMomentObject = !0, j._useUTC = j._isUTC = y, j._l = T, j._i = r, j._f = d, j._strict = l, wb(j);
  18656. }
  18657. function Te(r, d, T, l) {
  18658. return Su(r, d, T, l, !1);
  18659. }
  18660. var Mb = Li(
  18661. "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
  18662. function() {
  18663. var r = Te.apply(null, arguments);
  18664. return this.isValid() && r.isValid() ? r < this ? this : r : As();
  18665. }
  18666. ), kb = Li(
  18667. "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
  18668. function() {
  18669. var r = Te.apply(null, arguments);
  18670. return this.isValid() && r.isValid() ? r > this ? this : r : As();
  18671. }
  18672. );
  18673. function wu(r, d) {
  18674. var T, l;
  18675. if (d.length === 1 && Wi(d[0]) && (d = d[0]), !d.length)
  18676. return Te();
  18677. for (T = d[0], l = 1; l < d.length; ++l)
  18678. (!d[l].isValid() || d[l][r](T)) && (T = d[l]);
  18679. return T;
  18680. }
  18681. function Ab() {
  18682. var r = [].slice.call(arguments, 0);
  18683. return wu("isBefore", r);
  18684. }
  18685. function Tb() {
  18686. var r = [].slice.call(arguments, 0);
  18687. return wu("isAfter", r);
  18688. }
  18689. var Pb = function() {
  18690. return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
  18691. }, Zn = [
  18692. "year",
  18693. "quarter",
  18694. "month",
  18695. "week",
  18696. "day",
  18697. "hour",
  18698. "minute",
  18699. "second",
  18700. "millisecond"
  18701. ];
  18702. function Eb(r) {
  18703. var d, T = !1, l, y = Zn.length;
  18704. for (d in r)
  18705. if (me(r, d) && !(We.call(Zn, d) !== -1 && (r[d] == null || !isNaN(r[d]))))
  18706. return !1;
  18707. for (l = 0; l < y; ++l)
  18708. if (r[Zn[l]]) {
  18709. if (T)
  18710. return !1;
  18711. parseFloat(r[Zn[l]]) !== le(r[Zn[l]]) && (T = !0);
  18712. }
  18713. return !0;
  18714. }
  18715. function Ob() {
  18716. return this._isValid;
  18717. }
  18718. function Lb() {
  18719. return Yi(NaN);
  18720. }
  18721. function Rs(r) {
  18722. var d = Ol(r), T = d.year || 0, l = d.quarter || 0, y = d.month || 0, j = d.week || d.isoWeek || 0, I = d.day || 0, Z = d.hour || 0, H = d.minute || 0, U = d.second || 0, F = d.millisecond || 0;
  18723. this._isValid = Eb(d), this._milliseconds = +F + U * 1e3 + // 1000
  18724. H * 6e4 + // 1000 * 60
  18725. Z * 1e3 * 60 * 60, this._days = +I + j * 7, this._months = +y + l * 3 + T * 12, this._data = {}, this._locale = yr(), this._bubble();
  18726. }
  18727. function ls(r) {
  18728. return r instanceof Rs;
  18729. }
  18730. function vl(r) {
  18731. return r < 0 ? Math.round(-1 * r) * -1 : Math.round(r);
  18732. }
  18733. function _b(r, d, T) {
  18734. var l = Math.min(r.length, d.length), y = Math.abs(r.length - d.length), j = 0, I;
  18735. for (I = 0; I < l; I++)
  18736. (T && r[I] !== d[I] || !T && le(r[I]) !== le(d[I])) && j++;
  18737. return j + y;
  18738. }
  18739. function Cu(r, d) {
  18740. Zt(r, 0, 0, function() {
  18741. var T = this.utcOffset(), l = "+";
  18742. return T < 0 && (T = -T, l = "-"), l + $i(~~(T / 60), 2) + d + $i(~~T % 60, 2);
  18743. });
  18744. }
  18745. Cu("Z", ":");
  18746. Cu("ZZ", "");
  18747. Ft("Z", _s);
  18748. Ft("ZZ", _s);
  18749. we(["Z", "ZZ"], function(r, d, T) {
  18750. T._useUTC = !0, T._tzm = zl(_s, r);
  18751. });
  18752. var Db = /([\+\-]|\d\d)/gi;
  18753. function zl(r, d) {
  18754. var T = (d || "").match(r), l, y, j;
  18755. return T === null ? null : (l = T[T.length - 1] || [], y = (l + "").match(Db) || ["-", 0, 0], j = +(y[1] * 60) + le(y[2]), j === 0 ? 0 : y[0] === "+" ? j : -j);
  18756. }
  18757. function Yl(r, d) {
  18758. var T, l;
  18759. return d._isUTC ? (T = d.clone(), l = (zi(r) || so(r) ? r.valueOf() : Te(r).valueOf()) - T.valueOf(), T._d.setTime(T._d.valueOf() + l), Xt.updateOffset(T, !1), T) : Te(r).local();
  18760. }
  18761. function xl(r) {
  18762. return -Math.round(r._d.getTimezoneOffset());
  18763. }
  18764. Xt.updateOffset = function() {
  18765. };
  18766. function Ib(r, d, T) {
  18767. var l = this._offset || 0, y;
  18768. if (!this.isValid())
  18769. return r != null ? this : NaN;
  18770. if (r != null) {
  18771. if (typeof r == "string") {
  18772. if (r = zl(_s, r), r === null)
  18773. return this;
  18774. } else
  18775. Math.abs(r) < 16 && !T && (r = r * 60);
  18776. return !this._isUTC && d && (y = xl(this)), this._offset = r, this._isUTC = !0, y != null && this.add(y, "m"), l !== r && (!d || this._changeInProgress ? Au(
  18777. this,
  18778. Yi(r - l, "m"),
  18779. 1,
  18780. !1
  18781. ) : this._changeInProgress || (this._changeInProgress = !0, Xt.updateOffset(this, !0), this._changeInProgress = null)), this;
  18782. } else
  18783. return this._isUTC ? l : xl(this);
  18784. }
  18785. function Rb(r, d) {
  18786. return r != null ? (typeof r != "string" && (r = -r), this.utcOffset(r, d), this) : -this.utcOffset();
  18787. }
  18788. function Nb(r) {
  18789. return this.utcOffset(0, r);
  18790. }
  18791. function Bb(r) {
  18792. return this._isUTC && (this.utcOffset(0, r), this._isUTC = !1, r && this.subtract(xl(this), "m")), this;
  18793. }
  18794. function jb() {
  18795. if (this._tzm != null)
  18796. this.utcOffset(this._tzm, !1, !0);
  18797. else if (typeof this._i == "string") {
  18798. var r = zl(o1, this._i);
  18799. r != null ? this.utcOffset(r) : this.utcOffset(0, !0);
  18800. }
  18801. return this;
  18802. }
  18803. function Wb(r) {
  18804. return this.isValid() ? (r = r ? Te(r).utcOffset() : 0, (this.utcOffset() - r) % 60 === 0) : !1;
  18805. }
  18806. function zb() {
  18807. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
  18808. }
  18809. function Yb() {
  18810. if (!hi(this._isDSTShifted))
  18811. return this._isDSTShifted;
  18812. var r = {}, d;
  18813. return Tl(r, this), r = bu(r), r._a ? (d = r._isUTC ? Zi(r._a) : Te(r._a), this._isDSTShifted = this.isValid() && _b(r._a, d.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
  18814. }
  18815. function Xb() {
  18816. return this.isValid() ? !this._isUTC : !1;
  18817. }
  18818. function Gb() {
  18819. return this.isValid() ? this._isUTC : !1;
  18820. }
  18821. function Mu() {
  18822. return this.isValid() ? this._isUTC && this._offset === 0 : !1;
  18823. }
  18824. var Hb = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Fb = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  18825. function Yi(r, d) {
  18826. var T = r, l = null, y, j, I;
  18827. return ls(r) ? T = {
  18828. ms: r._milliseconds,
  18829. d: r._days,
  18830. M: r._months
  18831. } : gr(r) || !isNaN(+r) ? (T = {}, d ? T[d] = +r : T.milliseconds = +r) : (l = Hb.exec(r)) ? (y = l[1] === "-" ? -1 : 1, T = {
  18832. y: 0,
  18833. d: le(l[Ui]) * y,
  18834. h: le(l[Xe]) * y,
  18835. m: le(l[ji]) * y,
  18836. s: le(l[ur]) * y,
  18837. ms: le(vl(l[Ur] * 1e3)) * y
  18838. // the millisecond decimal point is included in the match
  18839. }) : (l = Fb.exec(r)) ? (y = l[1] === "-" ? -1 : 1, T = {
  18840. y: Hr(l[2], y),
  18841. M: Hr(l[3], y),
  18842. w: Hr(l[4], y),
  18843. d: Hr(l[5], y),
  18844. h: Hr(l[6], y),
  18845. m: Hr(l[7], y),
  18846. s: Hr(l[8], y)
  18847. }) : T == null ? T = {} : typeof T == "object" && ("from" in T || "to" in T) && (I = Ub(
  18848. Te(T.from),
  18849. Te(T.to)
  18850. ), T = {}, T.ms = I.milliseconds, T.M = I.months), j = new Rs(T), ls(r) && me(r, "_locale") && (j._locale = r._locale), ls(r) && me(r, "_isValid") && (j._isValid = r._isValid), j;
  18851. }
  18852. Yi.fn = Rs.prototype;
  18853. Yi.invalid = Lb;
  18854. function Hr(r, d) {
  18855. var T = r && parseFloat(r.replace(",", "."));
  18856. return (isNaN(T) ? 0 : T) * d;
  18857. }
  18858. function Ep(r, d) {
  18859. var T = {};
  18860. return T.months = d.month() - r.month() + (d.year() - r.year()) * 12, r.clone().add(T.months, "M").isAfter(d) && --T.months, T.milliseconds = +d - +r.clone().add(T.months, "M"), T;
  18861. }
  18862. function Ub(r, d) {
  18863. var T;
  18864. return r.isValid() && d.isValid() ? (d = Yl(d, r), r.isBefore(d) ? T = Ep(r, d) : (T = Ep(d, r), T.milliseconds = -T.milliseconds, T.months = -T.months), T) : { milliseconds: 0, months: 0 };
  18865. }
  18866. function ku(r, d) {
  18867. return function(T, l) {
  18868. var y, j;
  18869. return l !== null && !isNaN(+l) && (Qp(
  18870. d,
  18871. "moment()." + d + "(period, number) is deprecated. Please use moment()." + d + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
  18872. ), j = T, T = l, l = j), y = Yi(T, l), Au(this, y, r), this;
  18873. };
  18874. }
  18875. function Au(r, d, T, l) {
  18876. var y = d._milliseconds, j = vl(d._days), I = vl(d._months);
  18877. r.isValid() && (l = l ?? !0, I && hu(r, ys(r, "Month") + I * T), j && iu(r, "Date", ys(r, "Date") + j * T), y && r._d.setTime(r._d.valueOf() + y * T), l && Xt.updateOffset(r, j || I));
  18878. }
  18879. var Vb = ku(1, "add"), $b = ku(-1, "subtract");
  18880. function Tu(r) {
  18881. return typeof r == "string" || r instanceof String;
  18882. }
  18883. function Zb(r) {
  18884. return zi(r) || so(r) || Tu(r) || gr(r) || Jb(r) || Kb(r) || r === null || r === void 0;
  18885. }
  18886. function Kb(r) {
  18887. var d = Zr(r) && !kl(r), T = !1, l = [
  18888. "years",
  18889. "year",
  18890. "y",
  18891. "months",
  18892. "month",
  18893. "M",
  18894. "days",
  18895. "day",
  18896. "d",
  18897. "dates",
  18898. "date",
  18899. "D",
  18900. "hours",
  18901. "hour",
  18902. "h",
  18903. "minutes",
  18904. "minute",
  18905. "m",
  18906. "seconds",
  18907. "second",
  18908. "s",
  18909. "milliseconds",
  18910. "millisecond",
  18911. "ms"
  18912. ], y, j, I = l.length;
  18913. for (y = 0; y < I; y += 1)
  18914. j = l[y], T = T || me(r, j);
  18915. return d && T;
  18916. }
  18917. function Jb(r) {
  18918. var d = Wi(r), T = !1;
  18919. return d && (T = r.filter(function(l) {
  18920. return !gr(l) && Tu(r);
  18921. }).length === 0), d && T;
  18922. }
  18923. function qb(r) {
  18924. var d = Zr(r) && !kl(r), T = !1, l = [
  18925. "sameDay",
  18926. "nextDay",
  18927. "lastDay",
  18928. "nextWeek",
  18929. "lastWeek",
  18930. "sameElse"
  18931. ], y, j;
  18932. for (y = 0; y < l.length; y += 1)
  18933. j = l[y], T = T || me(r, j);
  18934. return d && T;
  18935. }
  18936. function Qb(r, d) {
  18937. var T = r.diff(d, "days", !0);
  18938. return T < -6 ? "sameElse" : T < -1 ? "lastWeek" : T < 0 ? "lastDay" : T < 1 ? "sameDay" : T < 2 ? "nextDay" : T < 7 ? "nextWeek" : "sameElse";
  18939. }
  18940. function tS(r, d) {
  18941. arguments.length === 1 && (arguments[0] ? Zb(arguments[0]) ? (r = arguments[0], d = void 0) : qb(arguments[0]) && (d = arguments[0], r = void 0) : (r = void 0, d = void 0));
  18942. var T = r || Te(), l = Yl(T, this).startOf("day"), y = Xt.calendarFormat(this, l) || "sameElse", j = d && (Ki(d[y]) ? d[y].call(this, T) : d[y]);
  18943. return this.format(
  18944. j || this.localeData().calendar(y, this, Te(T))
  18945. );
  18946. }
  18947. function eS() {
  18948. return new ao(this);
  18949. }
  18950. function iS(r, d) {
  18951. var T = zi(r) ? r : Te(r);
  18952. return this.isValid() && T.isValid() ? (d = _i(d) || "millisecond", d === "millisecond" ? this.valueOf() > T.valueOf() : T.valueOf() < this.clone().startOf(d).valueOf()) : !1;
  18953. }
  18954. function rS(r, d) {
  18955. var T = zi(r) ? r : Te(r);
  18956. return this.isValid() && T.isValid() ? (d = _i(d) || "millisecond", d === "millisecond" ? this.valueOf() < T.valueOf() : this.clone().endOf(d).valueOf() < T.valueOf()) : !1;
  18957. }
  18958. function nS(r, d, T, l) {
  18959. var y = zi(r) ? r : Te(r), j = zi(d) ? d : Te(d);
  18960. return this.isValid() && y.isValid() && j.isValid() ? (l = l || "()", (l[0] === "(" ? this.isAfter(y, T) : !this.isBefore(y, T)) && (l[1] === ")" ? this.isBefore(j, T) : !this.isAfter(j, T))) : !1;
  18961. }
  18962. function oS(r, d) {
  18963. var T = zi(r) ? r : Te(r), l;
  18964. return this.isValid() && T.isValid() ? (d = _i(d) || "millisecond", d === "millisecond" ? this.valueOf() === T.valueOf() : (l = T.valueOf(), this.clone().startOf(d).valueOf() <= l && l <= this.clone().endOf(d).valueOf())) : !1;
  18965. }
  18966. function sS(r, d) {
  18967. return this.isSame(r, d) || this.isAfter(r, d);
  18968. }
  18969. function aS(r, d) {
  18970. return this.isSame(r, d) || this.isBefore(r, d);
  18971. }
  18972. function lS(r, d, T) {
  18973. var l, y, j;
  18974. if (!this.isValid())
  18975. return NaN;
  18976. if (l = Yl(r, this), !l.isValid())
  18977. return NaN;
  18978. switch (y = (l.utcOffset() - this.utcOffset()) * 6e4, d = _i(d), d) {
  18979. case "year":
  18980. j = hs(this, l) / 12;
  18981. break;
  18982. case "month":
  18983. j = hs(this, l);
  18984. break;
  18985. case "quarter":
  18986. j = hs(this, l) / 3;
  18987. break;
  18988. case "second":
  18989. j = (this - l) / 1e3;
  18990. break;
  18991. case "minute":
  18992. j = (this - l) / 6e4;
  18993. break;
  18994. case "hour":
  18995. j = (this - l) / 36e5;
  18996. break;
  18997. case "day":
  18998. j = (this - l - y) / 864e5;
  18999. break;
  19000. case "week":
  19001. j = (this - l - y) / 6048e5;
  19002. break;
  19003. default:
  19004. j = this - l;
  19005. }
  19006. return T ? j : Ti(j);
  19007. }
  19008. function hs(r, d) {
  19009. if (r.date() < d.date())
  19010. return -hs(d, r);
  19011. var T = (d.year() - r.year()) * 12 + (d.month() - r.month()), l = r.clone().add(T, "months"), y, j;
  19012. return d - l < 0 ? (y = r.clone().add(T - 1, "months"), j = (d - l) / (l - y)) : (y = r.clone().add(T + 1, "months"), j = (d - l) / (y - l)), -(T + j) || 0;
  19013. }
  19014. Xt.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
  19015. Xt.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
  19016. function hS() {
  19017. return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
  19018. }
  19019. function cS(r) {
  19020. if (!this.isValid())
  19021. return null;
  19022. var d = r !== !0, T = d ? this.clone().utc() : this;
  19023. return T.year() < 0 || T.year() > 9999 ? as(
  19024. T,
  19025. d ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19026. ) : Ki(Date.prototype.toISOString) ? d ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", as(T, "Z")) : as(
  19027. T,
  19028. d ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19029. );
  19030. }
  19031. function pS() {
  19032. if (!this.isValid())
  19033. return "moment.invalid(/* " + this._i + " */)";
  19034. var r = "moment", d = "", T, l, y, j;
  19035. return this.isLocal() || (r = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", d = "Z"), T = "[" + r + '("]', l = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", y = "-MM-DD[T]HH:mm:ss.SSS", j = d + '[")]', this.format(T + l + y + j);
  19036. }
  19037. function uS(r) {
  19038. r || (r = this.isUtc() ? Xt.defaultFormatUtc : Xt.defaultFormat);
  19039. var d = as(this, r);
  19040. return this.localeData().postformat(d);
  19041. }
  19042. function dS(r, d) {
  19043. return this.isValid() && (zi(r) && r.isValid() || Te(r).isValid()) ? Yi({ to: this, from: r }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
  19044. }
  19045. function fS(r) {
  19046. return this.from(Te(), r);
  19047. }
  19048. function gS(r, d) {
  19049. return this.isValid() && (zi(r) && r.isValid() || Te(r).isValid()) ? Yi({ from: this, to: r }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
  19050. }
  19051. function mS(r) {
  19052. return this.to(Te(), r);
  19053. }
  19054. function Pu(r) {
  19055. var d;
  19056. return r === void 0 ? this._locale._abbr : (d = yr(r), d != null && (this._locale = d), this);
  19057. }
  19058. var Eu = Li(
  19059. "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
  19060. function(r) {
  19061. return r === void 0 ? this.localeData() : this.locale(r);
  19062. }
  19063. );
  19064. function Ou() {
  19065. return this._locale;
  19066. }
  19067. var bs = 1e3, xn = 60 * bs, Ss = 60 * xn, Lu = (365 * 400 + 97) * 24 * Ss;
  19068. function bn(r, d) {
  19069. return (r % d + d) % d;
  19070. }
  19071. function _u(r, d, T) {
  19072. return r < 100 && r >= 0 ? new Date(r + 400, d, T) - Lu : new Date(r, d, T).valueOf();
  19073. }
  19074. function Du(r, d, T) {
  19075. return r < 100 && r >= 0 ? Date.UTC(r + 400, d, T) - Lu : Date.UTC(r, d, T);
  19076. }
  19077. function yS(r) {
  19078. var d, T;
  19079. if (r = _i(r), r === void 0 || r === "millisecond" || !this.isValid())
  19080. return this;
  19081. switch (T = this._isUTC ? Du : _u, r) {
  19082. case "year":
  19083. d = T(this.year(), 0, 1);
  19084. break;
  19085. case "quarter":
  19086. d = T(
  19087. this.year(),
  19088. this.month() - this.month() % 3,
  19089. 1
  19090. );
  19091. break;
  19092. case "month":
  19093. d = T(this.year(), this.month(), 1);
  19094. break;
  19095. case "week":
  19096. d = T(
  19097. this.year(),
  19098. this.month(),
  19099. this.date() - this.weekday()
  19100. );
  19101. break;
  19102. case "isoWeek":
  19103. d = T(
  19104. this.year(),
  19105. this.month(),
  19106. this.date() - (this.isoWeekday() - 1)
  19107. );
  19108. break;
  19109. case "day":
  19110. case "date":
  19111. d = T(this.year(), this.month(), this.date());
  19112. break;
  19113. case "hour":
  19114. d = this._d.valueOf(), d -= bn(
  19115. d + (this._isUTC ? 0 : this.utcOffset() * xn),
  19116. Ss
  19117. );
  19118. break;
  19119. case "minute":
  19120. d = this._d.valueOf(), d -= bn(d, xn);
  19121. break;
  19122. case "second":
  19123. d = this._d.valueOf(), d -= bn(d, bs);
  19124. break;
  19125. }
  19126. return this._d.setTime(d), Xt.updateOffset(this, !0), this;
  19127. }
  19128. function vS(r) {
  19129. var d, T;
  19130. if (r = _i(r), r === void 0 || r === "millisecond" || !this.isValid())
  19131. return this;
  19132. switch (T = this._isUTC ? Du : _u, r) {
  19133. case "year":
  19134. d = T(this.year() + 1, 0, 1) - 1;
  19135. break;
  19136. case "quarter":
  19137. d = T(
  19138. this.year(),
  19139. this.month() - this.month() % 3 + 3,
  19140. 1
  19141. ) - 1;
  19142. break;
  19143. case "month":
  19144. d = T(this.year(), this.month() + 1, 1) - 1;
  19145. break;
  19146. case "week":
  19147. d = T(
  19148. this.year(),
  19149. this.month(),
  19150. this.date() - this.weekday() + 7
  19151. ) - 1;
  19152. break;
  19153. case "isoWeek":
  19154. d = T(
  19155. this.year(),
  19156. this.month(),
  19157. this.date() - (this.isoWeekday() - 1) + 7
  19158. ) - 1;
  19159. break;
  19160. case "day":
  19161. case "date":
  19162. d = T(this.year(), this.month(), this.date() + 1) - 1;
  19163. break;
  19164. case "hour":
  19165. d = this._d.valueOf(), d += Ss - bn(
  19166. d + (this._isUTC ? 0 : this.utcOffset() * xn),
  19167. Ss
  19168. ) - 1;
  19169. break;
  19170. case "minute":
  19171. d = this._d.valueOf(), d += xn - bn(d, xn) - 1;
  19172. break;
  19173. case "second":
  19174. d = this._d.valueOf(), d += bs - bn(d, bs) - 1;
  19175. break;
  19176. }
  19177. return this._d.setTime(d), Xt.updateOffset(this, !0), this;
  19178. }
  19179. function xS() {
  19180. return this._d.valueOf() - (this._offset || 0) * 6e4;
  19181. }
  19182. function bS() {
  19183. return Math.floor(this.valueOf() / 1e3);
  19184. }
  19185. function SS() {
  19186. return new Date(this.valueOf());
  19187. }
  19188. function wS() {
  19189. var r = this;
  19190. return [
  19191. r.year(),
  19192. r.month(),
  19193. r.date(),
  19194. r.hour(),
  19195. r.minute(),
  19196. r.second(),
  19197. r.millisecond()
  19198. ];
  19199. }
  19200. function CS() {
  19201. var r = this;
  19202. return {
  19203. years: r.year(),
  19204. months: r.month(),
  19205. date: r.date(),
  19206. hours: r.hours(),
  19207. minutes: r.minutes(),
  19208. seconds: r.seconds(),
  19209. milliseconds: r.milliseconds()
  19210. };
  19211. }
  19212. function MS() {
  19213. return this.isValid() ? this.toISOString() : null;
  19214. }
  19215. function kS() {
  19216. return Al(this);
  19217. }
  19218. function AS() {
  19219. return Er({}, oe(this));
  19220. }
  19221. function TS() {
  19222. return oe(this).overflow;
  19223. }
  19224. function PS() {
  19225. return {
  19226. input: this._i,
  19227. format: this._f,
  19228. locale: this._locale,
  19229. isUTC: this._isUTC,
  19230. strict: this._strict
  19231. };
  19232. }
  19233. Zt("N", 0, 0, "eraAbbr");
  19234. Zt("NN", 0, 0, "eraAbbr");
  19235. Zt("NNN", 0, 0, "eraAbbr");
  19236. Zt("NNNN", 0, 0, "eraName");
  19237. Zt("NNNNN", 0, 0, "eraNarrow");
  19238. Zt("y", ["y", 1], "yo", "eraYear");
  19239. Zt("y", ["yy", 2], 0, "eraYear");
  19240. Zt("y", ["yyy", 3], 0, "eraYear");
  19241. Zt("y", ["yyyy", 4], 0, "eraYear");
  19242. Ft("N", Xl);
  19243. Ft("NN", Xl);
  19244. Ft("NNN", Xl);
  19245. Ft("NNNN", WS);
  19246. Ft("NNNNN", zS);
  19247. we(
  19248. ["N", "NN", "NNN", "NNNN", "NNNNN"],
  19249. function(r, d, T, l) {
  19250. var y = T._locale.erasParse(r, l, T._strict);
  19251. y ? oe(T).era = y : oe(T).invalidEra = r;
  19252. }
  19253. );
  19254. Ft("y", An);
  19255. Ft("yy", An);
  19256. Ft("yyy", An);
  19257. Ft("yyyy", An);
  19258. Ft("yo", YS);
  19259. we(["y", "yy", "yyy", "yyyy"], Qe);
  19260. we(["yo"], function(r, d, T, l) {
  19261. var y;
  19262. T._locale._eraYearOrdinalRegex && (y = r.match(T._locale._eraYearOrdinalRegex)), T._locale.eraYearOrdinalParse ? d[Qe] = T._locale.eraYearOrdinalParse(r, y) : d[Qe] = parseInt(r, 10);
  19263. });
  19264. function ES(r, d) {
  19265. var T, l, y, j = this._eras || yr("en")._eras;
  19266. for (T = 0, l = j.length; T < l; ++T) {
  19267. switch (typeof j[T].since) {
  19268. case "string":
  19269. y = Xt(j[T].since).startOf("day"), j[T].since = y.valueOf();
  19270. break;
  19271. }
  19272. switch (typeof j[T].until) {
  19273. case "undefined":
  19274. j[T].until = 1 / 0;
  19275. break;
  19276. case "string":
  19277. y = Xt(j[T].until).startOf("day").valueOf(), j[T].until = y.valueOf();
  19278. break;
  19279. }
  19280. }
  19281. return j;
  19282. }
  19283. function OS(r, d, T) {
  19284. var l, y, j = this.eras(), I, Z, H;
  19285. for (r = r.toUpperCase(), l = 0, y = j.length; l < y; ++l)
  19286. if (I = j[l].name.toUpperCase(), Z = j[l].abbr.toUpperCase(), H = j[l].narrow.toUpperCase(), T)
  19287. switch (d) {
  19288. case "N":
  19289. case "NN":
  19290. case "NNN":
  19291. if (Z === r)
  19292. return j[l];
  19293. break;
  19294. case "NNNN":
  19295. if (I === r)
  19296. return j[l];
  19297. break;
  19298. case "NNNNN":
  19299. if (H === r)
  19300. return j[l];
  19301. break;
  19302. }
  19303. else if ([I, Z, H].indexOf(r) >= 0)
  19304. return j[l];
  19305. }
  19306. function LS(r, d) {
  19307. var T = r.since <= r.until ? 1 : -1;
  19308. return d === void 0 ? Xt(r.since).year() : Xt(r.since).year() + (d - r.offset) * T;
  19309. }
  19310. function _S() {
  19311. var r, d, T, l = this.localeData().eras();
  19312. for (r = 0, d = l.length; r < d; ++r)
  19313. if (T = this.clone().startOf("day").valueOf(), l[r].since <= T && T <= l[r].until || l[r].until <= T && T <= l[r].since)
  19314. return l[r].name;
  19315. return "";
  19316. }
  19317. function DS() {
  19318. var r, d, T, l = this.localeData().eras();
  19319. for (r = 0, d = l.length; r < d; ++r)
  19320. if (T = this.clone().startOf("day").valueOf(), l[r].since <= T && T <= l[r].until || l[r].until <= T && T <= l[r].since)
  19321. return l[r].narrow;
  19322. return "";
  19323. }
  19324. function IS() {
  19325. var r, d, T, l = this.localeData().eras();
  19326. for (r = 0, d = l.length; r < d; ++r)
  19327. if (T = this.clone().startOf("day").valueOf(), l[r].since <= T && T <= l[r].until || l[r].until <= T && T <= l[r].since)
  19328. return l[r].abbr;
  19329. return "";
  19330. }
  19331. function RS() {
  19332. var r, d, T, l, y = this.localeData().eras();
  19333. for (r = 0, d = y.length; r < d; ++r)
  19334. if (T = y[r].since <= y[r].until ? 1 : -1, l = this.clone().startOf("day").valueOf(), y[r].since <= l && l <= y[r].until || y[r].until <= l && l <= y[r].since)
  19335. return (this.year() - Xt(y[r].since).year()) * T + y[r].offset;
  19336. return this.year();
  19337. }
  19338. function NS(r) {
  19339. return me(this, "_erasNameRegex") || Gl.call(this), r ? this._erasNameRegex : this._erasRegex;
  19340. }
  19341. function BS(r) {
  19342. return me(this, "_erasAbbrRegex") || Gl.call(this), r ? this._erasAbbrRegex : this._erasRegex;
  19343. }
  19344. function jS(r) {
  19345. return me(this, "_erasNarrowRegex") || Gl.call(this), r ? this._erasNarrowRegex : this._erasRegex;
  19346. }
  19347. function Xl(r, d) {
  19348. return d.erasAbbrRegex(r);
  19349. }
  19350. function WS(r, d) {
  19351. return d.erasNameRegex(r);
  19352. }
  19353. function zS(r, d) {
  19354. return d.erasNarrowRegex(r);
  19355. }
  19356. function YS(r, d) {
  19357. return d._eraYearOrdinalRegex || An;
  19358. }
  19359. function Gl() {
  19360. var r = [], d = [], T = [], l = [], y, j, I = this.eras();
  19361. for (y = 0, j = I.length; y < j; ++y)
  19362. d.push(yi(I[y].name)), r.push(yi(I[y].abbr)), T.push(yi(I[y].narrow)), l.push(yi(I[y].name)), l.push(yi(I[y].abbr)), l.push(yi(I[y].narrow));
  19363. this._erasRegex = new RegExp("^(" + l.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + d.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
  19364. "^(" + T.join("|") + ")",
  19365. "i"
  19366. );
  19367. }
  19368. Zt(0, ["gg", 2], 0, function() {
  19369. return this.weekYear() % 100;
  19370. });
  19371. Zt(0, ["GG", 2], 0, function() {
  19372. return this.isoWeekYear() % 100;
  19373. });
  19374. function Ns(r, d) {
  19375. Zt(0, [r, r.length], 0, d);
  19376. }
  19377. Ns("gggg", "weekYear");
  19378. Ns("ggggg", "weekYear");
  19379. Ns("GGGG", "isoWeekYear");
  19380. Ns("GGGGG", "isoWeekYear");
  19381. ti("weekYear", "gg");
  19382. ti("isoWeekYear", "GG");
  19383. ei("weekYear", 1);
  19384. ei("isoWeekYear", 1);
  19385. Ft("G", Ls);
  19386. Ft("g", Ls);
  19387. Ft("GG", Pe, vi);
  19388. Ft("gg", Pe, vi);
  19389. Ft("GGGG", _l, Ll);
  19390. Ft("gggg", _l, Ll);
  19391. Ft("GGGGG", Os, Ps);
  19392. Ft("ggggg", Os, Ps);
  19393. ho(
  19394. ["gggg", "ggggg", "GGGG", "GGGGG"],
  19395. function(r, d, T, l) {
  19396. d[l.substr(0, 2)] = le(r);
  19397. }
  19398. );
  19399. ho(["gg", "GG"], function(r, d, T, l) {
  19400. d[l] = Xt.parseTwoDigitYear(r);
  19401. });
  19402. function XS(r) {
  19403. return Iu.call(
  19404. this,
  19405. r,
  19406. this.week(),
  19407. this.weekday(),
  19408. this.localeData()._week.dow,
  19409. this.localeData()._week.doy
  19410. );
  19411. }
  19412. function GS(r) {
  19413. return Iu.call(
  19414. this,
  19415. r,
  19416. this.isoWeek(),
  19417. this.isoWeekday(),
  19418. 1,
  19419. 4
  19420. );
  19421. }
  19422. function HS() {
  19423. return dr(this.year(), 1, 4);
  19424. }
  19425. function FS() {
  19426. return dr(this.isoWeekYear(), 1, 4);
  19427. }
  19428. function US() {
  19429. var r = this.localeData()._week;
  19430. return dr(this.year(), r.dow, r.doy);
  19431. }
  19432. function VS() {
  19433. var r = this.localeData()._week;
  19434. return dr(this.weekYear(), r.dow, r.doy);
  19435. }
  19436. function Iu(r, d, T, l, y) {
  19437. var j;
  19438. return r == null ? io(this, l, y).year : (j = dr(r, l, y), d > j && (d = j), $S.call(this, r, d, T, l, y));
  19439. }
  19440. function $S(r, d, T, l, y) {
  19441. var j = du(r, d, T, l, y), I = eo(j.year, 0, j.dayOfYear);
  19442. return this.year(I.getUTCFullYear()), this.month(I.getUTCMonth()), this.date(I.getUTCDate()), this;
  19443. }
  19444. Zt("Q", 0, "Qo", "quarter");
  19445. ti("quarter", "Q");
  19446. ei("quarter", 7);
  19447. Ft("Q", ru);
  19448. we("Q", function(r, d) {
  19449. d[pr] = (le(r) - 1) * 3;
  19450. });
  19451. function ZS(r) {
  19452. return r == null ? Math.ceil((this.month() + 1) / 3) : this.month((r - 1) * 3 + this.month() % 3);
  19453. }
  19454. Zt("D", ["DD", 2], "Do", "date");
  19455. ti("date", "D");
  19456. ei("date", 9);
  19457. Ft("D", Pe);
  19458. Ft("DD", Pe, vi);
  19459. Ft("Do", function(r, d) {
  19460. return r ? d._dayOfMonthOrdinalParse || d._ordinalParse : d._dayOfMonthOrdinalParseLenient;
  19461. });
  19462. we(["D", "DD"], Ui);
  19463. we("Do", function(r, d) {
  19464. d[Ui] = le(r.match(Pe)[0]);
  19465. });
  19466. var Ru = kn("Date", !0);
  19467. Zt("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
  19468. ti("dayOfYear", "DDD");
  19469. ei("dayOfYear", 4);
  19470. Ft("DDD", Es);
  19471. Ft("DDDD", nu);
  19472. we(["DDD", "DDDD"], function(r, d, T) {
  19473. T._dayOfYear = le(r);
  19474. });
  19475. function KS(r) {
  19476. var d = Math.round(
  19477. (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
  19478. ) + 1;
  19479. return r == null ? d : this.add(r - d, "d");
  19480. }
  19481. Zt("m", ["mm", 2], 0, "minute");
  19482. ti("minute", "m");
  19483. ei("minute", 14);
  19484. Ft("m", Pe);
  19485. Ft("mm", Pe, vi);
  19486. we(["m", "mm"], ji);
  19487. var JS = kn("Minutes", !1);
  19488. Zt("s", ["ss", 2], 0, "second");
  19489. ti("second", "s");
  19490. ei("second", 15);
  19491. Ft("s", Pe);
  19492. Ft("ss", Pe, vi);
  19493. we(["s", "ss"], ur);
  19494. var qS = kn("Seconds", !1);
  19495. Zt("S", 0, 0, function() {
  19496. return ~~(this.millisecond() / 100);
  19497. });
  19498. Zt(0, ["SS", 2], 0, function() {
  19499. return ~~(this.millisecond() / 10);
  19500. });
  19501. Zt(0, ["SSS", 3], 0, "millisecond");
  19502. Zt(0, ["SSSS", 4], 0, function() {
  19503. return this.millisecond() * 10;
  19504. });
  19505. Zt(0, ["SSSSS", 5], 0, function() {
  19506. return this.millisecond() * 100;
  19507. });
  19508. Zt(0, ["SSSSSS", 6], 0, function() {
  19509. return this.millisecond() * 1e3;
  19510. });
  19511. Zt(0, ["SSSSSSS", 7], 0, function() {
  19512. return this.millisecond() * 1e4;
  19513. });
  19514. Zt(0, ["SSSSSSSS", 8], 0, function() {
  19515. return this.millisecond() * 1e5;
  19516. });
  19517. Zt(0, ["SSSSSSSSS", 9], 0, function() {
  19518. return this.millisecond() * 1e6;
  19519. });
  19520. ti("millisecond", "ms");
  19521. ei("millisecond", 16);
  19522. Ft("S", Es, ru);
  19523. Ft("SS", Es, vi);
  19524. Ft("SSS", Es, nu);
  19525. var Or, Nu;
  19526. for (Or = "SSSS"; Or.length <= 9; Or += "S")
  19527. Ft(Or, An);
  19528. function QS(r, d) {
  19529. d[Ur] = le(("0." + r) * 1e3);
  19530. }
  19531. for (Or = "S"; Or.length <= 9; Or += "S")
  19532. we(Or, QS);
  19533. Nu = kn("Milliseconds", !1);
  19534. Zt("z", 0, 0, "zoneAbbr");
  19535. Zt("zz", 0, 0, "zoneName");
  19536. function tw() {
  19537. return this._isUTC ? "UTC" : "";
  19538. }
  19539. function ew() {
  19540. return this._isUTC ? "Coordinated Universal Time" : "";
  19541. }
  19542. var jt = ao.prototype;
  19543. jt.add = Vb;
  19544. jt.calendar = tS;
  19545. jt.clone = eS;
  19546. jt.diff = lS;
  19547. jt.endOf = vS;
  19548. jt.format = uS;
  19549. jt.from = dS;
  19550. jt.fromNow = fS;
  19551. jt.to = gS;
  19552. jt.toNow = mS;
  19553. jt.get = r1;
  19554. jt.invalidAt = TS;
  19555. jt.isAfter = iS;
  19556. jt.isBefore = rS;
  19557. jt.isBetween = nS;
  19558. jt.isSame = oS;
  19559. jt.isSameOrAfter = sS;
  19560. jt.isSameOrBefore = aS;
  19561. jt.isValid = kS;
  19562. jt.lang = Eu;
  19563. jt.locale = Pu;
  19564. jt.localeData = Ou;
  19565. jt.max = kb;
  19566. jt.min = Mb;
  19567. jt.parsingFlags = AS;
  19568. jt.set = n1;
  19569. jt.startOf = yS;
  19570. jt.subtract = $b;
  19571. jt.toArray = wS;
  19572. jt.toObject = CS;
  19573. jt.toDate = SS;
  19574. jt.toISOString = cS;
  19575. jt.inspect = pS;
  19576. typeof Symbol < "u" && Symbol.for != null && (jt[Symbol.for("nodejs.util.inspect.custom")] = function() {
  19577. return "Moment<" + this.format() + ">";
  19578. });
  19579. jt.toJSON = MS;
  19580. jt.toString = hS;
  19581. jt.unix = bS;
  19582. jt.valueOf = xS;
  19583. jt.creationData = PS;
  19584. jt.eraName = _S;
  19585. jt.eraNarrow = DS;
  19586. jt.eraAbbr = IS;
  19587. jt.eraYear = RS;
  19588. jt.year = uu;
  19589. jt.isLeapYear = C1;
  19590. jt.weekYear = XS;
  19591. jt.isoWeekYear = GS;
  19592. jt.quarter = jt.quarters = ZS;
  19593. jt.month = cu;
  19594. jt.daysInMonth = b1;
  19595. jt.week = jt.weeks = E1;
  19596. jt.isoWeek = jt.isoWeeks = O1;
  19597. jt.weeksInYear = US;
  19598. jt.weeksInWeekYear = VS;
  19599. jt.isoWeeksInYear = HS;
  19600. jt.isoWeeksInISOWeekYear = FS;
  19601. jt.date = Ru;
  19602. jt.day = jt.days = G1;
  19603. jt.weekday = H1;
  19604. jt.isoWeekday = F1;
  19605. jt.dayOfYear = KS;
  19606. jt.hour = jt.hours = q1;
  19607. jt.minute = jt.minutes = JS;
  19608. jt.second = jt.seconds = qS;
  19609. jt.millisecond = jt.milliseconds = Nu;
  19610. jt.utcOffset = Ib;
  19611. jt.utc = Nb;
  19612. jt.local = Bb;
  19613. jt.parseZone = jb;
  19614. jt.hasAlignedHourOffset = Wb;
  19615. jt.isDST = zb;
  19616. jt.isLocal = Xb;
  19617. jt.isUtcOffset = Gb;
  19618. jt.isUtc = Mu;
  19619. jt.isUTC = Mu;
  19620. jt.zoneAbbr = tw;
  19621. jt.zoneName = ew;
  19622. jt.dates = Li(
  19623. "dates accessor is deprecated. Use date instead.",
  19624. Ru
  19625. );
  19626. jt.months = Li(
  19627. "months accessor is deprecated. Use month instead",
  19628. cu
  19629. );
  19630. jt.years = Li(
  19631. "years accessor is deprecated. Use year instead",
  19632. uu
  19633. );
  19634. jt.zone = Li(
  19635. "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
  19636. Rb
  19637. );
  19638. jt.isDSTShifted = Li(
  19639. "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
  19640. Yb
  19641. );
  19642. function iw(r) {
  19643. return Te(r * 1e3);
  19644. }
  19645. function rw() {
  19646. return Te.apply(null, arguments).parseZone();
  19647. }
  19648. function Bu(r) {
  19649. return r;
  19650. }
  19651. var ye = Pl.prototype;
  19652. ye.calendar = G0;
  19653. ye.longDateFormat = V0;
  19654. ye.invalidDate = Z0;
  19655. ye.ordinal = q0;
  19656. ye.preparse = Bu;
  19657. ye.postformat = Bu;
  19658. ye.relativeTime = t1;
  19659. ye.pastFuture = e1;
  19660. ye.set = Y0;
  19661. ye.eras = ES;
  19662. ye.erasParse = OS;
  19663. ye.erasConvertYear = LS;
  19664. ye.erasAbbrRegex = BS;
  19665. ye.erasNameRegex = NS;
  19666. ye.erasNarrowRegex = jS;
  19667. ye.months = m1;
  19668. ye.monthsShort = y1;
  19669. ye.monthsParse = x1;
  19670. ye.monthsRegex = w1;
  19671. ye.monthsShortRegex = S1;
  19672. ye.week = k1;
  19673. ye.firstDayOfYear = P1;
  19674. ye.firstDayOfWeek = T1;
  19675. ye.weekdays = j1;
  19676. ye.weekdaysMin = z1;
  19677. ye.weekdaysShort = W1;
  19678. ye.weekdaysParse = X1;
  19679. ye.weekdaysRegex = U1;
  19680. ye.weekdaysShortRegex = V1;
  19681. ye.weekdaysMinRegex = $1;
  19682. ye.isPM = K1;
  19683. ye.meridiem = Q1;
  19684. function ws(r, d, T, l) {
  19685. var y = yr(), j = Zi().set(l, d);
  19686. return y[T](j, r);
  19687. }
  19688. function ju(r, d, T) {
  19689. if (gr(r) && (d = r, r = void 0), r = r || "", d != null)
  19690. return ws(r, d, T, "month");
  19691. var l, y = [];
  19692. for (l = 0; l < 12; l++)
  19693. y[l] = ws(r, l, T, "month");
  19694. return y;
  19695. }
  19696. function Hl(r, d, T, l) {
  19697. typeof r == "boolean" ? (gr(d) && (T = d, d = void 0), d = d || "") : (d = r, T = d, r = !1, gr(d) && (T = d, d = void 0), d = d || "");
  19698. var y = yr(), j = r ? y._week.dow : 0, I, Z = [];
  19699. if (T != null)
  19700. return ws(d, (T + j) % 7, l, "day");
  19701. for (I = 0; I < 7; I++)
  19702. Z[I] = ws(d, (I + j) % 7, l, "day");
  19703. return Z;
  19704. }
  19705. function nw(r, d) {
  19706. return ju(r, d, "months");
  19707. }
  19708. function ow(r, d) {
  19709. return ju(r, d, "monthsShort");
  19710. }
  19711. function sw(r, d, T) {
  19712. return Hl(r, d, T, "weekdays");
  19713. }
  19714. function aw(r, d, T) {
  19715. return Hl(r, d, T, "weekdaysShort");
  19716. }
  19717. function lw(r, d, T) {
  19718. return Hl(r, d, T, "weekdaysMin");
  19719. }
  19720. Lr("en", {
  19721. eras: [
  19722. {
  19723. since: "0001-01-01",
  19724. until: 1 / 0,
  19725. offset: 1,
  19726. name: "Anno Domini",
  19727. narrow: "AD",
  19728. abbr: "AD"
  19729. },
  19730. {
  19731. since: "0000-12-31",
  19732. until: -1 / 0,
  19733. offset: 1,
  19734. name: "Before Christ",
  19735. narrow: "BC",
  19736. abbr: "BC"
  19737. }
  19738. ],
  19739. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  19740. ordinal: function(r) {
  19741. var d = r % 10, T = le(r % 100 / 10) === 1 ? "th" : d === 1 ? "st" : d === 2 ? "nd" : d === 3 ? "rd" : "th";
  19742. return r + T;
  19743. }
  19744. });
  19745. Xt.lang = Li(
  19746. "moment.lang is deprecated. Use moment.locale instead.",
  19747. Lr
  19748. );
  19749. Xt.langData = Li(
  19750. "moment.langData is deprecated. Use moment.localeData instead.",
  19751. yr
  19752. );
  19753. var ar = Math.abs;
  19754. function hw() {
  19755. var r = this._data;
  19756. return this._milliseconds = ar(this._milliseconds), this._days = ar(this._days), this._months = ar(this._months), r.milliseconds = ar(r.milliseconds), r.seconds = ar(r.seconds), r.minutes = ar(r.minutes), r.hours = ar(r.hours), r.months = ar(r.months), r.years = ar(r.years), this;
  19757. }
  19758. function Wu(r, d, T, l) {
  19759. var y = Yi(d, T);
  19760. return r._milliseconds += l * y._milliseconds, r._days += l * y._days, r._months += l * y._months, r._bubble();
  19761. }
  19762. function cw(r, d) {
  19763. return Wu(this, r, d, 1);
  19764. }
  19765. function pw(r, d) {
  19766. return Wu(this, r, d, -1);
  19767. }
  19768. function Op(r) {
  19769. return r < 0 ? Math.floor(r) : Math.ceil(r);
  19770. }
  19771. function uw() {
  19772. var r = this._milliseconds, d = this._days, T = this._months, l = this._data, y, j, I, Z, H;
  19773. return r >= 0 && d >= 0 && T >= 0 || r <= 0 && d <= 0 && T <= 0 || (r += Op(bl(T) + d) * 864e5, d = 0, T = 0), l.milliseconds = r % 1e3, y = Ti(r / 1e3), l.seconds = y % 60, j = Ti(y / 60), l.minutes = j % 60, I = Ti(j / 60), l.hours = I % 24, d += Ti(I / 24), H = Ti(zu(d)), T += H, d -= Op(bl(H)), Z = Ti(T / 12), T %= 12, l.days = d, l.months = T, l.years = Z, this;
  19774. }
  19775. function zu(r) {
  19776. return r * 4800 / 146097;
  19777. }
  19778. function bl(r) {
  19779. return r * 146097 / 4800;
  19780. }
  19781. function dw(r) {
  19782. if (!this.isValid())
  19783. return NaN;
  19784. var d, T, l = this._milliseconds;
  19785. if (r = _i(r), r === "month" || r === "quarter" || r === "year")
  19786. switch (d = this._days + l / 864e5, T = this._months + zu(d), r) {
  19787. case "month":
  19788. return T;
  19789. case "quarter":
  19790. return T / 3;
  19791. case "year":
  19792. return T / 12;
  19793. }
  19794. else
  19795. switch (d = this._days + Math.round(bl(this._months)), r) {
  19796. case "week":
  19797. return d / 7 + l / 6048e5;
  19798. case "day":
  19799. return d + l / 864e5;
  19800. case "hour":
  19801. return d * 24 + l / 36e5;
  19802. case "minute":
  19803. return d * 1440 + l / 6e4;
  19804. case "second":
  19805. return d * 86400 + l / 1e3;
  19806. case "millisecond":
  19807. return Math.floor(d * 864e5) + l;
  19808. default:
  19809. throw new Error("Unknown unit " + r);
  19810. }
  19811. }
  19812. function fw() {
  19813. return this.isValid() ? this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + le(this._months / 12) * 31536e6 : NaN;
  19814. }
  19815. function vr(r) {
  19816. return function() {
  19817. return this.as(r);
  19818. };
  19819. }
  19820. var gw = vr("ms"), mw = vr("s"), yw = vr("m"), vw = vr("h"), xw = vr("d"), bw = vr("w"), Sw = vr("M"), ww = vr("Q"), Cw = vr("y");
  19821. function Mw() {
  19822. return Yi(this);
  19823. }
  19824. function kw(r) {
  19825. return r = _i(r), this.isValid() ? this[r + "s"]() : NaN;
  19826. }
  19827. function Kr(r) {
  19828. return function() {
  19829. return this.isValid() ? this._data[r] : NaN;
  19830. };
  19831. }
  19832. var Aw = Kr("milliseconds"), Tw = Kr("seconds"), Pw = Kr("minutes"), Ew = Kr("hours"), Ow = Kr("days"), Lw = Kr("months"), _w = Kr("years");
  19833. function Dw() {
  19834. return Ti(this.days() / 7);
  19835. }
  19836. var lr = Math.round, mn = {
  19837. ss: 44,
  19838. // a few seconds to seconds
  19839. s: 45,
  19840. // seconds to minute
  19841. m: 45,
  19842. // minutes to hour
  19843. h: 22,
  19844. // hours to day
  19845. d: 26,
  19846. // days to month/week
  19847. w: null,
  19848. // weeks to month
  19849. M: 11
  19850. // months to year
  19851. };
  19852. function Iw(r, d, T, l, y) {
  19853. return y.relativeTime(d || 1, !!T, r, l);
  19854. }
  19855. function Rw(r, d, T, l) {
  19856. var y = Yi(r).abs(), j = lr(y.as("s")), I = lr(y.as("m")), Z = lr(y.as("h")), H = lr(y.as("d")), U = lr(y.as("M")), F = lr(y.as("w")), R = lr(y.as("y")), N = j <= T.ss && ["s", j] || j < T.s && ["ss", j] || I <= 1 && ["m"] || I < T.m && ["mm", I] || Z <= 1 && ["h"] || Z < T.h && ["hh", Z] || H <= 1 && ["d"] || H < T.d && ["dd", H];
  19857. return T.w != null && (N = N || F <= 1 && ["w"] || F < T.w && ["ww", F]), N = N || U <= 1 && ["M"] || U < T.M && ["MM", U] || R <= 1 && ["y"] || ["yy", R], N[2] = d, N[3] = +r > 0, N[4] = l, Iw.apply(null, N);
  19858. }
  19859. function Nw(r) {
  19860. return r === void 0 ? lr : typeof r == "function" ? (lr = r, !0) : !1;
  19861. }
  19862. function Bw(r, d) {
  19863. return mn[r] === void 0 ? !1 : d === void 0 ? mn[r] : (mn[r] = d, r === "s" && (mn.ss = d - 1), !0);
  19864. }
  19865. function jw(r, d) {
  19866. if (!this.isValid())
  19867. return this.localeData().invalidDate();
  19868. var T = !1, l = mn, y, j;
  19869. return typeof r == "object" && (d = r, r = !1), typeof r == "boolean" && (T = r), typeof d == "object" && (l = Object.assign({}, mn, d), d.s != null && d.ss == null && (l.ss = d.s - 1)), y = this.localeData(), j = Rw(this, !T, l, y), T && (j = y.pastFuture(+this, j)), y.postformat(j);
  19870. }
  19871. var sl = Math.abs;
  19872. function fn(r) {
  19873. return (r > 0) - (r < 0) || +r;
  19874. }
  19875. function Bs() {
  19876. if (!this.isValid())
  19877. return this.localeData().invalidDate();
  19878. var r = sl(this._milliseconds) / 1e3, d = sl(this._days), T = sl(this._months), l, y, j, I, Z = this.asSeconds(), H, U, F, R;
  19879. return Z ? (l = Ti(r / 60), y = Ti(l / 60), r %= 60, l %= 60, j = Ti(T / 12), T %= 12, I = r ? r.toFixed(3).replace(/\.?0+$/, "") : "", H = Z < 0 ? "-" : "", U = fn(this._months) !== fn(Z) ? "-" : "", F = fn(this._days) !== fn(Z) ? "-" : "", R = fn(this._milliseconds) !== fn(Z) ? "-" : "", H + "P" + (j ? U + j + "Y" : "") + (T ? U + T + "M" : "") + (d ? F + d + "D" : "") + (y || l || r ? "T" : "") + (y ? R + y + "H" : "") + (l ? R + l + "M" : "") + (r ? R + I + "S" : "")) : "P0D";
  19880. }
  19881. var de = Rs.prototype;
  19882. de.isValid = Ob;
  19883. de.abs = hw;
  19884. de.add = cw;
  19885. de.subtract = pw;
  19886. de.as = dw;
  19887. de.asMilliseconds = gw;
  19888. de.asSeconds = mw;
  19889. de.asMinutes = yw;
  19890. de.asHours = vw;
  19891. de.asDays = xw;
  19892. de.asWeeks = bw;
  19893. de.asMonths = Sw;
  19894. de.asQuarters = ww;
  19895. de.asYears = Cw;
  19896. de.valueOf = fw;
  19897. de._bubble = uw;
  19898. de.clone = Mw;
  19899. de.get = kw;
  19900. de.milliseconds = Aw;
  19901. de.seconds = Tw;
  19902. de.minutes = Pw;
  19903. de.hours = Ew;
  19904. de.days = Ow;
  19905. de.weeks = Dw;
  19906. de.months = Lw;
  19907. de.years = _w;
  19908. de.humanize = jw;
  19909. de.toISOString = Bs;
  19910. de.toString = Bs;
  19911. de.toJSON = Bs;
  19912. de.locale = Pu;
  19913. de.localeData = Ou;
  19914. de.toIsoString = Li(
  19915. "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
  19916. Bs
  19917. );
  19918. de.lang = Eu;
  19919. Zt("X", 0, 0, "unix");
  19920. Zt("x", 0, 0, "valueOf");
  19921. Ft("x", Ls);
  19922. Ft("X", s1);
  19923. we("X", function(r, d, T) {
  19924. T._d = new Date(parseFloat(r) * 1e3);
  19925. });
  19926. we("x", function(r, d, T) {
  19927. T._d = new Date(le(r));
  19928. });
  19929. //! moment.js
  19930. Xt.version = "2.29.4";
  19931. W0(Te);
  19932. Xt.fn = jt;
  19933. Xt.min = Ab;
  19934. Xt.max = Tb;
  19935. Xt.now = Pb;
  19936. Xt.utc = Zi;
  19937. Xt.unix = iw;
  19938. Xt.months = nw;
  19939. Xt.isDate = so;
  19940. Xt.locale = Lr;
  19941. Xt.invalid = As;
  19942. Xt.duration = Yi;
  19943. Xt.isMoment = zi;
  19944. Xt.weekdays = sw;
  19945. Xt.parseZone = rw;
  19946. Xt.localeData = yr;
  19947. Xt.isDuration = ls;
  19948. Xt.monthsShort = ow;
  19949. Xt.weekdaysMin = lw;
  19950. Xt.defineLocale = Nl;
  19951. Xt.updateLocale = rb;
  19952. Xt.locales = nb;
  19953. Xt.weekdaysShort = aw;
  19954. Xt.normalizeUnits = _i;
  19955. Xt.relativeTimeRounding = Nw;
  19956. Xt.relativeTimeThreshold = Bw;
  19957. Xt.calendarFormat = Qb;
  19958. Xt.prototype = jt;
  19959. Xt.HTML5_FMT = {
  19960. DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
  19961. // <input type="datetime-local" />
  19962. DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
  19963. // <input type="datetime-local" step="1" />
  19964. DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
  19965. // <input type="datetime-local" step="0.001" />
  19966. DATE: "YYYY-MM-DD",
  19967. // <input type="date" />
  19968. TIME: "HH:mm",
  19969. // <input type="time" />
  19970. TIME_SECONDS: "HH:mm:ss",
  19971. // <input type="time" step="1" />
  19972. TIME_MS: "HH:mm:ss.SSS",
  19973. // <input type="time" step="0.001" />
  19974. WEEK: "GGGG-[W]WW",
  19975. // <input type="week" />
  19976. MONTH: "YYYY-MM"
  19977. // <input type="month" />
  19978. };
  19979. var Cs = { exports: {} };
  19980. /**
  19981. * @license
  19982. * Lodash <https://lodash.com/>
  19983. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  19984. * Released under MIT license <https://lodash.com/license>
  19985. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  19986. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  19987. */
  19988. Cs.exports;
  19989. (function(r, d) {
  19990. (function() {
  19991. var T, l = "4.17.21", y = 200, j = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", I = "Expected a function", Z = "Invalid `variable` option passed into `_.template`", H = "__lodash_hash_undefined__", U = 500, F = "__lodash_placeholder__", R = 1, N = 2, b = 4, x = 1, u = 2, f = 1, E = 2, O = 4, B = 8, M = 16, S = 32, w = 64, v = 128, a = 256, c = 512, p = 30, i = "...", h = 800, s = 16, t = 1, o = 2, n = 3, A = 1 / 0, _ = 9007199254740991, D = 17976931348623157e292, W = 0 / 0, P = 4294967295, X = P - 1, g = P >>> 1, m = [
  19992. ["ary", v],
  19993. ["bind", f],
  19994. ["bindKey", E],
  19995. ["curry", B],
  19996. ["curryRight", M],
  19997. ["flip", c],
  19998. ["partial", S],
  19999. ["partialRight", w],
  20000. ["rearg", a]
  20001. ], L = "[object Arguments]", Y = "[object Array]", V = "[object AsyncFunction]", Q = "[object Boolean]", k = "[object Date]", G = "[object DOMException]", z = "[object Error]", $ = "[object Function]", q = "[object GeneratorFunction]", it = "[object Map]", et = "[object Number]", nt = "[object Null]", rt = "[object Object]", ct = "[object Promise]", gt = "[object Proxy]", dt = "[object RegExp]", ht = "[object Set]", at = "[object String]", J = "[object Symbol]", tt = "[object Undefined]", st = "[object WeakMap]", lt = "[object WeakSet]", pt = "[object ArrayBuffer]", yt = "[object DataView]", vt = "[object Float32Array]", Mt = "[object Float64Array]", Pt = "[object Int8Array]", At = "[object Int16Array]", St = "[object Int32Array]", Dt = "[object Uint8Array]", Lt = "[object Uint8ClampedArray]", Nt = "[object Uint16Array]", Et = "[object Uint32Array]", Kt = /\b__p \+= '';/g, Gt = /\b(__p \+=) '' \+/g, Wt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Jt = /&(?:amp|lt|gt|quot|#39);/g, be = /[&<>"']/g, zt = RegExp(Jt.source), Vt = RegExp(be.source), Ce = /<%-([\s\S]+?)%>/g, _r = /<%([\s\S]+?)%>/g, uo = /<%=([\s\S]+?)%>/g, Pn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, En = /^\w*$/, $e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, On = /[\\^$.*+?()[\]{}|]/g, Ln = RegExp(On.source), Jr = /^\s+/, fo = /\s/, Hs = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Dr = /\{\n\/\* \[wrapped with (.+)\] \*/, Xi = /,? & /, go = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, _n = /[()=,{}\[\]\/\s]/, Ir = /\\(\\)?/g, $t = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ue = /\w*$/, ge = /^[-+]0x[0-9a-f]+$/i, Re = /^0b[01]+$/i, De = /^\[object .+?Constructor\]$/, qr = /^0o[0-7]+$/i, fd = /^(?:0|[1-9]\d*)$/, gd = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, mo = /($^)/, md = /['\n\r\u2028\u2029\\]/g, yo = "\\ud800-\\udfff", yd = "\\u0300-\\u036f", vd = "\\ufe20-\\ufe2f", xd = "\\u20d0-\\u20ff", th = yd + vd + xd, eh = "\\u2700-\\u27bf", ih = "a-z\\xdf-\\xf6\\xf8-\\xff", bd = "\\xac\\xb1\\xd7\\xf7", Sd = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", wd = "\\u2000-\\u206f", Cd = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rh = "A-Z\\xc0-\\xd6\\xd8-\\xde", nh = "\\ufe0e\\ufe0f", oh = bd + Sd + wd + Cd, Fs = "['’]", Md = "[" + yo + "]", sh = "[" + oh + "]", vo = "[" + th + "]", ah = "\\d+", kd = "[" + eh + "]", lh = "[" + ih + "]", hh = "[^" + yo + oh + ah + eh + ih + rh + "]", Us = "\\ud83c[\\udffb-\\udfff]", Ad = "(?:" + vo + "|" + Us + ")", ch = "[^" + yo + "]", Vs = "(?:\\ud83c[\\udde6-\\uddff]){2}", $s = "[\\ud800-\\udbff][\\udc00-\\udfff]", Qr = "[" + rh + "]", ph = "\\u200d", uh = "(?:" + lh + "|" + hh + ")", Td = "(?:" + Qr + "|" + hh + ")", dh = "(?:" + Fs + "(?:d|ll|m|re|s|t|ve))?", fh = "(?:" + Fs + "(?:D|LL|M|RE|S|T|VE))?", gh = Ad + "?", mh = "[" + nh + "]?", Pd = "(?:" + ph + "(?:" + [ch, Vs, $s].join("|") + ")" + mh + gh + ")*", Ed = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Od = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", yh = mh + gh + Pd, Ld = "(?:" + [kd, Vs, $s].join("|") + ")" + yh, _d = "(?:" + [ch + vo + "?", vo, Vs, $s, Md].join("|") + ")", Dd = RegExp(Fs, "g"), Id = RegExp(vo, "g"), Zs = RegExp(Us + "(?=" + Us + ")|" + _d + yh, "g"), Rd = RegExp([
  20002. Qr + "?" + lh + "+" + dh + "(?=" + [sh, Qr, "$"].join("|") + ")",
  20003. Td + "+" + fh + "(?=" + [sh, Qr + uh, "$"].join("|") + ")",
  20004. Qr + "?" + uh + "+" + dh,
  20005. Qr + "+" + fh,
  20006. Od,
  20007. Ed,
  20008. ah,
  20009. Ld
  20010. ].join("|"), "g"), Nd = RegExp("[" + ph + yo + th + nh + "]"), Bd = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, jd = [
  20011. "Array",
  20012. "Buffer",
  20013. "DataView",
  20014. "Date",
  20015. "Error",
  20016. "Float32Array",
  20017. "Float64Array",
  20018. "Function",
  20019. "Int8Array",
  20020. "Int16Array",
  20021. "Int32Array",
  20022. "Map",
  20023. "Math",
  20024. "Object",
  20025. "Promise",
  20026. "RegExp",
  20027. "Set",
  20028. "String",
  20029. "Symbol",
  20030. "TypeError",
  20031. "Uint8Array",
  20032. "Uint8ClampedArray",
  20033. "Uint16Array",
  20034. "Uint32Array",
  20035. "WeakMap",
  20036. "_",
  20037. "clearTimeout",
  20038. "isFinite",
  20039. "parseInt",
  20040. "setTimeout"
  20041. ], Wd = -1, Ae = {};
  20042. Ae[vt] = Ae[Mt] = Ae[Pt] = Ae[At] = Ae[St] = Ae[Dt] = Ae[Lt] = Ae[Nt] = Ae[Et] = !0, Ae[L] = Ae[Y] = Ae[pt] = Ae[Q] = Ae[yt] = Ae[k] = Ae[z] = Ae[$] = Ae[it] = Ae[et] = Ae[rt] = Ae[dt] = Ae[ht] = Ae[at] = Ae[st] = !1;
  20043. var ke = {};
  20044. ke[L] = ke[Y] = ke[pt] = ke[yt] = ke[Q] = ke[k] = ke[vt] = ke[Mt] = ke[Pt] = ke[At] = ke[St] = ke[it] = ke[et] = ke[rt] = ke[dt] = ke[ht] = ke[at] = ke[J] = ke[Dt] = ke[Lt] = ke[Nt] = ke[Et] = !0, ke[z] = ke[$] = ke[st] = !1;
  20045. var zd = {
  20046. // Latin-1 Supplement block.
  20047. À: "A",
  20048. Á: "A",
  20049. Â: "A",
  20050. Ã: "A",
  20051. Ä: "A",
  20052. Å: "A",
  20053. à: "a",
  20054. á: "a",
  20055. â: "a",
  20056. ã: "a",
  20057. ä: "a",
  20058. å: "a",
  20059. Ç: "C",
  20060. ç: "c",
  20061. Ð: "D",
  20062. ð: "d",
  20063. È: "E",
  20064. É: "E",
  20065. Ê: "E",
  20066. Ë: "E",
  20067. è: "e",
  20068. é: "e",
  20069. ê: "e",
  20070. ë: "e",
  20071. Ì: "I",
  20072. Í: "I",
  20073. Î: "I",
  20074. Ï: "I",
  20075. ì: "i",
  20076. í: "i",
  20077. î: "i",
  20078. ï: "i",
  20079. Ñ: "N",
  20080. ñ: "n",
  20081. Ò: "O",
  20082. Ó: "O",
  20083. Ô: "O",
  20084. Õ: "O",
  20085. Ö: "O",
  20086. Ø: "O",
  20087. ò: "o",
  20088. ó: "o",
  20089. ô: "o",
  20090. õ: "o",
  20091. ö: "o",
  20092. ø: "o",
  20093. Ù: "U",
  20094. Ú: "U",
  20095. Û: "U",
  20096. Ü: "U",
  20097. ù: "u",
  20098. ú: "u",
  20099. û: "u",
  20100. ü: "u",
  20101. Ý: "Y",
  20102. ý: "y",
  20103. ÿ: "y",
  20104. Æ: "Ae",
  20105. æ: "ae",
  20106. Þ: "Th",
  20107. þ: "th",
  20108. ß: "ss",
  20109. // Latin Extended-A block.
  20110. Ā: "A",
  20111. Ă: "A",
  20112. Ą: "A",
  20113. ā: "a",
  20114. ă: "a",
  20115. ą: "a",
  20116. Ć: "C",
  20117. Ĉ: "C",
  20118. Ċ: "C",
  20119. Č: "C",
  20120. ć: "c",
  20121. ĉ: "c",
  20122. ċ: "c",
  20123. č: "c",
  20124. Ď: "D",
  20125. Đ: "D",
  20126. ď: "d",
  20127. đ: "d",
  20128. Ē: "E",
  20129. Ĕ: "E",
  20130. Ė: "E",
  20131. Ę: "E",
  20132. Ě: "E",
  20133. ē: "e",
  20134. ĕ: "e",
  20135. ė: "e",
  20136. ę: "e",
  20137. ě: "e",
  20138. Ĝ: "G",
  20139. Ğ: "G",
  20140. Ġ: "G",
  20141. Ģ: "G",
  20142. ĝ: "g",
  20143. ğ: "g",
  20144. ġ: "g",
  20145. ģ: "g",
  20146. Ĥ: "H",
  20147. Ħ: "H",
  20148. ĥ: "h",
  20149. ħ: "h",
  20150. Ĩ: "I",
  20151. Ī: "I",
  20152. Ĭ: "I",
  20153. Į: "I",
  20154. İ: "I",
  20155. ĩ: "i",
  20156. ī: "i",
  20157. ĭ: "i",
  20158. į: "i",
  20159. ı: "i",
  20160. Ĵ: "J",
  20161. ĵ: "j",
  20162. Ķ: "K",
  20163. ķ: "k",
  20164. ĸ: "k",
  20165. Ĺ: "L",
  20166. Ļ: "L",
  20167. Ľ: "L",
  20168. Ŀ: "L",
  20169. Ł: "L",
  20170. ĺ: "l",
  20171. ļ: "l",
  20172. ľ: "l",
  20173. ŀ: "l",
  20174. ł: "l",
  20175. Ń: "N",
  20176. Ņ: "N",
  20177. Ň: "N",
  20178. Ŋ: "N",
  20179. ń: "n",
  20180. ņ: "n",
  20181. ň: "n",
  20182. ŋ: "n",
  20183. Ō: "O",
  20184. Ŏ: "O",
  20185. Ő: "O",
  20186. ō: "o",
  20187. ŏ: "o",
  20188. ő: "o",
  20189. Ŕ: "R",
  20190. Ŗ: "R",
  20191. Ř: "R",
  20192. ŕ: "r",
  20193. ŗ: "r",
  20194. ř: "r",
  20195. Ś: "S",
  20196. Ŝ: "S",
  20197. Ş: "S",
  20198. Š: "S",
  20199. ś: "s",
  20200. ŝ: "s",
  20201. ş: "s",
  20202. š: "s",
  20203. Ţ: "T",
  20204. Ť: "T",
  20205. Ŧ: "T",
  20206. ţ: "t",
  20207. ť: "t",
  20208. ŧ: "t",
  20209. Ũ: "U",
  20210. Ū: "U",
  20211. Ŭ: "U",
  20212. Ů: "U",
  20213. Ű: "U",
  20214. Ų: "U",
  20215. ũ: "u",
  20216. ū: "u",
  20217. ŭ: "u",
  20218. ů: "u",
  20219. ű: "u",
  20220. ų: "u",
  20221. Ŵ: "W",
  20222. ŵ: "w",
  20223. Ŷ: "Y",
  20224. ŷ: "y",
  20225. Ÿ: "Y",
  20226. Ź: "Z",
  20227. Ż: "Z",
  20228. Ž: "Z",
  20229. ź: "z",
  20230. ż: "z",
  20231. ž: "z",
  20232. IJ: "IJ",
  20233. ij: "ij",
  20234. Œ: "Oe",
  20235. œ: "oe",
  20236. ʼn: "'n",
  20237. ſ: "s"
  20238. }, Yd = {
  20239. "&": "&amp;",
  20240. "<": "&lt;",
  20241. ">": "&gt;",
  20242. '"': "&quot;",
  20243. "'": "&#39;"
  20244. }, Xd = {
  20245. "&amp;": "&",
  20246. "&lt;": "<",
  20247. "&gt;": ">",
  20248. "&quot;": '"',
  20249. "&#39;": "'"
  20250. }, Gd = {
  20251. "\\": "\\",
  20252. "'": "'",
  20253. "\n": "n",
  20254. "\r": "r",
  20255. "\u2028": "u2028",
  20256. "\u2029": "u2029"
  20257. }, Hd = parseFloat, Fd = parseInt, vh = typeof Fr == "object" && Fr && Fr.Object === Object && Fr, Ud = typeof self == "object" && self && self.Object === Object && self, Ue = vh || Ud || Function("return this")(), Ks = d && !d.nodeType && d, Rr = Ks && !0 && r && !r.nodeType && r, xh = Rr && Rr.exports === Ks, Js = xh && vh.process, xi = function() {
  20258. try {
  20259. var wt = Rr && Rr.require && Rr.require("util").types;
  20260. return wt || Js && Js.binding && Js.binding("util");
  20261. } catch {
  20262. }
  20263. }(), bh = xi && xi.isArrayBuffer, Sh = xi && xi.isDate, wh = xi && xi.isMap, Ch = xi && xi.isRegExp, Mh = xi && xi.isSet, kh = xi && xi.isTypedArray;
  20264. function pi(wt, Ot, Tt) {
  20265. switch (Tt.length) {
  20266. case 0:
  20267. return wt.call(Ot);
  20268. case 1:
  20269. return wt.call(Ot, Tt[0]);
  20270. case 2:
  20271. return wt.call(Ot, Tt[0], Tt[1]);
  20272. case 3:
  20273. return wt.call(Ot, Tt[0], Tt[1], Tt[2]);
  20274. }
  20275. return wt.apply(Ot, Tt);
  20276. }
  20277. function Vd(wt, Ot, Tt, Ht) {
  20278. for (var ee = -1, ve = wt == null ? 0 : wt.length; ++ee < ve; ) {
  20279. var ze = wt[ee];
  20280. Ot(Ht, ze, Tt(ze), wt);
  20281. }
  20282. return Ht;
  20283. }
  20284. function bi(wt, Ot) {
  20285. for (var Tt = -1, Ht = wt == null ? 0 : wt.length; ++Tt < Ht && Ot(wt[Tt], Tt, wt) !== !1; )
  20286. ;
  20287. return wt;
  20288. }
  20289. function $d(wt, Ot) {
  20290. for (var Tt = wt == null ? 0 : wt.length; Tt-- && Ot(wt[Tt], Tt, wt) !== !1; )
  20291. ;
  20292. return wt;
  20293. }
  20294. function Ah(wt, Ot) {
  20295. for (var Tt = -1, Ht = wt == null ? 0 : wt.length; ++Tt < Ht; )
  20296. if (!Ot(wt[Tt], Tt, wt))
  20297. return !1;
  20298. return !0;
  20299. }
  20300. function xr(wt, Ot) {
  20301. for (var Tt = -1, Ht = wt == null ? 0 : wt.length, ee = 0, ve = []; ++Tt < Ht; ) {
  20302. var ze = wt[Tt];
  20303. Ot(ze, Tt, wt) && (ve[ee++] = ze);
  20304. }
  20305. return ve;
  20306. }
  20307. function xo(wt, Ot) {
  20308. var Tt = wt == null ? 0 : wt.length;
  20309. return !!Tt && tn(wt, Ot, 0) > -1;
  20310. }
  20311. function qs(wt, Ot, Tt) {
  20312. for (var Ht = -1, ee = wt == null ? 0 : wt.length; ++Ht < ee; )
  20313. if (Tt(Ot, wt[Ht]))
  20314. return !0;
  20315. return !1;
  20316. }
  20317. function Ee(wt, Ot) {
  20318. for (var Tt = -1, Ht = wt == null ? 0 : wt.length, ee = Array(Ht); ++Tt < Ht; )
  20319. ee[Tt] = Ot(wt[Tt], Tt, wt);
  20320. return ee;
  20321. }
  20322. function br(wt, Ot) {
  20323. for (var Tt = -1, Ht = Ot.length, ee = wt.length; ++Tt < Ht; )
  20324. wt[ee + Tt] = Ot[Tt];
  20325. return wt;
  20326. }
  20327. function Qs(wt, Ot, Tt, Ht) {
  20328. var ee = -1, ve = wt == null ? 0 : wt.length;
  20329. for (Ht && ve && (Tt = wt[++ee]); ++ee < ve; )
  20330. Tt = Ot(Tt, wt[ee], ee, wt);
  20331. return Tt;
  20332. }
  20333. function Zd(wt, Ot, Tt, Ht) {
  20334. var ee = wt == null ? 0 : wt.length;
  20335. for (Ht && ee && (Tt = wt[--ee]); ee--; )
  20336. Tt = Ot(Tt, wt[ee], ee, wt);
  20337. return Tt;
  20338. }
  20339. function ta(wt, Ot) {
  20340. for (var Tt = -1, Ht = wt == null ? 0 : wt.length; ++Tt < Ht; )
  20341. if (Ot(wt[Tt], Tt, wt))
  20342. return !0;
  20343. return !1;
  20344. }
  20345. var Kd = ea("length");
  20346. function Jd(wt) {
  20347. return wt.split("");
  20348. }
  20349. function qd(wt) {
  20350. return wt.match(go) || [];
  20351. }
  20352. function Th(wt, Ot, Tt) {
  20353. var Ht;
  20354. return Tt(wt, function(ee, ve, ze) {
  20355. if (Ot(ee, ve, ze))
  20356. return Ht = ve, !1;
  20357. }), Ht;
  20358. }
  20359. function bo(wt, Ot, Tt, Ht) {
  20360. for (var ee = wt.length, ve = Tt + (Ht ? 1 : -1); Ht ? ve-- : ++ve < ee; )
  20361. if (Ot(wt[ve], ve, wt))
  20362. return ve;
  20363. return -1;
  20364. }
  20365. function tn(wt, Ot, Tt) {
  20366. return Ot === Ot ? pf(wt, Ot, Tt) : bo(wt, Ph, Tt);
  20367. }
  20368. function Qd(wt, Ot, Tt, Ht) {
  20369. for (var ee = Tt - 1, ve = wt.length; ++ee < ve; )
  20370. if (Ht(wt[ee], Ot))
  20371. return ee;
  20372. return -1;
  20373. }
  20374. function Ph(wt) {
  20375. return wt !== wt;
  20376. }
  20377. function Eh(wt, Ot) {
  20378. var Tt = wt == null ? 0 : wt.length;
  20379. return Tt ? ra(wt, Ot) / Tt : W;
  20380. }
  20381. function ea(wt) {
  20382. return function(Ot) {
  20383. return Ot == null ? T : Ot[wt];
  20384. };
  20385. }
  20386. function ia(wt) {
  20387. return function(Ot) {
  20388. return wt == null ? T : wt[Ot];
  20389. };
  20390. }
  20391. function Oh(wt, Ot, Tt, Ht, ee) {
  20392. return ee(wt, function(ve, ze, Me) {
  20393. Tt = Ht ? (Ht = !1, ve) : Ot(Tt, ve, ze, Me);
  20394. }), Tt;
  20395. }
  20396. function tf(wt, Ot) {
  20397. var Tt = wt.length;
  20398. for (wt.sort(Ot); Tt--; )
  20399. wt[Tt] = wt[Tt].value;
  20400. return wt;
  20401. }
  20402. function ra(wt, Ot) {
  20403. for (var Tt, Ht = -1, ee = wt.length; ++Ht < ee; ) {
  20404. var ve = Ot(wt[Ht]);
  20405. ve !== T && (Tt = Tt === T ? ve : Tt + ve);
  20406. }
  20407. return Tt;
  20408. }
  20409. function na(wt, Ot) {
  20410. for (var Tt = -1, Ht = Array(wt); ++Tt < wt; )
  20411. Ht[Tt] = Ot(Tt);
  20412. return Ht;
  20413. }
  20414. function ef(wt, Ot) {
  20415. return Ee(Ot, function(Tt) {
  20416. return [Tt, wt[Tt]];
  20417. });
  20418. }
  20419. function Lh(wt) {
  20420. return wt && wt.slice(0, Rh(wt) + 1).replace(Jr, "");
  20421. }
  20422. function ui(wt) {
  20423. return function(Ot) {
  20424. return wt(Ot);
  20425. };
  20426. }
  20427. function oa(wt, Ot) {
  20428. return Ee(Ot, function(Tt) {
  20429. return wt[Tt];
  20430. });
  20431. }
  20432. function Dn(wt, Ot) {
  20433. return wt.has(Ot);
  20434. }
  20435. function _h(wt, Ot) {
  20436. for (var Tt = -1, Ht = wt.length; ++Tt < Ht && tn(Ot, wt[Tt], 0) > -1; )
  20437. ;
  20438. return Tt;
  20439. }
  20440. function Dh(wt, Ot) {
  20441. for (var Tt = wt.length; Tt-- && tn(Ot, wt[Tt], 0) > -1; )
  20442. ;
  20443. return Tt;
  20444. }
  20445. function rf(wt, Ot) {
  20446. for (var Tt = wt.length, Ht = 0; Tt--; )
  20447. wt[Tt] === Ot && ++Ht;
  20448. return Ht;
  20449. }
  20450. var nf = ia(zd), of = ia(Yd);
  20451. function sf(wt) {
  20452. return "\\" + Gd[wt];
  20453. }
  20454. function af(wt, Ot) {
  20455. return wt == null ? T : wt[Ot];
  20456. }
  20457. function en(wt) {
  20458. return Nd.test(wt);
  20459. }
  20460. function lf(wt) {
  20461. return Bd.test(wt);
  20462. }
  20463. function hf(wt) {
  20464. for (var Ot, Tt = []; !(Ot = wt.next()).done; )
  20465. Tt.push(Ot.value);
  20466. return Tt;
  20467. }
  20468. function sa(wt) {
  20469. var Ot = -1, Tt = Array(wt.size);
  20470. return wt.forEach(function(Ht, ee) {
  20471. Tt[++Ot] = [ee, Ht];
  20472. }), Tt;
  20473. }
  20474. function Ih(wt, Ot) {
  20475. return function(Tt) {
  20476. return wt(Ot(Tt));
  20477. };
  20478. }
  20479. function Sr(wt, Ot) {
  20480. for (var Tt = -1, Ht = wt.length, ee = 0, ve = []; ++Tt < Ht; ) {
  20481. var ze = wt[Tt];
  20482. (ze === Ot || ze === F) && (wt[Tt] = F, ve[ee++] = Tt);
  20483. }
  20484. return ve;
  20485. }
  20486. function So(wt) {
  20487. var Ot = -1, Tt = Array(wt.size);
  20488. return wt.forEach(function(Ht) {
  20489. Tt[++Ot] = Ht;
  20490. }), Tt;
  20491. }
  20492. function cf(wt) {
  20493. var Ot = -1, Tt = Array(wt.size);
  20494. return wt.forEach(function(Ht) {
  20495. Tt[++Ot] = [Ht, Ht];
  20496. }), Tt;
  20497. }
  20498. function pf(wt, Ot, Tt) {
  20499. for (var Ht = Tt - 1, ee = wt.length; ++Ht < ee; )
  20500. if (wt[Ht] === Ot)
  20501. return Ht;
  20502. return -1;
  20503. }
  20504. function uf(wt, Ot, Tt) {
  20505. for (var Ht = Tt + 1; Ht--; )
  20506. if (wt[Ht] === Ot)
  20507. return Ht;
  20508. return Ht;
  20509. }
  20510. function rn(wt) {
  20511. return en(wt) ? ff(wt) : Kd(wt);
  20512. }
  20513. function Di(wt) {
  20514. return en(wt) ? gf(wt) : Jd(wt);
  20515. }
  20516. function Rh(wt) {
  20517. for (var Ot = wt.length; Ot-- && fo.test(wt.charAt(Ot)); )
  20518. ;
  20519. return Ot;
  20520. }
  20521. var df = ia(Xd);
  20522. function ff(wt) {
  20523. for (var Ot = Zs.lastIndex = 0; Zs.test(wt); )
  20524. ++Ot;
  20525. return Ot;
  20526. }
  20527. function gf(wt) {
  20528. return wt.match(Zs) || [];
  20529. }
  20530. function mf(wt) {
  20531. return wt.match(Rd) || [];
  20532. }
  20533. var yf = function wt(Ot) {
  20534. Ot = Ot == null ? Ue : nn.defaults(Ue.Object(), Ot, nn.pick(Ue, jd));
  20535. var Tt = Ot.Array, Ht = Ot.Date, ee = Ot.Error, ve = Ot.Function, ze = Ot.Math, Me = Ot.Object, aa = Ot.RegExp, vf = Ot.String, Si = Ot.TypeError, wo = Tt.prototype, xf = ve.prototype, on = Me.prototype, Co = Ot["__core-js_shared__"], Mo = xf.toString, Se = on.hasOwnProperty, bf = 0, Nh = function() {
  20536. var e = /[^.]+$/.exec(Co && Co.keys && Co.keys.IE_PROTO || "");
  20537. return e ? "Symbol(src)_1." + e : "";
  20538. }(), ko = on.toString, Sf = Mo.call(Me), wf = Ue._, Cf = aa(
  20539. "^" + Mo.call(Se).replace(On, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  20540. ), Ao = xh ? Ot.Buffer : T, wr = Ot.Symbol, To = Ot.Uint8Array, Bh = Ao ? Ao.allocUnsafe : T, Po = Ih(Me.getPrototypeOf, Me), jh = Me.create, Wh = on.propertyIsEnumerable, Eo = wo.splice, zh = wr ? wr.isConcatSpreadable : T, In = wr ? wr.iterator : T, Nr = wr ? wr.toStringTag : T, Oo = function() {
  20541. try {
  20542. var e = Yr(Me, "defineProperty");
  20543. return e({}, "", {}), e;
  20544. } catch {
  20545. }
  20546. }(), Mf = Ot.clearTimeout !== Ue.clearTimeout && Ot.clearTimeout, kf = Ht && Ht.now !== Ue.Date.now && Ht.now, Af = Ot.setTimeout !== Ue.setTimeout && Ot.setTimeout, Lo = ze.ceil, _o = ze.floor, la = Me.getOwnPropertySymbols, Tf = Ao ? Ao.isBuffer : T, Yh = Ot.isFinite, Pf = wo.join, Ef = Ih(Me.keys, Me), Ye = ze.max, Ze = ze.min, Of = Ht.now, Lf = Ot.parseInt, Xh = ze.random, _f = wo.reverse, ha = Yr(Ot, "DataView"), Rn = Yr(Ot, "Map"), ca = Yr(Ot, "Promise"), sn = Yr(Ot, "Set"), Nn = Yr(Ot, "WeakMap"), Bn = Yr(Me, "create"), Do = Nn && new Nn(), an = {}, Df = Xr(ha), If = Xr(Rn), Rf = Xr(ca), Nf = Xr(sn), Bf = Xr(Nn), Io = wr ? wr.prototype : T, jn = Io ? Io.valueOf : T, Gh = Io ? Io.toString : T;
  20547. function ft(e) {
  20548. if (Ne(e) && !ie(e) && !(e instanceof ce)) {
  20549. if (e instanceof wi)
  20550. return e;
  20551. if (Se.call(e, "__wrapped__"))
  20552. return Hc(e);
  20553. }
  20554. return new wi(e);
  20555. }
  20556. var ln = function() {
  20557. function e() {
  20558. }
  20559. return function(C) {
  20560. if (!Ie(C))
  20561. return {};
  20562. if (jh)
  20563. return jh(C);
  20564. e.prototype = C;
  20565. var K = new e();
  20566. return e.prototype = T, K;
  20567. };
  20568. }();
  20569. function Ro() {
  20570. }
  20571. function wi(e, C) {
  20572. this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!C, this.__index__ = 0, this.__values__ = T;
  20573. }
  20574. ft.templateSettings = {
  20575. /**
  20576. * Used to detect `data` property values to be HTML-escaped.
  20577. *
  20578. * @memberOf _.templateSettings
  20579. * @type {RegExp}
  20580. */
  20581. escape: Ce,
  20582. /**
  20583. * Used to detect code to be evaluated.
  20584. *
  20585. * @memberOf _.templateSettings
  20586. * @type {RegExp}
  20587. */
  20588. evaluate: _r,
  20589. /**
  20590. * Used to detect `data` property values to inject.
  20591. *
  20592. * @memberOf _.templateSettings
  20593. * @type {RegExp}
  20594. */
  20595. interpolate: uo,
  20596. /**
  20597. * Used to reference the data object in the template text.
  20598. *
  20599. * @memberOf _.templateSettings
  20600. * @type {string}
  20601. */
  20602. variable: "",
  20603. /**
  20604. * Used to import variables into the compiled template.
  20605. *
  20606. * @memberOf _.templateSettings
  20607. * @type {Object}
  20608. */
  20609. imports: {
  20610. /**
  20611. * A reference to the `lodash` function.
  20612. *
  20613. * @memberOf _.templateSettings.imports
  20614. * @type {Function}
  20615. */
  20616. _: ft
  20617. }
  20618. }, ft.prototype = Ro.prototype, ft.prototype.constructor = ft, wi.prototype = ln(Ro.prototype), wi.prototype.constructor = wi;
  20619. function ce(e) {
  20620. this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = P, this.__views__ = [];
  20621. }
  20622. function jf() {
  20623. var e = new ce(this.__wrapped__);
  20624. return e.__actions__ = oi(this.__actions__), e.__dir__ = this.__dir__, e.__filtered__ = this.__filtered__, e.__iteratees__ = oi(this.__iteratees__), e.__takeCount__ = this.__takeCount__, e.__views__ = oi(this.__views__), e;
  20625. }
  20626. function Wf() {
  20627. if (this.__filtered__) {
  20628. var e = new ce(this);
  20629. e.__dir__ = -1, e.__filtered__ = !0;
  20630. } else
  20631. e = this.clone(), e.__dir__ *= -1;
  20632. return e;
  20633. }
  20634. function zf() {
  20635. var e = this.__wrapped__.value(), C = this.__dir__, K = ie(e), ot = C < 0, ut = K ? e.length : 0, mt = qg(0, ut, this.__views__), xt = mt.start, bt = mt.end, Ct = bt - xt, It = ot ? bt : xt - 1, Rt = this.__iteratees__, Bt = Rt.length, Yt = 0, Ut = Ze(Ct, this.__takeCount__);
  20636. if (!K || !ot && ut == Ct && Ut == Ct)
  20637. return dc(e, this.__actions__);
  20638. var Qt = [];
  20639. t:
  20640. for (; Ct-- && Yt < Ut; ) {
  20641. It += C;
  20642. for (var se = -1, te = e[It]; ++se < Bt; ) {
  20643. var he = Rt[se], pe = he.iteratee, gi = he.type, ni = pe(te);
  20644. if (gi == o)
  20645. te = ni;
  20646. else if (!ni) {
  20647. if (gi == t)
  20648. continue t;
  20649. break t;
  20650. }
  20651. }
  20652. Qt[Yt++] = te;
  20653. }
  20654. return Qt;
  20655. }
  20656. ce.prototype = ln(Ro.prototype), ce.prototype.constructor = ce;
  20657. function Br(e) {
  20658. var C = -1, K = e == null ? 0 : e.length;
  20659. for (this.clear(); ++C < K; ) {
  20660. var ot = e[C];
  20661. this.set(ot[0], ot[1]);
  20662. }
  20663. }
  20664. function Yf() {
  20665. this.__data__ = Bn ? Bn(null) : {}, this.size = 0;
  20666. }
  20667. function Xf(e) {
  20668. var C = this.has(e) && delete this.__data__[e];
  20669. return this.size -= C ? 1 : 0, C;
  20670. }
  20671. function Gf(e) {
  20672. var C = this.__data__;
  20673. if (Bn) {
  20674. var K = C[e];
  20675. return K === H ? T : K;
  20676. }
  20677. return Se.call(C, e) ? C[e] : T;
  20678. }
  20679. function Hf(e) {
  20680. var C = this.__data__;
  20681. return Bn ? C[e] !== T : Se.call(C, e);
  20682. }
  20683. function Ff(e, C) {
  20684. var K = this.__data__;
  20685. return this.size += this.has(e) ? 0 : 1, K[e] = Bn && C === T ? H : C, this;
  20686. }
  20687. Br.prototype.clear = Yf, Br.prototype.delete = Xf, Br.prototype.get = Gf, Br.prototype.has = Hf, Br.prototype.set = Ff;
  20688. function qi(e) {
  20689. var C = -1, K = e == null ? 0 : e.length;
  20690. for (this.clear(); ++C < K; ) {
  20691. var ot = e[C];
  20692. this.set(ot[0], ot[1]);
  20693. }
  20694. }
  20695. function Uf() {
  20696. this.__data__ = [], this.size = 0;
  20697. }
  20698. function Vf(e) {
  20699. var C = this.__data__, K = No(C, e);
  20700. if (K < 0)
  20701. return !1;
  20702. var ot = C.length - 1;
  20703. return K == ot ? C.pop() : Eo.call(C, K, 1), --this.size, !0;
  20704. }
  20705. function $f(e) {
  20706. var C = this.__data__, K = No(C, e);
  20707. return K < 0 ? T : C[K][1];
  20708. }
  20709. function Zf(e) {
  20710. return No(this.__data__, e) > -1;
  20711. }
  20712. function Kf(e, C) {
  20713. var K = this.__data__, ot = No(K, e);
  20714. return ot < 0 ? (++this.size, K.push([e, C])) : K[ot][1] = C, this;
  20715. }
  20716. qi.prototype.clear = Uf, qi.prototype.delete = Vf, qi.prototype.get = $f, qi.prototype.has = Zf, qi.prototype.set = Kf;
  20717. function Qi(e) {
  20718. var C = -1, K = e == null ? 0 : e.length;
  20719. for (this.clear(); ++C < K; ) {
  20720. var ot = e[C];
  20721. this.set(ot[0], ot[1]);
  20722. }
  20723. }
  20724. function Jf() {
  20725. this.size = 0, this.__data__ = {
  20726. hash: new Br(),
  20727. map: new (Rn || qi)(),
  20728. string: new Br()
  20729. };
  20730. }
  20731. function qf(e) {
  20732. var C = $o(this, e).delete(e);
  20733. return this.size -= C ? 1 : 0, C;
  20734. }
  20735. function Qf(e) {
  20736. return $o(this, e).get(e);
  20737. }
  20738. function tg(e) {
  20739. return $o(this, e).has(e);
  20740. }
  20741. function eg(e, C) {
  20742. var K = $o(this, e), ot = K.size;
  20743. return K.set(e, C), this.size += K.size == ot ? 0 : 1, this;
  20744. }
  20745. Qi.prototype.clear = Jf, Qi.prototype.delete = qf, Qi.prototype.get = Qf, Qi.prototype.has = tg, Qi.prototype.set = eg;
  20746. function jr(e) {
  20747. var C = -1, K = e == null ? 0 : e.length;
  20748. for (this.__data__ = new Qi(); ++C < K; )
  20749. this.add(e[C]);
  20750. }
  20751. function ig(e) {
  20752. return this.__data__.set(e, H), this;
  20753. }
  20754. function rg(e) {
  20755. return this.__data__.has(e);
  20756. }
  20757. jr.prototype.add = jr.prototype.push = ig, jr.prototype.has = rg;
  20758. function Ii(e) {
  20759. var C = this.__data__ = new qi(e);
  20760. this.size = C.size;
  20761. }
  20762. function ng() {
  20763. this.__data__ = new qi(), this.size = 0;
  20764. }
  20765. function og(e) {
  20766. var C = this.__data__, K = C.delete(e);
  20767. return this.size = C.size, K;
  20768. }
  20769. function sg(e) {
  20770. return this.__data__.get(e);
  20771. }
  20772. function ag(e) {
  20773. return this.__data__.has(e);
  20774. }
  20775. function lg(e, C) {
  20776. var K = this.__data__;
  20777. if (K instanceof qi) {
  20778. var ot = K.__data__;
  20779. if (!Rn || ot.length < y - 1)
  20780. return ot.push([e, C]), this.size = ++K.size, this;
  20781. K = this.__data__ = new Qi(ot);
  20782. }
  20783. return K.set(e, C), this.size = K.size, this;
  20784. }
  20785. Ii.prototype.clear = ng, Ii.prototype.delete = og, Ii.prototype.get = sg, Ii.prototype.has = ag, Ii.prototype.set = lg;
  20786. function Hh(e, C) {
  20787. var K = ie(e), ot = !K && Gr(e), ut = !K && !ot && Tr(e), mt = !K && !ot && !ut && un(e), xt = K || ot || ut || mt, bt = xt ? na(e.length, vf) : [], Ct = bt.length;
  20788. for (var It in e)
  20789. (C || Se.call(e, It)) && !(xt && // Safari 9 has enumerable `arguments.length` in strict mode.
  20790. (It == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
  20791. ut && (It == "offset" || It == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
  20792. mt && (It == "buffer" || It == "byteLength" || It == "byteOffset") || // Skip index properties.
  20793. rr(It, Ct))) && bt.push(It);
  20794. return bt;
  20795. }
  20796. function Fh(e) {
  20797. var C = e.length;
  20798. return C ? e[Sa(0, C - 1)] : T;
  20799. }
  20800. function hg(e, C) {
  20801. return Zo(oi(e), Wr(C, 0, e.length));
  20802. }
  20803. function cg(e) {
  20804. return Zo(oi(e));
  20805. }
  20806. function pa(e, C, K) {
  20807. (K !== T && !Ri(e[C], K) || K === T && !(C in e)) && tr(e, C, K);
  20808. }
  20809. function Wn(e, C, K) {
  20810. var ot = e[C];
  20811. (!(Se.call(e, C) && Ri(ot, K)) || K === T && !(C in e)) && tr(e, C, K);
  20812. }
  20813. function No(e, C) {
  20814. for (var K = e.length; K--; )
  20815. if (Ri(e[K][0], C))
  20816. return K;
  20817. return -1;
  20818. }
  20819. function pg(e, C, K, ot) {
  20820. return Cr(e, function(ut, mt, xt) {
  20821. C(ot, ut, K(ut), xt);
  20822. }), ot;
  20823. }
  20824. function Uh(e, C) {
  20825. return e && Hi(C, He(C), e);
  20826. }
  20827. function ug(e, C) {
  20828. return e && Hi(C, ai(C), e);
  20829. }
  20830. function tr(e, C, K) {
  20831. C == "__proto__" && Oo ? Oo(e, C, {
  20832. configurable: !0,
  20833. enumerable: !0,
  20834. value: K,
  20835. writable: !0
  20836. }) : e[C] = K;
  20837. }
  20838. function ua(e, C) {
  20839. for (var K = -1, ot = C.length, ut = Tt(ot), mt = e == null; ++K < ot; )
  20840. ut[K] = mt ? T : Ua(e, C[K]);
  20841. return ut;
  20842. }
  20843. function Wr(e, C, K) {
  20844. return e === e && (K !== T && (e = e <= K ? e : K), C !== T && (e = e >= C ? e : C)), e;
  20845. }
  20846. function Ci(e, C, K, ot, ut, mt) {
  20847. var xt, bt = C & R, Ct = C & N, It = C & b;
  20848. if (K && (xt = ut ? K(e, ot, ut, mt) : K(e)), xt !== T)
  20849. return xt;
  20850. if (!Ie(e))
  20851. return e;
  20852. var Rt = ie(e);
  20853. if (Rt) {
  20854. if (xt = tm(e), !bt)
  20855. return oi(e, xt);
  20856. } else {
  20857. var Bt = Ke(e), Yt = Bt == $ || Bt == q;
  20858. if (Tr(e))
  20859. return mc(e, bt);
  20860. if (Bt == rt || Bt == L || Yt && !ut) {
  20861. if (xt = Ct || Yt ? {} : Rc(e), !bt)
  20862. return Ct ? Gg(e, ug(xt, e)) : Xg(e, Uh(xt, e));
  20863. } else {
  20864. if (!ke[Bt])
  20865. return ut ? e : {};
  20866. xt = em(e, Bt, bt);
  20867. }
  20868. }
  20869. mt || (mt = new Ii());
  20870. var Ut = mt.get(e);
  20871. if (Ut)
  20872. return Ut;
  20873. mt.set(e, xt), cp(e) ? e.forEach(function(te) {
  20874. xt.add(Ci(te, C, K, te, e, mt));
  20875. }) : lp(e) && e.forEach(function(te, he) {
  20876. xt.set(he, Ci(te, C, K, he, e, mt));
  20877. });
  20878. var Qt = It ? Ct ? _a : La : Ct ? ai : He, se = Rt ? T : Qt(e);
  20879. return bi(se || e, function(te, he) {
  20880. se && (he = te, te = e[he]), Wn(xt, he, Ci(te, C, K, he, e, mt));
  20881. }), xt;
  20882. }
  20883. function dg(e) {
  20884. var C = He(e);
  20885. return function(K) {
  20886. return Vh(K, e, C);
  20887. };
  20888. }
  20889. function Vh(e, C, K) {
  20890. var ot = K.length;
  20891. if (e == null)
  20892. return !ot;
  20893. for (e = Me(e); ot--; ) {
  20894. var ut = K[ot], mt = C[ut], xt = e[ut];
  20895. if (xt === T && !(ut in e) || !mt(xt))
  20896. return !1;
  20897. }
  20898. return !0;
  20899. }
  20900. function $h(e, C, K) {
  20901. if (typeof e != "function")
  20902. throw new Si(I);
  20903. return Un(function() {
  20904. e.apply(T, K);
  20905. }, C);
  20906. }
  20907. function zn(e, C, K, ot) {
  20908. var ut = -1, mt = xo, xt = !0, bt = e.length, Ct = [], It = C.length;
  20909. if (!bt)
  20910. return Ct;
  20911. K && (C = Ee(C, ui(K))), ot ? (mt = qs, xt = !1) : C.length >= y && (mt = Dn, xt = !1, C = new jr(C));
  20912. t:
  20913. for (; ++ut < bt; ) {
  20914. var Rt = e[ut], Bt = K == null ? Rt : K(Rt);
  20915. if (Rt = ot || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  20916. for (var Yt = It; Yt--; )
  20917. if (C[Yt] === Bt)
  20918. continue t;
  20919. Ct.push(Rt);
  20920. } else
  20921. mt(C, Bt, ot) || Ct.push(Rt);
  20922. }
  20923. return Ct;
  20924. }
  20925. var Cr = Sc(Gi), Zh = Sc(fa, !0);
  20926. function fg(e, C) {
  20927. var K = !0;
  20928. return Cr(e, function(ot, ut, mt) {
  20929. return K = !!C(ot, ut, mt), K;
  20930. }), K;
  20931. }
  20932. function Bo(e, C, K) {
  20933. for (var ot = -1, ut = e.length; ++ot < ut; ) {
  20934. var mt = e[ot], xt = C(mt);
  20935. if (xt != null && (bt === T ? xt === xt && !fi(xt) : K(xt, bt)))
  20936. var bt = xt, Ct = mt;
  20937. }
  20938. return Ct;
  20939. }
  20940. function gg(e, C, K, ot) {
  20941. var ut = e.length;
  20942. for (K = ne(K), K < 0 && (K = -K > ut ? 0 : ut + K), ot = ot === T || ot > ut ? ut : ne(ot), ot < 0 && (ot += ut), ot = K > ot ? 0 : up(ot); K < ot; )
  20943. e[K++] = C;
  20944. return e;
  20945. }
  20946. function Kh(e, C) {
  20947. var K = [];
  20948. return Cr(e, function(ot, ut, mt) {
  20949. C(ot, ut, mt) && K.push(ot);
  20950. }), K;
  20951. }
  20952. function Ve(e, C, K, ot, ut) {
  20953. var mt = -1, xt = e.length;
  20954. for (K || (K = rm), ut || (ut = []); ++mt < xt; ) {
  20955. var bt = e[mt];
  20956. C > 0 && K(bt) ? C > 1 ? Ve(bt, C - 1, K, ot, ut) : br(ut, bt) : ot || (ut[ut.length] = bt);
  20957. }
  20958. return ut;
  20959. }
  20960. var da = wc(), Jh = wc(!0);
  20961. function Gi(e, C) {
  20962. return e && da(e, C, He);
  20963. }
  20964. function fa(e, C) {
  20965. return e && Jh(e, C, He);
  20966. }
  20967. function jo(e, C) {
  20968. return xr(C, function(K) {
  20969. return nr(e[K]);
  20970. });
  20971. }
  20972. function zr(e, C) {
  20973. C = kr(C, e);
  20974. for (var K = 0, ot = C.length; e != null && K < ot; )
  20975. e = e[Fi(C[K++])];
  20976. return K && K == ot ? e : T;
  20977. }
  20978. function qh(e, C, K) {
  20979. var ot = C(e);
  20980. return ie(e) ? ot : br(ot, K(e));
  20981. }
  20982. function ii(e) {
  20983. return e == null ? e === T ? tt : nt : Nr && Nr in Me(e) ? Jg(e) : cm(e);
  20984. }
  20985. function ga(e, C) {
  20986. return e > C;
  20987. }
  20988. function mg(e, C) {
  20989. return e != null && Se.call(e, C);
  20990. }
  20991. function yg(e, C) {
  20992. return e != null && C in Me(e);
  20993. }
  20994. function vg(e, C, K) {
  20995. return e >= Ze(C, K) && e < Ye(C, K);
  20996. }
  20997. function ma(e, C, K) {
  20998. for (var ot = K ? qs : xo, ut = e[0].length, mt = e.length, xt = mt, bt = Tt(mt), Ct = 1 / 0, It = []; xt--; ) {
  20999. var Rt = e[xt];
  21000. xt && C && (Rt = Ee(Rt, ui(C))), Ct = Ze(Rt.length, Ct), bt[xt] = !K && (C || ut >= 120 && Rt.length >= 120) ? new jr(xt && Rt) : T;
  21001. }
  21002. Rt = e[0];
  21003. var Bt = -1, Yt = bt[0];
  21004. t:
  21005. for (; ++Bt < ut && It.length < Ct; ) {
  21006. var Ut = Rt[Bt], Qt = C ? C(Ut) : Ut;
  21007. if (Ut = K || Ut !== 0 ? Ut : 0, !(Yt ? Dn(Yt, Qt) : ot(It, Qt, K))) {
  21008. for (xt = mt; --xt; ) {
  21009. var se = bt[xt];
  21010. if (!(se ? Dn(se, Qt) : ot(e[xt], Qt, K)))
  21011. continue t;
  21012. }
  21013. Yt && Yt.push(Qt), It.push(Ut);
  21014. }
  21015. }
  21016. return It;
  21017. }
  21018. function xg(e, C, K, ot) {
  21019. return Gi(e, function(ut, mt, xt) {
  21020. C(ot, K(ut), mt, xt);
  21021. }), ot;
  21022. }
  21023. function Yn(e, C, K) {
  21024. C = kr(C, e), e = Wc(e, C);
  21025. var ot = e == null ? e : e[Fi(ki(C))];
  21026. return ot == null ? T : pi(ot, e, K);
  21027. }
  21028. function Qh(e) {
  21029. return Ne(e) && ii(e) == L;
  21030. }
  21031. function bg(e) {
  21032. return Ne(e) && ii(e) == pt;
  21033. }
  21034. function Sg(e) {
  21035. return Ne(e) && ii(e) == k;
  21036. }
  21037. function Xn(e, C, K, ot, ut) {
  21038. return e === C ? !0 : e == null || C == null || !Ne(e) && !Ne(C) ? e !== e && C !== C : wg(e, C, K, ot, Xn, ut);
  21039. }
  21040. function wg(e, C, K, ot, ut, mt) {
  21041. var xt = ie(e), bt = ie(C), Ct = xt ? Y : Ke(e), It = bt ? Y : Ke(C);
  21042. Ct = Ct == L ? rt : Ct, It = It == L ? rt : It;
  21043. var Rt = Ct == rt, Bt = It == rt, Yt = Ct == It;
  21044. if (Yt && Tr(e)) {
  21045. if (!Tr(C))
  21046. return !1;
  21047. xt = !0, Rt = !1;
  21048. }
  21049. if (Yt && !Rt)
  21050. return mt || (mt = new Ii()), xt || un(e) ? _c(e, C, K, ot, ut, mt) : Zg(e, C, Ct, K, ot, ut, mt);
  21051. if (!(K & x)) {
  21052. var Ut = Rt && Se.call(e, "__wrapped__"), Qt = Bt && Se.call(C, "__wrapped__");
  21053. if (Ut || Qt) {
  21054. var se = Ut ? e.value() : e, te = Qt ? C.value() : C;
  21055. return mt || (mt = new Ii()), ut(se, te, K, ot, mt);
  21056. }
  21057. }
  21058. return Yt ? (mt || (mt = new Ii()), Kg(e, C, K, ot, ut, mt)) : !1;
  21059. }
  21060. function Cg(e) {
  21061. return Ne(e) && Ke(e) == it;
  21062. }
  21063. function ya(e, C, K, ot) {
  21064. var ut = K.length, mt = ut, xt = !ot;
  21065. if (e == null)
  21066. return !mt;
  21067. for (e = Me(e); ut--; ) {
  21068. var bt = K[ut];
  21069. if (xt && bt[2] ? bt[1] !== e[bt[0]] : !(bt[0] in e))
  21070. return !1;
  21071. }
  21072. for (; ++ut < mt; ) {
  21073. bt = K[ut];
  21074. var Ct = bt[0], It = e[Ct], Rt = bt[1];
  21075. if (xt && bt[2]) {
  21076. if (It === T && !(Ct in e))
  21077. return !1;
  21078. } else {
  21079. var Bt = new Ii();
  21080. if (ot)
  21081. var Yt = ot(It, Rt, Ct, e, C, Bt);
  21082. if (!(Yt === T ? Xn(Rt, It, x | u, ot, Bt) : Yt))
  21083. return !1;
  21084. }
  21085. }
  21086. return !0;
  21087. }
  21088. function tc(e) {
  21089. if (!Ie(e) || om(e))
  21090. return !1;
  21091. var C = nr(e) ? Cf : De;
  21092. return C.test(Xr(e));
  21093. }
  21094. function Mg(e) {
  21095. return Ne(e) && ii(e) == dt;
  21096. }
  21097. function kg(e) {
  21098. return Ne(e) && Ke(e) == ht;
  21099. }
  21100. function Ag(e) {
  21101. return Ne(e) && es(e.length) && !!Ae[ii(e)];
  21102. }
  21103. function ec(e) {
  21104. return typeof e == "function" ? e : e == null ? li : typeof e == "object" ? ie(e) ? nc(e[0], e[1]) : rc(e) : Cp(e);
  21105. }
  21106. function va(e) {
  21107. if (!Fn(e))
  21108. return Ef(e);
  21109. var C = [];
  21110. for (var K in Me(e))
  21111. Se.call(e, K) && K != "constructor" && C.push(K);
  21112. return C;
  21113. }
  21114. function Tg(e) {
  21115. if (!Ie(e))
  21116. return hm(e);
  21117. var C = Fn(e), K = [];
  21118. for (var ot in e)
  21119. ot == "constructor" && (C || !Se.call(e, ot)) || K.push(ot);
  21120. return K;
  21121. }
  21122. function xa(e, C) {
  21123. return e < C;
  21124. }
  21125. function ic(e, C) {
  21126. var K = -1, ot = si(e) ? Tt(e.length) : [];
  21127. return Cr(e, function(ut, mt, xt) {
  21128. ot[++K] = C(ut, mt, xt);
  21129. }), ot;
  21130. }
  21131. function rc(e) {
  21132. var C = Ia(e);
  21133. return C.length == 1 && C[0][2] ? Bc(C[0][0], C[0][1]) : function(K) {
  21134. return K === e || ya(K, e, C);
  21135. };
  21136. }
  21137. function nc(e, C) {
  21138. return Na(e) && Nc(C) ? Bc(Fi(e), C) : function(K) {
  21139. var ot = Ua(K, e);
  21140. return ot === T && ot === C ? Va(K, e) : Xn(C, ot, x | u);
  21141. };
  21142. }
  21143. function Wo(e, C, K, ot, ut) {
  21144. e !== C && da(C, function(mt, xt) {
  21145. if (ut || (ut = new Ii()), Ie(mt))
  21146. Pg(e, C, xt, K, Wo, ot, ut);
  21147. else {
  21148. var bt = ot ? ot(ja(e, xt), mt, xt + "", e, C, ut) : T;
  21149. bt === T && (bt = mt), pa(e, xt, bt);
  21150. }
  21151. }, ai);
  21152. }
  21153. function Pg(e, C, K, ot, ut, mt, xt) {
  21154. var bt = ja(e, K), Ct = ja(C, K), It = xt.get(Ct);
  21155. if (It) {
  21156. pa(e, K, It);
  21157. return;
  21158. }
  21159. var Rt = mt ? mt(bt, Ct, K + "", e, C, xt) : T, Bt = Rt === T;
  21160. if (Bt) {
  21161. var Yt = ie(Ct), Ut = !Yt && Tr(Ct), Qt = !Yt && !Ut && un(Ct);
  21162. Rt = Ct, Yt || Ut || Qt ? ie(bt) ? Rt = bt : Be(bt) ? Rt = oi(bt) : Ut ? (Bt = !1, Rt = mc(Ct, !0)) : Qt ? (Bt = !1, Rt = yc(Ct, !0)) : Rt = [] : Vn(Ct) || Gr(Ct) ? (Rt = bt, Gr(bt) ? Rt = dp(bt) : (!Ie(bt) || nr(bt)) && (Rt = Rc(Ct))) : Bt = !1;
  21163. }
  21164. Bt && (xt.set(Ct, Rt), ut(Rt, Ct, ot, mt, xt), xt.delete(Ct)), pa(e, K, Rt);
  21165. }
  21166. function oc(e, C) {
  21167. var K = e.length;
  21168. if (K)
  21169. return C += C < 0 ? K : 0, rr(C, K) ? e[C] : T;
  21170. }
  21171. function sc(e, C, K) {
  21172. C.length ? C = Ee(C, function(mt) {
  21173. return ie(mt) ? function(xt) {
  21174. return zr(xt, mt.length === 1 ? mt[0] : mt);
  21175. } : mt;
  21176. }) : C = [li];
  21177. var ot = -1;
  21178. C = Ee(C, ui(qt()));
  21179. var ut = ic(e, function(mt, xt, bt) {
  21180. var Ct = Ee(C, function(It) {
  21181. return It(mt);
  21182. });
  21183. return { criteria: Ct, index: ++ot, value: mt };
  21184. });
  21185. return tf(ut, function(mt, xt) {
  21186. return Yg(mt, xt, K);
  21187. });
  21188. }
  21189. function Eg(e, C) {
  21190. return ac(e, C, function(K, ot) {
  21191. return Va(e, ot);
  21192. });
  21193. }
  21194. function ac(e, C, K) {
  21195. for (var ot = -1, ut = C.length, mt = {}; ++ot < ut; ) {
  21196. var xt = C[ot], bt = zr(e, xt);
  21197. K(bt, xt) && Gn(mt, kr(xt, e), bt);
  21198. }
  21199. return mt;
  21200. }
  21201. function Og(e) {
  21202. return function(C) {
  21203. return zr(C, e);
  21204. };
  21205. }
  21206. function ba(e, C, K, ot) {
  21207. var ut = ot ? Qd : tn, mt = -1, xt = C.length, bt = e;
  21208. for (e === C && (C = oi(C)), K && (bt = Ee(e, ui(K))); ++mt < xt; )
  21209. for (var Ct = 0, It = C[mt], Rt = K ? K(It) : It; (Ct = ut(bt, Rt, Ct, ot)) > -1; )
  21210. bt !== e && Eo.call(bt, Ct, 1), Eo.call(e, Ct, 1);
  21211. return e;
  21212. }
  21213. function lc(e, C) {
  21214. for (var K = e ? C.length : 0, ot = K - 1; K--; ) {
  21215. var ut = C[K];
  21216. if (K == ot || ut !== mt) {
  21217. var mt = ut;
  21218. rr(ut) ? Eo.call(e, ut, 1) : Ma(e, ut);
  21219. }
  21220. }
  21221. return e;
  21222. }
  21223. function Sa(e, C) {
  21224. return e + _o(Xh() * (C - e + 1));
  21225. }
  21226. function Lg(e, C, K, ot) {
  21227. for (var ut = -1, mt = Ye(Lo((C - e) / (K || 1)), 0), xt = Tt(mt); mt--; )
  21228. xt[ot ? mt : ++ut] = e, e += K;
  21229. return xt;
  21230. }
  21231. function wa(e, C) {
  21232. var K = "";
  21233. if (!e || C < 1 || C > _)
  21234. return K;
  21235. do
  21236. C % 2 && (K += e), C = _o(C / 2), C && (e += e);
  21237. while (C);
  21238. return K;
  21239. }
  21240. function ae(e, C) {
  21241. return Wa(jc(e, C, li), e + "");
  21242. }
  21243. function _g(e) {
  21244. return Fh(dn(e));
  21245. }
  21246. function Dg(e, C) {
  21247. var K = dn(e);
  21248. return Zo(K, Wr(C, 0, K.length));
  21249. }
  21250. function Gn(e, C, K, ot) {
  21251. if (!Ie(e))
  21252. return e;
  21253. C = kr(C, e);
  21254. for (var ut = -1, mt = C.length, xt = mt - 1, bt = e; bt != null && ++ut < mt; ) {
  21255. var Ct = Fi(C[ut]), It = K;
  21256. if (Ct === "__proto__" || Ct === "constructor" || Ct === "prototype")
  21257. return e;
  21258. if (ut != xt) {
  21259. var Rt = bt[Ct];
  21260. It = ot ? ot(Rt, Ct, bt) : T, It === T && (It = Ie(Rt) ? Rt : rr(C[ut + 1]) ? [] : {});
  21261. }
  21262. Wn(bt, Ct, It), bt = bt[Ct];
  21263. }
  21264. return e;
  21265. }
  21266. var hc = Do ? function(e, C) {
  21267. return Do.set(e, C), e;
  21268. } : li, Ig = Oo ? function(e, C) {
  21269. return Oo(e, "toString", {
  21270. configurable: !0,
  21271. enumerable: !1,
  21272. value: Za(C),
  21273. writable: !0
  21274. });
  21275. } : li;
  21276. function Rg(e) {
  21277. return Zo(dn(e));
  21278. }
  21279. function Mi(e, C, K) {
  21280. var ot = -1, ut = e.length;
  21281. C < 0 && (C = -C > ut ? 0 : ut + C), K = K > ut ? ut : K, K < 0 && (K += ut), ut = C > K ? 0 : K - C >>> 0, C >>>= 0;
  21282. for (var mt = Tt(ut); ++ot < ut; )
  21283. mt[ot] = e[ot + C];
  21284. return mt;
  21285. }
  21286. function Ng(e, C) {
  21287. var K;
  21288. return Cr(e, function(ot, ut, mt) {
  21289. return K = C(ot, ut, mt), !K;
  21290. }), !!K;
  21291. }
  21292. function zo(e, C, K) {
  21293. var ot = 0, ut = e == null ? ot : e.length;
  21294. if (typeof C == "number" && C === C && ut <= g) {
  21295. for (; ot < ut; ) {
  21296. var mt = ot + ut >>> 1, xt = e[mt];
  21297. xt !== null && !fi(xt) && (K ? xt <= C : xt < C) ? ot = mt + 1 : ut = mt;
  21298. }
  21299. return ut;
  21300. }
  21301. return Ca(e, C, li, K);
  21302. }
  21303. function Ca(e, C, K, ot) {
  21304. var ut = 0, mt = e == null ? 0 : e.length;
  21305. if (mt === 0)
  21306. return 0;
  21307. C = K(C);
  21308. for (var xt = C !== C, bt = C === null, Ct = fi(C), It = C === T; ut < mt; ) {
  21309. var Rt = _o((ut + mt) / 2), Bt = K(e[Rt]), Yt = Bt !== T, Ut = Bt === null, Qt = Bt === Bt, se = fi(Bt);
  21310. if (xt)
  21311. var te = ot || Qt;
  21312. else
  21313. It ? te = Qt && (ot || Yt) : bt ? te = Qt && Yt && (ot || !Ut) : Ct ? te = Qt && Yt && !Ut && (ot || !se) : Ut || se ? te = !1 : te = ot ? Bt <= C : Bt < C;
  21314. te ? ut = Rt + 1 : mt = Rt;
  21315. }
  21316. return Ze(mt, X);
  21317. }
  21318. function cc(e, C) {
  21319. for (var K = -1, ot = e.length, ut = 0, mt = []; ++K < ot; ) {
  21320. var xt = e[K], bt = C ? C(xt) : xt;
  21321. if (!K || !Ri(bt, Ct)) {
  21322. var Ct = bt;
  21323. mt[ut++] = xt === 0 ? 0 : xt;
  21324. }
  21325. }
  21326. return mt;
  21327. }
  21328. function pc(e) {
  21329. return typeof e == "number" ? e : fi(e) ? W : +e;
  21330. }
  21331. function di(e) {
  21332. if (typeof e == "string")
  21333. return e;
  21334. if (ie(e))
  21335. return Ee(e, di) + "";
  21336. if (fi(e))
  21337. return Gh ? Gh.call(e) : "";
  21338. var C = e + "";
  21339. return C == "0" && 1 / e == -A ? "-0" : C;
  21340. }
  21341. function Mr(e, C, K) {
  21342. var ot = -1, ut = xo, mt = e.length, xt = !0, bt = [], Ct = bt;
  21343. if (K)
  21344. xt = !1, ut = qs;
  21345. else if (mt >= y) {
  21346. var It = C ? null : Vg(e);
  21347. if (It)
  21348. return So(It);
  21349. xt = !1, ut = Dn, Ct = new jr();
  21350. } else
  21351. Ct = C ? [] : bt;
  21352. t:
  21353. for (; ++ot < mt; ) {
  21354. var Rt = e[ot], Bt = C ? C(Rt) : Rt;
  21355. if (Rt = K || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  21356. for (var Yt = Ct.length; Yt--; )
  21357. if (Ct[Yt] === Bt)
  21358. continue t;
  21359. C && Ct.push(Bt), bt.push(Rt);
  21360. } else
  21361. ut(Ct, Bt, K) || (Ct !== bt && Ct.push(Bt), bt.push(Rt));
  21362. }
  21363. return bt;
  21364. }
  21365. function Ma(e, C) {
  21366. return C = kr(C, e), e = Wc(e, C), e == null || delete e[Fi(ki(C))];
  21367. }
  21368. function uc(e, C, K, ot) {
  21369. return Gn(e, C, K(zr(e, C)), ot);
  21370. }
  21371. function Yo(e, C, K, ot) {
  21372. for (var ut = e.length, mt = ot ? ut : -1; (ot ? mt-- : ++mt < ut) && C(e[mt], mt, e); )
  21373. ;
  21374. return K ? Mi(e, ot ? 0 : mt, ot ? mt + 1 : ut) : Mi(e, ot ? mt + 1 : 0, ot ? ut : mt);
  21375. }
  21376. function dc(e, C) {
  21377. var K = e;
  21378. return K instanceof ce && (K = K.value()), Qs(C, function(ot, ut) {
  21379. return ut.func.apply(ut.thisArg, br([ot], ut.args));
  21380. }, K);
  21381. }
  21382. function ka(e, C, K) {
  21383. var ot = e.length;
  21384. if (ot < 2)
  21385. return ot ? Mr(e[0]) : [];
  21386. for (var ut = -1, mt = Tt(ot); ++ut < ot; )
  21387. for (var xt = e[ut], bt = -1; ++bt < ot; )
  21388. bt != ut && (mt[ut] = zn(mt[ut] || xt, e[bt], C, K));
  21389. return Mr(Ve(mt, 1), C, K);
  21390. }
  21391. function fc(e, C, K) {
  21392. for (var ot = -1, ut = e.length, mt = C.length, xt = {}; ++ot < ut; ) {
  21393. var bt = ot < mt ? C[ot] : T;
  21394. K(xt, e[ot], bt);
  21395. }
  21396. return xt;
  21397. }
  21398. function Aa(e) {
  21399. return Be(e) ? e : [];
  21400. }
  21401. function Ta(e) {
  21402. return typeof e == "function" ? e : li;
  21403. }
  21404. function kr(e, C) {
  21405. return ie(e) ? e : Na(e, C) ? [e] : Gc(xe(e));
  21406. }
  21407. var Bg = ae;
  21408. function Ar(e, C, K) {
  21409. var ot = e.length;
  21410. return K = K === T ? ot : K, !C && K >= ot ? e : Mi(e, C, K);
  21411. }
  21412. var gc = Mf || function(e) {
  21413. return Ue.clearTimeout(e);
  21414. };
  21415. function mc(e, C) {
  21416. if (C)
  21417. return e.slice();
  21418. var K = e.length, ot = Bh ? Bh(K) : new e.constructor(K);
  21419. return e.copy(ot), ot;
  21420. }
  21421. function Pa(e) {
  21422. var C = new e.constructor(e.byteLength);
  21423. return new To(C).set(new To(e)), C;
  21424. }
  21425. function jg(e, C) {
  21426. var K = C ? Pa(e.buffer) : e.buffer;
  21427. return new e.constructor(K, e.byteOffset, e.byteLength);
  21428. }
  21429. function Wg(e) {
  21430. var C = new e.constructor(e.source, ue.exec(e));
  21431. return C.lastIndex = e.lastIndex, C;
  21432. }
  21433. function zg(e) {
  21434. return jn ? Me(jn.call(e)) : {};
  21435. }
  21436. function yc(e, C) {
  21437. var K = C ? Pa(e.buffer) : e.buffer;
  21438. return new e.constructor(K, e.byteOffset, e.length);
  21439. }
  21440. function vc(e, C) {
  21441. if (e !== C) {
  21442. var K = e !== T, ot = e === null, ut = e === e, mt = fi(e), xt = C !== T, bt = C === null, Ct = C === C, It = fi(C);
  21443. if (!bt && !It && !mt && e > C || mt && xt && Ct && !bt && !It || ot && xt && Ct || !K && Ct || !ut)
  21444. return 1;
  21445. if (!ot && !mt && !It && e < C || It && K && ut && !ot && !mt || bt && K && ut || !xt && ut || !Ct)
  21446. return -1;
  21447. }
  21448. return 0;
  21449. }
  21450. function Yg(e, C, K) {
  21451. for (var ot = -1, ut = e.criteria, mt = C.criteria, xt = ut.length, bt = K.length; ++ot < xt; ) {
  21452. var Ct = vc(ut[ot], mt[ot]);
  21453. if (Ct) {
  21454. if (ot >= bt)
  21455. return Ct;
  21456. var It = K[ot];
  21457. return Ct * (It == "desc" ? -1 : 1);
  21458. }
  21459. }
  21460. return e.index - C.index;
  21461. }
  21462. function xc(e, C, K, ot) {
  21463. for (var ut = -1, mt = e.length, xt = K.length, bt = -1, Ct = C.length, It = Ye(mt - xt, 0), Rt = Tt(Ct + It), Bt = !ot; ++bt < Ct; )
  21464. Rt[bt] = C[bt];
  21465. for (; ++ut < xt; )
  21466. (Bt || ut < mt) && (Rt[K[ut]] = e[ut]);
  21467. for (; It--; )
  21468. Rt[bt++] = e[ut++];
  21469. return Rt;
  21470. }
  21471. function bc(e, C, K, ot) {
  21472. for (var ut = -1, mt = e.length, xt = -1, bt = K.length, Ct = -1, It = C.length, Rt = Ye(mt - bt, 0), Bt = Tt(Rt + It), Yt = !ot; ++ut < Rt; )
  21473. Bt[ut] = e[ut];
  21474. for (var Ut = ut; ++Ct < It; )
  21475. Bt[Ut + Ct] = C[Ct];
  21476. for (; ++xt < bt; )
  21477. (Yt || ut < mt) && (Bt[Ut + K[xt]] = e[ut++]);
  21478. return Bt;
  21479. }
  21480. function oi(e, C) {
  21481. var K = -1, ot = e.length;
  21482. for (C || (C = Tt(ot)); ++K < ot; )
  21483. C[K] = e[K];
  21484. return C;
  21485. }
  21486. function Hi(e, C, K, ot) {
  21487. var ut = !K;
  21488. K || (K = {});
  21489. for (var mt = -1, xt = C.length; ++mt < xt; ) {
  21490. var bt = C[mt], Ct = ot ? ot(K[bt], e[bt], bt, K, e) : T;
  21491. Ct === T && (Ct = e[bt]), ut ? tr(K, bt, Ct) : Wn(K, bt, Ct);
  21492. }
  21493. return K;
  21494. }
  21495. function Xg(e, C) {
  21496. return Hi(e, Ra(e), C);
  21497. }
  21498. function Gg(e, C) {
  21499. return Hi(e, Dc(e), C);
  21500. }
  21501. function Xo(e, C) {
  21502. return function(K, ot) {
  21503. var ut = ie(K) ? Vd : pg, mt = C ? C() : {};
  21504. return ut(K, e, qt(ot, 2), mt);
  21505. };
  21506. }
  21507. function hn(e) {
  21508. return ae(function(C, K) {
  21509. var ot = -1, ut = K.length, mt = ut > 1 ? K[ut - 1] : T, xt = ut > 2 ? K[2] : T;
  21510. for (mt = e.length > 3 && typeof mt == "function" ? (ut--, mt) : T, xt && ri(K[0], K[1], xt) && (mt = ut < 3 ? T : mt, ut = 1), C = Me(C); ++ot < ut; ) {
  21511. var bt = K[ot];
  21512. bt && e(C, bt, ot, mt);
  21513. }
  21514. return C;
  21515. });
  21516. }
  21517. function Sc(e, C) {
  21518. return function(K, ot) {
  21519. if (K == null)
  21520. return K;
  21521. if (!si(K))
  21522. return e(K, ot);
  21523. for (var ut = K.length, mt = C ? ut : -1, xt = Me(K); (C ? mt-- : ++mt < ut) && ot(xt[mt], mt, xt) !== !1; )
  21524. ;
  21525. return K;
  21526. };
  21527. }
  21528. function wc(e) {
  21529. return function(C, K, ot) {
  21530. for (var ut = -1, mt = Me(C), xt = ot(C), bt = xt.length; bt--; ) {
  21531. var Ct = xt[e ? bt : ++ut];
  21532. if (K(mt[Ct], Ct, mt) === !1)
  21533. break;
  21534. }
  21535. return C;
  21536. };
  21537. }
  21538. function Hg(e, C, K) {
  21539. var ot = C & f, ut = Hn(e);
  21540. function mt() {
  21541. var xt = this && this !== Ue && this instanceof mt ? ut : e;
  21542. return xt.apply(ot ? K : this, arguments);
  21543. }
  21544. return mt;
  21545. }
  21546. function Cc(e) {
  21547. return function(C) {
  21548. C = xe(C);
  21549. var K = en(C) ? Di(C) : T, ot = K ? K[0] : C.charAt(0), ut = K ? Ar(K, 1).join("") : C.slice(1);
  21550. return ot[e]() + ut;
  21551. };
  21552. }
  21553. function cn(e) {
  21554. return function(C) {
  21555. return Qs(Sp(bp(C).replace(Dd, "")), e, "");
  21556. };
  21557. }
  21558. function Hn(e) {
  21559. return function() {
  21560. var C = arguments;
  21561. switch (C.length) {
  21562. case 0:
  21563. return new e();
  21564. case 1:
  21565. return new e(C[0]);
  21566. case 2:
  21567. return new e(C[0], C[1]);
  21568. case 3:
  21569. return new e(C[0], C[1], C[2]);
  21570. case 4:
  21571. return new e(C[0], C[1], C[2], C[3]);
  21572. case 5:
  21573. return new e(C[0], C[1], C[2], C[3], C[4]);
  21574. case 6:
  21575. return new e(C[0], C[1], C[2], C[3], C[4], C[5]);
  21576. case 7:
  21577. return new e(C[0], C[1], C[2], C[3], C[4], C[5], C[6]);
  21578. }
  21579. var K = ln(e.prototype), ot = e.apply(K, C);
  21580. return Ie(ot) ? ot : K;
  21581. };
  21582. }
  21583. function Fg(e, C, K) {
  21584. var ot = Hn(e);
  21585. function ut() {
  21586. for (var mt = arguments.length, xt = Tt(mt), bt = mt, Ct = pn(ut); bt--; )
  21587. xt[bt] = arguments[bt];
  21588. var It = mt < 3 && xt[0] !== Ct && xt[mt - 1] !== Ct ? [] : Sr(xt, Ct);
  21589. if (mt -= It.length, mt < K)
  21590. return Pc(
  21591. e,
  21592. C,
  21593. Go,
  21594. ut.placeholder,
  21595. T,
  21596. xt,
  21597. It,
  21598. T,
  21599. T,
  21600. K - mt
  21601. );
  21602. var Rt = this && this !== Ue && this instanceof ut ? ot : e;
  21603. return pi(Rt, this, xt);
  21604. }
  21605. return ut;
  21606. }
  21607. function Mc(e) {
  21608. return function(C, K, ot) {
  21609. var ut = Me(C);
  21610. if (!si(C)) {
  21611. var mt = qt(K, 3);
  21612. C = He(C), K = function(bt) {
  21613. return mt(ut[bt], bt, ut);
  21614. };
  21615. }
  21616. var xt = e(C, K, ot);
  21617. return xt > -1 ? ut[mt ? C[xt] : xt] : T;
  21618. };
  21619. }
  21620. function kc(e) {
  21621. return ir(function(C) {
  21622. var K = C.length, ot = K, ut = wi.prototype.thru;
  21623. for (e && C.reverse(); ot--; ) {
  21624. var mt = C[ot];
  21625. if (typeof mt != "function")
  21626. throw new Si(I);
  21627. if (ut && !xt && Vo(mt) == "wrapper")
  21628. var xt = new wi([], !0);
  21629. }
  21630. for (ot = xt ? ot : K; ++ot < K; ) {
  21631. mt = C[ot];
  21632. var bt = Vo(mt), Ct = bt == "wrapper" ? Da(mt) : T;
  21633. Ct && Ba(Ct[0]) && Ct[1] == (v | B | S | a) && !Ct[4].length && Ct[9] == 1 ? xt = xt[Vo(Ct[0])].apply(xt, Ct[3]) : xt = mt.length == 1 && Ba(mt) ? xt[bt]() : xt.thru(mt);
  21634. }
  21635. return function() {
  21636. var It = arguments, Rt = It[0];
  21637. if (xt && It.length == 1 && ie(Rt))
  21638. return xt.plant(Rt).value();
  21639. for (var Bt = 0, Yt = K ? C[Bt].apply(this, It) : Rt; ++Bt < K; )
  21640. Yt = C[Bt].call(this, Yt);
  21641. return Yt;
  21642. };
  21643. });
  21644. }
  21645. function Go(e, C, K, ot, ut, mt, xt, bt, Ct, It) {
  21646. var Rt = C & v, Bt = C & f, Yt = C & E, Ut = C & (B | M), Qt = C & c, se = Yt ? T : Hn(e);
  21647. function te() {
  21648. for (var he = arguments.length, pe = Tt(he), gi = he; gi--; )
  21649. pe[gi] = arguments[gi];
  21650. if (Ut)
  21651. var ni = pn(te), mi = rf(pe, ni);
  21652. if (ot && (pe = xc(pe, ot, ut, Ut)), mt && (pe = bc(pe, mt, xt, Ut)), he -= mi, Ut && he < It) {
  21653. var je = Sr(pe, ni);
  21654. return Pc(
  21655. e,
  21656. C,
  21657. Go,
  21658. te.placeholder,
  21659. K,
  21660. pe,
  21661. je,
  21662. bt,
  21663. Ct,
  21664. It - he
  21665. );
  21666. }
  21667. var Ni = Bt ? K : this, sr = Yt ? Ni[e] : e;
  21668. return he = pe.length, bt ? pe = pm(pe, bt) : Qt && he > 1 && pe.reverse(), Rt && Ct < he && (pe.length = Ct), this && this !== Ue && this instanceof te && (sr = se || Hn(sr)), sr.apply(Ni, pe);
  21669. }
  21670. return te;
  21671. }
  21672. function Ac(e, C) {
  21673. return function(K, ot) {
  21674. return xg(K, e, C(ot), {});
  21675. };
  21676. }
  21677. function Ho(e, C) {
  21678. return function(K, ot) {
  21679. var ut;
  21680. if (K === T && ot === T)
  21681. return C;
  21682. if (K !== T && (ut = K), ot !== T) {
  21683. if (ut === T)
  21684. return ot;
  21685. typeof K == "string" || typeof ot == "string" ? (K = di(K), ot = di(ot)) : (K = pc(K), ot = pc(ot)), ut = e(K, ot);
  21686. }
  21687. return ut;
  21688. };
  21689. }
  21690. function Ea(e) {
  21691. return ir(function(C) {
  21692. return C = Ee(C, ui(qt())), ae(function(K) {
  21693. var ot = this;
  21694. return e(C, function(ut) {
  21695. return pi(ut, ot, K);
  21696. });
  21697. });
  21698. });
  21699. }
  21700. function Fo(e, C) {
  21701. C = C === T ? " " : di(C);
  21702. var K = C.length;
  21703. if (K < 2)
  21704. return K ? wa(C, e) : C;
  21705. var ot = wa(C, Lo(e / rn(C)));
  21706. return en(C) ? Ar(Di(ot), 0, e).join("") : ot.slice(0, e);
  21707. }
  21708. function Ug(e, C, K, ot) {
  21709. var ut = C & f, mt = Hn(e);
  21710. function xt() {
  21711. for (var bt = -1, Ct = arguments.length, It = -1, Rt = ot.length, Bt = Tt(Rt + Ct), Yt = this && this !== Ue && this instanceof xt ? mt : e; ++It < Rt; )
  21712. Bt[It] = ot[It];
  21713. for (; Ct--; )
  21714. Bt[It++] = arguments[++bt];
  21715. return pi(Yt, ut ? K : this, Bt);
  21716. }
  21717. return xt;
  21718. }
  21719. function Tc(e) {
  21720. return function(C, K, ot) {
  21721. return ot && typeof ot != "number" && ri(C, K, ot) && (K = ot = T), C = or(C), K === T ? (K = C, C = 0) : K = or(K), ot = ot === T ? C < K ? 1 : -1 : or(ot), Lg(C, K, ot, e);
  21722. };
  21723. }
  21724. function Uo(e) {
  21725. return function(C, K) {
  21726. return typeof C == "string" && typeof K == "string" || (C = Ai(C), K = Ai(K)), e(C, K);
  21727. };
  21728. }
  21729. function Pc(e, C, K, ot, ut, mt, xt, bt, Ct, It) {
  21730. var Rt = C & B, Bt = Rt ? xt : T, Yt = Rt ? T : xt, Ut = Rt ? mt : T, Qt = Rt ? T : mt;
  21731. C |= Rt ? S : w, C &= ~(Rt ? w : S), C & O || (C &= ~(f | E));
  21732. var se = [
  21733. e,
  21734. C,
  21735. ut,
  21736. Ut,
  21737. Bt,
  21738. Qt,
  21739. Yt,
  21740. bt,
  21741. Ct,
  21742. It
  21743. ], te = K.apply(T, se);
  21744. return Ba(e) && zc(te, se), te.placeholder = ot, Yc(te, e, C);
  21745. }
  21746. function Oa(e) {
  21747. var C = ze[e];
  21748. return function(K, ot) {
  21749. if (K = Ai(K), ot = ot == null ? 0 : Ze(ne(ot), 292), ot && Yh(K)) {
  21750. var ut = (xe(K) + "e").split("e"), mt = C(ut[0] + "e" + (+ut[1] + ot));
  21751. return ut = (xe(mt) + "e").split("e"), +(ut[0] + "e" + (+ut[1] - ot));
  21752. }
  21753. return C(K);
  21754. };
  21755. }
  21756. var Vg = sn && 1 / So(new sn([, -0]))[1] == A ? function(e) {
  21757. return new sn(e);
  21758. } : qa;
  21759. function Ec(e) {
  21760. return function(C) {
  21761. var K = Ke(C);
  21762. return K == it ? sa(C) : K == ht ? cf(C) : ef(C, e(C));
  21763. };
  21764. }
  21765. function er(e, C, K, ot, ut, mt, xt, bt) {
  21766. var Ct = C & E;
  21767. if (!Ct && typeof e != "function")
  21768. throw new Si(I);
  21769. var It = ot ? ot.length : 0;
  21770. if (It || (C &= ~(S | w), ot = ut = T), xt = xt === T ? xt : Ye(ne(xt), 0), bt = bt === T ? bt : ne(bt), It -= ut ? ut.length : 0, C & w) {
  21771. var Rt = ot, Bt = ut;
  21772. ot = ut = T;
  21773. }
  21774. var Yt = Ct ? T : Da(e), Ut = [
  21775. e,
  21776. C,
  21777. K,
  21778. ot,
  21779. ut,
  21780. Rt,
  21781. Bt,
  21782. mt,
  21783. xt,
  21784. bt
  21785. ];
  21786. if (Yt && lm(Ut, Yt), e = Ut[0], C = Ut[1], K = Ut[2], ot = Ut[3], ut = Ut[4], bt = Ut[9] = Ut[9] === T ? Ct ? 0 : e.length : Ye(Ut[9] - It, 0), !bt && C & (B | M) && (C &= ~(B | M)), !C || C == f)
  21787. var Qt = Hg(e, C, K);
  21788. else
  21789. C == B || C == M ? Qt = Fg(e, C, bt) : (C == S || C == (f | S)) && !ut.length ? Qt = Ug(e, C, K, ot) : Qt = Go.apply(T, Ut);
  21790. var se = Yt ? hc : zc;
  21791. return Yc(se(Qt, Ut), e, C);
  21792. }
  21793. function Oc(e, C, K, ot) {
  21794. return e === T || Ri(e, on[K]) && !Se.call(ot, K) ? C : e;
  21795. }
  21796. function Lc(e, C, K, ot, ut, mt) {
  21797. return Ie(e) && Ie(C) && (mt.set(C, e), Wo(e, C, T, Lc, mt), mt.delete(C)), e;
  21798. }
  21799. function $g(e) {
  21800. return Vn(e) ? T : e;
  21801. }
  21802. function _c(e, C, K, ot, ut, mt) {
  21803. var xt = K & x, bt = e.length, Ct = C.length;
  21804. if (bt != Ct && !(xt && Ct > bt))
  21805. return !1;
  21806. var It = mt.get(e), Rt = mt.get(C);
  21807. if (It && Rt)
  21808. return It == C && Rt == e;
  21809. var Bt = -1, Yt = !0, Ut = K & u ? new jr() : T;
  21810. for (mt.set(e, C), mt.set(C, e); ++Bt < bt; ) {
  21811. var Qt = e[Bt], se = C[Bt];
  21812. if (ot)
  21813. var te = xt ? ot(se, Qt, Bt, C, e, mt) : ot(Qt, se, Bt, e, C, mt);
  21814. if (te !== T) {
  21815. if (te)
  21816. continue;
  21817. Yt = !1;
  21818. break;
  21819. }
  21820. if (Ut) {
  21821. if (!ta(C, function(he, pe) {
  21822. if (!Dn(Ut, pe) && (Qt === he || ut(Qt, he, K, ot, mt)))
  21823. return Ut.push(pe);
  21824. })) {
  21825. Yt = !1;
  21826. break;
  21827. }
  21828. } else if (!(Qt === se || ut(Qt, se, K, ot, mt))) {
  21829. Yt = !1;
  21830. break;
  21831. }
  21832. }
  21833. return mt.delete(e), mt.delete(C), Yt;
  21834. }
  21835. function Zg(e, C, K, ot, ut, mt, xt) {
  21836. switch (K) {
  21837. case yt:
  21838. if (e.byteLength != C.byteLength || e.byteOffset != C.byteOffset)
  21839. return !1;
  21840. e = e.buffer, C = C.buffer;
  21841. case pt:
  21842. return !(e.byteLength != C.byteLength || !mt(new To(e), new To(C)));
  21843. case Q:
  21844. case k:
  21845. case et:
  21846. return Ri(+e, +C);
  21847. case z:
  21848. return e.name == C.name && e.message == C.message;
  21849. case dt:
  21850. case at:
  21851. return e == C + "";
  21852. case it:
  21853. var bt = sa;
  21854. case ht:
  21855. var Ct = ot & x;
  21856. if (bt || (bt = So), e.size != C.size && !Ct)
  21857. return !1;
  21858. var It = xt.get(e);
  21859. if (It)
  21860. return It == C;
  21861. ot |= u, xt.set(e, C);
  21862. var Rt = _c(bt(e), bt(C), ot, ut, mt, xt);
  21863. return xt.delete(e), Rt;
  21864. case J:
  21865. if (jn)
  21866. return jn.call(e) == jn.call(C);
  21867. }
  21868. return !1;
  21869. }
  21870. function Kg(e, C, K, ot, ut, mt) {
  21871. var xt = K & x, bt = La(e), Ct = bt.length, It = La(C), Rt = It.length;
  21872. if (Ct != Rt && !xt)
  21873. return !1;
  21874. for (var Bt = Ct; Bt--; ) {
  21875. var Yt = bt[Bt];
  21876. if (!(xt ? Yt in C : Se.call(C, Yt)))
  21877. return !1;
  21878. }
  21879. var Ut = mt.get(e), Qt = mt.get(C);
  21880. if (Ut && Qt)
  21881. return Ut == C && Qt == e;
  21882. var se = !0;
  21883. mt.set(e, C), mt.set(C, e);
  21884. for (var te = xt; ++Bt < Ct; ) {
  21885. Yt = bt[Bt];
  21886. var he = e[Yt], pe = C[Yt];
  21887. if (ot)
  21888. var gi = xt ? ot(pe, he, Yt, C, e, mt) : ot(he, pe, Yt, e, C, mt);
  21889. if (!(gi === T ? he === pe || ut(he, pe, K, ot, mt) : gi)) {
  21890. se = !1;
  21891. break;
  21892. }
  21893. te || (te = Yt == "constructor");
  21894. }
  21895. if (se && !te) {
  21896. var ni = e.constructor, mi = C.constructor;
  21897. ni != mi && "constructor" in e && "constructor" in C && !(typeof ni == "function" && ni instanceof ni && typeof mi == "function" && mi instanceof mi) && (se = !1);
  21898. }
  21899. return mt.delete(e), mt.delete(C), se;
  21900. }
  21901. function ir(e) {
  21902. return Wa(jc(e, T, Vc), e + "");
  21903. }
  21904. function La(e) {
  21905. return qh(e, He, Ra);
  21906. }
  21907. function _a(e) {
  21908. return qh(e, ai, Dc);
  21909. }
  21910. var Da = Do ? function(e) {
  21911. return Do.get(e);
  21912. } : qa;
  21913. function Vo(e) {
  21914. for (var C = e.name + "", K = an[C], ot = Se.call(an, C) ? K.length : 0; ot--; ) {
  21915. var ut = K[ot], mt = ut.func;
  21916. if (mt == null || mt == e)
  21917. return ut.name;
  21918. }
  21919. return C;
  21920. }
  21921. function pn(e) {
  21922. var C = Se.call(ft, "placeholder") ? ft : e;
  21923. return C.placeholder;
  21924. }
  21925. function qt() {
  21926. var e = ft.iteratee || Ka;
  21927. return e = e === Ka ? ec : e, arguments.length ? e(arguments[0], arguments[1]) : e;
  21928. }
  21929. function $o(e, C) {
  21930. var K = e.__data__;
  21931. return nm(C) ? K[typeof C == "string" ? "string" : "hash"] : K.map;
  21932. }
  21933. function Ia(e) {
  21934. for (var C = He(e), K = C.length; K--; ) {
  21935. var ot = C[K], ut = e[ot];
  21936. C[K] = [ot, ut, Nc(ut)];
  21937. }
  21938. return C;
  21939. }
  21940. function Yr(e, C) {
  21941. var K = af(e, C);
  21942. return tc(K) ? K : T;
  21943. }
  21944. function Jg(e) {
  21945. var C = Se.call(e, Nr), K = e[Nr];
  21946. try {
  21947. e[Nr] = T;
  21948. var ot = !0;
  21949. } catch {
  21950. }
  21951. var ut = ko.call(e);
  21952. return ot && (C ? e[Nr] = K : delete e[Nr]), ut;
  21953. }
  21954. var Ra = la ? function(e) {
  21955. return e == null ? [] : (e = Me(e), xr(la(e), function(C) {
  21956. return Wh.call(e, C);
  21957. }));
  21958. } : Qa, Dc = la ? function(e) {
  21959. for (var C = []; e; )
  21960. br(C, Ra(e)), e = Po(e);
  21961. return C;
  21962. } : Qa, Ke = ii;
  21963. (ha && Ke(new ha(new ArrayBuffer(1))) != yt || Rn && Ke(new Rn()) != it || ca && Ke(ca.resolve()) != ct || sn && Ke(new sn()) != ht || Nn && Ke(new Nn()) != st) && (Ke = function(e) {
  21964. var C = ii(e), K = C == rt ? e.constructor : T, ot = K ? Xr(K) : "";
  21965. if (ot)
  21966. switch (ot) {
  21967. case Df:
  21968. return yt;
  21969. case If:
  21970. return it;
  21971. case Rf:
  21972. return ct;
  21973. case Nf:
  21974. return ht;
  21975. case Bf:
  21976. return st;
  21977. }
  21978. return C;
  21979. });
  21980. function qg(e, C, K) {
  21981. for (var ot = -1, ut = K.length; ++ot < ut; ) {
  21982. var mt = K[ot], xt = mt.size;
  21983. switch (mt.type) {
  21984. case "drop":
  21985. e += xt;
  21986. break;
  21987. case "dropRight":
  21988. C -= xt;
  21989. break;
  21990. case "take":
  21991. C = Ze(C, e + xt);
  21992. break;
  21993. case "takeRight":
  21994. e = Ye(e, C - xt);
  21995. break;
  21996. }
  21997. }
  21998. return { start: e, end: C };
  21999. }
  22000. function Qg(e) {
  22001. var C = e.match(Dr);
  22002. return C ? C[1].split(Xi) : [];
  22003. }
  22004. function Ic(e, C, K) {
  22005. C = kr(C, e);
  22006. for (var ot = -1, ut = C.length, mt = !1; ++ot < ut; ) {
  22007. var xt = Fi(C[ot]);
  22008. if (!(mt = e != null && K(e, xt)))
  22009. break;
  22010. e = e[xt];
  22011. }
  22012. return mt || ++ot != ut ? mt : (ut = e == null ? 0 : e.length, !!ut && es(ut) && rr(xt, ut) && (ie(e) || Gr(e)));
  22013. }
  22014. function tm(e) {
  22015. var C = e.length, K = new e.constructor(C);
  22016. return C && typeof e[0] == "string" && Se.call(e, "index") && (K.index = e.index, K.input = e.input), K;
  22017. }
  22018. function Rc(e) {
  22019. return typeof e.constructor == "function" && !Fn(e) ? ln(Po(e)) : {};
  22020. }
  22021. function em(e, C, K) {
  22022. var ot = e.constructor;
  22023. switch (C) {
  22024. case pt:
  22025. return Pa(e);
  22026. case Q:
  22027. case k:
  22028. return new ot(+e);
  22029. case yt:
  22030. return jg(e, K);
  22031. case vt:
  22032. case Mt:
  22033. case Pt:
  22034. case At:
  22035. case St:
  22036. case Dt:
  22037. case Lt:
  22038. case Nt:
  22039. case Et:
  22040. return yc(e, K);
  22041. case it:
  22042. return new ot();
  22043. case et:
  22044. case at:
  22045. return new ot(e);
  22046. case dt:
  22047. return Wg(e);
  22048. case ht:
  22049. return new ot();
  22050. case J:
  22051. return zg(e);
  22052. }
  22053. }
  22054. function im(e, C) {
  22055. var K = C.length;
  22056. if (!K)
  22057. return e;
  22058. var ot = K - 1;
  22059. return C[ot] = (K > 1 ? "& " : "") + C[ot], C = C.join(K > 2 ? ", " : " "), e.replace(Hs, `{
  22060. /* [wrapped with ` + C + `] */
  22061. `);
  22062. }
  22063. function rm(e) {
  22064. return ie(e) || Gr(e) || !!(zh && e && e[zh]);
  22065. }
  22066. function rr(e, C) {
  22067. var K = typeof e;
  22068. return C = C ?? _, !!C && (K == "number" || K != "symbol" && fd.test(e)) && e > -1 && e % 1 == 0 && e < C;
  22069. }
  22070. function ri(e, C, K) {
  22071. if (!Ie(K))
  22072. return !1;
  22073. var ot = typeof C;
  22074. return (ot == "number" ? si(K) && rr(C, K.length) : ot == "string" && C in K) ? Ri(K[C], e) : !1;
  22075. }
  22076. function Na(e, C) {
  22077. if (ie(e))
  22078. return !1;
  22079. var K = typeof e;
  22080. return K == "number" || K == "symbol" || K == "boolean" || e == null || fi(e) ? !0 : En.test(e) || !Pn.test(e) || C != null && e in Me(C);
  22081. }
  22082. function nm(e) {
  22083. var C = typeof e;
  22084. return C == "string" || C == "number" || C == "symbol" || C == "boolean" ? e !== "__proto__" : e === null;
  22085. }
  22086. function Ba(e) {
  22087. var C = Vo(e), K = ft[C];
  22088. if (typeof K != "function" || !(C in ce.prototype))
  22089. return !1;
  22090. if (e === K)
  22091. return !0;
  22092. var ot = Da(K);
  22093. return !!ot && e === ot[0];
  22094. }
  22095. function om(e) {
  22096. return !!Nh && Nh in e;
  22097. }
  22098. var sm = Co ? nr : tl;
  22099. function Fn(e) {
  22100. var C = e && e.constructor, K = typeof C == "function" && C.prototype || on;
  22101. return e === K;
  22102. }
  22103. function Nc(e) {
  22104. return e === e && !Ie(e);
  22105. }
  22106. function Bc(e, C) {
  22107. return function(K) {
  22108. return K == null ? !1 : K[e] === C && (C !== T || e in Me(K));
  22109. };
  22110. }
  22111. function am(e) {
  22112. var C = Qo(e, function(ot) {
  22113. return K.size === U && K.clear(), ot;
  22114. }), K = C.cache;
  22115. return C;
  22116. }
  22117. function lm(e, C) {
  22118. var K = e[1], ot = C[1], ut = K | ot, mt = ut < (f | E | v), xt = ot == v && K == B || ot == v && K == a && e[7].length <= C[8] || ot == (v | a) && C[7].length <= C[8] && K == B;
  22119. if (!(mt || xt))
  22120. return e;
  22121. ot & f && (e[2] = C[2], ut |= K & f ? 0 : O);
  22122. var bt = C[3];
  22123. if (bt) {
  22124. var Ct = e[3];
  22125. e[3] = Ct ? xc(Ct, bt, C[4]) : bt, e[4] = Ct ? Sr(e[3], F) : C[4];
  22126. }
  22127. return bt = C[5], bt && (Ct = e[5], e[5] = Ct ? bc(Ct, bt, C[6]) : bt, e[6] = Ct ? Sr(e[5], F) : C[6]), bt = C[7], bt && (e[7] = bt), ot & v && (e[8] = e[8] == null ? C[8] : Ze(e[8], C[8])), e[9] == null && (e[9] = C[9]), e[0] = C[0], e[1] = ut, e;
  22128. }
  22129. function hm(e) {
  22130. var C = [];
  22131. if (e != null)
  22132. for (var K in Me(e))
  22133. C.push(K);
  22134. return C;
  22135. }
  22136. function cm(e) {
  22137. return ko.call(e);
  22138. }
  22139. function jc(e, C, K) {
  22140. return C = Ye(C === T ? e.length - 1 : C, 0), function() {
  22141. for (var ot = arguments, ut = -1, mt = Ye(ot.length - C, 0), xt = Tt(mt); ++ut < mt; )
  22142. xt[ut] = ot[C + ut];
  22143. ut = -1;
  22144. for (var bt = Tt(C + 1); ++ut < C; )
  22145. bt[ut] = ot[ut];
  22146. return bt[C] = K(xt), pi(e, this, bt);
  22147. };
  22148. }
  22149. function Wc(e, C) {
  22150. return C.length < 2 ? e : zr(e, Mi(C, 0, -1));
  22151. }
  22152. function pm(e, C) {
  22153. for (var K = e.length, ot = Ze(C.length, K), ut = oi(e); ot--; ) {
  22154. var mt = C[ot];
  22155. e[ot] = rr(mt, K) ? ut[mt] : T;
  22156. }
  22157. return e;
  22158. }
  22159. function ja(e, C) {
  22160. if (!(C === "constructor" && typeof e[C] == "function") && C != "__proto__")
  22161. return e[C];
  22162. }
  22163. var zc = Xc(hc), Un = Af || function(e, C) {
  22164. return Ue.setTimeout(e, C);
  22165. }, Wa = Xc(Ig);
  22166. function Yc(e, C, K) {
  22167. var ot = C + "";
  22168. return Wa(e, im(ot, um(Qg(ot), K)));
  22169. }
  22170. function Xc(e) {
  22171. var C = 0, K = 0;
  22172. return function() {
  22173. var ot = Of(), ut = s - (ot - K);
  22174. if (K = ot, ut > 0) {
  22175. if (++C >= h)
  22176. return arguments[0];
  22177. } else
  22178. C = 0;
  22179. return e.apply(T, arguments);
  22180. };
  22181. }
  22182. function Zo(e, C) {
  22183. var K = -1, ot = e.length, ut = ot - 1;
  22184. for (C = C === T ? ot : C; ++K < C; ) {
  22185. var mt = Sa(K, ut), xt = e[mt];
  22186. e[mt] = e[K], e[K] = xt;
  22187. }
  22188. return e.length = C, e;
  22189. }
  22190. var Gc = am(function(e) {
  22191. var C = [];
  22192. return e.charCodeAt(0) === 46 && C.push(""), e.replace($e, function(K, ot, ut, mt) {
  22193. C.push(ut ? mt.replace(Ir, "$1") : ot || K);
  22194. }), C;
  22195. });
  22196. function Fi(e) {
  22197. if (typeof e == "string" || fi(e))
  22198. return e;
  22199. var C = e + "";
  22200. return C == "0" && 1 / e == -A ? "-0" : C;
  22201. }
  22202. function Xr(e) {
  22203. if (e != null) {
  22204. try {
  22205. return Mo.call(e);
  22206. } catch {
  22207. }
  22208. try {
  22209. return e + "";
  22210. } catch {
  22211. }
  22212. }
  22213. return "";
  22214. }
  22215. function um(e, C) {
  22216. return bi(m, function(K) {
  22217. var ot = "_." + K[0];
  22218. C & K[1] && !xo(e, ot) && e.push(ot);
  22219. }), e.sort();
  22220. }
  22221. function Hc(e) {
  22222. if (e instanceof ce)
  22223. return e.clone();
  22224. var C = new wi(e.__wrapped__, e.__chain__);
  22225. return C.__actions__ = oi(e.__actions__), C.__index__ = e.__index__, C.__values__ = e.__values__, C;
  22226. }
  22227. function dm(e, C, K) {
  22228. (K ? ri(e, C, K) : C === T) ? C = 1 : C = Ye(ne(C), 0);
  22229. var ot = e == null ? 0 : e.length;
  22230. if (!ot || C < 1)
  22231. return [];
  22232. for (var ut = 0, mt = 0, xt = Tt(Lo(ot / C)); ut < ot; )
  22233. xt[mt++] = Mi(e, ut, ut += C);
  22234. return xt;
  22235. }
  22236. function fm(e) {
  22237. for (var C = -1, K = e == null ? 0 : e.length, ot = 0, ut = []; ++C < K; ) {
  22238. var mt = e[C];
  22239. mt && (ut[ot++] = mt);
  22240. }
  22241. return ut;
  22242. }
  22243. function gm() {
  22244. var e = arguments.length;
  22245. if (!e)
  22246. return [];
  22247. for (var C = Tt(e - 1), K = arguments[0], ot = e; ot--; )
  22248. C[ot - 1] = arguments[ot];
  22249. return br(ie(K) ? oi(K) : [K], Ve(C, 1));
  22250. }
  22251. var mm = ae(function(e, C) {
  22252. return Be(e) ? zn(e, Ve(C, 1, Be, !0)) : [];
  22253. }), ym = ae(function(e, C) {
  22254. var K = ki(C);
  22255. return Be(K) && (K = T), Be(e) ? zn(e, Ve(C, 1, Be, !0), qt(K, 2)) : [];
  22256. }), vm = ae(function(e, C) {
  22257. var K = ki(C);
  22258. return Be(K) && (K = T), Be(e) ? zn(e, Ve(C, 1, Be, !0), T, K) : [];
  22259. });
  22260. function xm(e, C, K) {
  22261. var ot = e == null ? 0 : e.length;
  22262. return ot ? (C = K || C === T ? 1 : ne(C), Mi(e, C < 0 ? 0 : C, ot)) : [];
  22263. }
  22264. function bm(e, C, K) {
  22265. var ot = e == null ? 0 : e.length;
  22266. return ot ? (C = K || C === T ? 1 : ne(C), C = ot - C, Mi(e, 0, C < 0 ? 0 : C)) : [];
  22267. }
  22268. function Sm(e, C) {
  22269. return e && e.length ? Yo(e, qt(C, 3), !0, !0) : [];
  22270. }
  22271. function wm(e, C) {
  22272. return e && e.length ? Yo(e, qt(C, 3), !0) : [];
  22273. }
  22274. function Cm(e, C, K, ot) {
  22275. var ut = e == null ? 0 : e.length;
  22276. return ut ? (K && typeof K != "number" && ri(e, C, K) && (K = 0, ot = ut), gg(e, C, K, ot)) : [];
  22277. }
  22278. function Fc(e, C, K) {
  22279. var ot = e == null ? 0 : e.length;
  22280. if (!ot)
  22281. return -1;
  22282. var ut = K == null ? 0 : ne(K);
  22283. return ut < 0 && (ut = Ye(ot + ut, 0)), bo(e, qt(C, 3), ut);
  22284. }
  22285. function Uc(e, C, K) {
  22286. var ot = e == null ? 0 : e.length;
  22287. if (!ot)
  22288. return -1;
  22289. var ut = ot - 1;
  22290. return K !== T && (ut = ne(K), ut = K < 0 ? Ye(ot + ut, 0) : Ze(ut, ot - 1)), bo(e, qt(C, 3), ut, !0);
  22291. }
  22292. function Vc(e) {
  22293. var C = e == null ? 0 : e.length;
  22294. return C ? Ve(e, 1) : [];
  22295. }
  22296. function Mm(e) {
  22297. var C = e == null ? 0 : e.length;
  22298. return C ? Ve(e, A) : [];
  22299. }
  22300. function km(e, C) {
  22301. var K = e == null ? 0 : e.length;
  22302. return K ? (C = C === T ? 1 : ne(C), Ve(e, C)) : [];
  22303. }
  22304. function Am(e) {
  22305. for (var C = -1, K = e == null ? 0 : e.length, ot = {}; ++C < K; ) {
  22306. var ut = e[C];
  22307. ot[ut[0]] = ut[1];
  22308. }
  22309. return ot;
  22310. }
  22311. function $c(e) {
  22312. return e && e.length ? e[0] : T;
  22313. }
  22314. function Tm(e, C, K) {
  22315. var ot = e == null ? 0 : e.length;
  22316. if (!ot)
  22317. return -1;
  22318. var ut = K == null ? 0 : ne(K);
  22319. return ut < 0 && (ut = Ye(ot + ut, 0)), tn(e, C, ut);
  22320. }
  22321. function Pm(e) {
  22322. var C = e == null ? 0 : e.length;
  22323. return C ? Mi(e, 0, -1) : [];
  22324. }
  22325. var Em = ae(function(e) {
  22326. var C = Ee(e, Aa);
  22327. return C.length && C[0] === e[0] ? ma(C) : [];
  22328. }), Om = ae(function(e) {
  22329. var C = ki(e), K = Ee(e, Aa);
  22330. return C === ki(K) ? C = T : K.pop(), K.length && K[0] === e[0] ? ma(K, qt(C, 2)) : [];
  22331. }), Lm = ae(function(e) {
  22332. var C = ki(e), K = Ee(e, Aa);
  22333. return C = typeof C == "function" ? C : T, C && K.pop(), K.length && K[0] === e[0] ? ma(K, T, C) : [];
  22334. });
  22335. function _m(e, C) {
  22336. return e == null ? "" : Pf.call(e, C);
  22337. }
  22338. function ki(e) {
  22339. var C = e == null ? 0 : e.length;
  22340. return C ? e[C - 1] : T;
  22341. }
  22342. function Dm(e, C, K) {
  22343. var ot = e == null ? 0 : e.length;
  22344. if (!ot)
  22345. return -1;
  22346. var ut = ot;
  22347. return K !== T && (ut = ne(K), ut = ut < 0 ? Ye(ot + ut, 0) : Ze(ut, ot - 1)), C === C ? uf(e, C, ut) : bo(e, Ph, ut, !0);
  22348. }
  22349. function Im(e, C) {
  22350. return e && e.length ? oc(e, ne(C)) : T;
  22351. }
  22352. var Rm = ae(Zc);
  22353. function Zc(e, C) {
  22354. return e && e.length && C && C.length ? ba(e, C) : e;
  22355. }
  22356. function Nm(e, C, K) {
  22357. return e && e.length && C && C.length ? ba(e, C, qt(K, 2)) : e;
  22358. }
  22359. function Bm(e, C, K) {
  22360. return e && e.length && C && C.length ? ba(e, C, T, K) : e;
  22361. }
  22362. var jm = ir(function(e, C) {
  22363. var K = e == null ? 0 : e.length, ot = ua(e, C);
  22364. return lc(e, Ee(C, function(ut) {
  22365. return rr(ut, K) ? +ut : ut;
  22366. }).sort(vc)), ot;
  22367. });
  22368. function Wm(e, C) {
  22369. var K = [];
  22370. if (!(e && e.length))
  22371. return K;
  22372. var ot = -1, ut = [], mt = e.length;
  22373. for (C = qt(C, 3); ++ot < mt; ) {
  22374. var xt = e[ot];
  22375. C(xt, ot, e) && (K.push(xt), ut.push(ot));
  22376. }
  22377. return lc(e, ut), K;
  22378. }
  22379. function za(e) {
  22380. return e == null ? e : _f.call(e);
  22381. }
  22382. function zm(e, C, K) {
  22383. var ot = e == null ? 0 : e.length;
  22384. return ot ? (K && typeof K != "number" && ri(e, C, K) ? (C = 0, K = ot) : (C = C == null ? 0 : ne(C), K = K === T ? ot : ne(K)), Mi(e, C, K)) : [];
  22385. }
  22386. function Ym(e, C) {
  22387. return zo(e, C);
  22388. }
  22389. function Xm(e, C, K) {
  22390. return Ca(e, C, qt(K, 2));
  22391. }
  22392. function Gm(e, C) {
  22393. var K = e == null ? 0 : e.length;
  22394. if (K) {
  22395. var ot = zo(e, C);
  22396. if (ot < K && Ri(e[ot], C))
  22397. return ot;
  22398. }
  22399. return -1;
  22400. }
  22401. function Hm(e, C) {
  22402. return zo(e, C, !0);
  22403. }
  22404. function Fm(e, C, K) {
  22405. return Ca(e, C, qt(K, 2), !0);
  22406. }
  22407. function Um(e, C) {
  22408. var K = e == null ? 0 : e.length;
  22409. if (K) {
  22410. var ot = zo(e, C, !0) - 1;
  22411. if (Ri(e[ot], C))
  22412. return ot;
  22413. }
  22414. return -1;
  22415. }
  22416. function Vm(e) {
  22417. return e && e.length ? cc(e) : [];
  22418. }
  22419. function $m(e, C) {
  22420. return e && e.length ? cc(e, qt(C, 2)) : [];
  22421. }
  22422. function Zm(e) {
  22423. var C = e == null ? 0 : e.length;
  22424. return C ? Mi(e, 1, C) : [];
  22425. }
  22426. function Km(e, C, K) {
  22427. return e && e.length ? (C = K || C === T ? 1 : ne(C), Mi(e, 0, C < 0 ? 0 : C)) : [];
  22428. }
  22429. function Jm(e, C, K) {
  22430. var ot = e == null ? 0 : e.length;
  22431. return ot ? (C = K || C === T ? 1 : ne(C), C = ot - C, Mi(e, C < 0 ? 0 : C, ot)) : [];
  22432. }
  22433. function qm(e, C) {
  22434. return e && e.length ? Yo(e, qt(C, 3), !1, !0) : [];
  22435. }
  22436. function Qm(e, C) {
  22437. return e && e.length ? Yo(e, qt(C, 3)) : [];
  22438. }
  22439. var ty = ae(function(e) {
  22440. return Mr(Ve(e, 1, Be, !0));
  22441. }), ey = ae(function(e) {
  22442. var C = ki(e);
  22443. return Be(C) && (C = T), Mr(Ve(e, 1, Be, !0), qt(C, 2));
  22444. }), iy = ae(function(e) {
  22445. var C = ki(e);
  22446. return C = typeof C == "function" ? C : T, Mr(Ve(e, 1, Be, !0), T, C);
  22447. });
  22448. function ry(e) {
  22449. return e && e.length ? Mr(e) : [];
  22450. }
  22451. function ny(e, C) {
  22452. return e && e.length ? Mr(e, qt(C, 2)) : [];
  22453. }
  22454. function oy(e, C) {
  22455. return C = typeof C == "function" ? C : T, e && e.length ? Mr(e, T, C) : [];
  22456. }
  22457. function Ya(e) {
  22458. if (!(e && e.length))
  22459. return [];
  22460. var C = 0;
  22461. return e = xr(e, function(K) {
  22462. if (Be(K))
  22463. return C = Ye(K.length, C), !0;
  22464. }), na(C, function(K) {
  22465. return Ee(e, ea(K));
  22466. });
  22467. }
  22468. function Kc(e, C) {
  22469. if (!(e && e.length))
  22470. return [];
  22471. var K = Ya(e);
  22472. return C == null ? K : Ee(K, function(ot) {
  22473. return pi(C, T, ot);
  22474. });
  22475. }
  22476. var sy = ae(function(e, C) {
  22477. return Be(e) ? zn(e, C) : [];
  22478. }), ay = ae(function(e) {
  22479. return ka(xr(e, Be));
  22480. }), ly = ae(function(e) {
  22481. var C = ki(e);
  22482. return Be(C) && (C = T), ka(xr(e, Be), qt(C, 2));
  22483. }), hy = ae(function(e) {
  22484. var C = ki(e);
  22485. return C = typeof C == "function" ? C : T, ka(xr(e, Be), T, C);
  22486. }), cy = ae(Ya);
  22487. function py(e, C) {
  22488. return fc(e || [], C || [], Wn);
  22489. }
  22490. function uy(e, C) {
  22491. return fc(e || [], C || [], Gn);
  22492. }
  22493. var dy = ae(function(e) {
  22494. var C = e.length, K = C > 1 ? e[C - 1] : T;
  22495. return K = typeof K == "function" ? (e.pop(), K) : T, Kc(e, K);
  22496. });
  22497. function Jc(e) {
  22498. var C = ft(e);
  22499. return C.__chain__ = !0, C;
  22500. }
  22501. function fy(e, C) {
  22502. return C(e), e;
  22503. }
  22504. function Ko(e, C) {
  22505. return C(e);
  22506. }
  22507. var gy = ir(function(e) {
  22508. var C = e.length, K = C ? e[0] : 0, ot = this.__wrapped__, ut = function(mt) {
  22509. return ua(mt, e);
  22510. };
  22511. return C > 1 || this.__actions__.length || !(ot instanceof ce) || !rr(K) ? this.thru(ut) : (ot = ot.slice(K, +K + (C ? 1 : 0)), ot.__actions__.push({
  22512. func: Ko,
  22513. args: [ut],
  22514. thisArg: T
  22515. }), new wi(ot, this.__chain__).thru(function(mt) {
  22516. return C && !mt.length && mt.push(T), mt;
  22517. }));
  22518. });
  22519. function my() {
  22520. return Jc(this);
  22521. }
  22522. function yy() {
  22523. return new wi(this.value(), this.__chain__);
  22524. }
  22525. function vy() {
  22526. this.__values__ === T && (this.__values__ = pp(this.value()));
  22527. var e = this.__index__ >= this.__values__.length, C = e ? T : this.__values__[this.__index__++];
  22528. return { done: e, value: C };
  22529. }
  22530. function xy() {
  22531. return this;
  22532. }
  22533. function by(e) {
  22534. for (var C, K = this; K instanceof Ro; ) {
  22535. var ot = Hc(K);
  22536. ot.__index__ = 0, ot.__values__ = T, C ? ut.__wrapped__ = ot : C = ot;
  22537. var ut = ot;
  22538. K = K.__wrapped__;
  22539. }
  22540. return ut.__wrapped__ = e, C;
  22541. }
  22542. function Sy() {
  22543. var e = this.__wrapped__;
  22544. if (e instanceof ce) {
  22545. var C = e;
  22546. return this.__actions__.length && (C = new ce(this)), C = C.reverse(), C.__actions__.push({
  22547. func: Ko,
  22548. args: [za],
  22549. thisArg: T
  22550. }), new wi(C, this.__chain__);
  22551. }
  22552. return this.thru(za);
  22553. }
  22554. function wy() {
  22555. return dc(this.__wrapped__, this.__actions__);
  22556. }
  22557. var Cy = Xo(function(e, C, K) {
  22558. Se.call(e, K) ? ++e[K] : tr(e, K, 1);
  22559. });
  22560. function My(e, C, K) {
  22561. var ot = ie(e) ? Ah : fg;
  22562. return K && ri(e, C, K) && (C = T), ot(e, qt(C, 3));
  22563. }
  22564. function ky(e, C) {
  22565. var K = ie(e) ? xr : Kh;
  22566. return K(e, qt(C, 3));
  22567. }
  22568. var Ay = Mc(Fc), Ty = Mc(Uc);
  22569. function Py(e, C) {
  22570. return Ve(Jo(e, C), 1);
  22571. }
  22572. function Ey(e, C) {
  22573. return Ve(Jo(e, C), A);
  22574. }
  22575. function Oy(e, C, K) {
  22576. return K = K === T ? 1 : ne(K), Ve(Jo(e, C), K);
  22577. }
  22578. function qc(e, C) {
  22579. var K = ie(e) ? bi : Cr;
  22580. return K(e, qt(C, 3));
  22581. }
  22582. function Qc(e, C) {
  22583. var K = ie(e) ? $d : Zh;
  22584. return K(e, qt(C, 3));
  22585. }
  22586. var Ly = Xo(function(e, C, K) {
  22587. Se.call(e, K) ? e[K].push(C) : tr(e, K, [C]);
  22588. });
  22589. function _y(e, C, K, ot) {
  22590. e = si(e) ? e : dn(e), K = K && !ot ? ne(K) : 0;
  22591. var ut = e.length;
  22592. return K < 0 && (K = Ye(ut + K, 0)), is(e) ? K <= ut && e.indexOf(C, K) > -1 : !!ut && tn(e, C, K) > -1;
  22593. }
  22594. var Dy = ae(function(e, C, K) {
  22595. var ot = -1, ut = typeof C == "function", mt = si(e) ? Tt(e.length) : [];
  22596. return Cr(e, function(xt) {
  22597. mt[++ot] = ut ? pi(C, xt, K) : Yn(xt, C, K);
  22598. }), mt;
  22599. }), Iy = Xo(function(e, C, K) {
  22600. tr(e, K, C);
  22601. });
  22602. function Jo(e, C) {
  22603. var K = ie(e) ? Ee : ic;
  22604. return K(e, qt(C, 3));
  22605. }
  22606. function Ry(e, C, K, ot) {
  22607. return e == null ? [] : (ie(C) || (C = C == null ? [] : [C]), K = ot ? T : K, ie(K) || (K = K == null ? [] : [K]), sc(e, C, K));
  22608. }
  22609. var Ny = Xo(function(e, C, K) {
  22610. e[K ? 0 : 1].push(C);
  22611. }, function() {
  22612. return [[], []];
  22613. });
  22614. function By(e, C, K) {
  22615. var ot = ie(e) ? Qs : Oh, ut = arguments.length < 3;
  22616. return ot(e, qt(C, 4), K, ut, Cr);
  22617. }
  22618. function jy(e, C, K) {
  22619. var ot = ie(e) ? Zd : Oh, ut = arguments.length < 3;
  22620. return ot(e, qt(C, 4), K, ut, Zh);
  22621. }
  22622. function Wy(e, C) {
  22623. var K = ie(e) ? xr : Kh;
  22624. return K(e, ts(qt(C, 3)));
  22625. }
  22626. function zy(e) {
  22627. var C = ie(e) ? Fh : _g;
  22628. return C(e);
  22629. }
  22630. function Yy(e, C, K) {
  22631. (K ? ri(e, C, K) : C === T) ? C = 1 : C = ne(C);
  22632. var ot = ie(e) ? hg : Dg;
  22633. return ot(e, C);
  22634. }
  22635. function Xy(e) {
  22636. var C = ie(e) ? cg : Rg;
  22637. return C(e);
  22638. }
  22639. function Gy(e) {
  22640. if (e == null)
  22641. return 0;
  22642. if (si(e))
  22643. return is(e) ? rn(e) : e.length;
  22644. var C = Ke(e);
  22645. return C == it || C == ht ? e.size : va(e).length;
  22646. }
  22647. function Hy(e, C, K) {
  22648. var ot = ie(e) ? ta : Ng;
  22649. return K && ri(e, C, K) && (C = T), ot(e, qt(C, 3));
  22650. }
  22651. var Fy = ae(function(e, C) {
  22652. if (e == null)
  22653. return [];
  22654. var K = C.length;
  22655. return K > 1 && ri(e, C[0], C[1]) ? C = [] : K > 2 && ri(C[0], C[1], C[2]) && (C = [C[0]]), sc(e, Ve(C, 1), []);
  22656. }), qo = kf || function() {
  22657. return Ue.Date.now();
  22658. };
  22659. function Uy(e, C) {
  22660. if (typeof C != "function")
  22661. throw new Si(I);
  22662. return e = ne(e), function() {
  22663. if (--e < 1)
  22664. return C.apply(this, arguments);
  22665. };
  22666. }
  22667. function tp(e, C, K) {
  22668. return C = K ? T : C, C = e && C == null ? e.length : C, er(e, v, T, T, T, T, C);
  22669. }
  22670. function ep(e, C) {
  22671. var K;
  22672. if (typeof C != "function")
  22673. throw new Si(I);
  22674. return e = ne(e), function() {
  22675. return --e > 0 && (K = C.apply(this, arguments)), e <= 1 && (C = T), K;
  22676. };
  22677. }
  22678. var Xa = ae(function(e, C, K) {
  22679. var ot = f;
  22680. if (K.length) {
  22681. var ut = Sr(K, pn(Xa));
  22682. ot |= S;
  22683. }
  22684. return er(e, ot, C, K, ut);
  22685. }), ip = ae(function(e, C, K) {
  22686. var ot = f | E;
  22687. if (K.length) {
  22688. var ut = Sr(K, pn(ip));
  22689. ot |= S;
  22690. }
  22691. return er(C, ot, e, K, ut);
  22692. });
  22693. function rp(e, C, K) {
  22694. C = K ? T : C;
  22695. var ot = er(e, B, T, T, T, T, T, C);
  22696. return ot.placeholder = rp.placeholder, ot;
  22697. }
  22698. function np(e, C, K) {
  22699. C = K ? T : C;
  22700. var ot = er(e, M, T, T, T, T, T, C);
  22701. return ot.placeholder = np.placeholder, ot;
  22702. }
  22703. function op(e, C, K) {
  22704. var ot, ut, mt, xt, bt, Ct, It = 0, Rt = !1, Bt = !1, Yt = !0;
  22705. if (typeof e != "function")
  22706. throw new Si(I);
  22707. C = Ai(C) || 0, Ie(K) && (Rt = !!K.leading, Bt = "maxWait" in K, mt = Bt ? Ye(Ai(K.maxWait) || 0, C) : mt, Yt = "trailing" in K ? !!K.trailing : Yt);
  22708. function Ut(je) {
  22709. var Ni = ot, sr = ut;
  22710. return ot = ut = T, It = je, xt = e.apply(sr, Ni), xt;
  22711. }
  22712. function Qt(je) {
  22713. return It = je, bt = Un(he, C), Rt ? Ut(je) : xt;
  22714. }
  22715. function se(je) {
  22716. var Ni = je - Ct, sr = je - It, Mp = C - Ni;
  22717. return Bt ? Ze(Mp, mt - sr) : Mp;
  22718. }
  22719. function te(je) {
  22720. var Ni = je - Ct, sr = je - It;
  22721. return Ct === T || Ni >= C || Ni < 0 || Bt && sr >= mt;
  22722. }
  22723. function he() {
  22724. var je = qo();
  22725. if (te(je))
  22726. return pe(je);
  22727. bt = Un(he, se(je));
  22728. }
  22729. function pe(je) {
  22730. return bt = T, Yt && ot ? Ut(je) : (ot = ut = T, xt);
  22731. }
  22732. function gi() {
  22733. bt !== T && gc(bt), It = 0, ot = Ct = ut = bt = T;
  22734. }
  22735. function ni() {
  22736. return bt === T ? xt : pe(qo());
  22737. }
  22738. function mi() {
  22739. var je = qo(), Ni = te(je);
  22740. if (ot = arguments, ut = this, Ct = je, Ni) {
  22741. if (bt === T)
  22742. return Qt(Ct);
  22743. if (Bt)
  22744. return gc(bt), bt = Un(he, C), Ut(Ct);
  22745. }
  22746. return bt === T && (bt = Un(he, C)), xt;
  22747. }
  22748. return mi.cancel = gi, mi.flush = ni, mi;
  22749. }
  22750. var Vy = ae(function(e, C) {
  22751. return $h(e, 1, C);
  22752. }), $y = ae(function(e, C, K) {
  22753. return $h(e, Ai(C) || 0, K);
  22754. });
  22755. function Zy(e) {
  22756. return er(e, c);
  22757. }
  22758. function Qo(e, C) {
  22759. if (typeof e != "function" || C != null && typeof C != "function")
  22760. throw new Si(I);
  22761. var K = function() {
  22762. var ot = arguments, ut = C ? C.apply(this, ot) : ot[0], mt = K.cache;
  22763. if (mt.has(ut))
  22764. return mt.get(ut);
  22765. var xt = e.apply(this, ot);
  22766. return K.cache = mt.set(ut, xt) || mt, xt;
  22767. };
  22768. return K.cache = new (Qo.Cache || Qi)(), K;
  22769. }
  22770. Qo.Cache = Qi;
  22771. function ts(e) {
  22772. if (typeof e != "function")
  22773. throw new Si(I);
  22774. return function() {
  22775. var C = arguments;
  22776. switch (C.length) {
  22777. case 0:
  22778. return !e.call(this);
  22779. case 1:
  22780. return !e.call(this, C[0]);
  22781. case 2:
  22782. return !e.call(this, C[0], C[1]);
  22783. case 3:
  22784. return !e.call(this, C[0], C[1], C[2]);
  22785. }
  22786. return !e.apply(this, C);
  22787. };
  22788. }
  22789. function Ky(e) {
  22790. return ep(2, e);
  22791. }
  22792. var Jy = Bg(function(e, C) {
  22793. C = C.length == 1 && ie(C[0]) ? Ee(C[0], ui(qt())) : Ee(Ve(C, 1), ui(qt()));
  22794. var K = C.length;
  22795. return ae(function(ot) {
  22796. for (var ut = -1, mt = Ze(ot.length, K); ++ut < mt; )
  22797. ot[ut] = C[ut].call(this, ot[ut]);
  22798. return pi(e, this, ot);
  22799. });
  22800. }), Ga = ae(function(e, C) {
  22801. var K = Sr(C, pn(Ga));
  22802. return er(e, S, T, C, K);
  22803. }), sp = ae(function(e, C) {
  22804. var K = Sr(C, pn(sp));
  22805. return er(e, w, T, C, K);
  22806. }), qy = ir(function(e, C) {
  22807. return er(e, a, T, T, T, C);
  22808. });
  22809. function Qy(e, C) {
  22810. if (typeof e != "function")
  22811. throw new Si(I);
  22812. return C = C === T ? C : ne(C), ae(e, C);
  22813. }
  22814. function tv(e, C) {
  22815. if (typeof e != "function")
  22816. throw new Si(I);
  22817. return C = C == null ? 0 : Ye(ne(C), 0), ae(function(K) {
  22818. var ot = K[C], ut = Ar(K, 0, C);
  22819. return ot && br(ut, ot), pi(e, this, ut);
  22820. });
  22821. }
  22822. function ev(e, C, K) {
  22823. var ot = !0, ut = !0;
  22824. if (typeof e != "function")
  22825. throw new Si(I);
  22826. return Ie(K) && (ot = "leading" in K ? !!K.leading : ot, ut = "trailing" in K ? !!K.trailing : ut), op(e, C, {
  22827. leading: ot,
  22828. maxWait: C,
  22829. trailing: ut
  22830. });
  22831. }
  22832. function iv(e) {
  22833. return tp(e, 1);
  22834. }
  22835. function rv(e, C) {
  22836. return Ga(Ta(C), e);
  22837. }
  22838. function nv() {
  22839. if (!arguments.length)
  22840. return [];
  22841. var e = arguments[0];
  22842. return ie(e) ? e : [e];
  22843. }
  22844. function ov(e) {
  22845. return Ci(e, b);
  22846. }
  22847. function sv(e, C) {
  22848. return C = typeof C == "function" ? C : T, Ci(e, b, C);
  22849. }
  22850. function av(e) {
  22851. return Ci(e, R | b);
  22852. }
  22853. function lv(e, C) {
  22854. return C = typeof C == "function" ? C : T, Ci(e, R | b, C);
  22855. }
  22856. function hv(e, C) {
  22857. return C == null || Vh(e, C, He(C));
  22858. }
  22859. function Ri(e, C) {
  22860. return e === C || e !== e && C !== C;
  22861. }
  22862. var cv = Uo(ga), pv = Uo(function(e, C) {
  22863. return e >= C;
  22864. }), Gr = Qh(function() {
  22865. return arguments;
  22866. }()) ? Qh : function(e) {
  22867. return Ne(e) && Se.call(e, "callee") && !Wh.call(e, "callee");
  22868. }, ie = Tt.isArray, uv = bh ? ui(bh) : bg;
  22869. function si(e) {
  22870. return e != null && es(e.length) && !nr(e);
  22871. }
  22872. function Be(e) {
  22873. return Ne(e) && si(e);
  22874. }
  22875. function dv(e) {
  22876. return e === !0 || e === !1 || Ne(e) && ii(e) == Q;
  22877. }
  22878. var Tr = Tf || tl, fv = Sh ? ui(Sh) : Sg;
  22879. function gv(e) {
  22880. return Ne(e) && e.nodeType === 1 && !Vn(e);
  22881. }
  22882. function mv(e) {
  22883. if (e == null)
  22884. return !0;
  22885. if (si(e) && (ie(e) || typeof e == "string" || typeof e.splice == "function" || Tr(e) || un(e) || Gr(e)))
  22886. return !e.length;
  22887. var C = Ke(e);
  22888. if (C == it || C == ht)
  22889. return !e.size;
  22890. if (Fn(e))
  22891. return !va(e).length;
  22892. for (var K in e)
  22893. if (Se.call(e, K))
  22894. return !1;
  22895. return !0;
  22896. }
  22897. function yv(e, C) {
  22898. return Xn(e, C);
  22899. }
  22900. function vv(e, C, K) {
  22901. K = typeof K == "function" ? K : T;
  22902. var ot = K ? K(e, C) : T;
  22903. return ot === T ? Xn(e, C, T, K) : !!ot;
  22904. }
  22905. function Ha(e) {
  22906. if (!Ne(e))
  22907. return !1;
  22908. var C = ii(e);
  22909. return C == z || C == G || typeof e.message == "string" && typeof e.name == "string" && !Vn(e);
  22910. }
  22911. function xv(e) {
  22912. return typeof e == "number" && Yh(e);
  22913. }
  22914. function nr(e) {
  22915. if (!Ie(e))
  22916. return !1;
  22917. var C = ii(e);
  22918. return C == $ || C == q || C == V || C == gt;
  22919. }
  22920. function ap(e) {
  22921. return typeof e == "number" && e == ne(e);
  22922. }
  22923. function es(e) {
  22924. return typeof e == "number" && e > -1 && e % 1 == 0 && e <= _;
  22925. }
  22926. function Ie(e) {
  22927. var C = typeof e;
  22928. return e != null && (C == "object" || C == "function");
  22929. }
  22930. function Ne(e) {
  22931. return e != null && typeof e == "object";
  22932. }
  22933. var lp = wh ? ui(wh) : Cg;
  22934. function bv(e, C) {
  22935. return e === C || ya(e, C, Ia(C));
  22936. }
  22937. function Sv(e, C, K) {
  22938. return K = typeof K == "function" ? K : T, ya(e, C, Ia(C), K);
  22939. }
  22940. function wv(e) {
  22941. return hp(e) && e != +e;
  22942. }
  22943. function Cv(e) {
  22944. if (sm(e))
  22945. throw new ee(j);
  22946. return tc(e);
  22947. }
  22948. function Mv(e) {
  22949. return e === null;
  22950. }
  22951. function kv(e) {
  22952. return e == null;
  22953. }
  22954. function hp(e) {
  22955. return typeof e == "number" || Ne(e) && ii(e) == et;
  22956. }
  22957. function Vn(e) {
  22958. if (!Ne(e) || ii(e) != rt)
  22959. return !1;
  22960. var C = Po(e);
  22961. if (C === null)
  22962. return !0;
  22963. var K = Se.call(C, "constructor") && C.constructor;
  22964. return typeof K == "function" && K instanceof K && Mo.call(K) == Sf;
  22965. }
  22966. var Fa = Ch ? ui(Ch) : Mg;
  22967. function Av(e) {
  22968. return ap(e) && e >= -_ && e <= _;
  22969. }
  22970. var cp = Mh ? ui(Mh) : kg;
  22971. function is(e) {
  22972. return typeof e == "string" || !ie(e) && Ne(e) && ii(e) == at;
  22973. }
  22974. function fi(e) {
  22975. return typeof e == "symbol" || Ne(e) && ii(e) == J;
  22976. }
  22977. var un = kh ? ui(kh) : Ag;
  22978. function Tv(e) {
  22979. return e === T;
  22980. }
  22981. function Pv(e) {
  22982. return Ne(e) && Ke(e) == st;
  22983. }
  22984. function Ev(e) {
  22985. return Ne(e) && ii(e) == lt;
  22986. }
  22987. var Ov = Uo(xa), Lv = Uo(function(e, C) {
  22988. return e <= C;
  22989. });
  22990. function pp(e) {
  22991. if (!e)
  22992. return [];
  22993. if (si(e))
  22994. return is(e) ? Di(e) : oi(e);
  22995. if (In && e[In])
  22996. return hf(e[In]());
  22997. var C = Ke(e), K = C == it ? sa : C == ht ? So : dn;
  22998. return K(e);
  22999. }
  23000. function or(e) {
  23001. if (!e)
  23002. return e === 0 ? e : 0;
  23003. if (e = Ai(e), e === A || e === -A) {
  23004. var C = e < 0 ? -1 : 1;
  23005. return C * D;
  23006. }
  23007. return e === e ? e : 0;
  23008. }
  23009. function ne(e) {
  23010. var C = or(e), K = C % 1;
  23011. return C === C ? K ? C - K : C : 0;
  23012. }
  23013. function up(e) {
  23014. return e ? Wr(ne(e), 0, P) : 0;
  23015. }
  23016. function Ai(e) {
  23017. if (typeof e == "number")
  23018. return e;
  23019. if (fi(e))
  23020. return W;
  23021. if (Ie(e)) {
  23022. var C = typeof e.valueOf == "function" ? e.valueOf() : e;
  23023. e = Ie(C) ? C + "" : C;
  23024. }
  23025. if (typeof e != "string")
  23026. return e === 0 ? e : +e;
  23027. e = Lh(e);
  23028. var K = Re.test(e);
  23029. return K || qr.test(e) ? Fd(e.slice(2), K ? 2 : 8) : ge.test(e) ? W : +e;
  23030. }
  23031. function dp(e) {
  23032. return Hi(e, ai(e));
  23033. }
  23034. function _v(e) {
  23035. return e ? Wr(ne(e), -_, _) : e === 0 ? e : 0;
  23036. }
  23037. function xe(e) {
  23038. return e == null ? "" : di(e);
  23039. }
  23040. var Dv = hn(function(e, C) {
  23041. if (Fn(C) || si(C)) {
  23042. Hi(C, He(C), e);
  23043. return;
  23044. }
  23045. for (var K in C)
  23046. Se.call(C, K) && Wn(e, K, C[K]);
  23047. }), fp = hn(function(e, C) {
  23048. Hi(C, ai(C), e);
  23049. }), rs = hn(function(e, C, K, ot) {
  23050. Hi(C, ai(C), e, ot);
  23051. }), Iv = hn(function(e, C, K, ot) {
  23052. Hi(C, He(C), e, ot);
  23053. }), Rv = ir(ua);
  23054. function Nv(e, C) {
  23055. var K = ln(e);
  23056. return C == null ? K : Uh(K, C);
  23057. }
  23058. var Bv = ae(function(e, C) {
  23059. e = Me(e);
  23060. var K = -1, ot = C.length, ut = ot > 2 ? C[2] : T;
  23061. for (ut && ri(C[0], C[1], ut) && (ot = 1); ++K < ot; )
  23062. for (var mt = C[K], xt = ai(mt), bt = -1, Ct = xt.length; ++bt < Ct; ) {
  23063. var It = xt[bt], Rt = e[It];
  23064. (Rt === T || Ri(Rt, on[It]) && !Se.call(e, It)) && (e[It] = mt[It]);
  23065. }
  23066. return e;
  23067. }), jv = ae(function(e) {
  23068. return e.push(T, Lc), pi(gp, T, e);
  23069. });
  23070. function Wv(e, C) {
  23071. return Th(e, qt(C, 3), Gi);
  23072. }
  23073. function zv(e, C) {
  23074. return Th(e, qt(C, 3), fa);
  23075. }
  23076. function Yv(e, C) {
  23077. return e == null ? e : da(e, qt(C, 3), ai);
  23078. }
  23079. function Xv(e, C) {
  23080. return e == null ? e : Jh(e, qt(C, 3), ai);
  23081. }
  23082. function Gv(e, C) {
  23083. return e && Gi(e, qt(C, 3));
  23084. }
  23085. function Hv(e, C) {
  23086. return e && fa(e, qt(C, 3));
  23087. }
  23088. function Fv(e) {
  23089. return e == null ? [] : jo(e, He(e));
  23090. }
  23091. function Uv(e) {
  23092. return e == null ? [] : jo(e, ai(e));
  23093. }
  23094. function Ua(e, C, K) {
  23095. var ot = e == null ? T : zr(e, C);
  23096. return ot === T ? K : ot;
  23097. }
  23098. function Vv(e, C) {
  23099. return e != null && Ic(e, C, mg);
  23100. }
  23101. function Va(e, C) {
  23102. return e != null && Ic(e, C, yg);
  23103. }
  23104. var $v = Ac(function(e, C, K) {
  23105. C != null && typeof C.toString != "function" && (C = ko.call(C)), e[C] = K;
  23106. }, Za(li)), Zv = Ac(function(e, C, K) {
  23107. C != null && typeof C.toString != "function" && (C = ko.call(C)), Se.call(e, C) ? e[C].push(K) : e[C] = [K];
  23108. }, qt), Kv = ae(Yn);
  23109. function He(e) {
  23110. return si(e) ? Hh(e) : va(e);
  23111. }
  23112. function ai(e) {
  23113. return si(e) ? Hh(e, !0) : Tg(e);
  23114. }
  23115. function Jv(e, C) {
  23116. var K = {};
  23117. return C = qt(C, 3), Gi(e, function(ot, ut, mt) {
  23118. tr(K, C(ot, ut, mt), ot);
  23119. }), K;
  23120. }
  23121. function qv(e, C) {
  23122. var K = {};
  23123. return C = qt(C, 3), Gi(e, function(ot, ut, mt) {
  23124. tr(K, ut, C(ot, ut, mt));
  23125. }), K;
  23126. }
  23127. var Qv = hn(function(e, C, K) {
  23128. Wo(e, C, K);
  23129. }), gp = hn(function(e, C, K, ot) {
  23130. Wo(e, C, K, ot);
  23131. }), tx = ir(function(e, C) {
  23132. var K = {};
  23133. if (e == null)
  23134. return K;
  23135. var ot = !1;
  23136. C = Ee(C, function(mt) {
  23137. return mt = kr(mt, e), ot || (ot = mt.length > 1), mt;
  23138. }), Hi(e, _a(e), K), ot && (K = Ci(K, R | N | b, $g));
  23139. for (var ut = C.length; ut--; )
  23140. Ma(K, C[ut]);
  23141. return K;
  23142. });
  23143. function ex(e, C) {
  23144. return mp(e, ts(qt(C)));
  23145. }
  23146. var ix = ir(function(e, C) {
  23147. return e == null ? {} : Eg(e, C);
  23148. });
  23149. function mp(e, C) {
  23150. if (e == null)
  23151. return {};
  23152. var K = Ee(_a(e), function(ot) {
  23153. return [ot];
  23154. });
  23155. return C = qt(C), ac(e, K, function(ot, ut) {
  23156. return C(ot, ut[0]);
  23157. });
  23158. }
  23159. function rx(e, C, K) {
  23160. C = kr(C, e);
  23161. var ot = -1, ut = C.length;
  23162. for (ut || (ut = 1, e = T); ++ot < ut; ) {
  23163. var mt = e == null ? T : e[Fi(C[ot])];
  23164. mt === T && (ot = ut, mt = K), e = nr(mt) ? mt.call(e) : mt;
  23165. }
  23166. return e;
  23167. }
  23168. function nx(e, C, K) {
  23169. return e == null ? e : Gn(e, C, K);
  23170. }
  23171. function ox(e, C, K, ot) {
  23172. return ot = typeof ot == "function" ? ot : T, e == null ? e : Gn(e, C, K, ot);
  23173. }
  23174. var yp = Ec(He), vp = Ec(ai);
  23175. function sx(e, C, K) {
  23176. var ot = ie(e), ut = ot || Tr(e) || un(e);
  23177. if (C = qt(C, 4), K == null) {
  23178. var mt = e && e.constructor;
  23179. ut ? K = ot ? new mt() : [] : Ie(e) ? K = nr(mt) ? ln(Po(e)) : {} : K = {};
  23180. }
  23181. return (ut ? bi : Gi)(e, function(xt, bt, Ct) {
  23182. return C(K, xt, bt, Ct);
  23183. }), K;
  23184. }
  23185. function ax(e, C) {
  23186. return e == null ? !0 : Ma(e, C);
  23187. }
  23188. function lx(e, C, K) {
  23189. return e == null ? e : uc(e, C, Ta(K));
  23190. }
  23191. function hx(e, C, K, ot) {
  23192. return ot = typeof ot == "function" ? ot : T, e == null ? e : uc(e, C, Ta(K), ot);
  23193. }
  23194. function dn(e) {
  23195. return e == null ? [] : oa(e, He(e));
  23196. }
  23197. function cx(e) {
  23198. return e == null ? [] : oa(e, ai(e));
  23199. }
  23200. function px(e, C, K) {
  23201. return K === T && (K = C, C = T), K !== T && (K = Ai(K), K = K === K ? K : 0), C !== T && (C = Ai(C), C = C === C ? C : 0), Wr(Ai(e), C, K);
  23202. }
  23203. function ux(e, C, K) {
  23204. return C = or(C), K === T ? (K = C, C = 0) : K = or(K), e = Ai(e), vg(e, C, K);
  23205. }
  23206. function dx(e, C, K) {
  23207. if (K && typeof K != "boolean" && ri(e, C, K) && (C = K = T), K === T && (typeof C == "boolean" ? (K = C, C = T) : typeof e == "boolean" && (K = e, e = T)), e === T && C === T ? (e = 0, C = 1) : (e = or(e), C === T ? (C = e, e = 0) : C = or(C)), e > C) {
  23208. var ot = e;
  23209. e = C, C = ot;
  23210. }
  23211. if (K || e % 1 || C % 1) {
  23212. var ut = Xh();
  23213. return Ze(e + ut * (C - e + Hd("1e-" + ((ut + "").length - 1))), C);
  23214. }
  23215. return Sa(e, C);
  23216. }
  23217. var fx = cn(function(e, C, K) {
  23218. return C = C.toLowerCase(), e + (K ? xp(C) : C);
  23219. });
  23220. function xp(e) {
  23221. return $a(xe(e).toLowerCase());
  23222. }
  23223. function bp(e) {
  23224. return e = xe(e), e && e.replace(gd, nf).replace(Id, "");
  23225. }
  23226. function gx(e, C, K) {
  23227. e = xe(e), C = di(C);
  23228. var ot = e.length;
  23229. K = K === T ? ot : Wr(ne(K), 0, ot);
  23230. var ut = K;
  23231. return K -= C.length, K >= 0 && e.slice(K, ut) == C;
  23232. }
  23233. function mx(e) {
  23234. return e = xe(e), e && Vt.test(e) ? e.replace(be, of) : e;
  23235. }
  23236. function yx(e) {
  23237. return e = xe(e), e && Ln.test(e) ? e.replace(On, "\\$&") : e;
  23238. }
  23239. var vx = cn(function(e, C, K) {
  23240. return e + (K ? "-" : "") + C.toLowerCase();
  23241. }), xx = cn(function(e, C, K) {
  23242. return e + (K ? " " : "") + C.toLowerCase();
  23243. }), bx = Cc("toLowerCase");
  23244. function Sx(e, C, K) {
  23245. e = xe(e), C = ne(C);
  23246. var ot = C ? rn(e) : 0;
  23247. if (!C || ot >= C)
  23248. return e;
  23249. var ut = (C - ot) / 2;
  23250. return Fo(_o(ut), K) + e + Fo(Lo(ut), K);
  23251. }
  23252. function wx(e, C, K) {
  23253. e = xe(e), C = ne(C);
  23254. var ot = C ? rn(e) : 0;
  23255. return C && ot < C ? e + Fo(C - ot, K) : e;
  23256. }
  23257. function Cx(e, C, K) {
  23258. e = xe(e), C = ne(C);
  23259. var ot = C ? rn(e) : 0;
  23260. return C && ot < C ? Fo(C - ot, K) + e : e;
  23261. }
  23262. function Mx(e, C, K) {
  23263. return K || C == null ? C = 0 : C && (C = +C), Lf(xe(e).replace(Jr, ""), C || 0);
  23264. }
  23265. function kx(e, C, K) {
  23266. return (K ? ri(e, C, K) : C === T) ? C = 1 : C = ne(C), wa(xe(e), C);
  23267. }
  23268. function Ax() {
  23269. var e = arguments, C = xe(e[0]);
  23270. return e.length < 3 ? C : C.replace(e[1], e[2]);
  23271. }
  23272. var Tx = cn(function(e, C, K) {
  23273. return e + (K ? "_" : "") + C.toLowerCase();
  23274. });
  23275. function Px(e, C, K) {
  23276. return K && typeof K != "number" && ri(e, C, K) && (C = K = T), K = K === T ? P : K >>> 0, K ? (e = xe(e), e && (typeof C == "string" || C != null && !Fa(C)) && (C = di(C), !C && en(e)) ? Ar(Di(e), 0, K) : e.split(C, K)) : [];
  23277. }
  23278. var Ex = cn(function(e, C, K) {
  23279. return e + (K ? " " : "") + $a(C);
  23280. });
  23281. function Ox(e, C, K) {
  23282. return e = xe(e), K = K == null ? 0 : Wr(ne(K), 0, e.length), C = di(C), e.slice(K, K + C.length) == C;
  23283. }
  23284. function Lx(e, C, K) {
  23285. var ot = ft.templateSettings;
  23286. K && ri(e, C, K) && (C = T), e = xe(e), C = rs({}, C, ot, Oc);
  23287. var ut = rs({}, C.imports, ot.imports, Oc), mt = He(ut), xt = oa(ut, mt), bt, Ct, It = 0, Rt = C.interpolate || mo, Bt = "__p += '", Yt = aa(
  23288. (C.escape || mo).source + "|" + Rt.source + "|" + (Rt === uo ? $t : mo).source + "|" + (C.evaluate || mo).source + "|$",
  23289. "g"
  23290. ), Ut = "//# sourceURL=" + (Se.call(C, "sourceURL") ? (C.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Wd + "]") + `
  23291. `;
  23292. e.replace(Yt, function(te, he, pe, gi, ni, mi) {
  23293. return pe || (pe = gi), Bt += e.slice(It, mi).replace(md, sf), he && (bt = !0, Bt += `' +
  23294. __e(` + he + `) +
  23295. '`), ni && (Ct = !0, Bt += `';
  23296. ` + ni + `;
  23297. __p += '`), pe && (Bt += `' +
  23298. ((__t = (` + pe + `)) == null ? '' : __t) +
  23299. '`), It = mi + te.length, te;
  23300. }), Bt += `';
  23301. `;
  23302. var Qt = Se.call(C, "variable") && C.variable;
  23303. if (!Qt)
  23304. Bt = `with (obj) {
  23305. ` + Bt + `
  23306. }
  23307. `;
  23308. else if (_n.test(Qt))
  23309. throw new ee(Z);
  23310. Bt = (Ct ? Bt.replace(Kt, "") : Bt).replace(Gt, "$1").replace(Wt, "$1;"), Bt = "function(" + (Qt || "obj") + `) {
  23311. ` + (Qt ? "" : `obj || (obj = {});
  23312. `) + "var __t, __p = ''" + (bt ? ", __e = _.escape" : "") + (Ct ? `, __j = Array.prototype.join;
  23313. function print() { __p += __j.call(arguments, '') }
  23314. ` : `;
  23315. `) + Bt + `return __p
  23316. }`;
  23317. var se = wp(function() {
  23318. return ve(mt, Ut + "return " + Bt).apply(T, xt);
  23319. });
  23320. if (se.source = Bt, Ha(se))
  23321. throw se;
  23322. return se;
  23323. }
  23324. function _x(e) {
  23325. return xe(e).toLowerCase();
  23326. }
  23327. function Dx(e) {
  23328. return xe(e).toUpperCase();
  23329. }
  23330. function Ix(e, C, K) {
  23331. if (e = xe(e), e && (K || C === T))
  23332. return Lh(e);
  23333. if (!e || !(C = di(C)))
  23334. return e;
  23335. var ot = Di(e), ut = Di(C), mt = _h(ot, ut), xt = Dh(ot, ut) + 1;
  23336. return Ar(ot, mt, xt).join("");
  23337. }
  23338. function Rx(e, C, K) {
  23339. if (e = xe(e), e && (K || C === T))
  23340. return e.slice(0, Rh(e) + 1);
  23341. if (!e || !(C = di(C)))
  23342. return e;
  23343. var ot = Di(e), ut = Dh(ot, Di(C)) + 1;
  23344. return Ar(ot, 0, ut).join("");
  23345. }
  23346. function Nx(e, C, K) {
  23347. if (e = xe(e), e && (K || C === T))
  23348. return e.replace(Jr, "");
  23349. if (!e || !(C = di(C)))
  23350. return e;
  23351. var ot = Di(e), ut = _h(ot, Di(C));
  23352. return Ar(ot, ut).join("");
  23353. }
  23354. function Bx(e, C) {
  23355. var K = p, ot = i;
  23356. if (Ie(C)) {
  23357. var ut = "separator" in C ? C.separator : ut;
  23358. K = "length" in C ? ne(C.length) : K, ot = "omission" in C ? di(C.omission) : ot;
  23359. }
  23360. e = xe(e);
  23361. var mt = e.length;
  23362. if (en(e)) {
  23363. var xt = Di(e);
  23364. mt = xt.length;
  23365. }
  23366. if (K >= mt)
  23367. return e;
  23368. var bt = K - rn(ot);
  23369. if (bt < 1)
  23370. return ot;
  23371. var Ct = xt ? Ar(xt, 0, bt).join("") : e.slice(0, bt);
  23372. if (ut === T)
  23373. return Ct + ot;
  23374. if (xt && (bt += Ct.length - bt), Fa(ut)) {
  23375. if (e.slice(bt).search(ut)) {
  23376. var It, Rt = Ct;
  23377. for (ut.global || (ut = aa(ut.source, xe(ue.exec(ut)) + "g")), ut.lastIndex = 0; It = ut.exec(Rt); )
  23378. var Bt = It.index;
  23379. Ct = Ct.slice(0, Bt === T ? bt : Bt);
  23380. }
  23381. } else if (e.indexOf(di(ut), bt) != bt) {
  23382. var Yt = Ct.lastIndexOf(ut);
  23383. Yt > -1 && (Ct = Ct.slice(0, Yt));
  23384. }
  23385. return Ct + ot;
  23386. }
  23387. function jx(e) {
  23388. return e = xe(e), e && zt.test(e) ? e.replace(Jt, df) : e;
  23389. }
  23390. var Wx = cn(function(e, C, K) {
  23391. return e + (K ? " " : "") + C.toUpperCase();
  23392. }), $a = Cc("toUpperCase");
  23393. function Sp(e, C, K) {
  23394. return e = xe(e), C = K ? T : C, C === T ? lf(e) ? mf(e) : qd(e) : e.match(C) || [];
  23395. }
  23396. var wp = ae(function(e, C) {
  23397. try {
  23398. return pi(e, T, C);
  23399. } catch (K) {
  23400. return Ha(K) ? K : new ee(K);
  23401. }
  23402. }), zx = ir(function(e, C) {
  23403. return bi(C, function(K) {
  23404. K = Fi(K), tr(e, K, Xa(e[K], e));
  23405. }), e;
  23406. });
  23407. function Yx(e) {
  23408. var C = e == null ? 0 : e.length, K = qt();
  23409. return e = C ? Ee(e, function(ot) {
  23410. if (typeof ot[1] != "function")
  23411. throw new Si(I);
  23412. return [K(ot[0]), ot[1]];
  23413. }) : [], ae(function(ot) {
  23414. for (var ut = -1; ++ut < C; ) {
  23415. var mt = e[ut];
  23416. if (pi(mt[0], this, ot))
  23417. return pi(mt[1], this, ot);
  23418. }
  23419. });
  23420. }
  23421. function Xx(e) {
  23422. return dg(Ci(e, R));
  23423. }
  23424. function Za(e) {
  23425. return function() {
  23426. return e;
  23427. };
  23428. }
  23429. function Gx(e, C) {
  23430. return e == null || e !== e ? C : e;
  23431. }
  23432. var Hx = kc(), Fx = kc(!0);
  23433. function li(e) {
  23434. return e;
  23435. }
  23436. function Ka(e) {
  23437. return ec(typeof e == "function" ? e : Ci(e, R));
  23438. }
  23439. function Ux(e) {
  23440. return rc(Ci(e, R));
  23441. }
  23442. function Vx(e, C) {
  23443. return nc(e, Ci(C, R));
  23444. }
  23445. var $x = ae(function(e, C) {
  23446. return function(K) {
  23447. return Yn(K, e, C);
  23448. };
  23449. }), Zx = ae(function(e, C) {
  23450. return function(K) {
  23451. return Yn(e, K, C);
  23452. };
  23453. });
  23454. function Ja(e, C, K) {
  23455. var ot = He(C), ut = jo(C, ot);
  23456. K == null && !(Ie(C) && (ut.length || !ot.length)) && (K = C, C = e, e = this, ut = jo(C, He(C)));
  23457. var mt = !(Ie(K) && "chain" in K) || !!K.chain, xt = nr(e);
  23458. return bi(ut, function(bt) {
  23459. var Ct = C[bt];
  23460. e[bt] = Ct, xt && (e.prototype[bt] = function() {
  23461. var It = this.__chain__;
  23462. if (mt || It) {
  23463. var Rt = e(this.__wrapped__), Bt = Rt.__actions__ = oi(this.__actions__);
  23464. return Bt.push({ func: Ct, args: arguments, thisArg: e }), Rt.__chain__ = It, Rt;
  23465. }
  23466. return Ct.apply(e, br([this.value()], arguments));
  23467. });
  23468. }), e;
  23469. }
  23470. function Kx() {
  23471. return Ue._ === this && (Ue._ = wf), this;
  23472. }
  23473. function qa() {
  23474. }
  23475. function Jx(e) {
  23476. return e = ne(e), ae(function(C) {
  23477. return oc(C, e);
  23478. });
  23479. }
  23480. var qx = Ea(Ee), Qx = Ea(Ah), t0 = Ea(ta);
  23481. function Cp(e) {
  23482. return Na(e) ? ea(Fi(e)) : Og(e);
  23483. }
  23484. function e0(e) {
  23485. return function(C) {
  23486. return e == null ? T : zr(e, C);
  23487. };
  23488. }
  23489. var i0 = Tc(), r0 = Tc(!0);
  23490. function Qa() {
  23491. return [];
  23492. }
  23493. function tl() {
  23494. return !1;
  23495. }
  23496. function n0() {
  23497. return {};
  23498. }
  23499. function o0() {
  23500. return "";
  23501. }
  23502. function s0() {
  23503. return !0;
  23504. }
  23505. function a0(e, C) {
  23506. if (e = ne(e), e < 1 || e > _)
  23507. return [];
  23508. var K = P, ot = Ze(e, P);
  23509. C = qt(C), e -= P;
  23510. for (var ut = na(ot, C); ++K < e; )
  23511. C(K);
  23512. return ut;
  23513. }
  23514. function l0(e) {
  23515. return ie(e) ? Ee(e, Fi) : fi(e) ? [e] : oi(Gc(xe(e)));
  23516. }
  23517. function h0(e) {
  23518. var C = ++bf;
  23519. return xe(e) + C;
  23520. }
  23521. var c0 = Ho(function(e, C) {
  23522. return e + C;
  23523. }, 0), p0 = Oa("ceil"), u0 = Ho(function(e, C) {
  23524. return e / C;
  23525. }, 1), d0 = Oa("floor");
  23526. function f0(e) {
  23527. return e && e.length ? Bo(e, li, ga) : T;
  23528. }
  23529. function g0(e, C) {
  23530. return e && e.length ? Bo(e, qt(C, 2), ga) : T;
  23531. }
  23532. function m0(e) {
  23533. return Eh(e, li);
  23534. }
  23535. function y0(e, C) {
  23536. return Eh(e, qt(C, 2));
  23537. }
  23538. function v0(e) {
  23539. return e && e.length ? Bo(e, li, xa) : T;
  23540. }
  23541. function x0(e, C) {
  23542. return e && e.length ? Bo(e, qt(C, 2), xa) : T;
  23543. }
  23544. var b0 = Ho(function(e, C) {
  23545. return e * C;
  23546. }, 1), S0 = Oa("round"), w0 = Ho(function(e, C) {
  23547. return e - C;
  23548. }, 0);
  23549. function C0(e) {
  23550. return e && e.length ? ra(e, li) : 0;
  23551. }
  23552. function M0(e, C) {
  23553. return e && e.length ? ra(e, qt(C, 2)) : 0;
  23554. }
  23555. return ft.after = Uy, ft.ary = tp, ft.assign = Dv, ft.assignIn = fp, ft.assignInWith = rs, ft.assignWith = Iv, ft.at = Rv, ft.before = ep, ft.bind = Xa, ft.bindAll = zx, ft.bindKey = ip, ft.castArray = nv, ft.chain = Jc, ft.chunk = dm, ft.compact = fm, ft.concat = gm, ft.cond = Yx, ft.conforms = Xx, ft.constant = Za, ft.countBy = Cy, ft.create = Nv, ft.curry = rp, ft.curryRight = np, ft.debounce = op, ft.defaults = Bv, ft.defaultsDeep = jv, ft.defer = Vy, ft.delay = $y, ft.difference = mm, ft.differenceBy = ym, ft.differenceWith = vm, ft.drop = xm, ft.dropRight = bm, ft.dropRightWhile = Sm, ft.dropWhile = wm, ft.fill = Cm, ft.filter = ky, ft.flatMap = Py, ft.flatMapDeep = Ey, ft.flatMapDepth = Oy, ft.flatten = Vc, ft.flattenDeep = Mm, ft.flattenDepth = km, ft.flip = Zy, ft.flow = Hx, ft.flowRight = Fx, ft.fromPairs = Am, ft.functions = Fv, ft.functionsIn = Uv, ft.groupBy = Ly, ft.initial = Pm, ft.intersection = Em, ft.intersectionBy = Om, ft.intersectionWith = Lm, ft.invert = $v, ft.invertBy = Zv, ft.invokeMap = Dy, ft.iteratee = Ka, ft.keyBy = Iy, ft.keys = He, ft.keysIn = ai, ft.map = Jo, ft.mapKeys = Jv, ft.mapValues = qv, ft.matches = Ux, ft.matchesProperty = Vx, ft.memoize = Qo, ft.merge = Qv, ft.mergeWith = gp, ft.method = $x, ft.methodOf = Zx, ft.mixin = Ja, ft.negate = ts, ft.nthArg = Jx, ft.omit = tx, ft.omitBy = ex, ft.once = Ky, ft.orderBy = Ry, ft.over = qx, ft.overArgs = Jy, ft.overEvery = Qx, ft.overSome = t0, ft.partial = Ga, ft.partialRight = sp, ft.partition = Ny, ft.pick = ix, ft.pickBy = mp, ft.property = Cp, ft.propertyOf = e0, ft.pull = Rm, ft.pullAll = Zc, ft.pullAllBy = Nm, ft.pullAllWith = Bm, ft.pullAt = jm, ft.range = i0, ft.rangeRight = r0, ft.rearg = qy, ft.reject = Wy, ft.remove = Wm, ft.rest = Qy, ft.reverse = za, ft.sampleSize = Yy, ft.set = nx, ft.setWith = ox, ft.shuffle = Xy, ft.slice = zm, ft.sortBy = Fy, ft.sortedUniq = Vm, ft.sortedUniqBy = $m, ft.split = Px, ft.spread = tv, ft.tail = Zm, ft.take = Km, ft.takeRight = Jm, ft.takeRightWhile = qm, ft.takeWhile = Qm, ft.tap = fy, ft.throttle = ev, ft.thru = Ko, ft.toArray = pp, ft.toPairs = yp, ft.toPairsIn = vp, ft.toPath = l0, ft.toPlainObject = dp, ft.transform = sx, ft.unary = iv, ft.union = ty, ft.unionBy = ey, ft.unionWith = iy, ft.uniq = ry, ft.uniqBy = ny, ft.uniqWith = oy, ft.unset = ax, ft.unzip = Ya, ft.unzipWith = Kc, ft.update = lx, ft.updateWith = hx, ft.values = dn, ft.valuesIn = cx, ft.without = sy, ft.words = Sp, ft.wrap = rv, ft.xor = ay, ft.xorBy = ly, ft.xorWith = hy, ft.zip = cy, ft.zipObject = py, ft.zipObjectDeep = uy, ft.zipWith = dy, ft.entries = yp, ft.entriesIn = vp, ft.extend = fp, ft.extendWith = rs, Ja(ft, ft), ft.add = c0, ft.attempt = wp, ft.camelCase = fx, ft.capitalize = xp, ft.ceil = p0, ft.clamp = px, ft.clone = ov, ft.cloneDeep = av, ft.cloneDeepWith = lv, ft.cloneWith = sv, ft.conformsTo = hv, ft.deburr = bp, ft.defaultTo = Gx, ft.divide = u0, ft.endsWith = gx, ft.eq = Ri, ft.escape = mx, ft.escapeRegExp = yx, ft.every = My, ft.find = Ay, ft.findIndex = Fc, ft.findKey = Wv, ft.findLast = Ty, ft.findLastIndex = Uc, ft.findLastKey = zv, ft.floor = d0, ft.forEach = qc, ft.forEachRight = Qc, ft.forIn = Yv, ft.forInRight = Xv, ft.forOwn = Gv, ft.forOwnRight = Hv, ft.get = Ua, ft.gt = cv, ft.gte = pv, ft.has = Vv, ft.hasIn = Va, ft.head = $c, ft.identity = li, ft.includes = _y, ft.indexOf = Tm, ft.inRange = ux, ft.invoke = Kv, ft.isArguments = Gr, ft.isArray = ie, ft.isArrayBuffer = uv, ft.isArrayLike = si, ft.isArrayLikeObject = Be, ft.isBoolean = dv, ft.isBuffer = Tr, ft.isDate = fv, ft.isElement = gv, ft.isEmpty = mv, ft.isEqual = yv, ft.isEqualWith = vv, ft.isError = Ha, ft.isFinite = xv, ft.isFunction = nr, ft.isInteger = ap, ft.isLength = es, ft.isMap = lp, ft.isMatch = bv, ft.isMatchWith = Sv, ft.isNaN = wv, ft.isNative = Cv, ft.isNil = kv, ft.isNull = Mv, ft.isNumber = hp, ft.isObject = Ie, ft.isObjectLike = Ne, ft.isPlainObject = Vn, ft.isRegExp = Fa, ft.isSafeInteger = Av, ft.isSet = cp, ft.isString = is, ft.isSymbol = fi, ft.isTypedArray = un, ft.isUndefined = Tv, ft.isWeakMap = Pv, ft.isWeakSet = Ev, ft.join = _m, ft.kebabCase = vx, ft.last = ki, ft.lastIndexOf = Dm, ft.lowerCase = xx, ft.lowerFirst = bx, ft.lt = Ov, ft.lte = Lv, ft.max = f0, ft.maxBy = g0, ft.mean = m0, ft.meanBy = y0, ft.min = v0, ft.minBy = x0, ft.stubArray = Qa, ft.stubFalse = tl, ft.stubObject = n0, ft.stubString = o0, ft.stubTrue = s0, ft.multiply = b0, ft.nth = Im, ft.noConflict = Kx, ft.noop = qa, ft.now = qo, ft.pad = Sx, ft.padEnd = wx, ft.padStart = Cx, ft.parseInt = Mx, ft.random = dx, ft.reduce = By, ft.reduceRight = jy, ft.repeat = kx, ft.replace = Ax, ft.result = rx, ft.round = S0, ft.runInContext = wt, ft.sample = zy, ft.size = Gy, ft.snakeCase = Tx, ft.some = Hy, ft.sortedIndex = Ym, ft.sortedIndexBy = Xm, ft.sortedIndexOf = Gm, ft.sortedLastIndex = Hm, ft.sortedLastIndexBy = Fm, ft.sortedLastIndexOf = Um, ft.startCase = Ex, ft.startsWith = Ox, ft.subtract = w0, ft.sum = C0, ft.sumBy = M0, ft.template = Lx, ft.times = a0, ft.toFinite = or, ft.toInteger = ne, ft.toLength = up, ft.toLower = _x, ft.toNumber = Ai, ft.toSafeInteger = _v, ft.toString = xe, ft.toUpper = Dx, ft.trim = Ix, ft.trimEnd = Rx, ft.trimStart = Nx, ft.truncate = Bx, ft.unescape = jx, ft.uniqueId = h0, ft.upperCase = Wx, ft.upperFirst = $a, ft.each = qc, ft.eachRight = Qc, ft.first = $c, Ja(ft, function() {
  23556. var e = {};
  23557. return Gi(ft, function(C, K) {
  23558. Se.call(ft.prototype, K) || (e[K] = C);
  23559. }), e;
  23560. }(), { chain: !1 }), ft.VERSION = l, bi(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(e) {
  23561. ft[e].placeholder = ft;
  23562. }), bi(["drop", "take"], function(e, C) {
  23563. ce.prototype[e] = function(K) {
  23564. K = K === T ? 1 : Ye(ne(K), 0);
  23565. var ot = this.__filtered__ && !C ? new ce(this) : this.clone();
  23566. return ot.__filtered__ ? ot.__takeCount__ = Ze(K, ot.__takeCount__) : ot.__views__.push({
  23567. size: Ze(K, P),
  23568. type: e + (ot.__dir__ < 0 ? "Right" : "")
  23569. }), ot;
  23570. }, ce.prototype[e + "Right"] = function(K) {
  23571. return this.reverse()[e](K).reverse();
  23572. };
  23573. }), bi(["filter", "map", "takeWhile"], function(e, C) {
  23574. var K = C + 1, ot = K == t || K == n;
  23575. ce.prototype[e] = function(ut) {
  23576. var mt = this.clone();
  23577. return mt.__iteratees__.push({
  23578. iteratee: qt(ut, 3),
  23579. type: K
  23580. }), mt.__filtered__ = mt.__filtered__ || ot, mt;
  23581. };
  23582. }), bi(["head", "last"], function(e, C) {
  23583. var K = "take" + (C ? "Right" : "");
  23584. ce.prototype[e] = function() {
  23585. return this[K](1).value()[0];
  23586. };
  23587. }), bi(["initial", "tail"], function(e, C) {
  23588. var K = "drop" + (C ? "" : "Right");
  23589. ce.prototype[e] = function() {
  23590. return this.__filtered__ ? new ce(this) : this[K](1);
  23591. };
  23592. }), ce.prototype.compact = function() {
  23593. return this.filter(li);
  23594. }, ce.prototype.find = function(e) {
  23595. return this.filter(e).head();
  23596. }, ce.prototype.findLast = function(e) {
  23597. return this.reverse().find(e);
  23598. }, ce.prototype.invokeMap = ae(function(e, C) {
  23599. return typeof e == "function" ? new ce(this) : this.map(function(K) {
  23600. return Yn(K, e, C);
  23601. });
  23602. }), ce.prototype.reject = function(e) {
  23603. return this.filter(ts(qt(e)));
  23604. }, ce.prototype.slice = function(e, C) {
  23605. e = ne(e);
  23606. var K = this;
  23607. return K.__filtered__ && (e > 0 || C < 0) ? new ce(K) : (e < 0 ? K = K.takeRight(-e) : e && (K = K.drop(e)), C !== T && (C = ne(C), K = C < 0 ? K.dropRight(-C) : K.take(C - e)), K);
  23608. }, ce.prototype.takeRightWhile = function(e) {
  23609. return this.reverse().takeWhile(e).reverse();
  23610. }, ce.prototype.toArray = function() {
  23611. return this.take(P);
  23612. }, Gi(ce.prototype, function(e, C) {
  23613. var K = /^(?:filter|find|map|reject)|While$/.test(C), ot = /^(?:head|last)$/.test(C), ut = ft[ot ? "take" + (C == "last" ? "Right" : "") : C], mt = ot || /^find/.test(C);
  23614. ut && (ft.prototype[C] = function() {
  23615. var xt = this.__wrapped__, bt = ot ? [1] : arguments, Ct = xt instanceof ce, It = bt[0], Rt = Ct || ie(xt), Bt = function(he) {
  23616. var pe = ut.apply(ft, br([he], bt));
  23617. return ot && Yt ? pe[0] : pe;
  23618. };
  23619. Rt && K && typeof It == "function" && It.length != 1 && (Ct = Rt = !1);
  23620. var Yt = this.__chain__, Ut = !!this.__actions__.length, Qt = mt && !Yt, se = Ct && !Ut;
  23621. if (!mt && Rt) {
  23622. xt = se ? xt : new ce(this);
  23623. var te = e.apply(xt, bt);
  23624. return te.__actions__.push({ func: Ko, args: [Bt], thisArg: T }), new wi(te, Yt);
  23625. }
  23626. return Qt && se ? e.apply(this, bt) : (te = this.thru(Bt), Qt ? ot ? te.value()[0] : te.value() : te);
  23627. });
  23628. }), bi(["pop", "push", "shift", "sort", "splice", "unshift"], function(e) {
  23629. var C = wo[e], K = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", ot = /^(?:pop|shift)$/.test(e);
  23630. ft.prototype[e] = function() {
  23631. var ut = arguments;
  23632. if (ot && !this.__chain__) {
  23633. var mt = this.value();
  23634. return C.apply(ie(mt) ? mt : [], ut);
  23635. }
  23636. return this[K](function(xt) {
  23637. return C.apply(ie(xt) ? xt : [], ut);
  23638. });
  23639. };
  23640. }), Gi(ce.prototype, function(e, C) {
  23641. var K = ft[C];
  23642. if (K) {
  23643. var ot = K.name + "";
  23644. Se.call(an, ot) || (an[ot] = []), an[ot].push({ name: C, func: K });
  23645. }
  23646. }), an[Go(T, E).name] = [{
  23647. name: "wrapper",
  23648. func: T
  23649. }], ce.prototype.clone = jf, ce.prototype.reverse = Wf, ce.prototype.value = zf, ft.prototype.at = gy, ft.prototype.chain = my, ft.prototype.commit = yy, ft.prototype.next = vy, ft.prototype.plant = by, ft.prototype.reverse = Sy, ft.prototype.toJSON = ft.prototype.valueOf = ft.prototype.value = wy, ft.prototype.first = ft.prototype.head, In && (ft.prototype[In] = xy), ft;
  23650. }, nn = yf();
  23651. Rr ? ((Rr.exports = nn)._ = nn, Ks._ = nn) : Ue._ = nn;
  23652. }).call(Fr);
  23653. })(Cs, Cs.exports);
  23654. var Ww = Cs.exports;
  23655. const no = /* @__PURE__ */ Mn(Ww);
  23656. j0($r);
  23657. R0($r);
  23658. D0($r);
  23659. B0($r);
  23660. let cs = null, _e = Le(null), Fe = Le("zh"), al = Le(""), re = Le(null);
  23661. const kt = k0({
  23662. //极值数据
  23663. leftIndex: -1,
  23664. //左侧上下限对应下标
  23665. rightIndex: -1,
  23666. //右侧上下限对应下标
  23667. rightTwoIndex: -1,
  23668. //右2上下限对应下标
  23669. hasLeftAxis: !1,
  23670. hasRightAxis: !1,
  23671. hasRightTwoAxis: !1,
  23672. hasXAxis: !1,
  23673. leftMin: 0,
  23674. leftMax: 0,
  23675. rightMin: 0,
  23676. rightMax: 0,
  23677. rightTwoMin: 0,
  23678. rightTwoMax: 0,
  23679. xMin: 0,
  23680. xMax: 0
  23681. });
  23682. let ci = !1, Yu = Le(!1);
  23683. const Fl = Le(document.body.clientWidth < 1200 ? "phone" : "pc");
  23684. function zw() {
  23685. return {
  23686. options: re,
  23687. axisLimitState: kt,
  23688. chartRender: Yw,
  23689. setLimitData: lC,
  23690. isUseSelfLimit: Yu
  23691. };
  23692. }
  23693. function Yw({ data: r, renderId: d, lang: T = "zh", changeLangIsCheck: l, showChartTitle: y = !0, shouldUseSelfLimit: j = !1 }) {
  23694. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1, kt.hasLeftAxis = !1, kt.hasRightAxis = !1, kt.hasRightTwoAxis = !1, kt.hasXAxis = !1, Yu.value || (kt.leftMin = 0, kt.leftMax = 0, kt.rightMin = 0, kt.rightMax = 0, kt.rightTwoMin = 0, kt.rightTwoMax = 0, kt.xMin = 0, kt.xMax = 0);
  23695. let I = {};
  23696. Fe.value = T, al.value = d, _e.value = r, ci = j, [1, 11, 12].includes(r.ChartInfo.Source) ? I = {
  23697. 1: Lp,
  23698. 2: Zw,
  23699. 3: hl,
  23700. 4: hl,
  23701. 5: Kw,
  23702. 6: hl,
  23703. 7: Qw,
  23704. 10: nC,
  23705. 11: sC,
  23706. 14: Vw
  23707. }[r.ChartInfo.ChartType](r) : [2, 5].includes(r.ChartInfo.Source) ? I = iC(r) : [3].includes(r.ChartInfo.Source) ? I = rC(r) : [4, 6, 7, 8].includes(r.ChartInfo.Source) ? I = Lp(r) : [9].includes(r.ChartInfo.Source) ? I = $w(r) : r.ChartInfo.Source === 10 && (kt.hasLeftAxis = !0, kt.leftMin = r.ChartInfo.LeftMin ? Number(r.ChartInfo.LeftMin) : Number(r.DataResp.YMinValue), kt.leftMax = r.ChartInfo.LeftMax ? Number(r.ChartInfo.LeftMax) : Number(r.DataResp.YMaxValue), kt.hasXAxis = !0, kt.xMin = r.ChartInfo.XMin ? Number(r.ChartInfo.XMin) : Number(r.DataResp.XMinValue), kt.xMax = r.ChartInfo.XMax ? Number(r.ChartInfo.XMax) : Number(r.DataResp.XMaxValue), I = oC(r));
  23708. let Z = Xw();
  23709. return re.value = { ...ms, ...Z, ...I }, Uw(y), Fw(l), $r.setOptions({ global: { useUTC: r.ChartInfo.ChartType == 2 } }), (I.series ? I.series.some((U) => U.chartType === "linear") : !1) ? cs = $r.chart(al.value, re.value) : cs = $r.stockChart(al.value, re.value), cs;
  23710. }
  23711. function Xw() {
  23712. if (!_e.value.ChartInfo.ChartThemeStyle)
  23713. return {};
  23714. let r = JSON.parse(_e.value.ChartInfo.ChartThemeStyle);
  23715. return {
  23716. legend: {
  23717. ...ms.legend,
  23718. ...r.legendOptions
  23719. },
  23720. chart: {
  23721. ...ms.chart,
  23722. ...r.drawOption
  23723. },
  23724. colors: r.colorsOptions
  23725. };
  23726. }
  23727. function Ei(r, d) {
  23728. const { MarkersLines: T, ChartType: l } = _e.value.ChartInfo, { EdbInfoList: y } = _e.value;
  23729. return T ? JSON.parse(T).filter((H) => H.isShow && H.axis === r).map((H) => {
  23730. let U = r === 3 && d === "datetime", F;
  23731. if (U) {
  23732. let R = l === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23733. F = l === 2 ? (/* @__PURE__ */ new Date(`${R}-${H.value}`)).getTime() : new Date(H.value).getTime();
  23734. } else
  23735. F = Number(H.value);
  23736. return {
  23737. value: F,
  23738. dashStyle: H.dashStyle,
  23739. width: Number(H.lineWidth),
  23740. color: H.color,
  23741. label: {
  23742. text: H.text || "",
  23743. verticalAlign: H.textPosition,
  23744. style: {
  23745. color: H.textColor,
  23746. fontSize: H.textFontSize
  23747. }
  23748. }
  23749. };
  23750. }) : [];
  23751. }
  23752. function Oi(r, d) {
  23753. const { MarkersAreas: T, ChartType: l } = _e.value.ChartInfo, { EdbInfoList: y } = _e.value;
  23754. return T ? JSON.parse(T).filter((H) => H.isShow && H.axis === r).map((H) => {
  23755. let U = r === 3 && d === "datetime", F, R;
  23756. if (U) {
  23757. let b = l === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23758. F = l === 2 ? (/* @__PURE__ */ new Date(`${b}-${H.fromValue}`)).getTime() : new Date(H.fromValue).getTime(), R = l === 2 ? (/* @__PURE__ */ new Date(`${b}-${H.toValue}`)).getTime() : new Date(H.toValue).getTime();
  23759. } else
  23760. F = Number(H.fromValue), R = Number(H.toValue);
  23761. let N = {
  23762. top: 12,
  23763. middle: 0,
  23764. bottom: -10
  23765. };
  23766. return {
  23767. from: F,
  23768. to: R,
  23769. color: H.color,
  23770. label: {
  23771. text: H.text || "",
  23772. verticalAlign: H.textPosition,
  23773. y: N[H.textPosition],
  23774. style: {
  23775. color: H.textColor,
  23776. fontSize: H.textFontSize
  23777. }
  23778. }
  23779. };
  23780. }) : [];
  23781. }
  23782. function Xu({ LatestDate: r, PredictChartColor: d }) {
  23783. return {
  23784. zoneAxis: "x",
  23785. zones: [{
  23786. value: new Date(r).getTime() + 1
  23787. }, {
  23788. dashStyle: "ShortDot",
  23789. color: d
  23790. }]
  23791. };
  23792. }
  23793. function Gw(r) {
  23794. return r ? {
  23795. zoneAxis: "x",
  23796. zones: [{
  23797. value: new Date(r).getTime() + 1
  23798. }, {
  23799. dashStyle: "ShortDot"
  23800. }]
  23801. } : {};
  23802. }
  23803. function Gu(r, d, T) {
  23804. let l = Xt(d).diff(Xt(r), "years", !0);
  23805. return !!([5, 6].includes(T) && l <= 1);
  23806. }
  23807. function ll(r, d) {
  23808. const { IsAxis: T, IsOrder: l, EdbInfoType: y, LeadValue: j, LeadUnit: I } = r, Z = d == "zh" ? {
  23809. 0: "右轴",
  23810. 2: "右2轴"
  23811. } : {
  23812. 0: "RHS",
  23813. 2: "2-RHS"
  23814. }, H = d == "zh" ? {
  23815. 1: "逆序"
  23816. } : {
  23817. 1: "REV"
  23818. }, U = d == "zh" ? {
  23819. 0: "领先"
  23820. } : {
  23821. 0: "Lead"
  23822. }, F = d === "zh" ? I : E0[I];
  23823. let R = Z[T] || "", N = H[Number(l)] ? `${R ? "," : ""}${H[Number(l)]}` : "", b = U[y] ? `${R || N ? "," : ""}${U[y]}${j}${F}` : "";
  23824. return R || N || b ? `(${R}${N}${b})` : "";
  23825. }
  23826. function Ms(r, d, T = "zh") {
  23827. let l = "";
  23828. const y = r.EdbNameEn ? `${r.EdbNameEn}${ll(r, "en")}` : "", j = d.length > 1 ? `${r.EdbAliasName || r.EdbName}(${r.SourceName})${ll(r, "zh")}` : `${r.EdbAliasName || r.EdbName}${ll(r, "zh")}`;
  23829. if (l = T == "zh" ? j : y || j, l.length > 20) {
  23830. let I = [];
  23831. for (let Z = 0; Z < l.length / 20; Z++)
  23832. I.push(l.slice(Z * 20, Z * 20 + 20));
  23833. l = I.join("<br>");
  23834. }
  23835. return l;
  23836. }
  23837. function Ul(r) {
  23838. let d = r.filter((y) => y.IsAxis === 1), T = r.filter((y) => !y.IsAxis), l = r.filter((y) => y.IsAxis === 2);
  23839. return [d, T, l].flat(1 / 0);
  23840. }
  23841. function Hw() {
  23842. let r = !0;
  23843. return _e.value.ChartInfo.ChartNameEn || (r = !1), _e.value.EdbInfoList.forEach((d) => {
  23844. d.EdbNameEn || (r = !1), _e.value.ChartInfo.ChartType !== 10 && d.Unit && !d.UnitEn && (r = !1);
  23845. }), r;
  23846. }
  23847. function Fw(r) {
  23848. if (r && !Hw())
  23849. return;
  23850. const { ChartType: d, Source: T } = _e.value.ChartInfo;
  23851. T == 1 && (d == 5 ? (re.value.yAxis.title.text = Fe.value == "zh" ? re.value.yAxis.title.textZh : re.value.yAxis.title.textEn, re.value.xAxis.title.text = Fe.value == "zh" ? re.value.xAxis.title.textZh : re.value.xAxis.title.textEn, re.value.series.forEach((l) => {
  23852. l.name = Fe.value == "zh" ? l.nameZh : l.nameEn;
  23853. }), re.value.tooltip.formatter = Fe.value == "zh" ? re.value.tooltip.formatterZh : re.value.tooltip.formatterEn) : (re.value.yAxis.forEach((l) => {
  23854. l.title.text = Fe.value == "zh" ? l.title.textZh : l.title.textEn;
  23855. }), d != 2 && re.value.series.forEach((l) => {
  23856. l.name = Fe.value == "zh" ? l.nameZh : l.nameEn != "无英文名称" ? l.nameEn : `<span style="color:#999">${l.nameEn}</span>`;
  23857. }), d === 10 && (re.value.xAxis.title.text = Fe.value == "zh" ? re.value.xAxis.title.textZh : re.value.xAxis.title.textEn, re.value.tooltip.formatter = Fe.value == "zh" ? re.value.tooltip.formatterCh : re.value.tooltip.formatterEn, re.value.series.forEach((l) => {
  23858. l.linkedTo || l.data.forEach((y) => {
  23859. y.dataLabels.format = Fe.value == "zh" ? y.dataLabels.formatZh : y.dataLabels.formatEn || "无英文标签", y.dataLabels.color = Fe.value === "en" && !y.dataLabels.formatEn ? "#999" : "#333";
  23860. });
  23861. })), [7, 11].includes(d) && (re.value.xAxis.categories = _e.value.XEdbIdValue.map((l) => Fe.value == "zh" ? _e.value.EdbInfoList.find((y) => y.EdbInfoId === l).EdbAliasName || _e.value.EdbInfoList.find((y) => y.EdbInfoId === l).EdbName : _e.value.EdbInfoList.find((y) => y.EdbInfoId === l).EdbNameEn)))), [2, 3, 4].includes(T) && (re.value.yAxis.forEach((l) => {
  23862. l.title.text = Fe.value == "zh" ? l.title.textZh : l.title.textEn || l.title.textZh;
  23863. }), re.value.series.forEach((l) => {
  23864. l.name = Fe.value == "en" && l.nameEn || l.nameZh;
  23865. }), re.value.tooltip.formatter = Fe.value == "en" ? re.value.tooltip.formatterEn : re.value.tooltip.formatterZh, T == 2 && (re.value.xAxis.categories = Vr.value.filter((l) => l.IsHide === 0).map((l) => Fe.value == "en" ? l.NameEn : l.Name)), [3].includes(T) && (re.value.xAxis.title.text = Fe.value == "en" && re.value.xAxis.title.textEn || re.value.xAxis.title.textZh));
  23866. }
  23867. function Uw(r) {
  23868. if (r) {
  23869. const d = _e.value.ChartInfo;
  23870. re.value.title.textZh = d.ChartName, re.value.title.textEn = d.ChartNameEn, re.value.title.text = Fe.value == "zh" ? re.value.title.textZh : re.value.title.textEn || re.value.title.textZh;
  23871. } else
  23872. re.value.title.text = "";
  23873. }
  23874. function Vw(r) {
  23875. const d = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null, { XDataList: T, UnitList: l, SeriesList: y, IsHeap: j } = r.DataResp;
  23876. kt.leftIndex = y.findIndex((R) => R.IsAxis === 1), kt.rightIndex = y.findIndex((R) => !R.IsAxis), kt.rightTwoIndex = y.findIndex((R) => R.IsAxis === 2), kt.leftIndex != -1 && (kt.hasLeftAxis = !0), kt.rightIndex != -1 && (kt.hasRightAxis = !0), kt.rightTwoIndex != -1 && (kt.hasRightTwoAxis = !0);
  23877. const I = {
  23878. categories: T.map((R) => this.currentLang == "en" ? R.NameEn : R.Name),
  23879. tickWidth: 1,
  23880. labels: {
  23881. style: {
  23882. ...d && d.xAxisOptions.style
  23883. }
  23884. },
  23885. plotBands: Oi(3),
  23886. plotLines: Ei(3)
  23887. };
  23888. let Z = [], H = [];
  23889. const U = y.some((R) => R.IsAxis === 2) ? Ul(y) : no.cloneDeep(y);
  23890. return U.forEach((R, N) => {
  23891. const b = U.findIndex(
  23892. (v) => v.IsAxis === R.IsAxis
  23893. ), x = {
  23894. 1: ["LeftName", "LeftNameEn"],
  23895. 0: ["RightName", "RightNameEn"],
  23896. 2: ["RightTwoName", "RightTwoNameEn"]
  23897. };
  23898. let u = 0, f = 0;
  23899. const E = {
  23900. 0: ["rightMin", "rightMax"],
  23901. 1: ["leftMin", "leftMax"],
  23902. 2: ["rightTwoMin", "rightTwoMax"]
  23903. };
  23904. E[R.IsAxis] && (u = kt[`${E[R.IsAxis][0]}`] || 0, f = kt[`${E[R.IsAxis][1]}`] || 0);
  23905. let O = {
  23906. ...mr,
  23907. title: {
  23908. text: l[x[R.IsAxis][0]],
  23909. textCh: l[x[R.IsAxis][0]],
  23910. // 中文
  23911. // 中文不存在,无论英文有无都显示空
  23912. textEn: l[x[R.IsAxis][0]] ? l[x[R.IsAxis][1]] : "",
  23913. // 英文
  23914. style: {
  23915. ...d && d.yAxisOptions.style
  23916. },
  23917. align: "high",
  23918. rotation: 0,
  23919. y: -12,
  23920. // x: (item.IsAxis===0 && this.rightTwoIndex>-1) ? -chartData[this.rightTwoIndex].Unit.length*12 : 0,
  23921. textAlign: R.IsAxis === 1 ? "left" : "right",
  23922. reserveSpace: !1
  23923. },
  23924. labels: {
  23925. formatter: function(v) {
  23926. return v.value;
  23927. },
  23928. align: "center",
  23929. x: [0, 2].includes(R.IsAxis) ? 5 : -5,
  23930. style: {
  23931. ...d && d.yAxisOptions.style
  23932. }
  23933. },
  23934. opposite: [0, 2].includes(R.IsAxis),
  23935. min: Number(u),
  23936. max: Number(f),
  23937. tickWidth: 1,
  23938. visible: b === N,
  23939. plotBands: Oi(R.IsAxis),
  23940. plotLines: Ei(R.IsAxis)
  23941. }, B = N;
  23942. j == 1 && (B = 0);
  23943. let M = R.DataList || [];
  23944. M.forEach((v, a) => {
  23945. R.NoDataEdbIndex.includes(a) && (M[a] = null);
  23946. });
  23947. const S = d ? N % d.lineOptionList.length : N;
  23948. let w = {
  23949. data: M,
  23950. type: R.ChartStyle || "",
  23951. dashStyle: d && d.lineOptionList[S].dashStyle || "Solid",
  23952. chartType: "linear",
  23953. yAxis: B,
  23954. name: R.SeriesName,
  23955. nameZh: R.SeriesName,
  23956. nameEn: R.SeriesNameEn,
  23957. unitName: l[x[R.IsAxis][0]],
  23958. unitNameCh: l[x[R.IsAxis][0]],
  23959. unitNameEn: l[x[R.IsAxis][0]] ? l[x[R.IsAxis][1]] : "",
  23960. color: R.ChartColor,
  23961. lineWidth: Number(R.ChartWidth) || d && d.lineOptionList[S].lineWidth,
  23962. borderWidth: 1,
  23963. borderColor: R.ChartColor,
  23964. marker: {
  23965. //展示数据点
  23966. enabled: !!(R.ChartStyle != "column" && R.IsPoint),
  23967. radius: d && d.lineOptionList[S].radius || 5
  23968. },
  23969. dataLabels: {
  23970. //展示数值
  23971. enabled: !!R.IsNumber,
  23972. align: R.ChartStyle == "column" ? "center" : void 0,
  23973. y: R.ChartStyle == "column" ? -20 : 0,
  23974. inside: R.ChartStyle == "column" ? !1 : void 0,
  23975. crop: R.ChartStyle != "column"
  23976. },
  23977. stacking: j == 1 ? "normal" : void 0,
  23978. zIndex: ["line", "spline"].includes(R.ChartStyle) ? 1 : 0
  23979. //防止组合图曲线被遮住
  23980. };
  23981. Z.push(O), H.push(w);
  23982. }), {
  23983. title: {
  23984. text: ""
  23985. },
  23986. tooltip: {
  23987. formatter: function() {
  23988. let R = `<b>${this.points[0].x}</b>`;
  23989. return this.points.forEach((N) => {
  23990. const b = H.find((x) => x.name === N.series.name);
  23991. R = R + `<br><span style="color:${N.color}">●</span>${b.name}:${N.y} ${b.unitNameCh}`;
  23992. }), R;
  23993. },
  23994. formatterCh: function() {
  23995. let R = `<b>${this.points[0].x}</b>`;
  23996. return this.points.forEach((N) => {
  23997. const b = H.find((x) => x.name === N.series.name);
  23998. R = R + `<br><span style="color:${N.color}">●</span>${b.nameCh}:${N.y} ${b.unitNameCh}`;
  23999. }), R;
  24000. },
  24001. formatterEn: function() {
  24002. let R = `<b>${this.points[0].x}</b>`;
  24003. return this.points.forEach((N) => {
  24004. const b = H.find((x) => x.name === N.series.name);
  24005. R = R + `<br><span style="color:${N.color}">●</span>${b.nameEn}:${N.y} ${b.unitNameEn}`;
  24006. }), R;
  24007. },
  24008. shared: !0
  24009. },
  24010. series: H,
  24011. yAxis: Z,
  24012. xAxis: I
  24013. };
  24014. }
  24015. function $w(r) {
  24016. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24017. const d = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null, { DataList: T, LeftMaxValue: l, LeftMinValue: y, RightMaxValue: j, RightMinValue: I } = r.DataResp, Z = {
  24018. ...Cn,
  24019. tickWidth: 1,
  24020. labels: {
  24021. style: {
  24022. ...d && d.xAxisOptions.style
  24023. }
  24024. }
  24025. };
  24026. let H = [], U = [];
  24027. return T.forEach((R, N) => {
  24028. let b = {
  24029. ...mr,
  24030. title: {
  24031. text: R.Unit,
  24032. textCh: R.Unit,
  24033. // 中文
  24034. textEn: R.UnitEn || R.Unit,
  24035. align: "high",
  24036. rotation: 0,
  24037. y: -15,
  24038. reserveSpace: !1,
  24039. style: {
  24040. ...d && d.yAxisOptions.style
  24041. }
  24042. },
  24043. labels: {
  24044. style: {
  24045. ...d && d.yAxisOptions.style
  24046. }
  24047. },
  24048. opposite: R.IsAxis !== 1,
  24049. min: Number(N === 0 ? y : I),
  24050. max: Number(N === 0 ? l : j),
  24051. tickWidth: 1
  24052. };
  24053. const x = d ? N % d.lineOptionList.length : N;
  24054. let u = {
  24055. data: R.Value.map((f) => [f.X, f.Y]),
  24056. dashStyle: d && d.lineOptionList[x].dashStyle || "Solid",
  24057. type: d && d.lineOptionList[x].lineType || "spline",
  24058. yAxis: N,
  24059. name: R.Name,
  24060. nameZh: R.Name,
  24061. nameEn: R.NameEn || R.Name,
  24062. color: R.Color,
  24063. lineWidth: d && d.lineOptionList[x].lineWidth || 3,
  24064. chartType: "linear",
  24065. zIndex: 1
  24066. };
  24067. U.push(u), H.push(b);
  24068. }), {
  24069. title: {
  24070. text: ""
  24071. },
  24072. tooltip: {
  24073. formatter: function() {
  24074. let R = T[0].Value.map((u) => u.X), N = R[1] - R[0], x = `<b>${`[${this.x},${this.x + N}]`}</b>`;
  24075. return this.points.forEach((u) => {
  24076. x += `<br><span style="color:${u.color}">●</span>${u.series.name}: ${u.y}%<br>`;
  24077. }), x;
  24078. },
  24079. shared: !0
  24080. },
  24081. series: U,
  24082. yAxis: H,
  24083. xAxis: Z
  24084. };
  24085. }
  24086. function Lp(r) {
  24087. const d = r.ChartInfo.Source === 1, T = [4, 6, 7, 8].includes(r.ChartInfo.Source) ? [r.DataResp] : r.EdbInfoList;
  24088. let l = [], y = [], j = {}, I = T.findIndex((u) => u.IsAxis === 1), Z = T.findIndex((u) => !u.IsAxis), H = T.findIndex((u) => u.IsAxis === 2);
  24089. kt.leftIndex = I, kt.rightIndex = Z, kt.rightTwoIndex = H;
  24090. const U = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24091. let F = [], R = T.some((u) => u.IsAxis === 2) ? Ul(T) : T;
  24092. R.forEach((u, f) => {
  24093. let E = R.findIndex((t) => t.IsAxis === u.IsAxis), O = u.EdbName, B = R.filter(
  24094. (t) => O === t.EdbName
  24095. ), M = Ms(u, B, "zh"), S = Ms(u, B, "en"), w = u.EdbInfoCategoryType === 1 ? Xu(u) : {};
  24096. const v = U ? f % U.lineOptionList.length : f;
  24097. let a = {
  24098. data: [],
  24099. dataGrouping: {
  24100. enabled: !1
  24101. },
  24102. type: U && U.lineOptionList[v].lineType || "spline",
  24103. dashStyle: U && U.lineOptionList[v].dashStyle || "Solid",
  24104. yAxis: f,
  24105. name: M,
  24106. nameZh: M,
  24107. nameEn: S,
  24108. color: u.ChartColor,
  24109. lineWidth: Number(u.ChartWidth) || U && U.lineOptionList[v].lineWidth || 1,
  24110. visible: !0,
  24111. LatestDate: u.LatestDate,
  24112. LatestValue: u.LatestValue,
  24113. marker: U && U.lineOptionList[v].dataMark && U.lineOptionList[v].dataMark != "none" ? {
  24114. enabled: !0,
  24115. symbol: U.lineOptionList[v].markType || "circle",
  24116. fillColor: U.lineOptionList[v].markColor,
  24117. radius: U.lineOptionList[v].markSize
  24118. } : {},
  24119. ...w
  24120. };
  24121. u.DataList = u.DataList || [];
  24122. for (let t of u.DataList)
  24123. a.data.push([t.DataTimestamp, t.Value]);
  24124. l.push(a), u.IsAxis, console.log("useSelfLimit", ci);
  24125. let c = 0, p = 0;
  24126. if ((!ci || !d) && (c = u.MinData, p = u.MaxData), ci && d) {
  24127. const t = {
  24128. 0: ["rightMin", "rightMax"],
  24129. 1: ["leftMin", "leftMax"],
  24130. 2: ["rightTwoMin", "rightTwoMax"]
  24131. };
  24132. t[u.IsAxis] && (c = kt[`${t[u.IsAxis][0]}`] || 0, p = kt[`${t[u.IsAxis][1]}`] || 0);
  24133. }
  24134. const i = r.ChartInfo.Source === 12 ? u.ConvertUnit : u.ConvertUnit || u.Unit, h = r.ChartInfo.Source === 12 ? u.ConvertEnUnit : u.ConvertEnUnit || u.UnitEn || u.ConvertUnit || u.Unit;
  24135. let s = {
  24136. ...mr,
  24137. IsAxis: u.IsAxis,
  24138. labels: {
  24139. formatter: function(t) {
  24140. return E !== f ? "" : t.value;
  24141. },
  24142. align: "center",
  24143. x: [0, 2].includes(u.IsAxis) ? 5 : -5,
  24144. style: {
  24145. ...U && U.yAxisOptions.style
  24146. }
  24147. },
  24148. tickWidth: E !== f ? 0 : 1,
  24149. title: {
  24150. text: E !== f ? "" : `${i}`,
  24151. textZh: i,
  24152. //中文单位
  24153. textEn: i ? h : "",
  24154. //英文单位,但如果无中文单位则不显示
  24155. align: "high",
  24156. rotation: 0,
  24157. y: -15,
  24158. x: u.IsAxis === 0 && H > -1 ? -R[H].Unit.length * 12 : 0,
  24159. textAlign: u.IsAxis === 1 ? "left" : "right",
  24160. reserveSpace: !1,
  24161. style: {
  24162. ...U && U.yAxisOptions.style
  24163. }
  24164. },
  24165. opposite: [0, 2].includes(u.IsAxis),
  24166. reversed: u.IsOrder,
  24167. min: Number(c),
  24168. max: Number(p),
  24169. visible: E === f,
  24170. chartEdbInfo: u,
  24171. //指标数据用于在保存时读取指标数据
  24172. plotBands: Oi(u.IsAxis),
  24173. plotLines: Ei(u.IsAxis)
  24174. };
  24175. y.push(s), u.DataList.length > 0 && (F.push(u.DataList[0].DataTimestamp), F.push(u.DataList[u.DataList.length - 1].DataTimestamp));
  24176. });
  24177. let N = Math.min.apply(null, F), b = Math.max.apply(null, F);
  24178. const x = Gu(N, b, r.ChartInfo.DateType);
  24179. return j = {
  24180. ...Hp,
  24181. labels: {
  24182. formatter: function(u) {
  24183. return x ? to.dateFormat("%m/%d", u.value) : to.dateFormat("%y/%m", u.value);
  24184. },
  24185. style: {
  24186. ...U && U.xAxisOptions.style
  24187. }
  24188. },
  24189. tickInterval: Fl.value === "phone" ? (b - N) / 6 / (24 * 3600 * 1e3) > 30 ? (b - N) / 6 : 24 * 3600 * 1e3 * 30 : void 0,
  24190. plotBands: Oi(3, "datetime"),
  24191. plotLines: Ei(3, "datetime")
  24192. }, y.forEach((u) => {
  24193. u.IsAxis === 1 ? (kt.hasLeftAxis = !0, (!ci || !d) && (kt.leftMin = T[I].MinData, kt.leftMax = T[I].MaxData, u.min = T[I].MinData, u.max = T[I].MaxData)) : u.IsAxis === 2 ? (kt.hasRightTwoAxis = !0, (!ci || !d) && (kt.rightTwoMin = T[H].MinData, kt.rightTwoMax = T[H].MaxData, u.min = T[H].MinData, u.max = T[H].MaxData)) : (kt.hasRightAxis = !0, (!ci || !d) && (kt.rightMin = T[Z].MinData, kt.rightMax = T[Z].MaxData, u.min = T[Z].MinData, u.max = T[Z].MaxData));
  24194. }), {
  24195. series: l,
  24196. xAxis: [j],
  24197. yAxis: y,
  24198. rangeSelector: { enabled: !1 }
  24199. };
  24200. }
  24201. function Zw(r) {
  24202. var S;
  24203. kt.leftIndex = 0;
  24204. const { RightAxis: d = {} } = r.DataResp || {};
  24205. kt.rightIndex = d.IsShow ? 1 : -1, kt.rightTwoIndex = -1;
  24206. const T = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24207. let l = {};
  24208. const y = r.EdbInfoList[0], j = r.ChartInfo.Calendar || "公历", I = T && T.colorsOptions.reverse();
  24209. let Z = [], H = [];
  24210. const U = j === "农历" ? y.DataList.filter((w, v) => v > 0) : y.DataList;
  24211. T && (T.lineOptionList = T.lineOptionList.reverse().slice(-U.length));
  24212. let F = 0;
  24213. U.forEach((w, v) => {
  24214. let a = y.EdbInfoCategoryType === 1 ? Gw(w.CuttingDataTimestamp) : {};
  24215. const c = T ? v % T.lineOptionList.length : v;
  24216. let p = {
  24217. data: [],
  24218. dataGrouping: {
  24219. enabled: !1
  24220. },
  24221. type: T && T.lineOptionList[c].lineType || y.ChartStyle,
  24222. dashStyle: T && T.lineOptionList[c].dashStyle || "Solid",
  24223. yAxis: 0,
  24224. name: w.ChartLegend,
  24225. lineWidth: T && T.lineOptionList[c].lineWidth || 1,
  24226. // color:colorsArr.slice(-chartDataHandle.length)[lineIndex], //与PC端的配置不同步,导致两边 十条之后的线条颜色不对应
  24227. visible: !0,
  24228. marker: T && T.lineOptionList[c].dataMark && T.lineOptionList[c].dataMark != "none" ? {
  24229. enabled: !0,
  24230. symbol: T.lineOptionList[c].markType || "circle",
  24231. fillColor: T.lineOptionList[c].markColor,
  24232. radius: T.lineOptionList[c].markSize
  24233. } : {},
  24234. ...a
  24235. };
  24236. if (w.DataList = w.DataList || [], (w.DataList || []).length > 0) {
  24237. let h = w.DataList[w.DataList.length - 1].DataTimestamp - w.DataList[0].DataTimestamp;
  24238. F = Math.max(F, h);
  24239. }
  24240. for (let h of w.DataList)
  24241. p.data.push([h.DataTimestamp, h.Value]);
  24242. Z.push(p);
  24243. }), l.colors = I.slice(-U.length);
  24244. const { MaxMinLimits: R = {}, SamePeriodAverage: N = {}, SamePeriodStandardDeviation: b = {} } = r.DataResp || {};
  24245. if (R.IsShow && R.List && R.List.length) {
  24246. let w = {
  24247. type: "arearange",
  24248. //上下限是一个范围
  24249. data: [],
  24250. name: R.Legend || "同期上下限",
  24251. color: R.Color || "#075EEE",
  24252. fillOpacity: ss(R.Color || "") > 0.75 ? 0.75 : ss(R.Color || "")
  24253. //透明度最高0.75
  24254. };
  24255. R.List.forEach((v) => {
  24256. w.data.push([v.DataTimestamp, v.MinValue, v.MaxValue]);
  24257. }), Z.push(w);
  24258. }
  24259. if (N.IsShow && N.List) {
  24260. let w = {
  24261. type: "line",
  24262. data: [],
  24263. lineWidth: N.LineWidth,
  24264. dashStyle: N.LineType,
  24265. name: N.Legend || "同期均值",
  24266. color: N.Color || "#075EEE"
  24267. };
  24268. N.List.forEach((v) => {
  24269. w.data.push([v.DataTimestamp, v.Value]);
  24270. }), Z.push(w);
  24271. }
  24272. if (b.IsShow && b.List) {
  24273. let w = {
  24274. type: "arearange",
  24275. //标准差也是一个范围
  24276. data: [],
  24277. name: b.Legend || "同期标准差",
  24278. color: b.Color || "#075EEE",
  24279. fillOpacity: ss(b.Color || "") > 0.75 ? 0.75 : ss(b.Color || "")
  24280. };
  24281. b.List.forEach((v) => {
  24282. w.data.push([v.DataTimestamp, v.MinValue, v.MaxValue]);
  24283. }), Z.push(w);
  24284. }
  24285. if (d.IsShow) {
  24286. let v = {
  24287. ...d.Style === "column" ? {
  24288. //柱形
  24289. type: "column",
  24290. color: d.ChartColor
  24291. } : {
  24292. //标记点
  24293. type: "spline",
  24294. lineWidth: d.LineWidth,
  24295. dashStyle: d.LineStyle,
  24296. color: d.IsConnected ? d.LineColor : "rgba(255, 255, 255, 0)",
  24297. //没有连线颜色设置为透明
  24298. marker: {
  24299. enabled: !0,
  24300. symbol: d.Shape,
  24301. fillColor: d.ChartColor,
  24302. radius: d.Size
  24303. }
  24304. },
  24305. name: d.Legend || "",
  24306. data: [],
  24307. yAxis: 1
  24308. };
  24309. ((d.IndicatorType === 1 ? d.EdbInfoList[0].DataList : (S = r.EdbInfoList[1]) == null ? void 0 : S.DataList) || []).forEach((c) => {
  24310. v.data.push([c.DataTimestamp, c.Value]);
  24311. }), Z.push(v);
  24312. }
  24313. let x = 0, u = 0, f = 0, E = 0;
  24314. ci ? (x = kt.leftMin || 0, u = kt.leftMax || 0, kt.rightIndex !== -1 && (f = kt.rightMin || 0, E = kt.rightMax || 0)) : (x = y.MinData, u = y.MaxData);
  24315. const O = y.ConvertUnit || y.Unit, B = y.ConvertEnUnit || y.UnitEn || y.ConvertUnit || y.Unit;
  24316. if (H = [{
  24317. IsAxis: y.IsAxis,
  24318. labels: {
  24319. align: "center",
  24320. y: 5,
  24321. style: {
  24322. ...T && T.yAxisOptions.style
  24323. }
  24324. },
  24325. title: {
  24326. text: `${O}`,
  24327. textZh: O,
  24328. // 中文
  24329. // 中文不存在,无论英文有无都显示空
  24330. textEn: O ? B || "英文单位" : "",
  24331. // 英文
  24332. align: "high",
  24333. rotation: 0,
  24334. y: -5,
  24335. x: 0,
  24336. textAlign: "left",
  24337. reserveSpace: !1,
  24338. style: {
  24339. ...T && T.yAxisOptions.style
  24340. }
  24341. },
  24342. max: Number(u),
  24343. min: Number(x),
  24344. plotBands: Oi(1),
  24345. plotLines: Ei(1),
  24346. lineWidth: 1,
  24347. lineColor: "#bfbfbf",
  24348. tickColor: "#bfbfbf",
  24349. offset: 0,
  24350. opposite: !1,
  24351. reversed: !1,
  24352. visible: !0,
  24353. gridLineWidth: 0,
  24354. tickWidth: 1,
  24355. tickLength: 5,
  24356. tickPosition: "inside",
  24357. endOnTick: !1,
  24358. startOnTick: !1,
  24359. showLastLabel: !0,
  24360. //显示最后刻度值
  24361. tickPixelInterval: 50
  24362. // chartEdbInfo:item//指标数据
  24363. }], d.IsShow) {
  24364. const w = (d.IndicatorType === 1 ? d.EdbInfoList[0] : r.EdbInfoList[1]) || { Unit: "" };
  24365. d.IndicatorType === 1 ? w.Unit = d.NumFormat === 1 ? "%" : "" : w.Unit = r.EdbInfoList[1] && (r.EdbInfoList[1].ConvertUnit || r.EdbInfoList[1].Unit) || "", H.push({
  24366. ...P0.yAxis,
  24367. opposite: !0,
  24368. //右轴
  24369. labels: {
  24370. align: "center",
  24371. y: 5,
  24372. style: {
  24373. ...T && T.yAxisOptions.style
  24374. }
  24375. },
  24376. title: {
  24377. text: w.Unit || "",
  24378. style: {
  24379. ...T && T.yAxisOptions.style
  24380. },
  24381. align: "high",
  24382. rotation: 0,
  24383. y: -5,
  24384. x: 0,
  24385. textAlign: "right",
  24386. reserveSpace: !1
  24387. },
  24388. max: Number(E),
  24389. min: Number(f)
  24390. });
  24391. }
  24392. l.series = Z, l.yAxis = H, kt.hasLeftAxis = !0, ci || (kt.leftMin = Number(y.MinData), kt.leftMax = Number(y.MaxData));
  24393. let M = {
  24394. tickPosition: "inside",
  24395. lineColor: "#bfbfbf",
  24396. tickColor: "#bfbfbf",
  24397. tickLength: 5,
  24398. type: "datetime",
  24399. ordinal: !1,
  24400. dateTimeLabelFormats: {
  24401. day: "%y/%m",
  24402. week: "%y/%m",
  24403. month: "%y/%m",
  24404. year: "%y/%m"
  24405. },
  24406. labels: {
  24407. formatter: (w) => to.dateFormat("%m/%d", w.value),
  24408. style: {
  24409. ...T && T.xAxisOptions.style
  24410. }
  24411. },
  24412. tickInterval: Fl.value === "phone" ? F / 6 : void 0,
  24413. //季节图
  24414. plotBands: Oi(3, "datetime"),
  24415. plotLines: Ei(3, "datetime")
  24416. };
  24417. return l.xAxis = [M], l.tooltip = {
  24418. split: !1,
  24419. shared: !0,
  24420. dateTimeLabelFormats: {
  24421. // 时间格式化字符
  24422. day: "%m/%d",
  24423. week: "%m/%d",
  24424. month: "%m/%d",
  24425. year: "%m/%d"
  24426. },
  24427. xDateFormat: "%m/%d"
  24428. }, {
  24429. ...l
  24430. // title: {
  24431. // enabled: true,
  24432. // text:e.ChartInfo.ChartName
  24433. // },
  24434. // legend:{
  24435. // enabled:true,
  24436. // verticalAlign: 'top',
  24437. // y:-10,
  24438. // x:(10 * data.Unit.length)/2
  24439. // }
  24440. };
  24441. }
  24442. function hl(r) {
  24443. const d = r.EdbInfoList;
  24444. let l = {
  24445. 3: "areaspline",
  24446. 4: "column",
  24447. 6: ""
  24448. }[r.ChartInfo.ChartType];
  24449. const y = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24450. let j = [], I = [], Z = {}, H = {}, U, F, R, N = [], b = d.some((O) => O.IsAxis === 2) ? Ul(d) : d;
  24451. r.ChartInfo.ChartType === 3 && r.ChartInfo.ExtraConfig && (H = JSON.parse(r.ChartInfo.ExtraConfig)), b.forEach((O, B) => {
  24452. let M = b.findIndex((_) => _.IsAxis === O.IsAxis), S = B;
  24453. [4].includes(r.ChartInfo.ChartType) || r.ChartInfo.ChartType === 3 && H.IsHeap == 1 ? S = 0 : r.ChartInfo.ChartType === 6 && ["areaspline", "column"].includes(O.ChartStyle) && (S = b.findIndex((_) => _.ChartStyle === O.ChartStyle)), O.IsAxis = S === B ? O.IsAxis : b[S].IsAxis, O.IsOrder = S === B ? O.IsOrder : b[S].IsOrder, U = [4].includes(r.ChartInfo.ChartType) ? b[S].IsAxis ? S : -1 : d.findIndex((_) => _.IsAxis === 1), F = [4].includes(r.ChartInfo.ChartType) ? b[S].IsAxis ? -1 : S : d.findIndex((_) => !_.IsAxis), R = [4].includes(r.ChartInfo.ChartType) ? -1 : d.findIndex((_) => _.IsAxis === 2), kt.leftIndex = U, kt.rightIndex = F, kt.rightTwoIndex = R;
  24454. let w = O.EdbName, v = b.filter(
  24455. (_) => w === _.EdbName
  24456. ), a = Ms(O, v, "zh"), c = Ms(O, v, "en"), p = O.EdbInfoCategoryType === 1 ? Xu(O) : {};
  24457. const i = y ? B % y.lineOptionList.length : B;
  24458. let h = {
  24459. data: [],
  24460. dataGrouping: {
  24461. enabled: !1
  24462. },
  24463. type: r.ChartInfo.ChartType !== 3 ? l || O.ChartStyle : H.IsHeap == 1 ? "area" : y && y.lineOptionList[i].lineType || O.ChartStyle,
  24464. yAxis: S,
  24465. name: a,
  24466. nameZh: a,
  24467. nameEn: c,
  24468. color: O.ChartColor,
  24469. lineWidth: Number(O.ChartWidth) || y && y.lineOptionList[i].lineWidth || 1,
  24470. fillColor: r.ChartInfo.ChartType === 3 || r.ChartInfo.ChartType === 6 && O.ChartStyle === "areaspline" ? O.ChartColor : void 0,
  24471. visible: !0,
  24472. LatestDate: O.LatestDate,
  24473. LatestValue: O.LatestValue,
  24474. ...p,
  24475. stacking: r.ChartInfo.ChartType == 6 ? r.DataResp.IsHeap ? "normal" : void 0 : r.ChartInfo.ChartType == 3 && H.IsHeap == 1 ? H.HeapWay == 1 ? "normal" : "percent" : void 0,
  24476. threshold: r.ChartInfo.ChartType == 3 ? O.ChartScale ? Number(O.ChartScale) : 0 : null
  24477. };
  24478. O.DataList = O.DataList || [];
  24479. for (let _ of O.DataList)
  24480. h.data.push([_.DataTimestamp, _.Value]);
  24481. j.push(h);
  24482. let s = 0, t = 0;
  24483. if (!ci)
  24484. s = b[M].MinData, t = b[M].MaxData;
  24485. else {
  24486. const _ = {
  24487. 0: ["rightMin", "rightMax"],
  24488. 1: ["leftMin", "leftMax"],
  24489. 2: ["rightTwoMin", "rightTwoMax"]
  24490. };
  24491. _[O.IsAxis] && (s = kt[`${_[O.IsAxis][0]}`] || 0, t = kt[`${_[O.IsAxis][1]}`] || 0);
  24492. }
  24493. O.IsAxis;
  24494. const o = O.ConvertUnit || O.Unit, n = O.ConvertEnUnit || O.UnitEn || O.ConvertUnit || O.Unit;
  24495. let A = {
  24496. ...mr,
  24497. IsAxis: O.IsAxis,
  24498. labels: {
  24499. formatter: (_) => M !== B ? "" : r.ChartInfo.ChartType === 3 && H.HeapWay == 2 ? _.value + "%" : _.value,
  24500. align: "center",
  24501. x: [0, 2].includes(O.IsAxis) ? 5 : -5,
  24502. style: {
  24503. ...y && y.yAxisOptions.style
  24504. }
  24505. },
  24506. title: {
  24507. // text: sameSideIndex !== index ? '' : `${item.Unit}`,
  24508. text: o,
  24509. textZh: o,
  24510. // 中文
  24511. // 中文不存在,无论英文有无都显示空
  24512. textEn: o ? n || "英文单位" : "",
  24513. // 英文
  24514. align: "high",
  24515. rotation: 0,
  24516. y: -15,
  24517. x: O.IsAxis === 0 && R > -1 ? -b[R].Unit.length * 12 : 0,
  24518. textAlign: O.IsAxis === 1 ? "left" : "right",
  24519. reserveSpace: !1,
  24520. style: {
  24521. ...y && y.yAxisOptions.style
  24522. }
  24523. },
  24524. opposite: [0, 2].includes(O.IsAxis),
  24525. reversed: O.IsOrder,
  24526. min: r.ChartInfo.ChartType === 3 && H.HeapWay == 2 ? null : Number(s),
  24527. max: r.ChartInfo.ChartType === 3 && H.HeapWay == 2 ? null : Number(t),
  24528. tickWidth: M !== B ? 0 : 1,
  24529. visible: S === B && M === B,
  24530. plotBands: Oi(O.IsAxis),
  24531. plotLines: Ei(O.IsAxis),
  24532. chartEdbInfo: O
  24533. //指标数据用于在保存时读取指标数据
  24534. };
  24535. I.push(A), O.DataList.length > 0 && (N.push(O.DataList[0].DataTimestamp), N.push(O.DataList[O.DataList.length - 1].DataTimestamp));
  24536. });
  24537. let x = Math.min.apply(null, N), u = Math.max.apply(null, N);
  24538. const f = Gu(x, u, r.ChartInfo.DateType);
  24539. Z = {
  24540. ...Hp,
  24541. labels: {
  24542. formatter: function(O) {
  24543. return f ? to.dateFormat("%m/%d", O.value) : to.dateFormat("%y/%m", O.value);
  24544. },
  24545. style: {
  24546. ...y && y.xAxisOptions.style
  24547. }
  24548. },
  24549. tickInterval: Fl.value === "phone" ? (u - x) / 6 / (24 * 3600 * 1e3) > 30 ? (u - x) / 6 : 24 * 3600 * 1e3 * 30 : void 0,
  24550. plotBands: Oi(3, "datetime"),
  24551. plotLines: Ei(3, "datetime")
  24552. }, I.forEach((O) => {
  24553. O.IsAxis === 1 ? (kt.hasLeftAxis = !0, ci || (kt.leftMin = d[U].MinData, kt.leftMax = d[U].MaxData, O.min = d[U].MinData, O.max = d[U].MaxData)) : O.IsAxis === 2 ? (kt.hasRightTwoAxis = !0, ci || (kt.rightTwoMin = d[R].MinData, kt.rightTwoMax = d[R].MaxData, O.min = d[R].MinData, O.max = d[R].MaxData)) : (kt.hasRightAxis = !0, ci || (kt.rightMin = d[F].MinData, kt.rightMax = d[F].MaxData, O.min = d[F].MinData, O.max = d[F].MaxData));
  24554. });
  24555. let E = {
  24556. series: j,
  24557. xAxis: Z,
  24558. yAxis: I,
  24559. rangeSelector: { enabled: !1 }
  24560. };
  24561. return r.ChartInfo.ChartType === 3 && H.HeapWay == 2 && (E.tooltip = {
  24562. split: !1,
  24563. shared: !0,
  24564. dateTimeLabelFormats: {
  24565. // 时间格式化字符
  24566. day: "%Y/%m/%d",
  24567. week: "%Y/%m",
  24568. month: "%Y/%m",
  24569. year: "%Y/%m"
  24570. },
  24571. xDateFormat: "%Y/%m/%d",
  24572. className: "chart-tooltips-box",
  24573. pointFormat: '<span style="color:{point.color}">●</span><span>{series.name}</span>:<b>{point.percentage:.1f}%</b> ({point.y:,.1f})<br/>'
  24574. }), E;
  24575. }
  24576. function Kw(r) {
  24577. kt.leftIndex = 1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24578. const d = r.EdbInfoList, { ChartInfo: T } = r, l = T.ChartThemeStyle ? JSON.parse(T.ChartThemeStyle) : null;
  24579. kt.hasLeftAxis = !0;
  24580. const y = [];
  24581. let j = {}, I = no.cloneDeep(d)[0].DataList || [], Z = no.cloneDeep(d)[1].DataList || [];
  24582. I.forEach((B) => {
  24583. Z.forEach((M) => {
  24584. if (B.DataTimestamp === M.DataTimestamp) {
  24585. let S = B.Value + "_" + M.Value;
  24586. j[S] ? j[S].push(Xt(B.DataTimestamp).format("YYYY/MM/DD")) : j[S] = [Xt(B.DataTimestamp).format("YYYY/MM/DD")], y.push({
  24587. x: B.Value,
  24588. y: M.Value
  24589. });
  24590. }
  24591. });
  24592. }), y.sort((B, M) => B - M);
  24593. let H = {
  24594. formatter: function() {
  24595. return `<strong>${j[this.x + "_" + this.y].length > 4 ? j[this.x + "_" + this.y].slice(0, 4).join() + "..." : j[this.x + "_" + this.y].join()}</strong><br>
  24596. ${d[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24597. ${d[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24598. `;
  24599. },
  24600. // 中文
  24601. formatterCh: function() {
  24602. return `<strong>${j[this.x + "_" + this.y].length > 4 ? j[this.x + "_" + this.y].slice(0, 4).join() + "..." : j[this.x + "_" + this.y].join()}</strong><br>
  24603. ${d[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24604. ${d[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24605. `;
  24606. },
  24607. // 英文
  24608. formatterEn: function() {
  24609. let B = `${d[0].EdbNameEn}`, M = `${d[1].EdbNameEn}`;
  24610. return `<strong>${j[this.x + "_" + this.y].length > 4 ? j[this.x + "_" + this.y].slice(0, 4).join() + "..." : j[this.x + "_" + this.y].join()}</strong><br>
  24611. ${B}: <span style="font-weight: 600"> ${this.x}</span><br>
  24612. ${M}: <span style="font-weight: 600"> ${this.y}</span>
  24613. `;
  24614. }
  24615. };
  24616. const { IsOrder: U, ChartColor: F } = d[0];
  24617. let R = 0, N = 0;
  24618. ci ? (R = kt.leftMin || 0, N = kt.leftMax || 0) : (R = r.ChartInfo.LeftMin || 0, N = r.ChartInfo.LeftMax || 0), console.log("check limit", R, N);
  24619. const b = d[1].ConvertUnit || d[1].Unit, x = d[1].ConvertEnUnit || d[1].UnitEn || d[1].ConvertUnit || d[1].Unit;
  24620. let u = {
  24621. title: {
  24622. text: `${b}`,
  24623. textZh: b,
  24624. textEn: b ? x : "",
  24625. align: "high",
  24626. rotation: 0,
  24627. y: -15,
  24628. x: 0,
  24629. textAlign: "left",
  24630. reserveSpace: !1,
  24631. style: {
  24632. ...l && l.yAxisOptions.style
  24633. }
  24634. },
  24635. labels: {
  24636. formatter: function(B) {
  24637. return B.value;
  24638. },
  24639. align: "center",
  24640. style: {
  24641. ...l && l.yAxisOptions.style
  24642. }
  24643. },
  24644. opposite: !1,
  24645. reversed: U,
  24646. min: Number(R),
  24647. max: Number(N),
  24648. tickWidth: 1,
  24649. tickLength: 5,
  24650. lineWidth: 1,
  24651. lineColor: "#bfbfbf",
  24652. tickColor: "#bfbfbf",
  24653. offset: 0,
  24654. visible: !0,
  24655. gridLineWidth: 0,
  24656. tickPosition: "inside",
  24657. endOnTick: !1,
  24658. startOnTick: !1,
  24659. showLastLabel: !0,
  24660. tickPixelInterval: 50,
  24661. plotBands: Oi(1),
  24662. plotLines: Ei(1)
  24663. }, f = {
  24664. data: [],
  24665. type: "scatter",
  24666. name: `${T.ChartName}${U ? "(逆序)" : ""}`,
  24667. nameZh: `${T.ChartName}${U ? "(逆序)" : ""}`,
  24668. nameEn: T.ChartNameEn ? `${T.ChartNameEn}${U ? "(reverse)" : ""}` : "",
  24669. color: F,
  24670. visible: !0,
  24671. chartType: "linear",
  24672. marker: {
  24673. radius: l && l.lineOptionList[0].radius || 5
  24674. }
  24675. };
  24676. y.forEach((B) => {
  24677. f.data.push([B.x, B.y]);
  24678. });
  24679. const E = d[0].ConvertUnit || d[0].Unit, O = d[0].ConvertEnUnit || d[0].UnitEn || d[0].ConvertUnit || d[0].Unit;
  24680. return {
  24681. title: {
  24682. text: ""
  24683. },
  24684. series: [f],
  24685. yAxis: u,
  24686. xAxis: {
  24687. ...Cn,
  24688. title: {
  24689. text: `${E}`,
  24690. textZh: E,
  24691. textEn: E ? O : "",
  24692. align: "high",
  24693. rotation: 0,
  24694. x: 0,
  24695. offset: 20,
  24696. style: {
  24697. ...l && l.xAxisOptions.style
  24698. }
  24699. },
  24700. labels: {
  24701. style: {
  24702. ...l && l.xAxisOptions.style
  24703. }
  24704. }
  24705. },
  24706. tooltip: H
  24707. };
  24708. }
  24709. const Hu = Le([]), Fu = Le([]), Jw = Le([]);
  24710. function qw(r) {
  24711. var F, R, N;
  24712. let d = [];
  24713. const T = no.cloneDeep(Hu.value), l = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24714. let y = {
  24715. ...Cn,
  24716. categories: Fu.value,
  24717. tickWidth: 1,
  24718. labels: {
  24719. style: {
  24720. ...l && l.xAxisOptions.style
  24721. }
  24722. }
  24723. };
  24724. const { leftMin: j, leftMax: I } = kt, Z = (F = r.ChartInfo) == null ? void 0 : F.Unit, H = ((R = r.ChartInfo) == null ? void 0 : R.UnitEn) || ((N = r.ChartInfo) == null ? void 0 : N.Unit);
  24725. let U = {
  24726. ...mr,
  24727. title: {
  24728. text: Z,
  24729. textZh: Z,
  24730. textEn: H,
  24731. align: "high",
  24732. rotation: 0,
  24733. y: -12,
  24734. x: 0,
  24735. textAlign: "left",
  24736. reserveSpace: !1,
  24737. style: {
  24738. ...l && l.yAxisOptions.style
  24739. }
  24740. },
  24741. labels: {
  24742. formatter: function(b) {
  24743. return b.value;
  24744. },
  24745. align: "center",
  24746. style: {
  24747. ...l && l.yAxisOptions.style
  24748. }
  24749. },
  24750. min: Number(j),
  24751. max: Number(I),
  24752. opposite: !1,
  24753. tickWidth: 1,
  24754. plotBands: Oi(1),
  24755. plotLines: Ei(1)
  24756. };
  24757. return T.forEach((b) => {
  24758. let x = {
  24759. data: b.Value,
  24760. type: "column",
  24761. yAxis: 0,
  24762. name: b.Name || b.Date,
  24763. nameZh: b.Name || b.Date,
  24764. nameEn: b.Date,
  24765. color: b.Color,
  24766. chartType: "linear",
  24767. visible: !0
  24768. };
  24769. d.push(x);
  24770. }), {
  24771. title: {
  24772. text: ""
  24773. },
  24774. plotOptions: {
  24775. column: {
  24776. stacking: null
  24777. }
  24778. },
  24779. series: d,
  24780. yAxis: [U],
  24781. xAxis: y
  24782. };
  24783. }
  24784. function Qw(r) {
  24785. const { XEdbIdValue: d, YDataList: T, EdbInfoList: l, ChartInfo: y } = r;
  24786. let j = d.map((I) => l.find((Z) => Z.EdbInfoId === I).EdbAliasName);
  24787. return kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1, Hu.value = T, Fu.value = j, Jw.value = l, kt.hasLeftAxis = !0, kt.leftMin = Number(y.LeftMin), kt.leftMax = Number(y.LeftMax), qw(r);
  24788. }
  24789. const Uu = Le([]), Vr = Le([]), Bi = Le([]), tC = (r, d) => {
  24790. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24791. const T = _e.value.ChartInfo.ChartThemeStyle ? JSON.parse(_e.value.ChartInfo.ChartThemeStyle) : null;
  24792. let l = [];
  24793. const y = no.cloneDeep(Uu.value);
  24794. console.log(y);
  24795. let j = {
  24796. ...Cn,
  24797. categories: Vr.value.filter((H) => H.IsHide === 0).map((H) => H.Name),
  24798. tickWidth: 1,
  24799. labels: {
  24800. style: {
  24801. ...T && T.xAxisOptions.style
  24802. }
  24803. }
  24804. }, I = {
  24805. ...mr,
  24806. title: {
  24807. text: Bi.value[0].Unit,
  24808. textZh: Bi.value[0].Unit,
  24809. textEn: Bi.value[0].Unit ? Bi.value[0].UnitEn || "英文单位" : "",
  24810. align: "high",
  24811. rotation: 0,
  24812. y: -15,
  24813. textAlign: "left",
  24814. reserveSpace: !1,
  24815. style: {
  24816. ...T && T.yAxisOptions.style
  24817. }
  24818. },
  24819. labels: {
  24820. formatter: function(H) {
  24821. return H.value;
  24822. },
  24823. align: "center",
  24824. style: {
  24825. ...T && T.yAxisOptions.style
  24826. }
  24827. },
  24828. min: Number(r),
  24829. max: Number(d),
  24830. opposite: !1,
  24831. tickWidth: 1
  24832. };
  24833. return y.forEach((H, U) => {
  24834. let F = eC(H);
  24835. const R = T ? U % T.lineOptionList.length : U;
  24836. let N = {
  24837. data: F,
  24838. type: T && T.lineOptionList[R].lineType || "spline",
  24839. dashStyle: T && T.lineOptionList[R].dashStyle || "Solid",
  24840. yAxis: 0,
  24841. name: H.Name,
  24842. nameZh: H.Name,
  24843. nameEn: H.NameEn,
  24844. color: H.Color,
  24845. chartType: "linear",
  24846. lineWidth: T && T.lineOptionList[R].lineWidth || 3,
  24847. visible: !0,
  24848. marker: {
  24849. enabled: !1
  24850. }
  24851. };
  24852. l.push(N);
  24853. }), {
  24854. title: {
  24855. text: ""
  24856. },
  24857. series: l,
  24858. yAxis: [I],
  24859. xAxis: j,
  24860. tooltip: {
  24861. formatter: function() {
  24862. const H = this;
  24863. let U = "";
  24864. return H.points.forEach((F) => {
  24865. let R = y.find((x) => x.Name === F.series.name), N = Vr.value.findIndex((x) => x.Name === H.x);
  24866. const b = R.XEdbInfoIdList[N];
  24867. if (b) {
  24868. const x = Bi.value.some((f) => f.EdbInfoId === b);
  24869. let u = _e.value.ChartInfo.Source === 5 ? x ? R.NameList[N] : `${_e.value.DataResp.ProfitName}(${R.NameList[N]})` : Bi.value.find((f) => f.EdbInfoId === R.XEdbInfoIdList[N]).EdbName;
  24870. U += `<b>${u}</b>`, R.NoDataEdbList.includes(R.XEdbInfoIdList[N]) ? U += `<br><span style="color:${F.color}">●</span>${R.Date}: 无<br>` : U += `<br><span style="color:${F.color}">●</span>${R.Date}: ${F.y}<br>`;
  24871. }
  24872. }), U || "无合约";
  24873. },
  24874. formatterCh: function() {
  24875. const H = this;
  24876. let U = "";
  24877. return H.points.forEach((F) => {
  24878. let R = y.find((x) => x.Name === F.series.name), N = Vr.value.findIndex((x) => x.Name === H.x);
  24879. const b = R.XEdbInfoIdList[N];
  24880. if (b) {
  24881. const x = Bi.value.some((f) => f.EdbInfoId === b);
  24882. let u = _e.value.ChartInfo.Source === 5 ? x ? R.NameList[N] : `${_e.value.DataResp.ProfitName}(${R.NameList[N]})` : Bi.value.find((f) => f.EdbInfoId === R.XEdbInfoIdList[N]).EdbName;
  24883. U += `<b>${u}</b>`, R.NoDataEdbList.includes(R.XEdbInfoIdList[N]) ? U += `<br><span style="color:${F.color}">●</span>${R.Date}: 无<br>` : U += `<br><span style="color:${F.color}">●</span>${R.Date}: ${F.y}<br>`;
  24884. }
  24885. }), U || "无合约";
  24886. },
  24887. formatterEn: function() {
  24888. const H = this;
  24889. let U = "";
  24890. return H.points.forEach((F) => {
  24891. let R = y.find((x) => x.NameEn === F.series.name), N = Vr.value.findIndex((x) => x.NameEn === H.x);
  24892. const b = R.XEdbInfoIdList[N];
  24893. if (b) {
  24894. const x = Bi.value.some((f) => f.EdbInfoId === b);
  24895. let u = _e.value.ChartInfo.Source === 5 ? x ? R.NameList[N] : `${_e.value.DataResp.ProfitNameEn}(${R.NameList[N]})` : Bi.value.find((f) => f.EdbInfoId === R.XEdbInfoIdList[N]).EdbNameEn;
  24896. U += `<b>${u}</b>`, R.NoDataEdbList.includes(R.XEdbInfoIdList[N]) ? U += `<br><span style="color:${F.color}">●</span>${R.Date}: 无<br>` : U += `<br><span style="color:${F.color}">●</span>${R.Date}: ${F.y}<br>`;
  24897. }
  24898. }), U || "无合约";
  24899. },
  24900. shared: !0
  24901. }
  24902. };
  24903. };
  24904. function eC(r) {
  24905. let d = r.XEdbInfoIdList.filter((I) => !r.NoDataEdbList.includes(I)), T = r.XEdbInfoIdList.findIndex((I) => I === d[0]), l = r.XEdbInfoIdList.findIndex((I) => I === d[d.length - 1]), y = r.Value.map((I, Z) => Z < T || Z > l ? null : I), j = [];
  24906. return Vr.value.forEach((I, Z) => {
  24907. I.IsHide !== 1 && j.push(y[Z]);
  24908. }), j;
  24909. }
  24910. function iC(r) {
  24911. const { XDataList: d, YDataList: T, EdbInfoList: l, ChartInfo: y, DataResp: j } = r;
  24912. return Bi.value = l, Uu.value = y.Source === 5 ? j.YDataList : T, Vr.value = y.Source === 5 ? j.XDataList : d, kt.hasLeftAxis = !0, kt.leftMin = Number(y.LeftMin), kt.leftMax = Number(y.LeftMax), tC(y.LeftMin, y.LeftMax);
  24913. }
  24914. function rC(r) {
  24915. const d = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24916. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24917. let T = {
  24918. categories: r.ChartInfo.Source === 3 ? r.XEdbIdValue : r.DataResp.XDateTimeValue,
  24919. tickWidth: 1,
  24920. title: {
  24921. text: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24922. textZh: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24923. textEn: r.ChartInfo.Source === 3 ? `stage(${kp[r.CorrelationChartInfo.LeadUnit]})` : null,
  24924. align: "high",
  24925. rotation: 0,
  24926. x: 0,
  24927. y: 10,
  24928. offset: 20,
  24929. style: {
  24930. ...d && d.xAxisOptions.style
  24931. }
  24932. },
  24933. labels: {
  24934. style: {
  24935. ...d && d.xAxisOptions.style
  24936. }
  24937. },
  24938. tickInterval: 1,
  24939. offset: 0,
  24940. tickmarkPlacement: "on"
  24941. }, l = {
  24942. ...mr,
  24943. title: {
  24944. text: "相关性系数",
  24945. textZh: "相关性系数",
  24946. textEn: "Correlation coefficient",
  24947. align: "high",
  24948. rotation: 0,
  24949. y: -15,
  24950. textAlign: "left",
  24951. reserveSpace: !1,
  24952. style: {
  24953. ...d && d.yAxisOptions.style
  24954. }
  24955. },
  24956. labels: {
  24957. formatter: function(U) {
  24958. return U.value;
  24959. },
  24960. align: "center",
  24961. style: {
  24962. ...d && d.yAxisOptions.style
  24963. }
  24964. },
  24965. opposite: !1,
  24966. tickWidth: 1
  24967. }, y = [];
  24968. r.YDataList.forEach((U, F) => {
  24969. const R = d ? F % d.lineOptionList.length : F;
  24970. let N = {
  24971. data: U.Value,
  24972. type: d && d.lineOptionList[R].lineType || "spline",
  24973. dashStyle: d && d.lineOptionList[R].dashStyle || "Solid",
  24974. yAxis: 0,
  24975. name: U.Name || r.ChartInfo.ChartName,
  24976. nameZh: U.Name || r.ChartInfo.ChartName,
  24977. nameEn: U.NameEn || r.ChartInfo.ChartNameEn,
  24978. color: U.Color,
  24979. chartType: "linear",
  24980. lineWidth: d && d.lineOptionList[R].lineWidth || 3,
  24981. visible: !0,
  24982. marker: {
  24983. enabled: !1
  24984. }
  24985. };
  24986. y.push(N);
  24987. });
  24988. const { LeadValue: j, LeadUnit: I } = r.CorrelationChartInfo, { Source: Z } = r.ChartInfo;
  24989. let H = {
  24990. formatter: function() {
  24991. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${Z === 3 ? this.x + "期" : j + I}</p>`;
  24992. },
  24993. formatterCh: function() {
  24994. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${Z === 3 ? this.x + "期" : j + I}</p>`;
  24995. },
  24996. formatterEn: function() {
  24997. return `<p>Correlation coefficient:${this.y.toFixed(4)}</p><br><p>lead${Z === 3 ? this.x + "stage" : j + kp[I]}</p>`;
  24998. }
  24999. };
  25000. return gs(() => {
  25001. re.value = {
  25002. isRelevanceChart: r.ChartInfo.Source === 3,
  25003. title: {
  25004. text: ""
  25005. },
  25006. series: y,
  25007. yAxis: [l],
  25008. xAxis: T,
  25009. tooltip: H
  25010. }, cs.update(re.value, !0);
  25011. }), {
  25012. isRelevanceChart: !0,
  25013. title: {
  25014. text: ""
  25015. },
  25016. series: y,
  25017. yAxis: [l],
  25018. xAxis: T,
  25019. tooltip: H
  25020. };
  25021. }
  25022. function nC({ DataResp: r, ChartInfo: d }) {
  25023. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  25024. const T = d.ChartThemeStyle ? JSON.parse(d.ChartThemeStyle) : null, { DataList: l, XName: y, XNameEn: j, XUnitName: I, XUnitNameEn: Z, YName: H, YNameEn: U, YUnitName: F, YUnitNameEn: R } = r, N = Number(r.YMinValue), b = Number(r.YMaxValue), x = Number(r.XMinValue), u = Number(r.XMaxValue);
  25025. kt.hasLeftAxis = !0, kt.hasXAxis = !0, kt.leftMin = N, kt.leftMax = b, kt.xMin = x, kt.xMax = u;
  25026. let f = {
  25027. ...mr,
  25028. title: {
  25029. text: H,
  25030. textZh: H,
  25031. // 中文
  25032. textEn: U || "",
  25033. style: {
  25034. ...T && T.yAxisOptions.style
  25035. },
  25036. align: "middle"
  25037. },
  25038. labels: {
  25039. style: {
  25040. ...T && T.yAxisOptions.style
  25041. }
  25042. },
  25043. opposite: !1,
  25044. reversed: !1,
  25045. min: Number(N),
  25046. max: Number(b),
  25047. tickWidth: 1,
  25048. plotBands: Oi(1),
  25049. plotLines: Ei(1)
  25050. }, E = {
  25051. ...Cn,
  25052. title: {
  25053. text: y,
  25054. textZh: y,
  25055. // 中文
  25056. textEn: j || "",
  25057. style: {
  25058. ...T && T.xAxisOptions.style
  25059. },
  25060. align: "middle"
  25061. },
  25062. labels: {
  25063. style: {
  25064. ...T && T.xAxisOptions.style
  25065. }
  25066. },
  25067. min: Number(x),
  25068. max: Number(u),
  25069. plotBands: Oi(3),
  25070. plotLines: Ei(3)
  25071. }, O = [];
  25072. return l.forEach((M, S) => {
  25073. const w = T ? S % T.lineOptionList.length : S;
  25074. let v = {
  25075. data: [],
  25076. type: "scatter",
  25077. name: M.Name,
  25078. nameZh: M.Name,
  25079. nameEn: M.NameEn,
  25080. color: M.Color,
  25081. lineWidth: 0,
  25082. chartType: "linear",
  25083. zIndex: 1,
  25084. visible: !0,
  25085. marker: {
  25086. radius: T && T.lineOptionList[w].radius || 5
  25087. }
  25088. };
  25089. if (M.EdbInfoList.forEach((a) => {
  25090. v.data.push({
  25091. x: a.XValue,
  25092. y: a.YValue,
  25093. dataLabels: {
  25094. enabled: a.IsShow,
  25095. allowOverlap: !0,
  25096. align: "left",
  25097. format: a.Name,
  25098. formatZh: a.Name,
  25099. formatEn: a.NameEn
  25100. }
  25101. });
  25102. }), O.push(v), M.ShowTrendLine) {
  25103. let c = {
  25104. data: M.TrendLimitData.map((p, i) => i === M.TrendLimitData.length - 1 ? {
  25105. x: p.X,
  25106. y: p.Y,
  25107. dataLabels: {
  25108. enabled: M.ShowRSquare || M.ShowFitEquation,
  25109. align: "left",
  25110. color: M.Color,
  25111. x: 20,
  25112. y: 30,
  25113. zIndex: 9,
  25114. allowOverlap: !0,
  25115. formatter: function() {
  25116. let h = "";
  25117. return M.ShowRSquare && M.ShowFitEquation ? h = `<span>${M.TrendLine}</span><br><span>R²=${M.RSquare}</span>` : M.ShowRSquare && !M.ShowFitEquation ? h = `<span>R²=${M.RSquare}</span>` : M.ShowFitEquation && !M.ShowRSquare && (h = `<span>${M.TrendLine}</span>`), h;
  25118. }
  25119. }
  25120. } : {
  25121. x: p.X,
  25122. y: p.Y
  25123. }),
  25124. type: "spline",
  25125. linkedTo: ":previous",
  25126. color: M.Color,
  25127. lineWidth: 1,
  25128. chartType: "linear",
  25129. enableMouseTracking: !1,
  25130. dashStyle: "Dash",
  25131. zIndex: 2,
  25132. visible: !0,
  25133. marker: {
  25134. enabled: !1
  25135. }
  25136. };
  25137. O.push(c);
  25138. }
  25139. }), {
  25140. title: {
  25141. text: ""
  25142. },
  25143. series: O,
  25144. yAxis: [f],
  25145. xAxis: E,
  25146. tooltip: {
  25147. formatter: function() {
  25148. let S = l.find((v) => v.Name === this.series.name).EdbInfoList.find((v) => v.XValue === this.x && v.YValue === this.y), w = `<b>${S.Name}</b>`;
  25149. return w += `<br><span style="color:${this.color}">●</span>${S.XName}: ${this.x} ${S.XDate}<br>`, w += `<span style="color:${this.color}">●</span>${S.YName}: ${this.y} (${S.YDate})`, w;
  25150. },
  25151. formatterCh: function() {
  25152. let S = l.find((v) => v.Name === this.series.name).EdbInfoList.find((v) => v.XValue === this.x && v.YValue === this.y), w = `<b>${S.Name}</b>`;
  25153. return w += `<br><span style="color:${this.color}">●</span>${S.XName}: ${this.x} ${S.XDate}<br>`, w += `<span style="color:${this.color}">●</span>${S.YName}: ${this.y} (${S.YDate})`, w;
  25154. },
  25155. formatterEn: function() {
  25156. let S = l.find((v) => v.NameEn === this.series.name).EdbInfoList.find((v) => v.XValue === this.x && v.YValue === this.y), w = `<b>${S.NameEn}</b>`;
  25157. return w += `<br><span style="color:${this.color}">●</span>${S.XNameEn}: ${this.x} ${S.XDate}<br>`, w += `<span style="color:${this.color}">●</span>${S.YNameEn}: ${this.y} ${S.YDate}`, w;
  25158. }
  25159. }
  25160. };
  25161. }
  25162. function oC({ DataResp: r, EdbInfoList: d, ChartInfo: T }) {
  25163. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  25164. const l = T.ChartThemeStyle ? JSON.parse(T.ChartThemeStyle) : null, { DataList: y, XName: j, YName: I, XNameEn: Z, YNameEn: H, XMaxValue: U, XMinValue: F, YMaxValue: R, YMinValue: N } = r, { leftMin: b, leftMax: x, xMin: u, xMax: f } = kt;
  25165. let E = {
  25166. ...mr,
  25167. title: {
  25168. text: I,
  25169. textCh: I,
  25170. // 中文
  25171. textEn: H || I,
  25172. align: "middle",
  25173. style: {
  25174. ...l && l.xAxisOptions.style
  25175. }
  25176. },
  25177. labels: {
  25178. style: {
  25179. ...l && l.xAxisOptions.style
  25180. }
  25181. },
  25182. opposite: !1,
  25183. reversed: !1,
  25184. min: Number(b),
  25185. max: Number(x),
  25186. tickWidth: 1
  25187. }, O = {
  25188. ...Cn,
  25189. title: {
  25190. text: j,
  25191. textCh: j,
  25192. // 中文
  25193. textEn: Z || j,
  25194. align: "middle",
  25195. style: {
  25196. ...l && l.xAxisOptions.style
  25197. }
  25198. },
  25199. labels: {
  25200. style: {
  25201. ...l && l.xAxisOptions.style
  25202. }
  25203. },
  25204. min: Number(u),
  25205. max: Number(f)
  25206. }, B = [];
  25207. const M = {
  25208. //标签对应文字
  25209. 1: "最新",
  25210. 3: "Fix"
  25211. };
  25212. return y.forEach((w) => {
  25213. let v = {
  25214. data: [],
  25215. type: "scatter",
  25216. name: w.Name,
  25217. nameZh: w.Name,
  25218. nameEn: w.NameEn || w.Name,
  25219. color: w.Color,
  25220. lineWidth: 0,
  25221. chartType: "linear",
  25222. zIndex: 1
  25223. };
  25224. w.CoordinatePointData.forEach((a) => {
  25225. v.data.push({
  25226. x: a.X,
  25227. y: a.Y,
  25228. dataLabels: {
  25229. enabled: a.ShowTips === 1,
  25230. allowOverlap: !0,
  25231. align: "left",
  25232. format: M[a.DateType] || `-${a.DaysAgo}D`
  25233. }
  25234. });
  25235. }), B.push(v);
  25236. }), {
  25237. title: {
  25238. text: ""
  25239. },
  25240. series: B,
  25241. yAxis: [E],
  25242. xAxis: O,
  25243. tooltip: {
  25244. formatter: function() {
  25245. let v = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = d.find((i) => i.EdbInfoId === v.XEdbInfoId), c = d.find((i) => i.EdbInfoId === v.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  25246. return p += `<br><span style="color:${this.color}">●</span>${a.EdbName}: ${this.x} ${v.XDate}<br>`, p += `<span style="color:${this.color}">●</span>${c.EdbName}: ${this.y} ${v.YDate}`, p;
  25247. },
  25248. formatterCh: function() {
  25249. let v = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = d.find((i) => i.EdbInfoId === v.XEdbInfoId), c = d.find((i) => i.EdbInfoId === v.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  25250. return p += `<br><span style="color:${this.color}">●</span>${a.EdbName}: ${this.x} ${v.XDate}<br>`, p += `<span style="color:${this.color}">●</span>${c.EdbName}: ${this.y} ${v.YDate}`, p;
  25251. },
  25252. formatterEn: function() {
  25253. let v = y.find((i) => i.NameEn === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = d.find((i) => i.EdbInfoId === v.XEdbInfoId), c = d.find((i) => i.EdbInfoId === v.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  25254. return p += `<br><span style="color:${this.color}">●</span>${a.EdbNameEn}: ${this.x} ${v.XDate}<br>`, p += `<span style="color:${this.color}">●</span>${c.EdbNameEn}: ${this.y} ${v.YDate}`, p;
  25255. }
  25256. }
  25257. };
  25258. }
  25259. function sC({ DataResp: r, EdbInfoList: d, ChartInfo: T }) {
  25260. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  25261. const { YDataList: l, XEdbIdValue: y } = r;
  25262. let j = d.filter((F) => y.includes(F.EdbInfoId));
  25263. kt.hasLeftAxis = !0, kt.leftMin = Number(T.LeftMin), kt.leftMax = Number(T.LeftMax);
  25264. const I = T.ChartThemeStyle ? JSON.parse(T.ChartThemeStyle) : null;
  25265. let Z = {
  25266. lineWidth: 0,
  25267. tickLength: 0,
  25268. tickmarkPlacement: "on",
  25269. categories: j.map((F) => F.EdbAliasName || F.EdbName),
  25270. labels: {
  25271. allowOverlap: !0,
  25272. autoRotationLimit: 40,
  25273. style: {
  25274. ...I && I.xAxisOptions.style
  25275. }
  25276. }
  25277. }, H = [{
  25278. gridLineInterpolation: "polygon",
  25279. gridLineWidth: 1,
  25280. lineWidth: 0,
  25281. endOnTick: !1,
  25282. startOnTick: !1,
  25283. showLastLabel: !0,
  25284. // tickAmount:4,
  25285. title: {
  25286. text: T.Unit,
  25287. textCh: T.Unit,
  25288. textEn: T.UnitEn,
  25289. align: "high",
  25290. rotation: 0,
  25291. y: 5,
  25292. x: 10,
  25293. textAlign: "left",
  25294. reserveSpace: !1,
  25295. style: {
  25296. ...I && I.yAxisOptions.style
  25297. }
  25298. },
  25299. labels: {
  25300. allowOverlap: !0,
  25301. style: {
  25302. ...I && I.yAxisOptions.style
  25303. }
  25304. },
  25305. min: Number(T.LeftMin),
  25306. max: Number(T.LeftMax)
  25307. }], U = [];
  25308. return l.forEach((F, R) => {
  25309. const N = I ? R % I.lineOptionList.length : R;
  25310. let b = {
  25311. name: F.Name || F.Date,
  25312. nameZh: F.Name || F.Date,
  25313. nameEn: F.Date,
  25314. data: F.Value,
  25315. pointPlacement: "on",
  25316. type: I && I.lineOptionList[N].lineType || "line",
  25317. dashStyle: I && I.lineOptionList[N].dashStyle || "Solid",
  25318. yAxis: 0,
  25319. color: F.Color,
  25320. lineWidth: I && I.lineOptionList[N].lineWidth || 1,
  25321. chartType: "linear"
  25322. };
  25323. U.push(b);
  25324. }), {
  25325. chart: {
  25326. ...ms.chart,
  25327. ...I == null ? void 0 : I.drawOption,
  25328. spacing: [2, 10, 2, 10],
  25329. polar: !0
  25330. },
  25331. title: {
  25332. text: ""
  25333. },
  25334. pane: {
  25335. size: "85%"
  25336. },
  25337. series: U,
  25338. yAxis: H,
  25339. xAxis: Z
  25340. };
  25341. }
  25342. function ss(r = "rgba(51, 51, 51, 1)") {
  25343. const d = r.match(/(\d(\.\d+)?)+/g) || ["", "", "", 1];
  25344. return parseFloat(d[3] || 1);
  25345. }
  25346. function aC(r = [], d, T = {}) {
  25347. if (d.ChartType === 5) {
  25348. r[1] && (kt.leftMin = r[1].MinData, kt.leftMax = r[1].MaxData);
  25349. return;
  25350. }
  25351. const l = r.filter((I) => I.IsAxis === 1).map((I) => [Number(I.MinData), Number(I.MaxData)]), y = r.filter((I) => !I.IsAxis).map((I) => [Number(I.MinData), Number(I.MaxData)]), j = r.filter((I) => I.IsAxis === 2).map((I) => [Number(I.MinData), Number(I.MaxData)]);
  25352. if (l.length) {
  25353. const {
  25354. Max: I,
  25355. Min: Z
  25356. } = Sn(l.flat());
  25357. kt.leftMin = Z, kt.leftMax = I;
  25358. }
  25359. if (y.length) {
  25360. const {
  25361. Max: I,
  25362. Min: Z
  25363. } = Sn(y.flat());
  25364. kt.rightMin = Z, kt.rightMax = I;
  25365. }
  25366. if (j.length) {
  25367. const {
  25368. Max: I,
  25369. Min: Z
  25370. } = Sn(j.flat());
  25371. kt.rightTwoMin = Z, kt.rightTwoMax = I;
  25372. }
  25373. d.ChartType === 2 && T.RightAxis && T.RightAxis.IsAdd && T.RightAxis.IsShow && (T.RightAxis.IndicatorType === 1 ? (kt.rightMin = T.RightAxis.EdbInfoList[0].MinData || 0, kt.rightMax = T.RightAxis.EdbInfoList[0].MaxData || 0) : (kt.rightMin = r[1].MinData || 0, kt.rightMax = r[1].MaxData || 0));
  25374. }
  25375. function Sn(r) {
  25376. return {
  25377. Max: Math.max(...r),
  25378. Min: Math.min(...r)
  25379. };
  25380. }
  25381. function lC({ EdbInfoList: r, ChartInfo: d, DataResp: T }) {
  25382. const {
  25383. //左右轴极值字段
  25384. LeftMin: l = 0,
  25385. LeftMax: y = 0,
  25386. RightMin: j = 0,
  25387. RightMax: I = 0,
  25388. Right2Min: Z = 0,
  25389. Right2Max: H = 0,
  25390. MinMaxSave: U
  25391. } = d;
  25392. U ? (kt.leftMin = Number(l), kt.leftMax = Number(y), kt.rightMin = Number(j), kt.rightMax = Number(I), kt.rightTwoMin = Number(Z), kt.rightTwoMax = Number(H), hC(r, d), console.log("check", kt.leftMin, kt.leftMax)) : aC(r, d, T || {});
  25393. }
  25394. function hC(r = [], d) {
  25395. if (d.ChartType === 5) {
  25396. r[1] && Number(kt.leftMin) === 0 && Number(kt.leftMax) === 0 && (kt.leftMin = r[1].MinData, kt.leftMax = r[1].MaxData);
  25397. return;
  25398. }
  25399. if (Number(kt.leftMin) === 0 && Number(kt.leftMax) === 0) {
  25400. const T = r.filter((l) => l.IsAxis === 1).map((l) => [Number(l.MinData), Number(l.MaxData)]);
  25401. if (T.length) {
  25402. const { Max: l, Min: y } = Sn(T.flat());
  25403. kt.leftMin = y, kt.leftMax = l;
  25404. }
  25405. }
  25406. if (Number(kt.rightMin) === 0 && Number(kt.rightMax) === 0) {
  25407. const T = r.filter((l) => !l.IsAxis).map((l) => [Number(l.MinData), Number(l.MaxData)]);
  25408. if (T.length) {
  25409. const { Max: l, Min: y } = Sn(T.flat());
  25410. kt.rightMin = y, kt.rightMax = l;
  25411. }
  25412. }
  25413. if (Number(kt.rightTwoMin) === 0 && Number(kt.rightTwoMax) === 0) {
  25414. const T = r.filter((l) => l.IsAxis === 2).map((l) => [Number(l.MinData), Number(l.MaxData)]);
  25415. if (T.length) {
  25416. const { Max: l, Min: y } = Sn(T.flat());
  25417. kt.rightTwoMin = y, kt.rightTwoMax = l;
  25418. }
  25419. }
  25420. }
  25421. function Vu(r, d) {
  25422. return function() {
  25423. return r.apply(d, arguments);
  25424. };
  25425. }
  25426. const { toString: cC } = Object.prototype, { getPrototypeOf: Vl } = Object, js = ((r) => (d) => {
  25427. const T = cC.call(d);
  25428. return r[T] || (r[T] = T.slice(8, -1).toLowerCase());
  25429. })(/* @__PURE__ */ Object.create(null)), Ji = (r) => (r = r.toLowerCase(), (d) => js(d) === r), Ws = (r) => (d) => typeof d === r, { isArray: Tn } = Array, oo = Ws("undefined");
  25430. function pC(r) {
  25431. return r !== null && !oo(r) && r.constructor !== null && !oo(r.constructor) && Pi(r.constructor.isBuffer) && r.constructor.isBuffer(r);
  25432. }
  25433. const $u = Ji("ArrayBuffer");
  25434. function uC(r) {
  25435. let d;
  25436. return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? d = ArrayBuffer.isView(r) : d = r && r.buffer && $u(r.buffer), d;
  25437. }
  25438. const dC = Ws("string"), Pi = Ws("function"), Zu = Ws("number"), zs = (r) => r !== null && typeof r == "object", fC = (r) => r === !0 || r === !1, ps = (r) => {
  25439. if (js(r) !== "object")
  25440. return !1;
  25441. const d = Vl(r);
  25442. return (d === null || d === Object.prototype || Object.getPrototypeOf(d) === null) && !(Symbol.toStringTag in r) && !(Symbol.iterator in r);
  25443. }, gC = Ji("Date"), mC = Ji("File"), yC = Ji("Blob"), vC = Ji("FileList"), xC = (r) => zs(r) && Pi(r.pipe), bC = (r) => {
  25444. let d;
  25445. return r && (typeof FormData == "function" && r instanceof FormData || Pi(r.append) && ((d = js(r)) === "formdata" || // detect form-data instance
  25446. d === "object" && Pi(r.toString) && r.toString() === "[object FormData]"));
  25447. }, SC = Ji("URLSearchParams"), wC = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  25448. function co(r, d, { allOwnKeys: T = !1 } = {}) {
  25449. if (r === null || typeof r > "u")
  25450. return;
  25451. let l, y;
  25452. if (typeof r != "object" && (r = [r]), Tn(r))
  25453. for (l = 0, y = r.length; l < y; l++)
  25454. d.call(null, r[l], l, r);
  25455. else {
  25456. const j = T ? Object.getOwnPropertyNames(r) : Object.keys(r), I = j.length;
  25457. let Z;
  25458. for (l = 0; l < I; l++)
  25459. Z = j[l], d.call(null, r[Z], Z, r);
  25460. }
  25461. }
  25462. function Ku(r, d) {
  25463. d = d.toLowerCase();
  25464. const T = Object.keys(r);
  25465. let l = T.length, y;
  25466. for (; l-- > 0; )
  25467. if (y = T[l], d === y.toLowerCase())
  25468. return y;
  25469. return null;
  25470. }
  25471. const Ju = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), qu = (r) => !oo(r) && r !== Ju;
  25472. function Sl() {
  25473. const { caseless: r } = qu(this) && this || {}, d = {}, T = (l, y) => {
  25474. const j = r && Ku(d, y) || y;
  25475. ps(d[j]) && ps(l) ? d[j] = Sl(d[j], l) : ps(l) ? d[j] = Sl({}, l) : Tn(l) ? d[j] = l.slice() : d[j] = l;
  25476. };
  25477. for (let l = 0, y = arguments.length; l < y; l++)
  25478. arguments[l] && co(arguments[l], T);
  25479. return d;
  25480. }
  25481. const CC = (r, d, T, { allOwnKeys: l } = {}) => (co(d, (y, j) => {
  25482. T && Pi(y) ? r[j] = Vu(y, T) : r[j] = y;
  25483. }, { allOwnKeys: l }), r), MC = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), kC = (r, d, T, l) => {
  25484. r.prototype = Object.create(d.prototype, l), r.prototype.constructor = r, Object.defineProperty(r, "super", {
  25485. value: d.prototype
  25486. }), T && Object.assign(r.prototype, T);
  25487. }, AC = (r, d, T, l) => {
  25488. let y, j, I;
  25489. const Z = {};
  25490. if (d = d || {}, r == null)
  25491. return d;
  25492. do {
  25493. for (y = Object.getOwnPropertyNames(r), j = y.length; j-- > 0; )
  25494. I = y[j], (!l || l(I, r, d)) && !Z[I] && (d[I] = r[I], Z[I] = !0);
  25495. r = T !== !1 && Vl(r);
  25496. } while (r && (!T || T(r, d)) && r !== Object.prototype);
  25497. return d;
  25498. }, TC = (r, d, T) => {
  25499. r = String(r), (T === void 0 || T > r.length) && (T = r.length), T -= d.length;
  25500. const l = r.indexOf(d, T);
  25501. return l !== -1 && l === T;
  25502. }, PC = (r) => {
  25503. if (!r)
  25504. return null;
  25505. if (Tn(r))
  25506. return r;
  25507. let d = r.length;
  25508. if (!Zu(d))
  25509. return null;
  25510. const T = new Array(d);
  25511. for (; d-- > 0; )
  25512. T[d] = r[d];
  25513. return T;
  25514. }, EC = ((r) => (d) => r && d instanceof r)(typeof Uint8Array < "u" && Vl(Uint8Array)), OC = (r, d) => {
  25515. const l = (r && r[Symbol.iterator]).call(r);
  25516. let y;
  25517. for (; (y = l.next()) && !y.done; ) {
  25518. const j = y.value;
  25519. d.call(r, j[0], j[1]);
  25520. }
  25521. }, LC = (r, d) => {
  25522. let T;
  25523. const l = [];
  25524. for (; (T = r.exec(d)) !== null; )
  25525. l.push(T);
  25526. return l;
  25527. }, _C = Ji("HTMLFormElement"), DC = (r) => r.toLowerCase().replace(
  25528. /[-_\s]([a-z\d])(\w*)/g,
  25529. function(T, l, y) {
  25530. return l.toUpperCase() + y;
  25531. }
  25532. ), _p = (({ hasOwnProperty: r }) => (d, T) => r.call(d, T))(Object.prototype), IC = Ji("RegExp"), Qu = (r, d) => {
  25533. const T = Object.getOwnPropertyDescriptors(r), l = {};
  25534. co(T, (y, j) => {
  25535. d(y, j, r) !== !1 && (l[j] = y);
  25536. }), Object.defineProperties(r, l);
  25537. }, RC = (r) => {
  25538. Qu(r, (d, T) => {
  25539. if (Pi(r) && ["arguments", "caller", "callee"].indexOf(T) !== -1)
  25540. return !1;
  25541. const l = r[T];
  25542. if (Pi(l)) {
  25543. if (d.enumerable = !1, "writable" in d) {
  25544. d.writable = !1;
  25545. return;
  25546. }
  25547. d.set || (d.set = () => {
  25548. throw Error("Can not rewrite read-only method '" + T + "'");
  25549. });
  25550. }
  25551. });
  25552. }, NC = (r, d) => {
  25553. const T = {}, l = (y) => {
  25554. y.forEach((j) => {
  25555. T[j] = !0;
  25556. });
  25557. };
  25558. return Tn(r) ? l(r) : l(String(r).split(d)), T;
  25559. }, BC = () => {
  25560. }, jC = (r, d) => (r = +r, Number.isFinite(r) ? r : d), cl = "abcdefghijklmnopqrstuvwxyz", Dp = "0123456789", td = {
  25561. DIGIT: Dp,
  25562. ALPHA: cl,
  25563. ALPHA_DIGIT: cl + cl.toUpperCase() + Dp
  25564. }, WC = (r = 16, d = td.ALPHA_DIGIT) => {
  25565. let T = "";
  25566. const { length: l } = d;
  25567. for (; r--; )
  25568. T += d[Math.random() * l | 0];
  25569. return T;
  25570. };
  25571. function zC(r) {
  25572. return !!(r && Pi(r.append) && r[Symbol.toStringTag] === "FormData" && r[Symbol.iterator]);
  25573. }
  25574. const YC = (r) => {
  25575. const d = new Array(10), T = (l, y) => {
  25576. if (zs(l)) {
  25577. if (d.indexOf(l) >= 0)
  25578. return;
  25579. if (!("toJSON" in l)) {
  25580. d[y] = l;
  25581. const j = Tn(l) ? [] : {};
  25582. return co(l, (I, Z) => {
  25583. const H = T(I, y + 1);
  25584. !oo(H) && (j[Z] = H);
  25585. }), d[y] = void 0, j;
  25586. }
  25587. }
  25588. return l;
  25589. };
  25590. return T(r, 0);
  25591. }, XC = Ji("AsyncFunction"), GC = (r) => r && (zs(r) || Pi(r)) && Pi(r.then) && Pi(r.catch), _t = {
  25592. isArray: Tn,
  25593. isArrayBuffer: $u,
  25594. isBuffer: pC,
  25595. isFormData: bC,
  25596. isArrayBufferView: uC,
  25597. isString: dC,
  25598. isNumber: Zu,
  25599. isBoolean: fC,
  25600. isObject: zs,
  25601. isPlainObject: ps,
  25602. isUndefined: oo,
  25603. isDate: gC,
  25604. isFile: mC,
  25605. isBlob: yC,
  25606. isRegExp: IC,
  25607. isFunction: Pi,
  25608. isStream: xC,
  25609. isURLSearchParams: SC,
  25610. isTypedArray: EC,
  25611. isFileList: vC,
  25612. forEach: co,
  25613. merge: Sl,
  25614. extend: CC,
  25615. trim: wC,
  25616. stripBOM: MC,
  25617. inherits: kC,
  25618. toFlatObject: AC,
  25619. kindOf: js,
  25620. kindOfTest: Ji,
  25621. endsWith: TC,
  25622. toArray: PC,
  25623. forEachEntry: OC,
  25624. matchAll: LC,
  25625. isHTMLForm: _C,
  25626. hasOwnProperty: _p,
  25627. hasOwnProp: _p,
  25628. // an alias to avoid ESLint no-prototype-builtins detection
  25629. reduceDescriptors: Qu,
  25630. freezeMethods: RC,
  25631. toObjectSet: NC,
  25632. toCamelCase: DC,
  25633. noop: BC,
  25634. toFiniteNumber: jC,
  25635. findKey: Ku,
  25636. global: Ju,
  25637. isContextDefined: qu,
  25638. ALPHABET: td,
  25639. generateString: WC,
  25640. isSpecCompliantForm: zC,
  25641. toJSONObject: YC,
  25642. isAsyncFn: XC,
  25643. isThenable: GC
  25644. };
  25645. function fe(r, d, T, l, y) {
  25646. Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = r, this.name = "AxiosError", d && (this.code = d), T && (this.config = T), l && (this.request = l), y && (this.response = y);
  25647. }
  25648. _t.inherits(fe, Error, {
  25649. toJSON: function() {
  25650. return {
  25651. // Standard
  25652. message: this.message,
  25653. name: this.name,
  25654. // Microsoft
  25655. description: this.description,
  25656. number: this.number,
  25657. // Mozilla
  25658. fileName: this.fileName,
  25659. lineNumber: this.lineNumber,
  25660. columnNumber: this.columnNumber,
  25661. stack: this.stack,
  25662. // Axios
  25663. config: _t.toJSONObject(this.config),
  25664. code: this.code,
  25665. status: this.response && this.response.status ? this.response.status : null
  25666. };
  25667. }
  25668. });
  25669. const ed = fe.prototype, id = {};
  25670. [
  25671. "ERR_BAD_OPTION_VALUE",
  25672. "ERR_BAD_OPTION",
  25673. "ECONNABORTED",
  25674. "ETIMEDOUT",
  25675. "ERR_NETWORK",
  25676. "ERR_FR_TOO_MANY_REDIRECTS",
  25677. "ERR_DEPRECATED",
  25678. "ERR_BAD_RESPONSE",
  25679. "ERR_BAD_REQUEST",
  25680. "ERR_CANCELED",
  25681. "ERR_NOT_SUPPORT",
  25682. "ERR_INVALID_URL"
  25683. // eslint-disable-next-line func-names
  25684. ].forEach((r) => {
  25685. id[r] = { value: r };
  25686. });
  25687. Object.defineProperties(fe, id);
  25688. Object.defineProperty(ed, "isAxiosError", { value: !0 });
  25689. fe.from = (r, d, T, l, y, j) => {
  25690. const I = Object.create(ed);
  25691. return _t.toFlatObject(r, I, function(H) {
  25692. return H !== Error.prototype;
  25693. }, (Z) => Z !== "isAxiosError"), fe.call(I, r.message, d, T, l, y), I.cause = r, I.name = r.name, j && Object.assign(I, j), I;
  25694. };
  25695. const HC = null;
  25696. function wl(r) {
  25697. return _t.isPlainObject(r) || _t.isArray(r);
  25698. }
  25699. function rd(r) {
  25700. return _t.endsWith(r, "[]") ? r.slice(0, -2) : r;
  25701. }
  25702. function Ip(r, d, T) {
  25703. return r ? r.concat(d).map(function(y, j) {
  25704. return y = rd(y), !T && j ? "[" + y + "]" : y;
  25705. }).join(T ? "." : "") : d;
  25706. }
  25707. function FC(r) {
  25708. return _t.isArray(r) && !r.some(wl);
  25709. }
  25710. const UC = _t.toFlatObject(_t, {}, null, function(d) {
  25711. return /^is[A-Z]/.test(d);
  25712. });
  25713. function Ys(r, d, T) {
  25714. if (!_t.isObject(r))
  25715. throw new TypeError("target must be an object");
  25716. d = d || new FormData(), T = _t.toFlatObject(T, {
  25717. metaTokens: !0,
  25718. dots: !1,
  25719. indexes: !1
  25720. }, !1, function(u, f) {
  25721. return !_t.isUndefined(f[u]);
  25722. });
  25723. const l = T.metaTokens, y = T.visitor || F, j = T.dots, I = T.indexes, H = (T.Blob || typeof Blob < "u" && Blob) && _t.isSpecCompliantForm(d);
  25724. if (!_t.isFunction(y))
  25725. throw new TypeError("visitor must be a function");
  25726. function U(x) {
  25727. if (x === null)
  25728. return "";
  25729. if (_t.isDate(x))
  25730. return x.toISOString();
  25731. if (!H && _t.isBlob(x))
  25732. throw new fe("Blob is not supported. Use a Buffer instead.");
  25733. return _t.isArrayBuffer(x) || _t.isTypedArray(x) ? H && typeof Blob == "function" ? new Blob([x]) : Buffer.from(x) : x;
  25734. }
  25735. function F(x, u, f) {
  25736. let E = x;
  25737. if (x && !f && typeof x == "object") {
  25738. if (_t.endsWith(u, "{}"))
  25739. u = l ? u : u.slice(0, -2), x = JSON.stringify(x);
  25740. else if (_t.isArray(x) && FC(x) || (_t.isFileList(x) || _t.endsWith(u, "[]")) && (E = _t.toArray(x)))
  25741. return u = rd(u), E.forEach(function(B, M) {
  25742. !(_t.isUndefined(B) || B === null) && d.append(
  25743. // eslint-disable-next-line no-nested-ternary
  25744. I === !0 ? Ip([u], M, j) : I === null ? u : u + "[]",
  25745. U(B)
  25746. );
  25747. }), !1;
  25748. }
  25749. return wl(x) ? !0 : (d.append(Ip(f, u, j), U(x)), !1);
  25750. }
  25751. const R = [], N = Object.assign(UC, {
  25752. defaultVisitor: F,
  25753. convertValue: U,
  25754. isVisitable: wl
  25755. });
  25756. function b(x, u) {
  25757. if (!_t.isUndefined(x)) {
  25758. if (R.indexOf(x) !== -1)
  25759. throw Error("Circular reference detected in " + u.join("."));
  25760. R.push(x), _t.forEach(x, function(E, O) {
  25761. (!(_t.isUndefined(E) || E === null) && y.call(
  25762. d,
  25763. E,
  25764. _t.isString(O) ? O.trim() : O,
  25765. u,
  25766. N
  25767. )) === !0 && b(E, u ? u.concat(O) : [O]);
  25768. }), R.pop();
  25769. }
  25770. }
  25771. if (!_t.isObject(r))
  25772. throw new TypeError("data must be an object");
  25773. return b(r), d;
  25774. }
  25775. function Rp(r) {
  25776. const d = {
  25777. "!": "%21",
  25778. "'": "%27",
  25779. "(": "%28",
  25780. ")": "%29",
  25781. "~": "%7E",
  25782. "%20": "+",
  25783. "%00": "\0"
  25784. };
  25785. return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g, function(l) {
  25786. return d[l];
  25787. });
  25788. }
  25789. function $l(r, d) {
  25790. this._pairs = [], r && Ys(r, this, d);
  25791. }
  25792. const nd = $l.prototype;
  25793. nd.append = function(d, T) {
  25794. this._pairs.push([d, T]);
  25795. };
  25796. nd.toString = function(d) {
  25797. const T = d ? function(l) {
  25798. return d.call(this, l, Rp);
  25799. } : Rp;
  25800. return this._pairs.map(function(y) {
  25801. return T(y[0]) + "=" + T(y[1]);
  25802. }, "").join("&");
  25803. };
  25804. function VC(r) {
  25805. return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
  25806. }
  25807. function od(r, d, T) {
  25808. if (!d)
  25809. return r;
  25810. const l = T && T.encode || VC, y = T && T.serialize;
  25811. let j;
  25812. if (y ? j = y(d, T) : j = _t.isURLSearchParams(d) ? d.toString() : new $l(d, T).toString(l), j) {
  25813. const I = r.indexOf("#");
  25814. I !== -1 && (r = r.slice(0, I)), r += (r.indexOf("?") === -1 ? "?" : "&") + j;
  25815. }
  25816. return r;
  25817. }
  25818. class $C {
  25819. constructor() {
  25820. this.handlers = [];
  25821. }
  25822. /**
  25823. * Add a new interceptor to the stack
  25824. *
  25825. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  25826. * @param {Function} rejected The function to handle `reject` for a `Promise`
  25827. *
  25828. * @return {Number} An ID used to remove interceptor later
  25829. */
  25830. use(d, T, l) {
  25831. return this.handlers.push({
  25832. fulfilled: d,
  25833. rejected: T,
  25834. synchronous: l ? l.synchronous : !1,
  25835. runWhen: l ? l.runWhen : null
  25836. }), this.handlers.length - 1;
  25837. }
  25838. /**
  25839. * Remove an interceptor from the stack
  25840. *
  25841. * @param {Number} id The ID that was returned by `use`
  25842. *
  25843. * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
  25844. */
  25845. eject(d) {
  25846. this.handlers[d] && (this.handlers[d] = null);
  25847. }
  25848. /**
  25849. * Clear all interceptors from the stack
  25850. *
  25851. * @returns {void}
  25852. */
  25853. clear() {
  25854. this.handlers && (this.handlers = []);
  25855. }
  25856. /**
  25857. * Iterate over all the registered interceptors
  25858. *
  25859. * This method is particularly useful for skipping over any
  25860. * interceptors that may have become `null` calling `eject`.
  25861. *
  25862. * @param {Function} fn The function to call for each interceptor
  25863. *
  25864. * @returns {void}
  25865. */
  25866. forEach(d) {
  25867. _t.forEach(this.handlers, function(l) {
  25868. l !== null && d(l);
  25869. });
  25870. }
  25871. }
  25872. const Np = $C, sd = {
  25873. silentJSONParsing: !0,
  25874. forcedJSONParsing: !0,
  25875. clarifyTimeoutError: !1
  25876. }, ZC = typeof URLSearchParams < "u" ? URLSearchParams : $l, KC = typeof FormData < "u" ? FormData : null, JC = typeof Blob < "u" ? Blob : null, qC = (() => {
  25877. let r;
  25878. return typeof navigator < "u" && ((r = navigator.product) === "ReactNative" || r === "NativeScript" || r === "NS") ? !1 : typeof window < "u" && typeof document < "u";
  25879. })(), QC = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
  25880. self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Vi = {
  25881. isBrowser: !0,
  25882. classes: {
  25883. URLSearchParams: ZC,
  25884. FormData: KC,
  25885. Blob: JC
  25886. },
  25887. isStandardBrowserEnv: qC,
  25888. isStandardBrowserWebWorkerEnv: QC,
  25889. protocols: ["http", "https", "file", "blob", "url", "data"]
  25890. };
  25891. function tM(r, d) {
  25892. return Ys(r, new Vi.classes.URLSearchParams(), Object.assign({
  25893. visitor: function(T, l, y, j) {
  25894. return Vi.isNode && _t.isBuffer(T) ? (this.append(l, T.toString("base64")), !1) : j.defaultVisitor.apply(this, arguments);
  25895. }
  25896. }, d));
  25897. }
  25898. function eM(r) {
  25899. return _t.matchAll(/\w+|\[(\w*)]/g, r).map((d) => d[0] === "[]" ? "" : d[1] || d[0]);
  25900. }
  25901. function iM(r) {
  25902. const d = {}, T = Object.keys(r);
  25903. let l;
  25904. const y = T.length;
  25905. let j;
  25906. for (l = 0; l < y; l++)
  25907. j = T[l], d[j] = r[j];
  25908. return d;
  25909. }
  25910. function ad(r) {
  25911. function d(T, l, y, j) {
  25912. let I = T[j++];
  25913. const Z = Number.isFinite(+I), H = j >= T.length;
  25914. return I = !I && _t.isArray(y) ? y.length : I, H ? (_t.hasOwnProp(y, I) ? y[I] = [y[I], l] : y[I] = l, !Z) : ((!y[I] || !_t.isObject(y[I])) && (y[I] = []), d(T, l, y[I], j) && _t.isArray(y[I]) && (y[I] = iM(y[I])), !Z);
  25915. }
  25916. if (_t.isFormData(r) && _t.isFunction(r.entries)) {
  25917. const T = {};
  25918. return _t.forEachEntry(r, (l, y) => {
  25919. d(eM(l), y, T, 0);
  25920. }), T;
  25921. }
  25922. return null;
  25923. }
  25924. const rM = {
  25925. "Content-Type": void 0
  25926. };
  25927. function nM(r, d, T) {
  25928. if (_t.isString(r))
  25929. try {
  25930. return (d || JSON.parse)(r), _t.trim(r);
  25931. } catch (l) {
  25932. if (l.name !== "SyntaxError")
  25933. throw l;
  25934. }
  25935. return (T || JSON.stringify)(r);
  25936. }
  25937. const Xs = {
  25938. transitional: sd,
  25939. adapter: ["xhr", "http"],
  25940. transformRequest: [function(d, T) {
  25941. const l = T.getContentType() || "", y = l.indexOf("application/json") > -1, j = _t.isObject(d);
  25942. if (j && _t.isHTMLForm(d) && (d = new FormData(d)), _t.isFormData(d))
  25943. return y && y ? JSON.stringify(ad(d)) : d;
  25944. if (_t.isArrayBuffer(d) || _t.isBuffer(d) || _t.isStream(d) || _t.isFile(d) || _t.isBlob(d))
  25945. return d;
  25946. if (_t.isArrayBufferView(d))
  25947. return d.buffer;
  25948. if (_t.isURLSearchParams(d))
  25949. return T.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), d.toString();
  25950. let Z;
  25951. if (j) {
  25952. if (l.indexOf("application/x-www-form-urlencoded") > -1)
  25953. return tM(d, this.formSerializer).toString();
  25954. if ((Z = _t.isFileList(d)) || l.indexOf("multipart/form-data") > -1) {
  25955. const H = this.env && this.env.FormData;
  25956. return Ys(
  25957. Z ? { "files[]": d } : d,
  25958. H && new H(),
  25959. this.formSerializer
  25960. );
  25961. }
  25962. }
  25963. return j || y ? (T.setContentType("application/json", !1), nM(d)) : d;
  25964. }],
  25965. transformResponse: [function(d) {
  25966. const T = this.transitional || Xs.transitional, l = T && T.forcedJSONParsing, y = this.responseType === "json";
  25967. if (d && _t.isString(d) && (l && !this.responseType || y)) {
  25968. const I = !(T && T.silentJSONParsing) && y;
  25969. try {
  25970. return JSON.parse(d);
  25971. } catch (Z) {
  25972. if (I)
  25973. throw Z.name === "SyntaxError" ? fe.from(Z, fe.ERR_BAD_RESPONSE, this, null, this.response) : Z;
  25974. }
  25975. }
  25976. return d;
  25977. }],
  25978. /**
  25979. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  25980. * timeout is not created.
  25981. */
  25982. timeout: 0,
  25983. xsrfCookieName: "XSRF-TOKEN",
  25984. xsrfHeaderName: "X-XSRF-TOKEN",
  25985. maxContentLength: -1,
  25986. maxBodyLength: -1,
  25987. env: {
  25988. FormData: Vi.classes.FormData,
  25989. Blob: Vi.classes.Blob
  25990. },
  25991. validateStatus: function(d) {
  25992. return d >= 200 && d < 300;
  25993. },
  25994. headers: {
  25995. common: {
  25996. Accept: "application/json, text/plain, */*"
  25997. }
  25998. }
  25999. };
  26000. _t.forEach(["delete", "get", "head"], function(d) {
  26001. Xs.headers[d] = {};
  26002. });
  26003. _t.forEach(["post", "put", "patch"], function(d) {
  26004. Xs.headers[d] = _t.merge(rM);
  26005. });
  26006. const Zl = Xs, oM = _t.toObjectSet([
  26007. "age",
  26008. "authorization",
  26009. "content-length",
  26010. "content-type",
  26011. "etag",
  26012. "expires",
  26013. "from",
  26014. "host",
  26015. "if-modified-since",
  26016. "if-unmodified-since",
  26017. "last-modified",
  26018. "location",
  26019. "max-forwards",
  26020. "proxy-authorization",
  26021. "referer",
  26022. "retry-after",
  26023. "user-agent"
  26024. ]), sM = (r) => {
  26025. const d = {};
  26026. let T, l, y;
  26027. return r && r.split(`
  26028. `).forEach(function(I) {
  26029. y = I.indexOf(":"), T = I.substring(0, y).trim().toLowerCase(), l = I.substring(y + 1).trim(), !(!T || d[T] && oM[T]) && (T === "set-cookie" ? d[T] ? d[T].push(l) : d[T] = [l] : d[T] = d[T] ? d[T] + ", " + l : l);
  26030. }), d;
  26031. }, Bp = Symbol("internals");
  26032. function Kn(r) {
  26033. return r && String(r).trim().toLowerCase();
  26034. }
  26035. function us(r) {
  26036. return r === !1 || r == null ? r : _t.isArray(r) ? r.map(us) : String(r);
  26037. }
  26038. function aM(r) {
  26039. const d = /* @__PURE__ */ Object.create(null), T = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  26040. let l;
  26041. for (; l = T.exec(r); )
  26042. d[l[1]] = l[2];
  26043. return d;
  26044. }
  26045. const lM = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
  26046. function pl(r, d, T, l, y) {
  26047. if (_t.isFunction(l))
  26048. return l.call(this, d, T);
  26049. if (y && (d = T), !!_t.isString(d)) {
  26050. if (_t.isString(l))
  26051. return d.indexOf(l) !== -1;
  26052. if (_t.isRegExp(l))
  26053. return l.test(d);
  26054. }
  26055. }
  26056. function hM(r) {
  26057. return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (d, T, l) => T.toUpperCase() + l);
  26058. }
  26059. function cM(r, d) {
  26060. const T = _t.toCamelCase(" " + d);
  26061. ["get", "set", "has"].forEach((l) => {
  26062. Object.defineProperty(r, l + T, {
  26063. value: function(y, j, I) {
  26064. return this[l].call(this, d, y, j, I);
  26065. },
  26066. configurable: !0
  26067. });
  26068. });
  26069. }
  26070. class Gs {
  26071. constructor(d) {
  26072. d && this.set(d);
  26073. }
  26074. set(d, T, l) {
  26075. const y = this;
  26076. function j(Z, H, U) {
  26077. const F = Kn(H);
  26078. if (!F)
  26079. throw new Error("header name must be a non-empty string");
  26080. const R = _t.findKey(y, F);
  26081. (!R || y[R] === void 0 || U === !0 || U === void 0 && y[R] !== !1) && (y[R || H] = us(Z));
  26082. }
  26083. const I = (Z, H) => _t.forEach(Z, (U, F) => j(U, F, H));
  26084. return _t.isPlainObject(d) || d instanceof this.constructor ? I(d, T) : _t.isString(d) && (d = d.trim()) && !lM(d) ? I(sM(d), T) : d != null && j(T, d, l), this;
  26085. }
  26086. get(d, T) {
  26087. if (d = Kn(d), d) {
  26088. const l = _t.findKey(this, d);
  26089. if (l) {
  26090. const y = this[l];
  26091. if (!T)
  26092. return y;
  26093. if (T === !0)
  26094. return aM(y);
  26095. if (_t.isFunction(T))
  26096. return T.call(this, y, l);
  26097. if (_t.isRegExp(T))
  26098. return T.exec(y);
  26099. throw new TypeError("parser must be boolean|regexp|function");
  26100. }
  26101. }
  26102. }
  26103. has(d, T) {
  26104. if (d = Kn(d), d) {
  26105. const l = _t.findKey(this, d);
  26106. return !!(l && this[l] !== void 0 && (!T || pl(this, this[l], l, T)));
  26107. }
  26108. return !1;
  26109. }
  26110. delete(d, T) {
  26111. const l = this;
  26112. let y = !1;
  26113. function j(I) {
  26114. if (I = Kn(I), I) {
  26115. const Z = _t.findKey(l, I);
  26116. Z && (!T || pl(l, l[Z], Z, T)) && (delete l[Z], y = !0);
  26117. }
  26118. }
  26119. return _t.isArray(d) ? d.forEach(j) : j(d), y;
  26120. }
  26121. clear(d) {
  26122. const T = Object.keys(this);
  26123. let l = T.length, y = !1;
  26124. for (; l--; ) {
  26125. const j = T[l];
  26126. (!d || pl(this, this[j], j, d, !0)) && (delete this[j], y = !0);
  26127. }
  26128. return y;
  26129. }
  26130. normalize(d) {
  26131. const T = this, l = {};
  26132. return _t.forEach(this, (y, j) => {
  26133. const I = _t.findKey(l, j);
  26134. if (I) {
  26135. T[I] = us(y), delete T[j];
  26136. return;
  26137. }
  26138. const Z = d ? hM(j) : String(j).trim();
  26139. Z !== j && delete T[j], T[Z] = us(y), l[Z] = !0;
  26140. }), this;
  26141. }
  26142. concat(...d) {
  26143. return this.constructor.concat(this, ...d);
  26144. }
  26145. toJSON(d) {
  26146. const T = /* @__PURE__ */ Object.create(null);
  26147. return _t.forEach(this, (l, y) => {
  26148. l != null && l !== !1 && (T[y] = d && _t.isArray(l) ? l.join(", ") : l);
  26149. }), T;
  26150. }
  26151. [Symbol.iterator]() {
  26152. return Object.entries(this.toJSON())[Symbol.iterator]();
  26153. }
  26154. toString() {
  26155. return Object.entries(this.toJSON()).map(([d, T]) => d + ": " + T).join(`
  26156. `);
  26157. }
  26158. get [Symbol.toStringTag]() {
  26159. return "AxiosHeaders";
  26160. }
  26161. static from(d) {
  26162. return d instanceof this ? d : new this(d);
  26163. }
  26164. static concat(d, ...T) {
  26165. const l = new this(d);
  26166. return T.forEach((y) => l.set(y)), l;
  26167. }
  26168. static accessor(d) {
  26169. const l = (this[Bp] = this[Bp] = {
  26170. accessors: {}
  26171. }).accessors, y = this.prototype;
  26172. function j(I) {
  26173. const Z = Kn(I);
  26174. l[Z] || (cM(y, I), l[Z] = !0);
  26175. }
  26176. return _t.isArray(d) ? d.forEach(j) : j(d), this;
  26177. }
  26178. }
  26179. Gs.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
  26180. _t.freezeMethods(Gs.prototype);
  26181. _t.freezeMethods(Gs);
  26182. const fr = Gs;
  26183. function ul(r, d) {
  26184. const T = this || Zl, l = d || T, y = fr.from(l.headers);
  26185. let j = l.data;
  26186. return _t.forEach(r, function(Z) {
  26187. j = Z.call(T, j, y.normalize(), d ? d.status : void 0);
  26188. }), y.normalize(), j;
  26189. }
  26190. function ld(r) {
  26191. return !!(r && r.__CANCEL__);
  26192. }
  26193. function po(r, d, T) {
  26194. fe.call(this, r ?? "canceled", fe.ERR_CANCELED, d, T), this.name = "CanceledError";
  26195. }
  26196. _t.inherits(po, fe, {
  26197. __CANCEL__: !0
  26198. });
  26199. function pM(r, d, T) {
  26200. const l = T.config.validateStatus;
  26201. !T.status || !l || l(T.status) ? r(T) : d(new fe(
  26202. "Request failed with status code " + T.status,
  26203. [fe.ERR_BAD_REQUEST, fe.ERR_BAD_RESPONSE][Math.floor(T.status / 100) - 4],
  26204. T.config,
  26205. T.request,
  26206. T
  26207. ));
  26208. }
  26209. const uM = Vi.isStandardBrowserEnv ? (
  26210. // Standard browser envs support document.cookie
  26211. function() {
  26212. return {
  26213. write: function(T, l, y, j, I, Z) {
  26214. const H = [];
  26215. H.push(T + "=" + encodeURIComponent(l)), _t.isNumber(y) && H.push("expires=" + new Date(y).toGMTString()), _t.isString(j) && H.push("path=" + j), _t.isString(I) && H.push("domain=" + I), Z === !0 && H.push("secure"), document.cookie = H.join("; ");
  26216. },
  26217. read: function(T) {
  26218. const l = document.cookie.match(new RegExp("(^|;\\s*)(" + T + ")=([^;]*)"));
  26219. return l ? decodeURIComponent(l[3]) : null;
  26220. },
  26221. remove: function(T) {
  26222. this.write(T, "", Date.now() - 864e5);
  26223. }
  26224. };
  26225. }()
  26226. ) : (
  26227. // Non standard browser env (web workers, react-native) lack needed support.
  26228. function() {
  26229. return {
  26230. write: function() {
  26231. },
  26232. read: function() {
  26233. return null;
  26234. },
  26235. remove: function() {
  26236. }
  26237. };
  26238. }()
  26239. );
  26240. function dM(r) {
  26241. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(r);
  26242. }
  26243. function fM(r, d) {
  26244. return d ? r.replace(/\/+$/, "") + "/" + d.replace(/^\/+/, "") : r;
  26245. }
  26246. function hd(r, d) {
  26247. return r && !dM(d) ? fM(r, d) : d;
  26248. }
  26249. const gM = Vi.isStandardBrowserEnv ? (
  26250. // Standard browser envs have full support of the APIs needed to test
  26251. // whether the request URL is of the same origin as current location.
  26252. function() {
  26253. const d = /(msie|trident)/i.test(navigator.userAgent), T = document.createElement("a");
  26254. let l;
  26255. function y(j) {
  26256. let I = j;
  26257. return d && (T.setAttribute("href", I), I = T.href), T.setAttribute("href", I), {
  26258. href: T.href,
  26259. protocol: T.protocol ? T.protocol.replace(/:$/, "") : "",
  26260. host: T.host,
  26261. search: T.search ? T.search.replace(/^\?/, "") : "",
  26262. hash: T.hash ? T.hash.replace(/^#/, "") : "",
  26263. hostname: T.hostname,
  26264. port: T.port,
  26265. pathname: T.pathname.charAt(0) === "/" ? T.pathname : "/" + T.pathname
  26266. };
  26267. }
  26268. return l = y(window.location.href), function(I) {
  26269. const Z = _t.isString(I) ? y(I) : I;
  26270. return Z.protocol === l.protocol && Z.host === l.host;
  26271. };
  26272. }()
  26273. ) : (
  26274. // Non standard browser envs (web workers, react-native) lack needed support.
  26275. function() {
  26276. return function() {
  26277. return !0;
  26278. };
  26279. }()
  26280. );
  26281. function mM(r) {
  26282. const d = /^([-+\w]{1,25})(:?\/\/|:)/.exec(r);
  26283. return d && d[1] || "";
  26284. }
  26285. function yM(r, d) {
  26286. r = r || 10;
  26287. const T = new Array(r), l = new Array(r);
  26288. let y = 0, j = 0, I;
  26289. return d = d !== void 0 ? d : 1e3, function(H) {
  26290. const U = Date.now(), F = l[j];
  26291. I || (I = U), T[y] = H, l[y] = U;
  26292. let R = j, N = 0;
  26293. for (; R !== y; )
  26294. N += T[R++], R = R % r;
  26295. if (y = (y + 1) % r, y === j && (j = (j + 1) % r), U - I < d)
  26296. return;
  26297. const b = F && U - F;
  26298. return b ? Math.round(N * 1e3 / b) : void 0;
  26299. };
  26300. }
  26301. function jp(r, d) {
  26302. let T = 0;
  26303. const l = yM(50, 250);
  26304. return (y) => {
  26305. const j = y.loaded, I = y.lengthComputable ? y.total : void 0, Z = j - T, H = l(Z), U = j <= I;
  26306. T = j;
  26307. const F = {
  26308. loaded: j,
  26309. total: I,
  26310. progress: I ? j / I : void 0,
  26311. bytes: Z,
  26312. rate: H || void 0,
  26313. estimated: H && I && U ? (I - j) / H : void 0,
  26314. event: y
  26315. };
  26316. F[d ? "download" : "upload"] = !0, r(F);
  26317. };
  26318. }
  26319. const vM = typeof XMLHttpRequest < "u", xM = vM && function(r) {
  26320. return new Promise(function(T, l) {
  26321. let y = r.data;
  26322. const j = fr.from(r.headers).normalize(), I = r.responseType;
  26323. let Z;
  26324. function H() {
  26325. r.cancelToken && r.cancelToken.unsubscribe(Z), r.signal && r.signal.removeEventListener("abort", Z);
  26326. }
  26327. _t.isFormData(y) && (Vi.isStandardBrowserEnv || Vi.isStandardBrowserWebWorkerEnv ? j.setContentType(!1) : j.setContentType("multipart/form-data;", !1));
  26328. let U = new XMLHttpRequest();
  26329. if (r.auth) {
  26330. const b = r.auth.username || "", x = r.auth.password ? unescape(encodeURIComponent(r.auth.password)) : "";
  26331. j.set("Authorization", "Basic " + btoa(b + ":" + x));
  26332. }
  26333. const F = hd(r.baseURL, r.url);
  26334. U.open(r.method.toUpperCase(), od(F, r.params, r.paramsSerializer), !0), U.timeout = r.timeout;
  26335. function R() {
  26336. if (!U)
  26337. return;
  26338. const b = fr.from(
  26339. "getAllResponseHeaders" in U && U.getAllResponseHeaders()
  26340. ), u = {
  26341. data: !I || I === "text" || I === "json" ? U.responseText : U.response,
  26342. status: U.status,
  26343. statusText: U.statusText,
  26344. headers: b,
  26345. config: r,
  26346. request: U
  26347. };
  26348. pM(function(E) {
  26349. T(E), H();
  26350. }, function(E) {
  26351. l(E), H();
  26352. }, u), U = null;
  26353. }
  26354. if ("onloadend" in U ? U.onloadend = R : U.onreadystatechange = function() {
  26355. !U || U.readyState !== 4 || U.status === 0 && !(U.responseURL && U.responseURL.indexOf("file:") === 0) || setTimeout(R);
  26356. }, U.onabort = function() {
  26357. U && (l(new fe("Request aborted", fe.ECONNABORTED, r, U)), U = null);
  26358. }, U.onerror = function() {
  26359. l(new fe("Network Error", fe.ERR_NETWORK, r, U)), U = null;
  26360. }, U.ontimeout = function() {
  26361. let x = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
  26362. const u = r.transitional || sd;
  26363. r.timeoutErrorMessage && (x = r.timeoutErrorMessage), l(new fe(
  26364. x,
  26365. u.clarifyTimeoutError ? fe.ETIMEDOUT : fe.ECONNABORTED,
  26366. r,
  26367. U
  26368. )), U = null;
  26369. }, Vi.isStandardBrowserEnv) {
  26370. const b = (r.withCredentials || gM(F)) && r.xsrfCookieName && uM.read(r.xsrfCookieName);
  26371. b && j.set(r.xsrfHeaderName, b);
  26372. }
  26373. y === void 0 && j.setContentType(null), "setRequestHeader" in U && _t.forEach(j.toJSON(), function(x, u) {
  26374. U.setRequestHeader(u, x);
  26375. }), _t.isUndefined(r.withCredentials) || (U.withCredentials = !!r.withCredentials), I && I !== "json" && (U.responseType = r.responseType), typeof r.onDownloadProgress == "function" && U.addEventListener("progress", jp(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && U.upload && U.upload.addEventListener("progress", jp(r.onUploadProgress)), (r.cancelToken || r.signal) && (Z = (b) => {
  26376. U && (l(!b || b.type ? new po(null, r, U) : b), U.abort(), U = null);
  26377. }, r.cancelToken && r.cancelToken.subscribe(Z), r.signal && (r.signal.aborted ? Z() : r.signal.addEventListener("abort", Z)));
  26378. const N = mM(F);
  26379. if (N && Vi.protocols.indexOf(N) === -1) {
  26380. l(new fe("Unsupported protocol " + N + ":", fe.ERR_BAD_REQUEST, r));
  26381. return;
  26382. }
  26383. U.send(y || null);
  26384. });
  26385. }, ds = {
  26386. http: HC,
  26387. xhr: xM
  26388. };
  26389. _t.forEach(ds, (r, d) => {
  26390. if (r) {
  26391. try {
  26392. Object.defineProperty(r, "name", { value: d });
  26393. } catch {
  26394. }
  26395. Object.defineProperty(r, "adapterName", { value: d });
  26396. }
  26397. });
  26398. const bM = {
  26399. getAdapter: (r) => {
  26400. r = _t.isArray(r) ? r : [r];
  26401. const { length: d } = r;
  26402. let T, l;
  26403. for (let y = 0; y < d && (T = r[y], !(l = _t.isString(T) ? ds[T.toLowerCase()] : T)); y++)
  26404. ;
  26405. if (!l)
  26406. throw l === !1 ? new fe(
  26407. `Adapter ${T} is not supported by the environment`,
  26408. "ERR_NOT_SUPPORT"
  26409. ) : new Error(
  26410. _t.hasOwnProp(ds, T) ? `Adapter '${T}' is not available in the build` : `Unknown adapter '${T}'`
  26411. );
  26412. if (!_t.isFunction(l))
  26413. throw new TypeError("adapter is not a function");
  26414. return l;
  26415. },
  26416. adapters: ds
  26417. };
  26418. function dl(r) {
  26419. if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
  26420. throw new po(null, r);
  26421. }
  26422. function Wp(r) {
  26423. return dl(r), r.headers = fr.from(r.headers), r.data = ul.call(
  26424. r,
  26425. r.transformRequest
  26426. ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), bM.getAdapter(r.adapter || Zl.adapter)(r).then(function(l) {
  26427. return dl(r), l.data = ul.call(
  26428. r,
  26429. r.transformResponse,
  26430. l
  26431. ), l.headers = fr.from(l.headers), l;
  26432. }, function(l) {
  26433. return ld(l) || (dl(r), l && l.response && (l.response.data = ul.call(
  26434. r,
  26435. r.transformResponse,
  26436. l.response
  26437. ), l.response.headers = fr.from(l.response.headers))), Promise.reject(l);
  26438. });
  26439. }
  26440. const zp = (r) => r instanceof fr ? r.toJSON() : r;
  26441. function wn(r, d) {
  26442. d = d || {};
  26443. const T = {};
  26444. function l(U, F, R) {
  26445. return _t.isPlainObject(U) && _t.isPlainObject(F) ? _t.merge.call({ caseless: R }, U, F) : _t.isPlainObject(F) ? _t.merge({}, F) : _t.isArray(F) ? F.slice() : F;
  26446. }
  26447. function y(U, F, R) {
  26448. if (_t.isUndefined(F)) {
  26449. if (!_t.isUndefined(U))
  26450. return l(void 0, U, R);
  26451. } else
  26452. return l(U, F, R);
  26453. }
  26454. function j(U, F) {
  26455. if (!_t.isUndefined(F))
  26456. return l(void 0, F);
  26457. }
  26458. function I(U, F) {
  26459. if (_t.isUndefined(F)) {
  26460. if (!_t.isUndefined(U))
  26461. return l(void 0, U);
  26462. } else
  26463. return l(void 0, F);
  26464. }
  26465. function Z(U, F, R) {
  26466. if (R in d)
  26467. return l(U, F);
  26468. if (R in r)
  26469. return l(void 0, U);
  26470. }
  26471. const H = {
  26472. url: j,
  26473. method: j,
  26474. data: j,
  26475. baseURL: I,
  26476. transformRequest: I,
  26477. transformResponse: I,
  26478. paramsSerializer: I,
  26479. timeout: I,
  26480. timeoutMessage: I,
  26481. withCredentials: I,
  26482. adapter: I,
  26483. responseType: I,
  26484. xsrfCookieName: I,
  26485. xsrfHeaderName: I,
  26486. onUploadProgress: I,
  26487. onDownloadProgress: I,
  26488. decompress: I,
  26489. maxContentLength: I,
  26490. maxBodyLength: I,
  26491. beforeRedirect: I,
  26492. transport: I,
  26493. httpAgent: I,
  26494. httpsAgent: I,
  26495. cancelToken: I,
  26496. socketPath: I,
  26497. responseEncoding: I,
  26498. validateStatus: Z,
  26499. headers: (U, F) => y(zp(U), zp(F), !0)
  26500. };
  26501. return _t.forEach(Object.keys(Object.assign({}, r, d)), function(F) {
  26502. const R = H[F] || y, N = R(r[F], d[F], F);
  26503. _t.isUndefined(N) && R !== Z || (T[F] = N);
  26504. }), T;
  26505. }
  26506. const cd = "1.4.0", Kl = {};
  26507. ["object", "boolean", "number", "function", "string", "symbol"].forEach((r, d) => {
  26508. Kl[r] = function(l) {
  26509. return typeof l === r || "a" + (d < 1 ? "n " : " ") + r;
  26510. };
  26511. });
  26512. const Yp = {};
  26513. Kl.transitional = function(d, T, l) {
  26514. function y(j, I) {
  26515. return "[Axios v" + cd + "] Transitional option '" + j + "'" + I + (l ? ". " + l : "");
  26516. }
  26517. return (j, I, Z) => {
  26518. if (d === !1)
  26519. throw new fe(
  26520. y(I, " has been removed" + (T ? " in " + T : "")),
  26521. fe.ERR_DEPRECATED
  26522. );
  26523. return T && !Yp[I] && (Yp[I] = !0, console.warn(
  26524. y(
  26525. I,
  26526. " has been deprecated since v" + T + " and will be removed in the near future"
  26527. )
  26528. )), d ? d(j, I, Z) : !0;
  26529. };
  26530. };
  26531. function SM(r, d, T) {
  26532. if (typeof r != "object")
  26533. throw new fe("options must be an object", fe.ERR_BAD_OPTION_VALUE);
  26534. const l = Object.keys(r);
  26535. let y = l.length;
  26536. for (; y-- > 0; ) {
  26537. const j = l[y], I = d[j];
  26538. if (I) {
  26539. const Z = r[j], H = Z === void 0 || I(Z, j, r);
  26540. if (H !== !0)
  26541. throw new fe("option " + j + " must be " + H, fe.ERR_BAD_OPTION_VALUE);
  26542. continue;
  26543. }
  26544. if (T !== !0)
  26545. throw new fe("Unknown option " + j, fe.ERR_BAD_OPTION);
  26546. }
  26547. }
  26548. const Cl = {
  26549. assertOptions: SM,
  26550. validators: Kl
  26551. }, Pr = Cl.validators;
  26552. class ks {
  26553. constructor(d) {
  26554. this.defaults = d, this.interceptors = {
  26555. request: new Np(),
  26556. response: new Np()
  26557. };
  26558. }
  26559. /**
  26560. * Dispatch a request
  26561. *
  26562. * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
  26563. * @param {?Object} config
  26564. *
  26565. * @returns {Promise} The Promise to be fulfilled
  26566. */
  26567. request(d, T) {
  26568. typeof d == "string" ? (T = T || {}, T.url = d) : T = d || {}, T = wn(this.defaults, T);
  26569. const { transitional: l, paramsSerializer: y, headers: j } = T;
  26570. l !== void 0 && Cl.assertOptions(l, {
  26571. silentJSONParsing: Pr.transitional(Pr.boolean),
  26572. forcedJSONParsing: Pr.transitional(Pr.boolean),
  26573. clarifyTimeoutError: Pr.transitional(Pr.boolean)
  26574. }, !1), y != null && (_t.isFunction(y) ? T.paramsSerializer = {
  26575. serialize: y
  26576. } : Cl.assertOptions(y, {
  26577. encode: Pr.function,
  26578. serialize: Pr.function
  26579. }, !0)), T.method = (T.method || this.defaults.method || "get").toLowerCase();
  26580. let I;
  26581. I = j && _t.merge(
  26582. j.common,
  26583. j[T.method]
  26584. ), I && _t.forEach(
  26585. ["delete", "get", "head", "post", "put", "patch", "common"],
  26586. (x) => {
  26587. delete j[x];
  26588. }
  26589. ), T.headers = fr.concat(I, j);
  26590. const Z = [];
  26591. let H = !0;
  26592. this.interceptors.request.forEach(function(u) {
  26593. typeof u.runWhen == "function" && u.runWhen(T) === !1 || (H = H && u.synchronous, Z.unshift(u.fulfilled, u.rejected));
  26594. });
  26595. const U = [];
  26596. this.interceptors.response.forEach(function(u) {
  26597. U.push(u.fulfilled, u.rejected);
  26598. });
  26599. let F, R = 0, N;
  26600. if (!H) {
  26601. const x = [Wp.bind(this), void 0];
  26602. for (x.unshift.apply(x, Z), x.push.apply(x, U), N = x.length, F = Promise.resolve(T); R < N; )
  26603. F = F.then(x[R++], x[R++]);
  26604. return F;
  26605. }
  26606. N = Z.length;
  26607. let b = T;
  26608. for (R = 0; R < N; ) {
  26609. const x = Z[R++], u = Z[R++];
  26610. try {
  26611. b = x(b);
  26612. } catch (f) {
  26613. u.call(this, f);
  26614. break;
  26615. }
  26616. }
  26617. try {
  26618. F = Wp.call(this, b);
  26619. } catch (x) {
  26620. return Promise.reject(x);
  26621. }
  26622. for (R = 0, N = U.length; R < N; )
  26623. F = F.then(U[R++], U[R++]);
  26624. return F;
  26625. }
  26626. getUri(d) {
  26627. d = wn(this.defaults, d);
  26628. const T = hd(d.baseURL, d.url);
  26629. return od(T, d.params, d.paramsSerializer);
  26630. }
  26631. }
  26632. _t.forEach(["delete", "get", "head", "options"], function(d) {
  26633. ks.prototype[d] = function(T, l) {
  26634. return this.request(wn(l || {}, {
  26635. method: d,
  26636. url: T,
  26637. data: (l || {}).data
  26638. }));
  26639. };
  26640. });
  26641. _t.forEach(["post", "put", "patch"], function(d) {
  26642. function T(l) {
  26643. return function(j, I, Z) {
  26644. return this.request(wn(Z || {}, {
  26645. method: d,
  26646. headers: l ? {
  26647. "Content-Type": "multipart/form-data"
  26648. } : {},
  26649. url: j,
  26650. data: I
  26651. }));
  26652. };
  26653. }
  26654. ks.prototype[d] = T(), ks.prototype[d + "Form"] = T(!0);
  26655. });
  26656. const fs = ks;
  26657. class Jl {
  26658. constructor(d) {
  26659. if (typeof d != "function")
  26660. throw new TypeError("executor must be a function.");
  26661. let T;
  26662. this.promise = new Promise(function(j) {
  26663. T = j;
  26664. });
  26665. const l = this;
  26666. this.promise.then((y) => {
  26667. if (!l._listeners)
  26668. return;
  26669. let j = l._listeners.length;
  26670. for (; j-- > 0; )
  26671. l._listeners[j](y);
  26672. l._listeners = null;
  26673. }), this.promise.then = (y) => {
  26674. let j;
  26675. const I = new Promise((Z) => {
  26676. l.subscribe(Z), j = Z;
  26677. }).then(y);
  26678. return I.cancel = function() {
  26679. l.unsubscribe(j);
  26680. }, I;
  26681. }, d(function(j, I, Z) {
  26682. l.reason || (l.reason = new po(j, I, Z), T(l.reason));
  26683. });
  26684. }
  26685. /**
  26686. * Throws a `CanceledError` if cancellation has been requested.
  26687. */
  26688. throwIfRequested() {
  26689. if (this.reason)
  26690. throw this.reason;
  26691. }
  26692. /**
  26693. * Subscribe to the cancel signal
  26694. */
  26695. subscribe(d) {
  26696. if (this.reason) {
  26697. d(this.reason);
  26698. return;
  26699. }
  26700. this._listeners ? this._listeners.push(d) : this._listeners = [d];
  26701. }
  26702. /**
  26703. * Unsubscribe from the cancel signal
  26704. */
  26705. unsubscribe(d) {
  26706. if (!this._listeners)
  26707. return;
  26708. const T = this._listeners.indexOf(d);
  26709. T !== -1 && this._listeners.splice(T, 1);
  26710. }
  26711. /**
  26712. * Returns an object that contains a new `CancelToken` and a function that, when called,
  26713. * cancels the `CancelToken`.
  26714. */
  26715. static source() {
  26716. let d;
  26717. return {
  26718. token: new Jl(function(y) {
  26719. d = y;
  26720. }),
  26721. cancel: d
  26722. };
  26723. }
  26724. }
  26725. const wM = Jl;
  26726. function CM(r) {
  26727. return function(T) {
  26728. return r.apply(null, T);
  26729. };
  26730. }
  26731. function MM(r) {
  26732. return _t.isObject(r) && r.isAxiosError === !0;
  26733. }
  26734. const Ml = {
  26735. Continue: 100,
  26736. SwitchingProtocols: 101,
  26737. Processing: 102,
  26738. EarlyHints: 103,
  26739. Ok: 200,
  26740. Created: 201,
  26741. Accepted: 202,
  26742. NonAuthoritativeInformation: 203,
  26743. NoContent: 204,
  26744. ResetContent: 205,
  26745. PartialContent: 206,
  26746. MultiStatus: 207,
  26747. AlreadyReported: 208,
  26748. ImUsed: 226,
  26749. MultipleChoices: 300,
  26750. MovedPermanently: 301,
  26751. Found: 302,
  26752. SeeOther: 303,
  26753. NotModified: 304,
  26754. UseProxy: 305,
  26755. Unused: 306,
  26756. TemporaryRedirect: 307,
  26757. PermanentRedirect: 308,
  26758. BadRequest: 400,
  26759. Unauthorized: 401,
  26760. PaymentRequired: 402,
  26761. Forbidden: 403,
  26762. NotFound: 404,
  26763. MethodNotAllowed: 405,
  26764. NotAcceptable: 406,
  26765. ProxyAuthenticationRequired: 407,
  26766. RequestTimeout: 408,
  26767. Conflict: 409,
  26768. Gone: 410,
  26769. LengthRequired: 411,
  26770. PreconditionFailed: 412,
  26771. PayloadTooLarge: 413,
  26772. UriTooLong: 414,
  26773. UnsupportedMediaType: 415,
  26774. RangeNotSatisfiable: 416,
  26775. ExpectationFailed: 417,
  26776. ImATeapot: 418,
  26777. MisdirectedRequest: 421,
  26778. UnprocessableEntity: 422,
  26779. Locked: 423,
  26780. FailedDependency: 424,
  26781. TooEarly: 425,
  26782. UpgradeRequired: 426,
  26783. PreconditionRequired: 428,
  26784. TooManyRequests: 429,
  26785. RequestHeaderFieldsTooLarge: 431,
  26786. UnavailableForLegalReasons: 451,
  26787. InternalServerError: 500,
  26788. NotImplemented: 501,
  26789. BadGateway: 502,
  26790. ServiceUnavailable: 503,
  26791. GatewayTimeout: 504,
  26792. HttpVersionNotSupported: 505,
  26793. VariantAlsoNegotiates: 506,
  26794. InsufficientStorage: 507,
  26795. LoopDetected: 508,
  26796. NotExtended: 510,
  26797. NetworkAuthenticationRequired: 511
  26798. };
  26799. Object.entries(Ml).forEach(([r, d]) => {
  26800. Ml[d] = r;
  26801. });
  26802. const kM = Ml;
  26803. function pd(r) {
  26804. const d = new fs(r), T = Vu(fs.prototype.request, d);
  26805. return _t.extend(T, fs.prototype, d, { allOwnKeys: !0 }), _t.extend(T, d, null, { allOwnKeys: !0 }), T.create = function(y) {
  26806. return pd(wn(r, y));
  26807. }, T;
  26808. }
  26809. const Ge = pd(Zl);
  26810. Ge.Axios = fs;
  26811. Ge.CanceledError = po;
  26812. Ge.CancelToken = wM;
  26813. Ge.isCancel = ld;
  26814. Ge.VERSION = cd;
  26815. Ge.toFormData = Ys;
  26816. Ge.AxiosError = fe;
  26817. Ge.Cancel = Ge.CanceledError;
  26818. Ge.all = function(d) {
  26819. return Promise.all(d);
  26820. };
  26821. Ge.spread = CM;
  26822. Ge.isAxiosError = MM;
  26823. Ge.mergeConfig = wn;
  26824. Ge.AxiosHeaders = fr;
  26825. Ge.formToJSON = (r) => ad(_t.isHTMLForm(r) ? new FormData(r) : r);
  26826. Ge.HttpStatusCode = kM;
  26827. Ge.default = Ge;
  26828. const AM = Ge;
  26829. let TM = {
  26830. baseURL: "/ybreport/api",
  26831. timeout: 10 * 60 * 1e3
  26832. };
  26833. const ql = AM.create(TM);
  26834. ql.interceptors.request.use(
  26835. function(r) {
  26836. return r;
  26837. },
  26838. function(r) {
  26839. return console.error(r), Promise.reject(r);
  26840. }
  26841. );
  26842. ql.interceptors.response.use(
  26843. function(r) {
  26844. let d = r.data;
  26845. return r.status !== 200 && console.error("网络异常"), d || console.error("服务器开了个小差"), d.Ret === 408 && console.error(d.Msg), d.Ret === 403 && console.error(d.Msg || "网络异常"), d;
  26846. },
  26847. function(r) {
  26848. return console.error(r), Promise.reject(r);
  26849. }
  26850. );
  26851. const Ql = (r, d) => ql.post(r, d), PM = (r) => Ql("/chart/detail", r), EM = (r) => Ql("/eta_forum/chart/detail", r), OM = (r) => Ql("/excel/detail", r);
  26852. function ud(r) {
  26853. if (r.indexOf("?") === -1)
  26854. return {};
  26855. const T = r.split("?")[1].split("&"), l = {};
  26856. return T.forEach((y) => {
  26857. const [j, I] = y.split("=");
  26858. l[j] = decodeURIComponent(I);
  26859. }), l;
  26860. }
  26861. const LM = `@charset "UTF-8";div[data-v-4a9f0e4d]{box-sizing:border-box}.hz-chart-wrap[data-v-4a9f0e4d]{font:initial;page-break-inside:avoid;max-width:1200PX;height:100%;overflow:hidden;position:relative;margin:0 auto;border:1PX solid rgba(0,0,0,.125)!important;background:#fff;border-radius:5PX;display:flex;flex-direction:column;font-family:PingFangSC-Regular,微软雅黑,宋体!important}.hz-chart-wrap .hz-chart-head[data-v-4a9f0e4d]{box-sizing:border-box;background-color:#f2f2f2;border-bottom:1px solid rgba(0,0,0,.125);cursor:pointer;min-height:40PX;display:flex;align-items:center;padding:2PX 10PX}.hz-chart-wrap .hz-chart-head .chart-title[data-v-4a9f0e4d]{width:100%}.hz-chart-wrap .chart-wrapper[data-v-4a9f0e4d]{position:relative;display:flex;height:100%;width:100%}.hz-chart-wrap .chart-wrapper .hz-chart-content[data-v-4a9f0e4d]{width:100%;flex:1}.hz-chart-wrap .chart-wrapper .mark[data-v-4a9f0e4d]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-image:none;background-position:center center;background-repeat:no-repeat;background-size:contain;pointer-events:none;width:80%;height:80%}.hz-chart-wrap .notfound[data-v-4a9f0e4d]{flex:1;overflow:hidden;padding:10PX;color:#777;text-align:center}.hz-chart-wrap .chart-bottom-info[data-v-4a9f0e4d]{padding-right:10PX;padding-bottom:0;padding-left:25PX;display:flex}.hz-chart-wrap .chart-bottom-info .chart-instruction[data-v-4a9f0e4d]{max-width:80%;flex:1;text-align:right;margin-left:auto}.hz-chart-wrap .hz-chart-footer[data-v-4a9f0e4d]{padding-left:25PX;padding-right:10PX;padding-bottom:10PX;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:1px}.hz-chart-wrap .text_oneLine[data-v-4a9f0e4d]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  26862. `, dd = (r, d) => {
  26863. const T = r.__vccOpts || r;
  26864. for (const [l, y] of d)
  26865. T[l] = y;
  26866. return T;
  26867. }, _M = { class: "hz-chart-head" }, DM = {
  26868. key: 0,
  26869. class: "chart-wrapper"
  26870. }, IM = ["id"], RM = {
  26871. key: 1,
  26872. class: "notfound"
  26873. }, NM = {
  26874. key: 2,
  26875. class: "chart-bottom-info bootom-source"
  26876. }, BM = ["textContent"], jM = {
  26877. __name: "EtaChart.ce",
  26878. props: {
  26879. src: "",
  26880. width: "",
  26881. height: "",
  26882. style: ""
  26883. },
  26884. setup(r) {
  26885. const { chartRender: d, setLimitData: T, isUseSelfLimit: l } = zw(), y = r, j = ud(y.src), I = Le(null), Z = Le(""), H = Le(null), U = Le(null), F = Le(!1), R = Le(null), N = Le(null), b = Le(null);
  26886. async function x() {
  26887. if (!j.code) {
  26888. F.value = !1;
  26889. return;
  26890. }
  26891. try {
  26892. const f = j.isETAForumChart && j.isETAForumChart == "true" ? await EM({
  26893. UniqueCode: j.code,
  26894. IsReplace: 1
  26895. }) : await PM({
  26896. UniqueCode: j.code,
  26897. IsReplace: 1
  26898. });
  26899. if (f.Ret !== 200)
  26900. return;
  26901. H.value = f.Data.ChartInfo, U.value = f.Data.ChartInfo.Source === 1 ? f.Data.EdbInfoList : [f.Data.EdbInfoList[0]], Z.value = `hz-chart_${j.code}_${(/* @__PURE__ */ new Date()).getTime()}`, u(), F.value = !0, f.Data.ChartInfo.Source === 1 && ![7, 10, 11].includes(f.Data.ChartInfo.ChartType) ? (l.value = !0, T(f.Data)) : l.value = !1, gs(() => {
  26902. d({
  26903. data: f.Data,
  26904. renderId: I.value,
  26905. lang: j.language,
  26906. changeLangIsCheck: !1,
  26907. showChartTitle: !1,
  26908. shouldUseSelfLimit: !0
  26909. }), f.Data.WaterMark && (R.value.style.backgroundImage = `url(${f.Data.WaterMark})`);
  26910. }), gs(() => {
  26911. var E;
  26912. b.value && (b.value.style.maxWidth = ((E = N.value) == null ? void 0 : E.clientWidth) + "px");
  26913. });
  26914. } catch {
  26915. F.value = !1;
  26916. }
  26917. }
  26918. const u = () => {
  26919. j.language = j.fromPage || j.lang || "zh";
  26920. };
  26921. return x(), (f, E) => {
  26922. var O, B, M, S;
  26923. return Je(), qe("div", {
  26924. class: "hz-chart-wrap",
  26925. ref_key: "chartContainer",
  26926. ref: N,
  26927. style: hr([y.style + ";height:" + y.height + "px", { margin: "0 0 10px 0" }])
  26928. }, [
  26929. cr("header", _M, [
  26930. H.value ? (Je(), qe("span", {
  26931. key: 0,
  26932. class: "chart-title",
  26933. style: hr(H.value.ChartThemeStyle ? `
  26934. text-align:${JSON.parse(H.value.ChartThemeStyle).titleOptions.align};
  26935. font-size:${JSON.parse(H.value.ChartThemeStyle).titleOptions.style.fontSize}px;
  26936. color:${JSON.parse(H.value.ChartThemeStyle).titleOptions.style.color}
  26937. ` : "")
  26938. }, yn(A0(j).language === "en" ? H.value.ChartNameEn : H.value.ChartName), 5)) : Jn("", !0)
  26939. ]),
  26940. F.value ? (Je(), qe("div", DM, [
  26941. cr("div", {
  26942. id: Z.value,
  26943. ref_key: "chartContentEl",
  26944. ref: I,
  26945. class: "hz-chart-content"
  26946. }, null, 8, IM),
  26947. cr("div", {
  26948. class: "mark",
  26949. ref_key: "markDom",
  26950. ref: R
  26951. }, null, 512)
  26952. ])) : (Je(), qe("div", RM, " 哎吆,你的图飞了,赶快去找管理员救命吧~ ")),
  26953. (O = H.value) != null && O.Instructions && JSON.parse((B = H.value) == null ? void 0 : B.Instructions).isShow ? (Je(), qe("div", NM, [
  26954. cr("div", {
  26955. class: "chart-instruction text_oneLine",
  26956. textContent: yn(JSON.parse(H.value.Instructions).text),
  26957. style: hr(`
  26958. color: ${JSON.parse(H.value.Instructions).color};
  26959. font-size: ${JSON.parse(H.value.Instructions).fontSize}px
  26960. `)
  26961. }, null, 12, BM)
  26962. ])) : Jn("", !0),
  26963. (M = H.value) != null && M.SourcesFrom && ((S = JSON.parse(H.value.SourcesFrom)) != null && S.isShow) ? (Je(), qe("div", {
  26964. key: 3,
  26965. class: "hz-chart-footer",
  26966. ref_key: "chartFooter",
  26967. ref: b,
  26968. style: hr(`
  26969. color: ${JSON.parse(H.value.SourcesFrom).color};
  26970. font-size: ${JSON.parse(H.value.SourcesFrom).fontSize}px;
  26971. `)
  26972. }, [
  26973. E[0] || (E[0] = Xp(" source:")),
  26974. cr("em", null, yn(JSON.parse(H.value.SourcesFrom).text), 1)
  26975. ], 4)) : Jn("", !0)
  26976. ], 4);
  26977. };
  26978. }
  26979. }, WM = /* @__PURE__ */ dd(jM, [["styles", [LM]], ["__scopeId", "data-v-4a9f0e4d"]]), zM = `@charset "UTF-8";.sheet-show-wrapper[data-v-21c79782]{max-width:1200PX;overflow:hidden;position:relative;margin:0 auto;background:#fff;font-family:PingFangSC-Regular,微软雅黑,宋体!important}.sheet-show-wrapper .title[data-v-21c79782]{font-size:17PX;font-weight:400;padding:0 10PX;margin:0 0 8PX}.sheet-show-wrapper .table-wrapper[data-v-21c79782]{max-width:calc(100vw - 20PX);margin:0 auto;overflow:auto}.sheet-show-wrapper .table-wrapper table[data-v-21c79782]{width:100%;font-size:14PX;color:#333;table-layout:auto}.sheet-show-wrapper .table-wrapper table td[data-v-21c79782],.sheet-show-wrapper .table-wrapper table th[data-v-21c79782]{width:auto;height:auto;padding:.4em 0;word-break:break-all;word-wrap:break-word;line-height:1.2em;border:1PX solid #dcdfe6;text-align:center;background-color:#fff;border-left:none;border-top:none}.sheet-show-wrapper .table-wrapper table td[data-v-21c79782]:first-child,.sheet-show-wrapper .table-wrapper table th[data-v-21c79782]:first-child{border-left:1PX solid #dcdfe6}.sheet-show-wrapper .table-wrapper table .data-cell[data-v-21c79782]{color:#333}.sheet-show-wrapper .table-wrapper table .data-cell.one-bg[data-v-21c79782]{background-color:#efeef1}.sheet-show-wrapper .table-wrapper table .data-cell.two-bg[data-v-21c79782]{background-color:#fff}.sheet-show-wrapper .table-wrapper table .thead-sticky[data-v-21c79782]{position:sticky;top:0}.sheet-show-wrapper .table-wrapper table .head-column[data-v-21c79782]{background-color:#505b78;color:#fff}.sheet-show-wrapper .table-wrapper table .split-word span[data-v-21c79782]{display:inline}.sheet-show-wrapper .sheet-source[data-v-21c79782]{margin-top:5PX;min-width:150PX;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  26980. `, YM = { class: "table-wrapper" }, XM = ["colspan", "rowspan"], GM = {
  26981. key: 0,
  26982. class: "split-word"
  26983. }, HM = { key: 1 }, FM = {
  26984. __name: "EtaTable.ce",
  26985. props: {
  26986. src: "",
  26987. width: "",
  26988. height: "",
  26989. style: ""
  26990. },
  26991. setup(r) {
  26992. const T = ud(r.src), l = Le({}), y = Le(!1), j = Le(null), I = Le(null), Z = (F) => JSON.stringify({
  26993. isShow: !0,
  26994. text: F,
  26995. color: "#606266",
  26996. fontSize: 9
  26997. });
  26998. async function H() {
  26999. const F = await OM({
  27000. UniqueCode: T.code,
  27001. FromScene: Number(T.fromScene || ""),
  27002. ReferencedId: Number(T.sourceId || ""),
  27003. Uuid: T.uid || ""
  27004. });
  27005. F.Ret === 200 && (l.value = F.Data, l.value.SourcesFrom || (l.value.SourcesFrom = F.Data.ExcelSource ? Z(F.Data.ExcelSource || "") : ""), y.value = !0, gs(() => {
  27006. var R;
  27007. console.log(j.value.clientWidth), I.value && (I.value.style.maxWidth = ((R = j.value) == null ? void 0 : R.clientWidth) + "px");
  27008. }));
  27009. }
  27010. H();
  27011. function U(F, R) {
  27012. const { HeightList: N, WidthList: b } = l.value.ReferencedExcelConfig;
  27013. if (b && N) {
  27014. let x = b.split(",").map((f) => Number(f)), u = N.split(",").map((f) => Number(f));
  27015. return R === "height" ? u[F] ? `height:${u[F]}px` : "" : x[F] ? `width:${x[F]}px` : "";
  27016. } else
  27017. return "";
  27018. }
  27019. return (F, R) => {
  27020. var N, b;
  27021. return y.value ? (Je(), qe("div", {
  27022. key: 0,
  27023. class: "sheet-show-wrapper",
  27024. ref_key: "sheetRef",
  27025. ref: j
  27026. }, [
  27027. cr("div", YM, [
  27028. cr("table", {
  27029. cellpadding: "0",
  27030. cellspacing: "0",
  27031. style: hr(`font-size: ${((N = l.value.Config) == null ? void 0 : N.FontSize) || 12}PX`)
  27032. }, [
  27033. cr("tbody", null, [
  27034. (Je(!0), qe(el, null, il((b = l.value.TableInfo) == null ? void 0 : b.TableDataList, (x, u) => (Je(), qe("tr", {
  27035. key: u,
  27036. style: hr(`${U(u, "height")}`)
  27037. }, [
  27038. (Je(!0), qe(el, null, il(x, (f, E) => {
  27039. var O;
  27040. return Je(), qe("td", {
  27041. class: T0(["data-cell", {
  27042. "one-bg": (u + 1) % 2 && u > 0,
  27043. "tow-bg": (u + 1) % 2 !== 0 && u > 0,
  27044. "head-column": u === 0
  27045. }]),
  27046. key: E,
  27047. colspan: f.mc.cs || 1,
  27048. rowspan: f.mc.rs || 1,
  27049. style: hr(`
  27050. color: ${f.fc};
  27051. font-weight: ${f.bl ? "bold" : "normal"};
  27052. font-style: ${f.it ? "italic" : "normal"};
  27053. background: ${f.bg};
  27054. font-size: ${f.fs || ((O = l.value.Config) == null ? void 0 : O.FontSize) || 12}px;
  27055. ${U(E, "width")}
  27056. `)
  27057. }, [
  27058. f.ct.s ? (Je(), qe("div", GM, [
  27059. (Je(!0), qe(el, null, il(f.ct.s, (B, M) => (Je(), qe("span", {
  27060. key: `${u}_${E}_${M}`,
  27061. style: hr(`
  27062. color: ${B.fc};
  27063. font-weight: ${B.bl ? "bold" : "normal"};
  27064. font-style: ${B.it ? "italic" : "normal"};
  27065. `)
  27066. }, yn(B.v), 5))), 128))
  27067. ])) : (Je(), qe("div", HM, yn(f.m), 1))
  27068. ], 14, XM);
  27069. }), 128))
  27070. ], 4))), 128))
  27071. ])
  27072. ], 4)
  27073. ]),
  27074. l.value.SourcesFrom && JSON.parse(l.value.SourcesFrom).isShow ? (Je(), qe("div", {
  27075. key: 0,
  27076. class: "sheet-source",
  27077. ref_key: "sheetFooter",
  27078. ref: I,
  27079. style: hr(`
  27080. color: ${JSON.parse(l.value.SourcesFrom).color};
  27081. font-size: ${JSON.parse(l.value.SourcesFrom).fontSize}px;
  27082. `)
  27083. }, [
  27084. R[0] || (R[0] = Xp(" source:")),
  27085. cr("em", null, yn(JSON.parse(l.value.SourcesFrom).text), 1)
  27086. ], 4)) : Jn("", !0)
  27087. ], 512)) : Jn("", !0);
  27088. };
  27089. }
  27090. }, UM = /* @__PURE__ */ dd(FM, [["styles", [zM]], ["__scopeId", "data-v-21c79782"]]), VM = Gp(WM), $M = Gp(UM);
  27091. function KM() {
  27092. customElements.define("eta-chart", VM), customElements.define("eta-table", $M);
  27093. }
  27094. export {
  27095. KM as registerEtaComp
  27096. };