| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402 |
- /*!
- * Material Design for Bootstrap 4
- * Version: MDB FREE 4.12.0
- *
- *
- * Copyright: Material Design for Bootstrap
- * https://mdbootstrap.com/
- *
- * Read the license: https://mdbootstrap.com/general/license/
- *
- *
- * Documentation: https://mdbootstrap.com/
- *
- * Getting started: https://mdbootstrap.com/docs/jquery/getting-started/download/
- *
- * Tutorials: https://mdbootstrap.com/education/bootstrap/
- *
- * Templates: https://mdbootstrap.com/templates/
- *
- * Support: https://mdbootstrap.com/support/
- *
- * Contact: office@mdbootstrap.com
- *
- * Attribution: Animate CSS, Twitter Bootstrap, Materialize CSS, Normalize CSS, Waves JS, WOW JS, Toastr, Chart.js, jquery.easing.js, velocity.min.js, chart.js, wow.js, scrolling-navbar.js, waves.js, forms-free.js, enhanced-modals.js, treeview.js
- */
- ! function(t) {
- var e = {};
- function n(r) {
- if (e[r]) return e[r].exports;
- var i = e[r] = {
- i: r,
- l: !1,
- exports: {}
- };
- return t[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports
- }
- n.m = t, n.c = e, n.d = function(t, e, r) {
- n.o(t, e) || Object.defineProperty(t, e, {
- enumerable: !0,
- get: r
- })
- }, n.r = function(t) {
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
- value: "Module"
- }), Object.defineProperty(t, "__esModule", {
- value: !0
- })
- }, n.t = function(t, e) {
- if (1 & e && (t = n(t)), 8 & e) return t;
- if (4 & e && "object" == typeof t && t && t.__esModule) return t;
- var r = Object.create(null);
- if (n.r(r), Object.defineProperty(r, "default", {
- enumerable: !0,
- value: t
- }), 2 & e && "string" != typeof t)
- for (var i in t) n.d(r, i, function(e) {
- return t[e]
- }.bind(null, i));
- return r
- }, n.n = function(t) {
- var e = t && t.__esModule ? function() {
- return t.default
- } : function() {
- return t
- };
- return n.d(e, "a", e), e
- }, n.o = function(t, e) {
- return Object.prototype.hasOwnProperty.call(t, e)
- }, n.p = "", n(n.s = 146)
- }([function(t, e, n) {
- (function(e) {
- var n = function(t) {
- return t && t.Math == Math && t
- };
- t.exports = n("object" == typeof globalThis && globalThis) || n("object" == typeof window && window) || n("object" == typeof self && self) || n("object" == typeof e && e) || Function("return this")()
- }).call(this, n(57))
- }, function(t, e) {
- t.exports = function(t) {
- try {
- return !!t()
- } catch (t) {
- return !0
- }
- }
- }, function(t, e, n) {
- var r = n(0),
- i = n(15),
- o = n(28),
- a = n(46),
- s = r.Symbol,
- l = i("wks");
- t.exports = function(t) {
- return l[t] || (l[t] = a && s[t] || (a ? s : o)("Symbol." + t))
- }
- }, function(t, e, n) {
- var r = n(0),
- i = n(24).f,
- o = n(6),
- a = n(14),
- s = n(21),
- l = n(43),
- u = n(50);
- t.exports = function(t, e) {
- var n, c, d, f, h, p = t.target,
- g = t.global,
- v = t.stat;
- if (n = g ? r : v ? r[p] || s(p, {}) : (r[p] || {}).prototype)
- for (c in e) {
- if (f = e[c], d = t.noTargetGet ? (h = i(n, c)) && h.value : n[c], !u(g ? c : p + (v ? "." : "#") + c, t.forced) && void 0 !== d) {
- if (typeof f == typeof d) continue;
- l(f, d)
- }(t.sham || d && d.sham) && o(f, "sham", !0), a(n, c, f, t)
- }
- }
- }, function(t, e) {
- var n = {}.hasOwnProperty;
- t.exports = function(t, e) {
- return n.call(t, e)
- }
- }, function(t, e) {
- t.exports = function(t) {
- return "object" == typeof t ? null !== t : "function" == typeof t
- }
- }, function(t, e, n) {
- var r = n(8),
- i = n(9),
- o = n(17);
- t.exports = r ? function(t, e, n) {
- return i.f(t, e, o(1, n))
- } : function(t, e, n) {
- return t[e] = n, t
- }
- }, function(t, e, n) {
- var r = n(5);
- t.exports = function(t) {
- if (!r(t)) throw TypeError(String(t) + " is not an object");
- return t
- }
- }, function(t, e, n) {
- var r = n(1);
- t.exports = !r((function() {
- return 7 != Object.defineProperty({}, "a", {
- get: function() {
- return 7
- }
- }).a
- }))
- }, function(t, e, n) {
- var r = n(8),
- i = n(35),
- o = n(7),
- a = n(19),
- s = Object.defineProperty;
- e.f = r ? s : function(t, e, n) {
- if (o(t), e = a(e, !0), o(n), i) try {
- return s(t, e, n)
- } catch (t) {}
- if ("get" in n || "set" in n) throw TypeError("Accessors not supported");
- return "value" in n && (t[e] = n.value), t
- }
- }, function(t, e, n) {
- var r = n(32),
- i = n(13);
- t.exports = function(t) {
- return r(i(t))
- }
- }, function(t, e, n) {
- var r = n(12),
- i = Math.min;
- t.exports = function(t) {
- return t > 0 ? i(r(t), 9007199254740991) : 0
- }
- }, function(t, e) {
- var n = Math.ceil,
- r = Math.floor;
- t.exports = function(t) {
- return isNaN(t = +t) ? 0 : (t > 0 ? r : n)(t)
- }
- }, function(t, e) {
- t.exports = function(t) {
- if (null == t) throw TypeError("Can't call method on " + t);
- return t
- }
- }, function(t, e, n) {
- var r = n(0),
- i = n(15),
- o = n(6),
- a = n(4),
- s = n(21),
- l = n(36),
- u = n(22),
- c = u.get,
- d = u.enforce,
- f = String(l).split("toString");
- i("inspectSource", (function(t) {
- return l.call(t)
- })), (t.exports = function(t, e, n, i) {
- var l = !!i && !!i.unsafe,
- u = !!i && !!i.enumerable,
- c = !!i && !!i.noTargetGet;
- "function" == typeof n && ("string" != typeof e || a(n, "name") || o(n, "name", e), d(n).source = f.join("string" == typeof e ? e : "")), t !== r ? (l ? !c && t[e] && (u = !0) : delete t[e], u ? t[e] = n : o(t, e, n)) : u ? t[e] = n : s(e, n)
- })(Function.prototype, "toString", (function() {
- return "function" == typeof this && c(this).source || l.call(this)
- }))
- }, function(t, e, n) {
- var r = n(26),
- i = n(59);
- (t.exports = function(t, e) {
- return i[t] || (i[t] = void 0 !== e ? e : {})
- })("versions", []).push({
- version: "3.3.2",
- mode: r ? "pure" : "global",
- copyright: "© 2019 Denis Pushkarev (zloirock.ru)"
- })
- }, function(t, e, n) {
- var r = n(13);
- t.exports = function(t) {
- return Object(r(t))
- }
- }, function(t, e) {
- t.exports = function(t, e) {
- return {
- enumerable: !(1 & t),
- configurable: !(2 & t),
- writable: !(4 & t),
- value: e
- }
- }
- }, function(t, e) {
- var n = {}.toString;
- t.exports = function(t) {
- return n.call(t).slice(8, -1)
- }
- }, function(t, e, n) {
- var r = n(5);
- t.exports = function(t, e) {
- if (!r(t)) return t;
- var n, i;
- if (e && "function" == typeof(n = t.toString) && !r(i = n.call(t))) return i;
- if ("function" == typeof(n = t.valueOf) && !r(i = n.call(t))) return i;
- if (!e && "function" == typeof(n = t.toString) && !r(i = n.call(t))) return i;
- throw TypeError("Can't convert object to primitive value")
- }
- }, function(t, e) {
- t.exports = {}
- }, function(t, e, n) {
- var r = n(0),
- i = n(6);
- t.exports = function(t, e) {
- try {
- i(r, t, e)
- } catch (n) {
- r[t] = e
- }
- return e
- }
- }, function(t, e, n) {
- var r, i, o, a = n(60),
- s = n(0),
- l = n(5),
- u = n(6),
- c = n(4),
- d = n(23),
- f = n(20),
- h = s.WeakMap;
- if (a) {
- var p = new h,
- g = p.get,
- v = p.has,
- m = p.set;
- r = function(t, e) {
- return m.call(p, t, e), e
- }, i = function(t) {
- return g.call(p, t) || {}
- }, o = function(t) {
- return v.call(p, t)
- }
- } else {
- var y = d("state");
- f[y] = !0, r = function(t, e) {
- return u(t, y, e), e
- }, i = function(t) {
- return c(t, y) ? t[y] : {}
- }, o = function(t) {
- return c(t, y)
- }
- }
- t.exports = {
- set: r,
- get: i,
- has: o,
- enforce: function(t) {
- return o(t) ? i(t) : r(t, {})
- },
- getterFor: function(t) {
- return function(e) {
- var n;
- if (!l(e) || (n = i(e)).type !== t) throw TypeError("Incompatible receiver, " + t + " required");
- return n
- }
- }
- }
- }, function(t, e, n) {
- var r = n(15),
- i = n(28),
- o = r("keys");
- t.exports = function(t) {
- return o[t] || (o[t] = i(t))
- }
- }, function(t, e, n) {
- var r = n(8),
- i = n(42),
- o = n(17),
- a = n(10),
- s = n(19),
- l = n(4),
- u = n(35),
- c = Object.getOwnPropertyDescriptor;
- e.f = r ? c : function(t, e) {
- if (t = a(t), e = s(e, !0), u) try {
- return c(t, e)
- } catch (t) {}
- if (l(t, e)) return o(!i.f.call(t, e), t[e])
- }
- }, function(t, e, n) {
- var r = n(72),
- i = n(32),
- o = n(16),
- a = n(11),
- s = n(47),
- l = [].push,
- u = function(t) {
- var e = 1 == t,
- n = 2 == t,
- u = 3 == t,
- c = 4 == t,
- d = 6 == t,
- f = 5 == t || d;
- return function(h, p, g, v) {
- for (var m, y, b = o(h), x = i(b), w = r(p, g, 3), S = a(x.length), k = 0, C = v || s, M = e ? C(h, S) : n ? C(h, 0) : void 0; S > k; k++)
- if ((f || k in x) && (y = w(m = x[k], k, b), t))
- if (e) M[k] = y;
- else if (y) switch (t) {
- case 3:
- return !0;
- case 5:
- return m;
- case 6:
- return k;
- case 2:
- l.call(M, m)
- } else if (c) return !1;
- return d ? -1 : u || c ? c : M
- }
- };
- t.exports = {
- forEach: u(0),
- map: u(1),
- filter: u(2),
- some: u(3),
- every: u(4),
- find: u(5),
- findIndex: u(6)
- }
- }, function(t, e) {
- t.exports = !1
- }, function(t, e, n) {
- var r = n(39),
- i = n(29).concat("length", "prototype");
- e.f = Object.getOwnPropertyNames || function(t) {
- return r(t, i)
- }
- }, function(t, e) {
- var n = 0,
- r = Math.random();
- t.exports = function(t) {
- return "Symbol(" + String(void 0 === t ? "" : t) + ")_" + (++n + r).toString(36)
- }
- }, function(t, e) {
- t.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"]
- }, function(t, e, n) {
- var r = n(18);
- t.exports = Array.isArray || function(t) {
- return "Array" == r(t)
- }
- }, function(t, e, n) {
- var r = n(12),
- i = Math.max,
- o = Math.min;
- t.exports = function(t, e) {
- var n = r(t);
- return n < 0 ? i(n + e, 0) : o(n, e)
- }
- }, function(t, e, n) {
- var r = n(1),
- i = n(18),
- o = "".split;
- t.exports = r((function() {
- return !Object("z").propertyIsEnumerable(0)
- })) ? function(t) {
- return "String" == i(t) ? o.call(t, "") : Object(t)
- } : Object
- }, function(t, e, n) {
- var r = n(7),
- i = n(76),
- o = n(29),
- a = n(20),
- s = n(77),
- l = n(38),
- u = n(23)("IE_PROTO"),
- c = function() {},
- d = function() {
- var t, e = l("iframe"),
- n = o.length;
- for (e.style.display = "none", s.appendChild(e), e.src = String("javascript:"), (t = e.contentWindow.document).open(), t.write("<script>document.F=Object<\/script>"), t.close(), d = t.F; n--;) delete d.prototype[o[n]];
- return d()
- };
- t.exports = Object.create || function(t, e) {
- var n;
- return null !== t ? (c.prototype = r(t), n = new c, c.prototype = null, n[u] = t) : n = d(), void 0 === e ? n : i(n, e)
- }, a[u] = !0
- }, function(t, e, n) {
- var r = n(1),
- i = n(2)("species");
- t.exports = function(t) {
- return !r((function() {
- var e = [];
- return (e.constructor = {})[i] = function() {
- return {
- foo: 1
- }
- }, 1 !== e[t](Boolean).foo
- }))
- }
- }, function(t, e, n) {
- var r = n(8),
- i = n(1),
- o = n(38);
- t.exports = !r && !i((function() {
- return 7 != Object.defineProperty(o("div"), "a", {
- get: function() {
- return 7
- }
- }).a
- }))
- }, function(t, e, n) {
- var r = n(15);
- t.exports = r("native-function-to-string", Function.toString)
- }, function(t, e, n) {
- var r = n(44),
- i = n(0),
- o = function(t) {
- return "function" == typeof t ? t : void 0
- };
- t.exports = function(t, e) {
- return arguments.length < 2 ? o(r[t]) || o(i[t]) : r[t] && r[t][e] || i[t] && i[t][e]
- }
- }, function(t, e, n) {
- var r = n(0),
- i = n(5),
- o = r.document,
- a = i(o) && i(o.createElement);
- t.exports = function(t) {
- return a ? o.createElement(t) : {}
- }
- }, function(t, e, n) {
- var r = n(4),
- i = n(10),
- o = n(41).indexOf,
- a = n(20);
- t.exports = function(t, e) {
- var n, s = i(t),
- l = 0,
- u = [];
- for (n in s) !r(a, n) && r(s, n) && u.push(n);
- for (; e.length > l;) r(s, n = e[l++]) && (~o(u, n) || u.push(n));
- return u
- }
- }, function(t, e, n) {
- "use strict";
- var r, i = n(8),
- o = n(0),
- a = n(5),
- s = n(4),
- l = n(73),
- u = n(6),
- c = n(14),
- d = n(9).f,
- f = n(63),
- h = n(69),
- p = n(2),
- g = n(28),
- v = o.DataView,
- m = v && v.prototype,
- y = o.Int8Array,
- b = y && y.prototype,
- x = o.Uint8ClampedArray,
- w = x && x.prototype,
- S = y && f(y),
- k = b && f(b),
- C = Object.prototype,
- M = C.isPrototypeOf,
- A = p("toStringTag"),
- P = g("TYPED_ARRAY_TAG"),
- _ = !(!o.ArrayBuffer || !v),
- T = _ && !!h && "Opera" !== l(o.opera),
- I = !1,
- O = {
- Int8Array: 1,
- Uint8Array: 1,
- Uint8ClampedArray: 1,
- Int16Array: 2,
- Uint16Array: 2,
- Int32Array: 4,
- Uint32Array: 4,
- Float32Array: 4,
- Float64Array: 8
- },
- F = function(t) {
- return a(t) && s(O, l(t))
- };
- for (r in O) o[r] || (T = !1);
- if ((!T || "function" != typeof S || S === Function.prototype) && (S = function() {
- throw TypeError("Incorrect invocation")
- }, T))
- for (r in O) o[r] && h(o[r], S);
- if ((!T || !k || k === C) && (k = S.prototype, T))
- for (r in O) o[r] && h(o[r].prototype, k);
- if (T && f(w) !== k && h(w, k), i && !s(k, A))
- for (r in I = !0, d(k, A, {
- get: function() {
- return a(this) ? this[P] : void 0
- }
- }), O) o[r] && u(o[r], P, r);
- _ && h && f(m) !== C && h(m, C), t.exports = {
- NATIVE_ARRAY_BUFFER: _,
- NATIVE_ARRAY_BUFFER_VIEWS: T,
- TYPED_ARRAY_TAG: I && P,
- aTypedArray: function(t) {
- if (F(t)) return t;
- throw TypeError("Target is not a typed array")
- },
- aTypedArrayConstructor: function(t) {
- if (h) {
- if (M.call(S, t)) return t
- } else
- for (var e in O)
- if (s(O, r)) {
- var n = o[e];
- if (n && (t === n || M.call(n, t))) return t
- } throw TypeError("Target is not a typed array constructor")
- },
- exportProto: function(t, e, n) {
- if (i) {
- if (n)
- for (var r in O) {
- var a = o[r];
- a && s(a.prototype, t) && delete a.prototype[t]
- }
- k[t] && !n || c(k, t, n ? e : T && b[t] || e)
- }
- },
- exportStatic: function(t, e, n) {
- var r, a;
- if (i) {
- if (h) {
- if (n)
- for (r in O)(a = o[r]) && s(a, t) && delete a[t];
- if (S[t] && !n) return;
- try {
- return c(S, t, n ? e : T && y[t] || e)
- } catch (t) {}
- }
- for (r in O) !(a = o[r]) || a[t] && !n || c(a, t, e)
- }
- },
- isView: function(t) {
- var e = l(t);
- return "DataView" === e || s(O, e)
- },
- isTypedArray: F,
- TypedArray: S,
- TypedArrayPrototype: k
- }
- }, function(t, e, n) {
- var r = n(10),
- i = n(11),
- o = n(31),
- a = function(t) {
- return function(e, n, a) {
- var s, l = r(e),
- u = i(l.length),
- c = o(a, u);
- if (t && n != n) {
- for (; u > c;)
- if ((s = l[c++]) != s) return !0
- } else
- for (; u > c; c++)
- if ((t || c in l) && l[c] === n) return t || c || 0;
- return !t && -1
- }
- };
- t.exports = {
- includes: a(!0),
- indexOf: a(!1)
- }
- }, function(t, e, n) {
- "use strict";
- var r = {}.propertyIsEnumerable,
- i = Object.getOwnPropertyDescriptor,
- o = i && !r.call({
- 1: 2
- }, 1);
- e.f = o ? function(t) {
- var e = i(this, t);
- return !!e && e.enumerable
- } : r
- }, function(t, e, n) {
- var r = n(4),
- i = n(61),
- o = n(24),
- a = n(9);
- t.exports = function(t, e) {
- for (var n = i(e), s = a.f, l = o.f, u = 0; u < n.length; u++) {
- var c = n[u];
- r(t, c) || s(t, c, l(e, c))
- }
- }
- }, function(t, e, n) {
- t.exports = n(0)
- }, function(t, e) {
- e.f = Object.getOwnPropertySymbols
- }, function(t, e, n) {
- var r = n(1);
- t.exports = !!Object.getOwnPropertySymbols && !r((function() {
- return !String(Symbol())
- }))
- }, function(t, e, n) {
- var r = n(5),
- i = n(30),
- o = n(2)("species");
- t.exports = function(t, e) {
- var n;
- return i(t) && ("function" != typeof(n = t.constructor) || n !== Array && !i(n.prototype) ? r(n) && null === (n = n[o]) && (n = void 0) : n = void 0), new(void 0 === n ? Array : n)(0 === e ? 0 : e)
- }
- }, function(t, e) {
- t.exports = {}
- }, function(t, e, n) {
- var r = n(9).f,
- i = n(4),
- o = n(2)("toStringTag");
- t.exports = function(t, e, n) {
- t && !i(t = n ? t : t.prototype, o) && r(t, o, {
- configurable: !0,
- value: e
- })
- }
- }, function(t, e, n) {
- var r = n(1),
- i = /#|\.prototype\./,
- o = function(t, e) {
- var n = s[a(t)];
- return n == u || n != l && ("function" == typeof e ? r(e) : !!e)
- },
- a = o.normalize = function(t) {
- return String(t).replace(i, ".").toLowerCase()
- },
- s = o.data = {},
- l = o.NATIVE = "N",
- u = o.POLYFILL = "P";
- t.exports = o
- }, function(t, e, n) {
- "use strict";
- var r = n(1);
- t.exports = function(t, e) {
- var n = [][t];
- return !n || !r((function() {
- n.call(null, e || function() {
- throw 1
- }, 1)
- }))
- }
- }, function(t, e, n) {
- "use strict";
- var r, i, o = n(70),
- a = RegExp.prototype.exec,
- s = String.prototype.replace,
- l = a,
- u = (r = /a/, i = /b*/g, a.call(r, "a"), a.call(i, "a"), 0 !== r.lastIndex || 0 !== i.lastIndex),
- c = void 0 !== /()??/.exec("")[1];
- (u || c) && (l = function(t) {
- var e, n, r, i, l = this;
- return c && (n = new RegExp("^" + l.source + "$(?!\\s)", o.call(l))), u && (e = l.lastIndex), r = a.call(l, t), u && r && (l.lastIndex = l.global ? r.index + r[0].length : e), c && r && r.length > 1 && s.call(r[0], n, (function() {
- for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (r[i] = void 0)
- })), r
- }), t.exports = l
- }, function(t, e, n) {
- var r = n(39),
- i = n(29);
- t.exports = Object.keys || function(t) {
- return r(t, i)
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(10),
- i = n(62),
- o = n(48),
- a = n(22),
- s = n(67),
- l = a.set,
- u = a.getterFor("Array Iterator");
- t.exports = s(Array, "Array", (function(t, e) {
- l(this, {
- type: "Array Iterator",
- target: r(t),
- index: 0,
- kind: e
- })
- }), (function() {
- var t = u(this),
- e = t.target,
- n = t.kind,
- r = t.index++;
- return !e || r >= e.length ? (t.target = void 0, {
- value: void 0,
- done: !0
- }) : "keys" == n ? {
- value: r,
- done: !1
- } : "values" == n ? {
- value: e[r],
- done: !1
- } : {
- value: [r, e[r]],
- done: !1
- }
- }), "values"), o.Arguments = o.Array, i("keys"), i("values"), i("entries")
- }, function(t, e) {
- (function(e) {
- t.exports = e
- }).call(this, {})
- }, function(t, e) {
- t.exports = function(t) {
- if ("function" != typeof t) throw TypeError(String(t) + " is not a function");
- return t
- }
- }, function(t, e) {
- var n;
- n = function() {
- return this
- }();
- try {
- n = n || new Function("return this")()
- } catch (t) {
- "object" == typeof window && (n = window)
- }
- t.exports = n
- }, function(t, e, n) {
- "use strict";
- var r = n(19),
- i = n(9),
- o = n(17);
- t.exports = function(t, e, n) {
- var a = r(e);
- a in t ? i.f(t, a, o(0, n)) : t[a] = n
- }
- }, function(t, e, n) {
- var r = n(0),
- i = n(21),
- o = r["__core-js_shared__"] || i("__core-js_shared__", {});
- t.exports = o
- }, function(t, e, n) {
- var r = n(0),
- i = n(36),
- o = r.WeakMap;
- t.exports = "function" == typeof o && /native code/.test(i.call(o))
- }, function(t, e, n) {
- var r = n(37),
- i = n(27),
- o = n(45),
- a = n(7);
- t.exports = r("Reflect", "ownKeys") || function(t) {
- var e = i.f(a(t)),
- n = o.f;
- return n ? e.concat(n(t)) : e
- }
- }, function(t, e, n) {
- var r = n(2),
- i = n(33),
- o = n(6),
- a = r("unscopables"),
- s = Array.prototype;
- null == s[a] && o(s, a, i(null)), t.exports = function(t) {
- s[a][t] = !0
- }
- }, function(t, e, n) {
- var r = n(4),
- i = n(16),
- o = n(23),
- a = n(95),
- s = o("IE_PROTO"),
- l = Object.prototype;
- t.exports = a ? Object.getPrototypeOf : function(t) {
- return t = i(t), r(t, s) ? t[s] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? l : null
- }
- }, function(t, e, n) {
- var r = n(14),
- i = n(90),
- o = Object.prototype;
- i !== o.toString && r(o, "toString", i, {
- unsafe: !0
- })
- }, function(t, e, n) {
- e.f = n(2)
- }, function(t, e, n) {
- var r = n(44),
- i = n(4),
- o = n(65),
- a = n(9).f;
- t.exports = function(t) {
- var e = r.Symbol || (r.Symbol = {});
- i(e, t) || a(e, t, {
- value: o.f(t)
- })
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(94),
- o = n(63),
- a = n(69),
- s = n(49),
- l = n(6),
- u = n(14),
- c = n(2),
- d = n(26),
- f = n(48),
- h = n(68),
- p = h.IteratorPrototype,
- g = h.BUGGY_SAFARI_ITERATORS,
- v = c("iterator"),
- m = function() {
- return this
- };
- t.exports = function(t, e, n, c, h, y, b) {
- i(n, e, c);
- var x, w, S, k = function(t) {
- if (t === h && _) return _;
- if (!g && t in A) return A[t];
- switch (t) {
- case "keys":
- case "values":
- case "entries":
- return function() {
- return new n(this, t)
- }
- }
- return function() {
- return new n(this)
- }
- },
- C = e + " Iterator",
- M = !1,
- A = t.prototype,
- P = A[v] || A["@@iterator"] || h && A[h],
- _ = !g && P || k(h),
- T = "Array" == e && A.entries || P;
- if (T && (x = o(T.call(new t)), p !== Object.prototype && x.next && (d || o(x) === p || (a ? a(x, p) : "function" != typeof x[v] && l(x, v, m)), s(x, C, !0, !0), d && (f[C] = m))), "values" == h && P && "values" !== P.name && (M = !0, _ = function() {
- return P.call(this)
- }), d && !b || A[v] === _ || l(A, v, _), f[e] = _, h)
- if (w = {
- values: k("values"),
- keys: y ? _ : k("keys"),
- entries: k("entries")
- }, b)
- for (S in w) !g && !M && S in A || u(A, S, w[S]);
- else r({
- target: e,
- proto: !0,
- forced: g || M
- }, w);
- return w
- }
- }, function(t, e, n) {
- "use strict";
- var r, i, o, a = n(63),
- s = n(6),
- l = n(4),
- u = n(2),
- c = n(26),
- d = u("iterator"),
- f = !1;
- [].keys && ("next" in (o = [].keys()) ? (i = a(a(o))) !== Object.prototype && (r = i) : f = !0), null == r && (r = {}), c || l(r, d) || s(r, d, (function() {
- return this
- })), t.exports = {
- IteratorPrototype: r,
- BUGGY_SAFARI_ITERATORS: f
- }
- }, function(t, e, n) {
- var r = n(7),
- i = n(88);
- t.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
- var t, e = !1,
- n = {};
- try {
- (t = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set).call(n, []), e = n instanceof Array
- } catch (t) {}
- return function(n, o) {
- return r(n), i(o), e ? t.call(n, o) : n.__proto__ = o, n
- }
- }() : void 0)
- }, function(t, e, n) {
- "use strict";
- var r = n(7);
- t.exports = function() {
- var t = r(this),
- e = "";
- return t.global && (e += "g"), t.ignoreCase && (e += "i"), t.multiline && (e += "m"), t.dotAll && (e += "s"), t.unicode && (e += "u"), t.sticky && (e += "y"), e
- }
- }, function(t, e, n) {
- var r = n(12),
- i = n(13),
- o = function(t) {
- return function(e, n) {
- var o, a, s = String(i(e)),
- l = r(n),
- u = s.length;
- return l < 0 || l >= u ? t ? "" : void 0 : (o = s.charCodeAt(l)) < 55296 || o > 56319 || l + 1 === u || (a = s.charCodeAt(l + 1)) < 56320 || a > 57343 ? t ? s.charAt(l) : o : t ? s.slice(l, l + 2) : a - 56320 + (o - 55296 << 10) + 65536
- }
- };
- t.exports = {
- codeAt: o(!1),
- charAt: o(!0)
- }
- }, function(t, e, n) {
- var r = n(56);
- t.exports = function(t, e, n) {
- if (r(t), void 0 === e) return t;
- switch (n) {
- case 0:
- return function() {
- return t.call(e)
- };
- case 1:
- return function(n) {
- return t.call(e, n)
- };
- case 2:
- return function(n, r) {
- return t.call(e, n, r)
- };
- case 3:
- return function(n, r, i) {
- return t.call(e, n, r, i)
- }
- }
- return function() {
- return t.apply(e, arguments)
- }
- }
- }, function(t, e, n) {
- var r = n(18),
- i = n(2)("toStringTag"),
- o = "Arguments" == r(function() {
- return arguments
- }());
- t.exports = function(t) {
- var e, n, a;
- return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof(n = function(t, e) {
- try {
- return t[e]
- } catch (t) {}
- }(e = Object(t), i)) ? n : o ? r(e) : "Object" == (a = r(e)) && "function" == typeof e.callee ? "Arguments" : a
- }
- }, function(t, e) {
- t.exports = "\t\n\v\f\r \u2028\u2029\ufeff"
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(0),
- o = n(26),
- a = n(8),
- s = n(46),
- l = n(1),
- u = n(4),
- c = n(30),
- d = n(5),
- f = n(7),
- h = n(16),
- p = n(10),
- g = n(19),
- v = n(17),
- m = n(33),
- y = n(53),
- b = n(27),
- x = n(93),
- w = n(45),
- S = n(24),
- k = n(9),
- C = n(42),
- M = n(6),
- A = n(14),
- P = n(15),
- _ = n(23),
- T = n(20),
- I = n(28),
- O = n(2),
- F = n(65),
- D = n(66),
- E = n(49),
- L = n(22),
- R = n(25).forEach,
- N = _("hidden"),
- V = O("toPrimitive"),
- z = L.set,
- B = L.getterFor("Symbol"),
- W = Object.prototype,
- j = i.Symbol,
- H = i.JSON,
- q = H && H.stringify,
- U = S.f,
- Y = k.f,
- $ = x.f,
- G = C.f,
- Q = P("symbols"),
- X = P("op-symbols"),
- Z = P("string-to-symbol-registry"),
- J = P("symbol-to-string-registry"),
- K = P("wks"),
- tt = i.QObject,
- et = !tt || !tt.prototype || !tt.prototype.findChild,
- nt = a && l((function() {
- return 7 != m(Y({}, "a", {
- get: function() {
- return Y(this, "a", {
- value: 7
- }).a
- }
- })).a
- })) ? function(t, e, n) {
- var r = U(W, e);
- r && delete W[e], Y(t, e, n), r && t !== W && Y(W, e, r)
- } : Y,
- rt = function(t, e) {
- var n = Q[t] = m(j.prototype);
- return z(n, {
- type: "Symbol",
- tag: t,
- description: e
- }), a || (n.description = e), n
- },
- it = s && "symbol" == typeof j.iterator ? function(t) {
- return "symbol" == typeof t
- } : function(t) {
- return Object(t) instanceof j
- },
- ot = function(t, e, n) {
- t === W && ot(X, e, n), f(t);
- var r = g(e, !0);
- return f(n), u(Q, r) ? (n.enumerable ? (u(t, N) && t[N][r] && (t[N][r] = !1), n = m(n, {
- enumerable: v(0, !1)
- })) : (u(t, N) || Y(t, N, v(1, {})), t[N][r] = !0), nt(t, r, n)) : Y(t, r, n)
- },
- at = function(t, e) {
- f(t);
- var n = p(e),
- r = y(n).concat(ct(n));
- return R(r, (function(e) {
- a && !st.call(n, e) || ot(t, e, n[e])
- })), t
- },
- st = function(t) {
- var e = g(t, !0),
- n = G.call(this, e);
- return !(this === W && u(Q, e) && !u(X, e)) && (!(n || !u(this, e) || !u(Q, e) || u(this, N) && this[N][e]) || n)
- },
- lt = function(t, e) {
- var n = p(t),
- r = g(e, !0);
- if (n !== W || !u(Q, r) || u(X, r)) {
- var i = U(n, r);
- return !i || !u(Q, r) || u(n, N) && n[N][r] || (i.enumerable = !0), i
- }
- },
- ut = function(t) {
- var e = $(p(t)),
- n = [];
- return R(e, (function(t) {
- u(Q, t) || u(T, t) || n.push(t)
- })), n
- },
- ct = function(t) {
- var e = t === W,
- n = $(e ? X : p(t)),
- r = [];
- return R(n, (function(t) {
- !u(Q, t) || e && !u(W, t) || r.push(Q[t])
- })), r
- };
- s || (A((j = function() {
- if (this instanceof j) throw TypeError("Symbol is not a constructor");
- var t = arguments.length && void 0 !== arguments[0] ? String(arguments[0]) : void 0,
- e = I(t),
- n = function(t) {
- this === W && n.call(X, t), u(this, N) && u(this[N], e) && (this[N][e] = !1), nt(this, e, v(1, t))
- };
- return a && et && nt(W, e, {
- configurable: !0,
- set: n
- }), rt(e, t)
- }).prototype, "toString", (function() {
- return B(this).tag
- })), C.f = st, k.f = ot, S.f = lt, b.f = x.f = ut, w.f = ct, a && (Y(j.prototype, "description", {
- configurable: !0,
- get: function() {
- return B(this).description
- }
- }), o || A(W, "propertyIsEnumerable", st, {
- unsafe: !0
- })), F.f = function(t) {
- return rt(O(t), t)
- }), r({
- global: !0,
- wrap: !0,
- forced: !s,
- sham: !s
- }, {
- Symbol: j
- }), R(y(K), (function(t) {
- D(t)
- })), r({
- target: "Symbol",
- stat: !0,
- forced: !s
- }, {
- for: function(t) {
- var e = String(t);
- if (u(Z, e)) return Z[e];
- var n = j(e);
- return Z[e] = n, J[n] = e, n
- },
- keyFor: function(t) {
- if (!it(t)) throw TypeError(t + " is not a symbol");
- if (u(J, t)) return J[t]
- },
- useSetter: function() {
- et = !0
- },
- useSimple: function() {
- et = !1
- }
- }), r({
- target: "Object",
- stat: !0,
- forced: !s,
- sham: !a
- }, {
- create: function(t, e) {
- return void 0 === e ? m(t) : at(m(t), e)
- },
- defineProperty: ot,
- defineProperties: at,
- getOwnPropertyDescriptor: lt
- }), r({
- target: "Object",
- stat: !0,
- forced: !s
- }, {
- getOwnPropertyNames: ut,
- getOwnPropertySymbols: ct
- }), r({
- target: "Object",
- stat: !0,
- forced: l((function() {
- w.f(1)
- }))
- }, {
- getOwnPropertySymbols: function(t) {
- return w.f(h(t))
- }
- }), H && r({
- target: "JSON",
- stat: !0,
- forced: !s || l((function() {
- var t = j();
- return "[null]" != q([t]) || "{}" != q({
- a: t
- }) || "{}" != q(Object(t))
- }))
- }, {
- stringify: function(t) {
- for (var e, n, r = [t], i = 1; arguments.length > i;) r.push(arguments[i++]);
- if (n = e = r[1], (d(e) || void 0 !== t) && !it(t)) return c(e) || (e = function(t, e) {
- if ("function" == typeof n && (e = n.call(this, t, e)), !it(e)) return e
- }), r[1] = e, q.apply(H, r)
- }
- }), j.prototype[V] || M(j.prototype, V, j.prototype.valueOf), E(j, "Symbol"), T[N] = !0
- }, function(t, e, n) {
- var r = n(8),
- i = n(9),
- o = n(7),
- a = n(53);
- t.exports = r ? Object.defineProperties : function(t, e) {
- o(t);
- for (var n, r = a(e), s = r.length, l = 0; s > l;) i.f(t, n = r[l++], e[n]);
- return t
- }
- }, function(t, e, n) {
- var r = n(37);
- t.exports = r("document", "documentElement")
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(8),
- o = n(0),
- a = n(4),
- s = n(5),
- l = n(9).f,
- u = n(43),
- c = o.Symbol;
- if (i && "function" == typeof c && (!("description" in c.prototype) || void 0 !== c().description)) {
- var d = {},
- f = function() {
- var t = arguments.length < 1 || void 0 === arguments[0] ? void 0 : String(arguments[0]),
- e = this instanceof f ? new c(t) : void 0 === t ? c() : c(t);
- return "" === t && (d[e] = !0), e
- };
- u(f, c);
- var h = f.prototype = c.prototype;
- h.constructor = f;
- var p = h.toString,
- g = "Symbol(test)" == String(c("test")),
- v = /^Symbol\((.*)\)[^)]+$/;
- l(h, "description", {
- configurable: !0,
- get: function() {
- var t = s(this) ? this.valueOf() : this,
- e = p.call(t);
- if (a(d, t)) return "";
- var n = g ? e.slice(7, -1) : e.replace(v, "$1");
- return "" === n ? void 0 : n
- }
- }), r({
- global: !0,
- forced: !0
- }, {
- Symbol: f
- })
- }
- }, function(t, e, n) {
- n(66)("iterator")
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(52);
- r({
- target: "RegExp",
- proto: !0,
- forced: /./.exec !== i
- }, {
- exec: i
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(71).charAt,
- i = n(22),
- o = n(67),
- a = i.set,
- s = i.getterFor("String Iterator");
- o(String, "String", (function(t) {
- a(this, {
- type: "String Iterator",
- string: String(t),
- index: 0
- })
- }), (function() {
- var t, e = s(this),
- n = e.string,
- i = e.index;
- return i >= n.length ? {
- value: void 0,
- done: !0
- } : (t = r(n, i), e.index += t.length, {
- value: t,
- done: !1
- })
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(6),
- i = n(14),
- o = n(1),
- a = n(2),
- s = n(52),
- l = a("species"),
- u = !o((function() {
- var t = /./;
- return t.exec = function() {
- var t = [];
- return t.groups = {
- a: "7"
- }, t
- }, "7" !== "".replace(t, "$<a>")
- })),
- c = !o((function() {
- var t = /(?:)/,
- e = t.exec;
- t.exec = function() {
- return e.apply(this, arguments)
- };
- var n = "ab".split(t);
- return 2 !== n.length || "a" !== n[0] || "b" !== n[1]
- }));
- t.exports = function(t, e, n, d) {
- var f = a(t),
- h = !o((function() {
- var e = {};
- return e[f] = function() {
- return 7
- }, 7 != "" [t](e)
- })),
- p = h && !o((function() {
- var e = !1,
- n = /a/;
- return n.exec = function() {
- return e = !0, null
- }, "split" === t && (n.constructor = {}, n.constructor[l] = function() {
- return n
- }), n[f](""), !e
- }));
- if (!h || !p || "replace" === t && !u || "split" === t && !c) {
- var g = /./ [f],
- v = n(f, "" [t], (function(t, e, n, r, i) {
- return e.exec === s ? h && !i ? {
- done: !0,
- value: g.call(e, n, r)
- } : {
- done: !0,
- value: t.call(n, e, r)
- } : {
- done: !1
- }
- })),
- m = v[0],
- y = v[1];
- i(String.prototype, t, m), i(RegExp.prototype, f, 2 == e ? function(t, e) {
- return y.call(t, this, e)
- } : function(t) {
- return y.call(t, this)
- }), d && r(RegExp.prototype[f], "sham", !0)
- }
- }
- }, function(t, e, n) {
- var r = n(18),
- i = n(52);
- t.exports = function(t, e) {
- var n = t.exec;
- if ("function" == typeof n) {
- var o = n.call(t, e);
- if ("object" != typeof o) throw TypeError("RegExp exec method returned something other than an Object or null");
- return o
- }
- if ("RegExp" !== r(t)) throw TypeError("RegExp#exec called on incompatible receiver");
- return i.call(t, e)
- }
- }, function(t, e, n) {
- var r = n(0),
- i = n(86),
- o = n(54),
- a = n(6),
- s = n(2),
- l = s("iterator"),
- u = s("toStringTag"),
- c = o.values;
- for (var d in i) {
- var f = r[d],
- h = f && f.prototype;
- if (h) {
- if (h[l] !== c) try {
- a(h, l, c)
- } catch (t) {
- h[l] = c
- }
- if (h[u] || a(h, u, d), i[d])
- for (var p in o)
- if (h[p] !== o[p]) try {
- a(h, p, o[p])
- } catch (t) {
- h[p] = o[p]
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(71).charAt;
- t.exports = function(t, e, n) {
- return e + (n ? r(t, e).length : 1)
- }
- }, function(t, e) {
- t.exports = {
- CSSRuleList: 0,
- CSSStyleDeclaration: 0,
- CSSValueList: 0,
- ClientRectList: 0,
- DOMRectList: 0,
- DOMStringList: 0,
- DOMTokenList: 1,
- DataTransferItemList: 0,
- FileList: 0,
- HTMLAllCollection: 0,
- HTMLCollection: 0,
- HTMLFormElement: 0,
- HTMLSelectElement: 0,
- MediaList: 0,
- MimeTypeArray: 0,
- NamedNodeMap: 0,
- NodeList: 1,
- PaintRequestList: 0,
- Plugin: 0,
- PluginArray: 0,
- SVGLengthList: 0,
- SVGNumberList: 0,
- SVGPathSegList: 0,
- SVGPointList: 0,
- SVGStringList: 0,
- SVGTransformList: 0,
- SourceBufferList: 0,
- StyleSheetList: 0,
- TextTrackCueList: 0,
- TextTrackList: 0,
- TouchList: 0
- }
- }, function(t, e) {
- t.exports = function(t) {
- if (!t.webpackPolyfill) {
- var e = Object.create(t);
- e.children || (e.children = []), Object.defineProperty(e, "loaded", {
- enumerable: !0,
- get: function() {
- return e.l
- }
- }), Object.defineProperty(e, "id", {
- enumerable: !0,
- get: function() {
- return e.i
- }
- }), Object.defineProperty(e, "exports", {
- enumerable: !0
- }), e.webpackPolyfill = 1
- }
- return e
- }
- }, function(t, e, n) {
- var r = n(5);
- t.exports = function(t) {
- if (!r(t) && null !== t) throw TypeError("Can't set " + String(t) + " as a prototype");
- return t
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(5),
- o = n(30),
- a = n(31),
- s = n(11),
- l = n(10),
- u = n(58),
- c = n(34),
- d = n(2)("species"),
- f = [].slice,
- h = Math.max;
- r({
- target: "Array",
- proto: !0,
- forced: !c("slice")
- }, {
- slice: function(t, e) {
- var n, r, c, p = l(this),
- g = s(p.length),
- v = a(t, g),
- m = a(void 0 === e ? g : e, g);
- if (o(p) && ("function" != typeof(n = p.constructor) || n !== Array && !o(n.prototype) ? i(n) && null === (n = n[d]) && (n = void 0) : n = void 0, n === Array || void 0 === n)) return f.call(p, v, m);
- for (r = new(void 0 === n ? Array : n)(h(m - v, 0)), c = 0; v < m; v++, c++) v in p && u(r, c, p[v]);
- return r.length = c, r
- }
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(73),
- i = {};
- i[n(2)("toStringTag")] = "z", t.exports = "[object z]" !== String(i) ? function() {
- return "[object " + r(this) + "]"
- } : i.toString
- }, function(t, e, n) {
- var r = n(13),
- i = "[" + n(74) + "]",
- o = RegExp("^" + i + i + "*"),
- a = RegExp(i + i + "*$"),
- s = function(t) {
- return function(e) {
- var n = String(r(e));
- return 1 & t && (n = n.replace(o, "")), 2 & t && (n = n.replace(a, "")), n
- }
- };
- t.exports = {
- start: s(1),
- end: s(2),
- trim: s(3)
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(41).indexOf,
- o = n(51),
- a = [].indexOf,
- s = !!a && 1 / [1].indexOf(1, -0) < 0,
- l = o("indexOf");
- r({
- target: "Array",
- proto: !0,
- forced: s || l
- }, {
- indexOf: function(t) {
- return s ? a.apply(this, arguments) || 0 : i(this, t, arguments.length > 1 ? arguments[1] : void 0)
- }
- })
- }, function(t, e, n) {
- var r = n(10),
- i = n(27).f,
- o = {}.toString,
- a = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
- t.exports.f = function(t) {
- return a && "[object Window]" == o.call(t) ? function(t) {
- try {
- return i(t)
- } catch (t) {
- return a.slice()
- }
- }(t) : i(r(t))
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(68).IteratorPrototype,
- i = n(33),
- o = n(17),
- a = n(49),
- s = n(48),
- l = function() {
- return this
- };
- t.exports = function(t, e, n) {
- var u = e + " Iterator";
- return t.prototype = i(r, {
- next: o(1, n)
- }), a(t, u, !1, !0), s[u] = l, t
- }
- }, function(t, e, n) {
- var r = n(1);
- t.exports = !r((function() {
- function t() {}
- return t.prototype.constructor = null, Object.getPrototypeOf(new t) !== t.prototype
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(25).map;
- r({
- target: "Array",
- proto: !0,
- forced: !n(34)("map")
- }, {
- map: function(t) {
- return i(this, t, arguments.length > 1 ? arguments[1] : void 0)
- }
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(31),
- o = n(12),
- a = n(11),
- s = n(16),
- l = n(47),
- u = n(58),
- c = n(34),
- d = Math.max,
- f = Math.min;
- r({
- target: "Array",
- proto: !0,
- forced: !c("splice")
- }, {
- splice: function(t, e) {
- var n, r, c, h, p, g, v = s(this),
- m = a(v.length),
- y = i(t, m),
- b = arguments.length;
- if (0 === b ? n = r = 0 : 1 === b ? (n = 0, r = m - y) : (n = b - 2, r = f(d(o(e), 0), m - y)), m + n - r > 9007199254740991) throw TypeError("Maximum allowed length exceeded");
- for (c = l(v, r), h = 0; h < r; h++)(p = y + h) in v && u(c, h, v[p]);
- if (c.length = r, n < r) {
- for (h = y; h < m - r; h++) g = h + n, (p = h + r) in v ? v[g] = v[p] : delete v[g];
- for (h = m; h > m - r + n; h--) delete v[h - 1]
- } else if (n > r)
- for (h = m - r; h > y; h--) g = h + n - 1, (p = h + r - 1) in v ? v[g] = v[p] : delete v[g];
- for (h = 0; h < n; h++) v[h + y] = arguments[h + 2];
- return v.length = m - r + n, c
- }
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(82),
- i = n(7),
- o = n(16),
- a = n(11),
- s = n(12),
- l = n(13),
- u = n(85),
- c = n(83),
- d = Math.max,
- f = Math.min,
- h = Math.floor,
- p = /\$([$&'`]|\d\d?|<[^>]*>)/g,
- g = /\$([$&'`]|\d\d?)/g;
- r("replace", 2, (function(t, e, n) {
- return [function(n, r) {
- var i = l(this),
- o = null == n ? void 0 : n[t];
- return void 0 !== o ? o.call(n, i, r) : e.call(String(i), n, r)
- }, function(t, o) {
- var l = n(e, t, this, o);
- if (l.done) return l.value;
- var h = i(t),
- p = String(this),
- g = "function" == typeof o;
- g || (o = String(o));
- var v = h.global;
- if (v) {
- var m = h.unicode;
- h.lastIndex = 0
- }
- for (var y = [];;) {
- var b = c(h, p);
- if (null === b) break;
- if (y.push(b), !v) break;
- "" === String(b[0]) && (h.lastIndex = u(p, a(h.lastIndex), m))
- }
- for (var x, w = "", S = 0, k = 0; k < y.length; k++) {
- b = y[k];
- for (var C = String(b[0]), M = d(f(s(b.index), p.length), 0), A = [], P = 1; P < b.length; P++) A.push(void 0 === (x = b[P]) ? x : String(x));
- var _ = b.groups;
- if (g) {
- var T = [C].concat(A, M, p);
- void 0 !== _ && T.push(_);
- var I = String(o.apply(void 0, T))
- } else I = r(C, p, M, A, _, o);
- M >= S && (w += p.slice(S, M) + I, S = M + C.length)
- }
- return w + p.slice(S)
- }];
- function r(t, n, r, i, a, s) {
- var l = r + t.length,
- u = i.length,
- c = g;
- return void 0 !== a && (a = o(a), c = p), e.call(s, c, (function(e, o) {
- var s;
- switch (o.charAt(0)) {
- case "$":
- return "$";
- case "&":
- return t;
- case "`":
- return n.slice(0, r);
- case "'":
- return n.slice(l);
- case "<":
- s = a[o.slice(1, -1)];
- break;
- default:
- var c = +o;
- if (0 === c) return e;
- if (c > u) {
- var d = h(c / 10);
- return 0 === d ? e : d <= u ? void 0 === i[d - 1] ? o.charAt(1) : i[d - 1] + o.charAt(1) : e
- }
- s = i[c - 1]
- }
- return void 0 === s ? "" : s
- }))
- }
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(32),
- o = n(10),
- a = n(51),
- s = [].join,
- l = i != Object,
- u = a("join", ",");
- r({
- target: "Array",
- proto: !0,
- forced: l || u
- }, {
- join: function(t) {
- return s.call(o(this), void 0 === t ? "," : t)
- }
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(1),
- o = n(30),
- a = n(5),
- s = n(16),
- l = n(11),
- u = n(58),
- c = n(47),
- d = n(34),
- f = n(2)("isConcatSpreadable"),
- h = !i((function() {
- var t = [];
- return t[f] = !1, t.concat()[0] !== t
- })),
- p = d("concat"),
- g = function(t) {
- if (!a(t)) return !1;
- var e = t[f];
- return void 0 !== e ? !!e : o(t)
- };
- r({
- target: "Array",
- proto: !0,
- forced: !h || !p
- }, {
- concat: function(t) {
- var e, n, r, i, o, a = s(this),
- d = c(a, 0),
- f = 0;
- for (e = -1, r = arguments.length; e < r; e++)
- if (o = -1 === e ? a : arguments[e], g(o)) {
- if (f + (i = l(o.length)) > 9007199254740991) throw TypeError("Maximum allowed index exceeded");
- for (n = 0; n < i; n++, f++) n in o && u(d, f, o[n])
- } else {
- if (f >= 9007199254740991) throw TypeError("Maximum allowed index exceeded");
- u(d, f++, o)
- } return d.length = f, d
- }
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(25).filter;
- r({
- target: "Array",
- proto: !0,
- forced: !n(34)("filter")
- }, {
- filter: function(t) {
- return i(this, t, arguments.length > 1 ? arguments[1] : void 0)
- }
- })
- }, function(t, e, n) {
- var r = n(7),
- i = n(56),
- o = n(2)("species");
- t.exports = function(t, e) {
- var n, a = r(t).constructor;
- return void 0 === a || null == (n = r(a)[o]) ? e : i(n)
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(25).forEach,
- i = n(51);
- t.exports = i("forEach") ? function(t) {
- return r(this, t, arguments.length > 1 ? arguments[1] : void 0)
- } : [].forEach
- }, function(t, e, n) {
- var r = n(14),
- i = Date.prototype,
- o = i.toString,
- a = i.getTime;
- new Date(NaN) + "" != "Invalid Date" && r(i, "toString", (function() {
- var t = a.call(this);
- return t == t ? o.call(this) : "Invalid Date"
- }))
- }, function(t, e, n) {
- var r = n(3),
- i = n(108);
- r({
- global: !0,
- forced: parseFloat != i
- }, {
- parseFloat: i
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(14),
- i = n(7),
- o = n(1),
- a = n(70),
- s = RegExp.prototype,
- l = s.toString,
- u = o((function() {
- return "/a/b" != l.call({
- source: "a",
- flags: "b"
- })
- })),
- c = "toString" != l.name;
- (u || c) && r(RegExp.prototype, "toString", (function() {
- var t = i(this),
- e = String(t.source),
- n = t.flags;
- return "/" + e + "/" + String(void 0 === n && t instanceof RegExp && !("flags" in s) ? a.call(t) : n)
- }), {
- unsafe: !0
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(25).find,
- o = n(62),
- a = !0;
- "find" in [] && Array(1).find((function() {
- a = !1
- })), r({
- target: "Array",
- proto: !0,
- forced: a
- }, {
- find: function(t) {
- return i(this, t, arguments.length > 1 ? arguments[1] : void 0)
- }
- }), o("find")
- }, function(t, e, n) {
- var r = n(0),
- i = n(91).trim,
- o = n(74),
- a = r.parseFloat,
- s = 1 / a(o + "-0") != -1 / 0;
- t.exports = s ? function(t) {
- var e = i(String(t)),
- n = a(e);
- return 0 === n && "-" == e.charAt(0) ? -0 : n
- } : a
- }, function(t, e, n) {
- "use strict";
- var r = n(82),
- i = n(116),
- o = n(7),
- a = n(13),
- s = n(102),
- l = n(85),
- u = n(11),
- c = n(83),
- d = n(52),
- f = n(1),
- h = [].push,
- p = Math.min,
- g = !f((function() {
- return !RegExp(4294967295, "y")
- }));
- r("split", 2, (function(t, e, n) {
- var r;
- return r = "c" == "abbc".split(/(b)*/)[1] || 4 != "test".split(/(?:)/, -1).length || 2 != "ab".split(/(?:ab)*/).length || 4 != ".".split(/(.?)(.?)/).length || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(t, n) {
- var r = String(a(this)),
- o = void 0 === n ? 4294967295 : n >>> 0;
- if (0 === o) return [];
- if (void 0 === t) return [r];
- if (!i(t)) return e.call(r, t, o);
- for (var s, l, u, c = [], f = (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.unicode ? "u" : "") + (t.sticky ? "y" : ""), p = 0, g = new RegExp(t.source, f + "g");
- (s = d.call(g, r)) && !((l = g.lastIndex) > p && (c.push(r.slice(p, s.index)), s.length > 1 && s.index < r.length && h.apply(c, s.slice(1)), u = s[0].length, p = l, c.length >= o));) g.lastIndex === s.index && g.lastIndex++;
- return p === r.length ? !u && g.test("") || c.push("") : c.push(r.slice(p)), c.length > o ? c.slice(0, o) : c
- } : "0".split(void 0, 0).length ? function(t, n) {
- return void 0 === t && 0 === n ? [] : e.call(this, t, n)
- } : e, [function(e, n) {
- var i = a(this),
- o = null == e ? void 0 : e[t];
- return void 0 !== o ? o.call(e, i, n) : r.call(String(i), e, n)
- }, function(t, i) {
- var a = n(r, t, this, i, r !== e);
- if (a.done) return a.value;
- var d = o(t),
- f = String(this),
- h = s(d, RegExp),
- v = d.unicode,
- m = (d.ignoreCase ? "i" : "") + (d.multiline ? "m" : "") + (d.unicode ? "u" : "") + (g ? "y" : "g"),
- y = new h(g ? d : "^(?:" + d.source + ")", m),
- b = void 0 === i ? 4294967295 : i >>> 0;
- if (0 === b) return [];
- if (0 === f.length) return null === c(y, f) ? [f] : [];
- for (var x = 0, w = 0, S = []; w < f.length;) {
- y.lastIndex = g ? w : 0;
- var k, C = c(y, g ? f : f.slice(w));
- if (null === C || (k = p(u(y.lastIndex + (g ? 0 : w)), f.length)) === x) w = l(f, w, v);
- else {
- if (S.push(f.slice(x, w)), S.length === b) return S;
- for (var M = 1; M <= C.length - 1; M++)
- if (S.push(C[M]), S.length === b) return S;
- w = x = k
- }
- }
- return S.push(f.slice(x)), S
- }]
- }), !g)
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(103);
- r({
- target: "Array",
- proto: !0,
- forced: [].forEach != i
- }, {
- forEach: i
- })
- }, function(t, e, n) {
- var r = n(56),
- i = n(16),
- o = n(32),
- a = n(11),
- s = function(t) {
- return function(e, n, s, l) {
- r(n);
- var u = i(e),
- c = o(u),
- d = a(u.length),
- f = t ? d - 1 : 0,
- h = t ? -1 : 1;
- if (s < 2)
- for (;;) {
- if (f in c) {
- l = c[f], f += h;
- break
- }
- if (f += h, t ? f < 0 : d <= f) throw TypeError("Reduce of empty array with no initial value")
- }
- for (; t ? f >= 0 : d > f; f += h) f in c && (l = n(l, c[f], f, u));
- return l
- }
- };
- t.exports = {
- left: s(!1),
- right: s(!0)
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(8),
- i = n(0),
- o = n(50),
- a = n(14),
- s = n(4),
- l = n(18),
- u = n(113),
- c = n(19),
- d = n(1),
- f = n(33),
- h = n(27).f,
- p = n(24).f,
- g = n(9).f,
- v = n(91).trim,
- m = i.Number,
- y = m.prototype,
- b = "Number" == l(f(y)),
- x = function(t) {
- var e, n, r, i, o, a, s, l, u = c(t, !1);
- if ("string" == typeof u && u.length > 2)
- if (43 === (e = (u = v(u)).charCodeAt(0)) || 45 === e) {
- if (88 === (n = u.charCodeAt(2)) || 120 === n) return NaN
- } else if (48 === e) {
- switch (u.charCodeAt(1)) {
- case 66:
- case 98:
- r = 2, i = 49;
- break;
- case 79:
- case 111:
- r = 8, i = 55;
- break;
- default:
- return +u
- }
- for (a = (o = u.slice(2)).length, s = 0; s < a; s++)
- if ((l = o.charCodeAt(s)) < 48 || l > i) return NaN;
- return parseInt(o, r)
- }
- return +u
- };
- if (o("Number", !m(" 0o1") || !m("0b1") || m("+0x1"))) {
- for (var w, S = function(t) {
- var e = arguments.length < 1 ? 0 : t,
- n = this;
- return n instanceof S && (b ? d((function() {
- y.valueOf.call(n)
- })) : "Number" != l(n)) ? u(new m(x(e)), n, S) : x(e)
- }, k = r ? h(m) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","), C = 0; k.length > C; C++) s(m, w = k[C]) && !s(S, w) && g(S, w, p(m, w));
- S.prototype = y, y.constructor = S, a(i, "Number", S)
- }
- }, function(t, e, n) {
- var r = n(5),
- i = n(69);
- t.exports = function(t, e, n) {
- var o, a;
- return i && "function" == typeof(o = e.constructor) && o !== n && r(a = o.prototype) && a !== n.prototype && i(t, a), t
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(82),
- i = n(7),
- o = n(11),
- a = n(13),
- s = n(85),
- l = n(83);
- r("match", 1, (function(t, e, n) {
- return [function(e) {
- var n = a(this),
- r = null == e ? void 0 : e[t];
- return void 0 !== r ? r.call(e, n) : new RegExp(e)[t](String(n))
- }, function(t) {
- var r = n(e, t, this);
- if (r.done) return r.value;
- var a = i(t),
- u = String(this);
- if (!a.global) return l(a, u);
- var c = a.unicode;
- a.lastIndex = 0;
- for (var d, f = [], h = 0; null !== (d = l(a, u));) {
- var p = String(d[0]);
- f[h] = p, "" === p && (a.lastIndex = s(u, o(a.lastIndex), c)), h++
- }
- return 0 === h ? null : f
- }]
- }))
- }, function(t, e, n) {
- var r = n(0),
- i = n(86),
- o = n(103),
- a = n(6);
- for (var s in i) {
- var l = r[s],
- u = l && l.prototype;
- if (u && u.forEach !== o) try {
- a(u, "forEach", o)
- } catch (t) {
- u.forEach = o
- }
- }
- }, function(t, e, n) {
- var r = n(5),
- i = n(18),
- o = n(2)("match");
- t.exports = function(t) {
- var e;
- return r(t) && (void 0 !== (e = t[o]) ? !!e : "RegExp" == i(t))
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(12),
- o = n(118),
- a = n(119),
- s = n(1),
- l = 1..toFixed,
- u = Math.floor,
- c = function(t, e, n) {
- return 0 === e ? n : e % 2 == 1 ? c(t, e - 1, n * t) : c(t * t, e / 2, n)
- };
- r({
- target: "Number",
- proto: !0,
- forced: l && ("0.000" !== 8e-5.toFixed(3) || "1" !== .9.toFixed(0) || "1.25" !== 1.255.toFixed(2) || "1000000000000000128" !== (0xde0b6b3a7640080).toFixed(0)) || !s((function() {
- l.call({})
- }))
- }, {
- toFixed: function(t) {
- var e, n, r, s, l = o(this),
- d = i(t),
- f = [0, 0, 0, 0, 0, 0],
- h = "",
- p = "0",
- g = function(t, e) {
- for (var n = -1, r = e; ++n < 6;) r += t * f[n], f[n] = r % 1e7, r = u(r / 1e7)
- },
- v = function(t) {
- for (var e = 6, n = 0; --e >= 0;) n += f[e], f[e] = u(n / t), n = n % t * 1e7
- },
- m = function() {
- for (var t = 6, e = ""; --t >= 0;)
- if ("" !== e || 0 === t || 0 !== f[t]) {
- var n = String(f[t]);
- e = "" === e ? n : e + a.call("0", 7 - n.length) + n
- } return e
- };
- if (d < 0 || d > 20) throw RangeError("Incorrect fraction digits");
- if (l != l) return "NaN";
- if (l <= -1e21 || l >= 1e21) return String(l);
- if (l < 0 && (h = "-", l = -l), l > 1e-21)
- if (n = (e = function(t) {
- for (var e = 0, n = t; n >= 4096;) e += 12, n /= 4096;
- for (; n >= 2;) e += 1, n /= 2;
- return e
- }(l * c(2, 69, 1)) - 69) < 0 ? l * c(2, -e, 1) : l / c(2, e, 1), n *= 4503599627370496, (e = 52 - e) > 0) {
- for (g(0, n), r = d; r >= 7;) g(1e7, 0), r -= 7;
- for (g(c(10, r, 1), 0), r = e - 1; r >= 23;) v(1 << 23), r -= 23;
- v(1 << r), g(1, 1), v(2), p = m()
- } else g(0, n), g(1 << -e, 0), p = m() + a.call("0", d);
- return p = d > 0 ? h + ((s = p.length) <= d ? "0." + a.call("0", d - s) + p : p.slice(0, s - d) + "." + p.slice(s - d)) : h + p
- }
- })
- }, function(t, e, n) {
- var r = n(18);
- t.exports = function(t) {
- if ("number" != typeof t && "Number" != r(t)) throw TypeError("Incorrect invocation");
- return +t
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(12),
- i = n(13);
- t.exports = "".repeat || function(t) {
- var e = String(i(this)),
- n = "",
- o = r(t);
- if (o < 0 || o == 1 / 0) throw RangeError("Wrong number of repetitions");
- for (; o > 0;
- (o >>>= 1) && (e += e)) 1 & o && (n += e);
- return n
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(111).left;
- r({
- target: "Array",
- proto: !0,
- forced: n(51)("reduce")
- }, {
- reduce: function(t) {
- return i(this, t, arguments.length, arguments.length > 1 ? arguments[1] : void 0)
- }
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(30),
- o = [].reverse,
- a = [1, 2];
- r({
- target: "Array",
- proto: !0,
- forced: String(a) === String(a.reverse())
- }, {
- reverse: function() {
- return i(this) && (this.length = this.length), o.call(this)
- }
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(56),
- o = n(16),
- a = n(1),
- s = n(51),
- l = [].sort,
- u = [1, 2, 3],
- c = a((function() {
- u.sort(void 0)
- })),
- d = a((function() {
- u.sort(null)
- })),
- f = s("sort");
- r({
- target: "Array",
- proto: !0,
- forced: c || !d || f
- }, {
- sort: function(t) {
- return void 0 === t ? l.call(o(this)) : l.call(o(this), i(t))
- }
- })
- }, function(t, e, n) {
- var r = n(3),
- i = n(129);
- r({
- global: !0,
- forced: parseInt != i
- }, {
- parseInt: i
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(37),
- i = n(9),
- o = n(2),
- a = n(8),
- s = o("species");
- t.exports = function(t) {
- var e = r(t),
- n = i.f;
- a && e && !e[s] && n(e, s, {
- configurable: !0,
- get: function() {
- return this
- }
- })
- }
- }, , , function(t, e, n) {
- var r = n(8),
- i = n(9).f,
- o = Function.prototype,
- a = o.toString,
- s = /^\s*function ([^ (]*)/;
- !r || "name" in o || i(o, "name", {
- configurable: !0,
- get: function() {
- try {
- return a.call(this).match(s)[1]
- } catch (t) {
- return ""
- }
- }
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(16),
- i = n(31),
- o = n(11);
- t.exports = function(t) {
- for (var e = r(this), n = o(e.length), a = arguments.length, s = i(a > 1 ? arguments[1] : void 0, n), l = a > 2 ? arguments[2] : void 0, u = void 0 === l ? n : i(l, n); u > s;) e[s++] = t;
- return e
- }
- }, function(t, e, n) {
- var r = n(0),
- i = n(91).trim,
- o = n(74),
- a = r.parseInt,
- s = /^[+-]?0[Xx]/,
- l = 8 !== a(o + "08") || 22 !== a(o + "0x16");
- t.exports = l ? function(t, e) {
- var n = i(String(t));
- return a(n, e >>> 0 || (s.test(n) ? 16 : 10))
- } : a
- }, function(t, e, n) {
- var r = n(8),
- i = n(0),
- o = n(50),
- a = n(113),
- s = n(9).f,
- l = n(27).f,
- u = n(116),
- c = n(70),
- d = n(14),
- f = n(1),
- h = n(124),
- p = n(2)("match"),
- g = i.RegExp,
- v = g.prototype,
- m = /a/g,
- y = /a/g,
- b = new g(m) !== m;
- if (r && o("RegExp", !b || f((function() {
- return y[p] = !1, g(m) != m || g(y) == y || "/a/i" != g(m, "i")
- })))) {
- for (var x = function(t, e) {
- var n = this instanceof x,
- r = u(t),
- i = void 0 === e;
- return !n && r && t.constructor === x && i ? t : a(b ? new g(r && !i ? t.source : t, e) : g((r = t instanceof x) ? t.source : t, r && i ? c.call(t) : e), n ? this : v, x)
- }, w = function(t) {
- t in x || s(x, t, {
- configurable: !0,
- get: function() {
- return g[t]
- },
- set: function(e) {
- g[t] = e
- }
- })
- }, S = l(g), k = 0; S.length > k;) w(S[k++]);
- v.constructor = x, x.prototype = v, d(i, "RegExp", x)
- }
- h("RegExp")
- }, function(t, e, n) {
- "use strict";
- var r = n(10),
- i = n(12),
- o = n(11),
- a = n(51),
- s = Math.min,
- l = [].lastIndexOf,
- u = !!l && 1 / [1].lastIndexOf(1, -0) < 0,
- c = a("lastIndexOf");
- t.exports = u || c ? function(t) {
- if (u) return l.apply(this, arguments) || 0;
- var e = r(this),
- n = o(e.length),
- a = n - 1;
- for (arguments.length > 1 && (a = s(a, i(arguments[1]))), a < 0 && (a = n + a); a >= 0; a--)
- if (a in e && e[a] === t) return a || 0;
- return -1
- } : l
- }, function(t, e, n) {
- "use strict";
- n.r(e);
- n(107), n(99), n(96), n(112), n(80), n(98);
- ! function(t) {
- var e, n, r = "".concat(["text", "password", "email", "url", "tel", "number", "search", "search-md"].map((function(t) {
- return "input[type=".concat(t, "]")
- })).join(", "), ", textarea"),
- i = function(t) {
- var e = t.siblings("label, i"),
- n = t.val().length,
- r = t.attr("placeholder");
- e["".concat(n || r ? "add" : "remove", "Class")]("active")
- },
- o = function(t) {
- if (t.hasClass("validate")) {
- var e = t.val(),
- n = !e.length,
- r = !t[0].validity.badInput;
- if (n && r) t.removeClass("valid").removeClass("invalid");
- else {
- var i = t.is(":valid"),
- o = Number(t.attr("length")) || 0;
- i && (!o || o > e.length) ? t.removeClass("invalid").addClass("valid") : t.removeClass("valid").addClass("invalid")
- }
- }
- },
- a = function() {
- var e = t(void 0);
- if (e.val().length) {
- var n = t(".hiddendiv"),
- r = e.css("font-family"),
- i = e.css("font-size");
- i && n.css("font-size", i), r && n.css("font-family", r), "off" === e.attr("wrap") && n.css("overflow-wrap", "normal").css("white-space", "pre"), n.text("".concat(e.val(), "\n"));
- var o = n.html().replace(/\n/g, "<br>");
- n.html(o), n.css("width", e.is(":visible") ? e.width() : t(window).width() / 2), e.css("height", n.height())
- }
- };
- t(r).each((function(e, n) {
- var r = t(n),
- o = r.siblings("label, i");
- i(r), n.validity.badInput && o.addClass("active")
- })), t(document).on("focus", r, (function(e) {
- t(e.target).siblings("label, i").addClass("active")
- })), t(document).on("blur", r, (function(e) {
- var n = t(e.target),
- r = !n.val(),
- i = !e.target.validity.badInput,
- a = void 0 === n.attr("placeholder");
- r && i && a && n.siblings("label, i").removeClass("active"), o(n)
- })), t(document).on("change", r, (function(e) {
- var n = t(e.target);
- i(n), o(n)
- })), t("input[autofocus]").siblings("label, i").addClass("active"), t(document).on("reset", (function(e) {
- var n = t(e.target);
- n.is("form") && (n.find(r).removeClass("valid").removeClass("invalid").each((function(e, n) {
- var r = t(n),
- i = !r.val(),
- o = !r.attr("placeholder");
- i && o && r.siblings("label, i").removeClass("active")
- })), n.find("select.initialized").each((function(e, n) {
- var r = t(n),
- i = r.siblings("input.select-dropdown"),
- o = r.children("[selected]").val();
- r.val(o), i.val(o)
- })))
- })), (n = t(".md-textarea-auto")).length && (e = window.attachEvent ? function(t, e, n) {
- t.attachEvent("on".concat(e), n)
- } : function(t, e, n) {
- t.addEventListener(e, n, !1)
- }, n.each((function() {
- var t = this;
- function n() {
- t.style.height = "auto", t.style.height = "".concat(t.scrollHeight, "px")
- }
- function r() {
- window.setTimeout(n, 0)
- }
- e(t, "change", n), e(t, "cut", r), e(t, "paste", r), e(t, "drop", r), e(t, "keydown", r), n()
- })));
- var s = t("body");
- if (!t(".hiddendiv").first().length) {
- var l = t('<div class="hiddendiv common"></div>');
- s.append(l)
- }
- t(".materialize-textarea").each(a), s.on("keyup keydown", ".materialize-textarea", a);
- var u = t('input[type="date"]');
- u.each((function(t, e) {
- e.type = "text"
- })), u.on("focus", (function(t) {
- t.target.type = "date"
- })), u.on("blur", (function(e) {
- e.target.type = "text", t("label[for=".concat(e.target.id, "]")).removeClass("active")
- }))
- }(jQuery)
- }, function(t, e) {
- jQuery((function(t) {
- t(window).on("scroll", (function() {
- var e = t(".navbar");
- e.length && t(".scrolling-navbar")[e.offset().top > 50 ? "addClass" : "removeClass"]("top-nav-collapse")
- }))
- }))
- }, function(t, e, n) {
- "use strict";
- n.r(e);
- n(107);
- jQuery((function(t) {
- t.fn.mdbTreeview = function() {
- var e = t(this);
- e.hasClass("treeview") && function(e) {
- e.find(".rotate").each((function() {
- var e = t(this);
- e.off("click"), e.on("click", (function() {
- var e = t(this);
- e.siblings(".nested").toggleClass("active"), e.toggleClass("down")
- }))
- }))
- }(e), e.hasClass("treeview-animated") && function(e) {
- var n = e.find(".treeview-animated-element"),
- r = e.find(".closed");
- e.find(".nested").hide(), r.off("click"), r.on("click", (function() {
- var e = t(this),
- n = e.siblings(".nested"),
- r = e.children(".fa-angle-right");
- e.toggleClass("open"), r.toggleClass("down"), n.hasClass("active") ? n.removeClass("active").slideUp() : n.addClass("active").slideDown()
- })), n.off("click"), n.on("click", (function() {
- var e = t(this);
- e.hasClass("opened") ? e.removeClass("opened") : (n.removeClass("opened"), e.addClass("opened"))
- }))
- }(e), e.hasClass("treeview-colorful") && function(e) {
- var n = e.find(".treeview-colorful-element"),
- r = e.find(".treeview-colorful-items-header");
- e.find(".nested").hide(), r.off("click"), r.on("click", (function() {
- var e = t(this),
- n = e.siblings(".nested"),
- r = e.children(".fa-plus-circle"),
- i = e.children(".fa-minus-circle");
- e.toggleClass("open"), r.removeClass("fa-plus-circle"), r.addClass("fa-minus-circle"), i.removeClass("fa-minus-circle"), i.addClass("fa-plus-circle"), n.hasClass("active") ? n.removeClass("active").slideUp() : n.addClass("active").slideDown()
- })), n.off("click"), n.on("click", (function() {
- var e = t(this);
- e.hasClass("opened") ? n.removeClass("opened") : (n.removeClass("opened"), e.addClass("opened"))
- }))
- }(e)
- }
- }))
- }, function(t, e, n) {
- "use strict";
- n.r(e);
- n(89), n(104), n(64), n(106);
- function r(t, e) {
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
- }
- function i(t, e) {
- for (var n = 0; n < e.length; n++) {
- var r = e[n];
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r)
- }
- }
- function o(t, e, n) {
- return e && i(t.prototype, e), n && i(t, n), t
- }
- jQuery((function(t) {
- var e = function() {
- function e() {
- r(this, e)
- }
- return o(e, [{
- key: "init",
- value: function() {
- t(".wow").wow()
- }
- }]), e
- }(),
- n = function() {
- function e(t, n) {
- r(this, e), this.$wowElement = t, this.customization = n, this.animated = !0, this.options = this.assignElementCustomization()
- }
- return o(e, [{
- key: "init",
- value: function() {
- var e = this;
- t(window).scroll((function() {
- e.animated ? e.hide() : e.mdbWow()
- })), this.appear()
- }
- }, {
- key: "assignElementCustomization",
- value: function() {
- return {
- animationName: this.$wowElement.css("animation-name"),
- offset: 100,
- iteration: this.fallback().or(this.$wowElement.data("wow-iteration")).or(1).value(),
- duration: this.fallback().or(this.$wowElement.data("wow-duration")).or(1e3).value(),
- delay: this.fallback().or(this.$wowElement.data("wow-delay")).or(0).value()
- }
- }
- }, {
- key: "mdbWow",
- value: function() {
- var t = this;
- "visible" !== this.$wowElement.css("visibility") && this.shouldElementBeVisible(!0) && (setTimeout((function() {
- return t.$wowElement.removeClass("animated")
- }), this.countRemoveTime()), this.appear())
- }
- }, {
- key: "appear",
- value: function() {
- this.$wowElement.addClass("animated"), this.$wowElement.css({
- visibility: "visible",
- "animation-name": this.options.animationName,
- "animation-iteration-count": this.options.iteration,
- "animation-duration": this.options.duration,
- "animation-delay": this.options.delay
- })
- }
- }, {
- key: "hide",
- value: function() {
- var t = this;
- this.shouldElementBeVisible(!1) ? (this.$wowElement.removeClass("animated"), this.$wowElement.css({
- "animation-name": "none",
- visibility: "hidden"
- })) : setTimeout((function() {
- t.$wowElement.removeClass("animated")
- }), this.countRemoveTime()), this.mdbWow(), this.animated = !this.animated
- }
- }, {
- key: "shouldElementBeVisible",
- value: function(e) {
- var n = this.getOffset(this.$wowElement[0]),
- r = this.$wowElement.height(),
- i = t(document).height(),
- o = window.innerHeight,
- a = window.scrollY,
- s = o + a - this.options.offset > n,
- l = o + a - this.options.offset > n + r,
- u = a < n,
- c = a < n + r,
- d = o + a === i,
- f = n + this.options.offset > i,
- h = o + a - this.options.offset < n,
- p = a > n + this.options.offset,
- g = a < n + this.options.offset,
- v = n + r > i - this.options.offset;
- return e ? s && u || l && c || d && f : s && p || h && g || v
- }
- }, {
- key: "countRemoveTime",
- value: function() {
- var t = 1e3 * this.$wowElement.css("animation-duration").slice(0, -1),
- e = 0;
- return this.options.duration && (e = t + this.checkOptionsStringFormat(this.options.duration)), this.options.delay && (e += this.checkOptionsStringFormat(this.options.delay)), e
- }
- }, {
- key: "checkOptionsStringFormat",
- value: function(t) {
- var e;
- if ("s" === t.toString().slice(-1)) e = t.toString().slice(0, -1);
- else {
- if (isNaN(t.toString().slice(-1))) return console.log("Not supported animation customization format.");
- e = t
- }
- return e
- }
- }, {
- key: "getOffset",
- value: function(t) {
- var e = t.getBoundingClientRect(),
- n = document.body,
- r = document.documentElement,
- i = window.pageYOffset || r.scrollTop || n.scrollTop,
- o = r.clientTop || n.clientTop || 0,
- a = e.top + i - o;
- return Math.round(a)
- }
- }, {
- key: "fallback",
- value: function() {
- return {
- _value: void 0,
- or: function(t) {
- return void 0 !== t && void 0 === this._value && (this._value = t), this
- },
- value: function() {
- return this._value
- }
- }
- }
- }]), e
- }();
- t.fn.wow = function(e) {
- this.each((function() {
- new n(t(this), e).init()
- }))
- }, window.WOW = e
- }))
- }, , , function(t, e, n) {
- var r = n(3),
- i = n(128),
- o = n(62);
- r({
- target: "Array",
- proto: !0
- }, {
- fill: i
- }), o("fill")
- }, function(t, e, n) {
- n(3)({
- target: "Number",
- stat: !0
- }, {
- MAX_SAFE_INTEGER: 9007199254740991
- })
- }, function(t, e, n) {
- n(3)({
- target: "Number",
- stat: !0
- }, {
- MIN_SAFE_INTEGER: -9007199254740991
- })
- }, function(t, e, n) {
- var r = n(3),
- i = n(16),
- o = n(53);
- r({
- target: "Object",
- stat: !0,
- forced: n(1)((function() {
- o(1)
- }))
- }, {
- keys: function(t) {
- return o(i(t))
- }
- })
- }, function(t, e, n) {
- "use strict";
- var r = n(0),
- i = n(8),
- o = n(40).NATIVE_ARRAY_BUFFER,
- a = n(6),
- s = n(165),
- l = n(1),
- u = n(143),
- c = n(12),
- d = n(11),
- f = n(144),
- h = n(27).f,
- p = n(9).f,
- g = n(128),
- v = n(49),
- m = n(22),
- y = m.get,
- b = m.set,
- x = r.ArrayBuffer,
- w = x,
- S = r.DataView,
- k = r.Math,
- C = r.RangeError,
- M = k.abs,
- A = k.pow,
- P = k.floor,
- _ = k.log,
- T = k.LN2,
- I = function(t, e, n) {
- var r, i, o, a = new Array(n),
- s = 8 * n - e - 1,
- l = (1 << s) - 1,
- u = l >> 1,
- c = 23 === e ? A(2, -24) - A(2, -77) : 0,
- d = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0,
- f = 0;
- for ((t = M(t)) != t || t === 1 / 0 ? (i = t != t ? 1 : 0, r = l) : (r = P(_(t) / T), t * (o = A(2, -r)) < 1 && (r--, o *= 2), (t += r + u >= 1 ? c / o : c * A(2, 1 - u)) * o >= 2 && (r++, o /= 2), r + u >= l ? (i = 0, r = l) : r + u >= 1 ? (i = (t * o - 1) * A(2, e), r += u) : (i = t * A(2, u - 1) * A(2, e), r = 0)); e >= 8; a[f++] = 255 & i, i /= 256, e -= 8);
- for (r = r << e | i, s += e; s > 0; a[f++] = 255 & r, r /= 256, s -= 8);
- return a[--f] |= 128 * d, a
- },
- O = function(t, e) {
- var n, r = t.length,
- i = 8 * r - e - 1,
- o = (1 << i) - 1,
- a = o >> 1,
- s = i - 7,
- l = r - 1,
- u = t[l--],
- c = 127 & u;
- for (u >>= 7; s > 0; c = 256 * c + t[l], l--, s -= 8);
- for (n = c & (1 << -s) - 1, c >>= -s, s += e; s > 0; n = 256 * n + t[l], l--, s -= 8);
- if (0 === c) c = 1 - a;
- else {
- if (c === o) return n ? NaN : u ? -1 / 0 : 1 / 0;
- n += A(2, e), c -= a
- }
- return (u ? -1 : 1) * n * A(2, c - e)
- },
- F = function(t) {
- return t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0]
- },
- D = function(t) {
- return [255 & t]
- },
- E = function(t) {
- return [255 & t, t >> 8 & 255]
- },
- L = function(t) {
- return [255 & t, t >> 8 & 255, t >> 16 & 255, t >> 24 & 255]
- },
- R = function(t) {
- return I(t, 23, 4)
- },
- N = function(t) {
- return I(t, 52, 8)
- },
- V = function(t, e) {
- p(t.prototype, e, {
- get: function() {
- return y(this)[e]
- }
- })
- },
- z = function(t, e, n, r) {
- var i = f(+n),
- o = y(t);
- if (i + e > o.byteLength) throw C("Wrong index");
- var a = y(o.buffer).bytes,
- s = i + o.byteOffset,
- l = a.slice(s, s + e);
- return r ? l : l.reverse()
- },
- B = function(t, e, n, r, i, o) {
- var a = f(+n),
- s = y(t);
- if (a + e > s.byteLength) throw C("Wrong index");
- for (var l = y(s.buffer).bytes, u = a + s.byteOffset, c = r(+i), d = 0; d < e; d++) l[u + d] = c[o ? d : e - d - 1]
- };
- if (o) {
- if (!l((function() {
- x(1)
- })) || !l((function() {
- new x(-1)
- })) || l((function() {
- return new x, new x(1.5), new x(NaN), "ArrayBuffer" != x.name
- }))) {
- for (var W, j = (w = function(t) {
- return u(this, w), new x(f(t))
- }).prototype = x.prototype, H = h(x), q = 0; H.length > q;)(W = H[q++]) in w || a(w, W, x[W]);
- j.constructor = w
- }
- var U = new S(new w(2)),
- Y = S.prototype.setInt8;
- U.setInt8(0, 2147483648), U.setInt8(1, 2147483649), !U.getInt8(0) && U.getInt8(1) || s(S.prototype, {
- setInt8: function(t, e) {
- Y.call(this, t, e << 24 >> 24)
- },
- setUint8: function(t, e) {
- Y.call(this, t, e << 24 >> 24)
- }
- }, {
- unsafe: !0
- })
- } else w = function(t) {
- u(this, w, "ArrayBuffer");
- var e = f(t);
- b(this, {
- bytes: g.call(new Array(e), 0),
- byteLength: e
- }), i || (this.byteLength = e)
- }, S = function(t, e, n) {
- u(this, S, "DataView"), u(t, w, "DataView");
- var r = y(t).byteLength,
- o = c(e);
- if (o < 0 || o > r) throw C("Wrong offset");
- if (o + (n = void 0 === n ? r - o : d(n)) > r) throw C("Wrong length");
- b(this, {
- buffer: t,
- byteLength: n,
- byteOffset: o
- }), i || (this.buffer = t, this.byteLength = n, this.byteOffset = o)
- }, i && (V(w, "byteLength"), V(S, "buffer"), V(S, "byteLength"), V(S, "byteOffset")), s(S.prototype, {
- getInt8: function(t) {
- return z(this, 1, t)[0] << 24 >> 24
- },
- getUint8: function(t) {
- return z(this, 1, t)[0]
- },
- getInt16: function(t) {
- var e = z(this, 2, t, arguments.length > 1 ? arguments[1] : void 0);
- return (e[1] << 8 | e[0]) << 16 >> 16
- },
- getUint16: function(t) {
- var e = z(this, 2, t, arguments.length > 1 ? arguments[1] : void 0);
- return e[1] << 8 | e[0]
- },
- getInt32: function(t) {
- return F(z(this, 4, t, arguments.length > 1 ? arguments[1] : void 0))
- },
- getUint32: function(t) {
- return F(z(this, 4, t, arguments.length > 1 ? arguments[1] : void 0)) >>> 0
- },
- getFloat32: function(t) {
- return O(z(this, 4, t, arguments.length > 1 ? arguments[1] : void 0), 23)
- },
- getFloat64: function(t) {
- return O(z(this, 8, t, arguments.length > 1 ? arguments[1] : void 0), 52)
- },
- setInt8: function(t, e) {
- B(this, 1, t, D, e)
- },
- setUint8: function(t, e) {
- B(this, 1, t, D, e)
- },
- setInt16: function(t, e) {
- B(this, 2, t, E, e, arguments.length > 2 ? arguments[2] : void 0)
- },
- setUint16: function(t, e) {
- B(this, 2, t, E, e, arguments.length > 2 ? arguments[2] : void 0)
- },
- setInt32: function(t, e) {
- B(this, 4, t, L, e, arguments.length > 2 ? arguments[2] : void 0)
- },
- setUint32: function(t, e) {
- B(this, 4, t, L, e, arguments.length > 2 ? arguments[2] : void 0)
- },
- setFloat32: function(t, e) {
- B(this, 4, t, R, e, arguments.length > 2 ? arguments[2] : void 0)
- },
- setFloat64: function(t, e) {
- B(this, 8, t, N, e, arguments.length > 2 ? arguments[2] : void 0)
- }
- });
- v(w, "ArrayBuffer"), v(S, "DataView"), t.exports = {
- ArrayBuffer: w,
- DataView: S
- }
- }, function(t, e) {
- t.exports = function(t, e, n) {
- if (!(t instanceof e)) throw TypeError("Incorrect " + (n ? n + " " : "") + "invocation");
- return t
- }
- }, function(t, e, n) {
- var r = n(12),
- i = n(11);
- t.exports = function(t) {
- if (void 0 === t) return 0;
- var e = r(t),
- n = i(e);
- if (e !== n) throw RangeError("Wrong length or index");
- return n
- }
- }, function(t, e, n) {
- var r = n(170);
- t.exports = function(t, e) {
- var n = r(t);
- if (n % e) throw RangeError("Wrong offset");
- return n
- }
- }, function(t, e, n) {
- n(147), t.exports = n(148)
- }, function(t, e, n) {}, function(t, e, n) {
- "use strict";
- n.r(e);
- n(149), n(150), n(156), n(161), n(162), n(163), n(198), n(132), n(133), n(134), n(135)
- }, function(t, e, n) {
- "use strict";
- (function(t) {
- var e, r;
- n(75), n(78), n(79), n(101), n(92), n(54), n(99), n(96), n(89), n(127), n(64), n(80), n(81), n(109), n(84);
- function i(t) {
- return (i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
- return typeof t
- } : function(t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
- /*!
- * bsCustomFileInput v1.3.2 (https://github.com/Johann-S/bs-custom-file-input)
- * Copyright 2018 - 2019 Johann-S <johann.servoire@gmail.com>
- * Licensed under MIT (https://github.com/Johann-S/bs-custom-file-input/blob/master/LICENSE)
- */
- e = void 0, r = function() {
- var t = {
- CUSTOMFILE: '.custom-file input[type="file"]',
- CUSTOMFILELABEL: ".custom-file-label",
- FORM: "form",
- INPUT: "input"
- },
- e = function(e) {
- var n = "",
- r = e.parentNode.querySelector(t.CUSTOMFILELABEL);
- return r && (n = r.innerHTML), n
- },
- n = function(t) {
- if (t.childNodes.length > 0)
- for (var e = [].slice.call(t.childNodes), n = 0; n < e.length; n++) {
- var r = e[n];
- if (3 !== r.nodeType) return r
- }
- return t
- },
- r = function(e) {
- var r = e.bsCustomFileInput.defaultText,
- i = e.parentNode.querySelector(t.CUSTOMFILELABEL);
- i && (n(i).innerHTML = r)
- },
- i = !!window.File,
- o = function(t) {
- if (t.hasAttribute("multiple") && i) return [].slice.call(t.files).map((function(t) {
- return t.name
- })).join(", ");
- if (-1 !== t.value.indexOf("fakepath")) {
- var e = t.value.split("\\");
- return e[e.length - 1]
- }
- return t.value
- };
- function a() {
- var e = this.parentNode.querySelector(t.CUSTOMFILELABEL);
- if (e) {
- var i = n(e),
- a = o(this);
- a.length ? i.innerHTML = a : r(this)
- }
- }
- function s() {
- for (var e = [].slice.call(this.querySelectorAll(t.INPUT)).filter((function(t) {
- return !!t.bsCustomFileInput
- })), n = 0, i = e.length; n < i; n++) r(e[n])
- }
- var l = "reset",
- u = "change";
- return {
- init: function(n, r) {
- void 0 === n && (n = t.CUSTOMFILE), void 0 === r && (r = t.FORM);
- for (var i = [].slice.call(document.querySelectorAll(n)), o = [].slice.call(document.querySelectorAll(r)), c = 0, d = i.length; c < d; c++) {
- var f = i[c];
- Object.defineProperty(f, "bsCustomFileInput", {
- value: {
- defaultText: e(f)
- },
- writable: !0
- }), a.call(f), f.addEventListener(u, a)
- }
- for (var h = 0, p = o.length; h < p; h++) o[h].addEventListener(l, s), Object.defineProperty(o[h], "bsCustomFileInput", {
- value: !0,
- writable: !0
- })
- },
- destroy: function() {
- for (var e = [].slice.call(document.querySelectorAll(t.FORM)).filter((function(t) {
- return !!t.bsCustomFileInput
- })), n = [].slice.call(document.querySelectorAll(t.INPUT)).filter((function(t) {
- return !!t.bsCustomFileInput
- })), i = 0, o = n.length; i < o; i++) {
- var c = n[i];
- r(c), c.bsCustomFileInput = void 0, c.removeEventListener(u, a)
- }
- for (var d = 0, f = e.length; d < f; d++) e[d].removeEventListener(l, s), e[d].bsCustomFileInput = void 0
- }
- }
- }, "object" === ("undefined" == typeof exports ? "undefined" : i(exports)) && void 0 !== t ? t.exports = r() : "function" == typeof define && n(55) ? define(r) : (e = e || self).bsCustomFileInput = r(), document.addEventListener("DOMContentLoaded", (function() {
- bsCustomFileInput.init()
- }))
- }).call(this, n(87)(t))
- }, function(t, e, n) {
- "use strict";
- (function(t, e) {
- var i;
- n(75), n(78), n(79), n(100), n(138), n(101), n(151), n(110), n(92), n(54), n(99), n(96), n(120), n(121), n(89), n(122), n(97), n(104), n(152), n(153), n(112), n(155), n(139), n(140), n(117), n(141), n(64), n(105), n(123), n(80), n(106), n(81), n(114), n(109), n(115), n(84);
- function o(t) {
- return (o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
- return typeof t
- } : function(t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
- /*!
- * Chart.js
- * http://chartjs.org/
- * Version: 2.7.3
- *
- * Copyright 2018 Chart.js Contributors
- * Released under the MIT license
- * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
- */
- ! function(r) {
- if ("object" === ("undefined" == typeof exports ? "undefined" : o(exports)) && void 0 !== t) t.exports = r();
- else if ("function" == typeof define && n(55)) define([], r);
- else {
- ("undefined" != typeof window ? window : void 0 !== e ? e : "undefined" != typeof self ? self : this).Chart = r()
- }
- }((function() {
- return function t(e, n, r) {
- function o(s, l) {
- if (!n[s]) {
- if (!e[s]) {
- if (!l && "function" == typeof i && i) return i(s, !0);
- if (a) return a(s, !0);
- var u = new Error("Cannot find module '" + s + "'");
- throw u.code = "MODULE_NOT_FOUND", u
- }
- var c = n[s] = {
- exports: {}
- };
- e[s][0].call(c.exports, (function(t) {
- return o(e[s][1][t] || t)
- }), c, c.exports, t, e, n, r)
- }
- return n[s].exports
- }
- for (var a = "function" == typeof i && i, s = 0; s < r.length; s++) o(r[s]);
- return o
- }({
- 1: [function(t, e, n) {}, {}],
- 2: [function(t, e, n) {
- var r = t(6);
- function i(t) {
- if (t) {
- var e = [0, 0, 0],
- n = 1,
- i = t.match(/^#([a-fA-F0-9]{3})$/i);
- if (i) {
- i = i[1];
- for (var o = 0; o < e.length; o++) e[o] = parseInt(i[o] + i[o], 16)
- } else if (i = t.match(/^#([a-fA-F0-9]{6})$/i)) {
- i = i[1];
- for (o = 0; o < e.length; o++) e[o] = parseInt(i.slice(2 * o, 2 * o + 2), 16)
- } else if (i = t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)) {
- for (o = 0; o < e.length; o++) e[o] = parseInt(i[o + 1]);
- n = parseFloat(i[4])
- } else if (i = t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)) {
- for (o = 0; o < e.length; o++) e[o] = Math.round(2.55 * parseFloat(i[o + 1]));
- n = parseFloat(i[4])
- } else if (i = t.match(/(\w+)/)) {
- if ("transparent" == i[1]) return [0, 0, 0, 0];
- if (!(e = r[i[1]])) return
- }
- for (o = 0; o < e.length; o++) e[o] = c(e[o], 0, 255);
- return n = n || 0 == n ? c(n, 0, 1) : 1, e[3] = n, e
- }
- }
- function o(t) {
- if (t) {
- var e = t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);
- if (e) {
- var n = parseFloat(e[4]);
- return [c(parseInt(e[1]), 0, 360), c(parseFloat(e[2]), 0, 100), c(parseFloat(e[3]), 0, 100), c(isNaN(n) ? 1 : n, 0, 1)]
- }
- }
- }
- function a(t) {
- if (t) {
- var e = t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);
- if (e) {
- var n = parseFloat(e[4]);
- return [c(parseInt(e[1]), 0, 360), c(parseFloat(e[2]), 0, 100), c(parseFloat(e[3]), 0, 100), c(isNaN(n) ? 1 : n, 0, 1)]
- }
- }
- }
- function s(t, e) {
- return void 0 === e && (e = void 0 !== t[3] ? t[3] : 1), "rgba(" + t[0] + ", " + t[1] + ", " + t[2] + ", " + e + ")"
- }
- function l(t, e) {
- return "rgba(" + Math.round(t[0] / 255 * 100) + "%, " + Math.round(t[1] / 255 * 100) + "%, " + Math.round(t[2] / 255 * 100) + "%, " + (e || t[3] || 1) + ")"
- }
- function u(t, e) {
- return void 0 === e && (e = void 0 !== t[3] ? t[3] : 1), "hsla(" + t[0] + ", " + t[1] + "%, " + t[2] + "%, " + e + ")"
- }
- function c(t, e, n) {
- return Math.min(Math.max(e, t), n)
- }
- function d(t) {
- var e = t.toString(16).toUpperCase();
- return e.length < 2 ? "0" + e : e
- }
- e.exports = {
- getRgba: i,
- getHsla: o,
- getRgb: function(t) {
- var e = i(t);
- return e && e.slice(0, 3)
- },
- getHsl: function(t) {
- var e = o(t);
- return e && e.slice(0, 3)
- },
- getHwb: a,
- getAlpha: function(t) {
- var e = i(t);
- if (e) return e[3];
- if (e = o(t)) return e[3];
- if (e = a(t)) return e[3]
- },
- hexString: function(t) {
- return "#" + d(t[0]) + d(t[1]) + d(t[2])
- },
- rgbString: function(t, e) {
- if (e < 1 || t[3] && t[3] < 1) return s(t, e);
- return "rgb(" + t[0] + ", " + t[1] + ", " + t[2] + ")"
- },
- rgbaString: s,
- percentString: function(t, e) {
- if (e < 1 || t[3] && t[3] < 1) return l(t, e);
- var n = Math.round(t[0] / 255 * 100),
- r = Math.round(t[1] / 255 * 100),
- i = Math.round(t[2] / 255 * 100);
- return "rgb(" + n + "%, " + r + "%, " + i + "%)"
- },
- percentaString: l,
- hslString: function(t, e) {
- if (e < 1 || t[3] && t[3] < 1) return u(t, e);
- return "hsl(" + t[0] + ", " + t[1] + "%, " + t[2] + "%)"
- },
- hslaString: u,
- hwbString: function(t, e) {
- void 0 === e && (e = void 0 !== t[3] ? t[3] : 1);
- return "hwb(" + t[0] + ", " + t[1] + "%, " + t[2] + "%" + (void 0 !== e && 1 !== e ? ", " + e : "") + ")"
- },
- keyword: function(t) {
- return f[t.slice(0, 3)]
- }
- };
- var f = {};
- for (var h in r) f[r[h]] = h
- }, {
- 6: 6
- }],
- 3: [function(t, e, n) {
- var r = t(5),
- i = t(2),
- a = function t(e) {
- return e instanceof t ? e : this instanceof t ? (this.valid = !1, this.values = {
- rgb: [0, 0, 0],
- hsl: [0, 0, 0],
- hsv: [0, 0, 0],
- hwb: [0, 0, 0],
- cmyk: [0, 0, 0, 0],
- alpha: 1
- }, void("string" == typeof e ? (n = i.getRgba(e)) ? this.setValues("rgb", n) : (n = i.getHsla(e)) ? this.setValues("hsl", n) : (n = i.getHwb(e)) && this.setValues("hwb", n) : "object" === o(e) && (void 0 !== (n = e).r || void 0 !== n.red ? this.setValues("rgb", n) : void 0 !== n.l || void 0 !== n.lightness ? this.setValues("hsl", n) : void 0 !== n.v || void 0 !== n.value ? this.setValues("hsv", n) : void 0 !== n.w || void 0 !== n.whiteness ? this.setValues("hwb", n) : void 0 === n.c && void 0 === n.cyan || this.setValues("cmyk", n)))) : new t(e);
- var n
- };
- (a.prototype = {
- isValid: function() {
- return this.valid
- },
- rgb: function() {
- return this.setSpace("rgb", arguments)
- },
- hsl: function() {
- return this.setSpace("hsl", arguments)
- },
- hsv: function() {
- return this.setSpace("hsv", arguments)
- },
- hwb: function() {
- return this.setSpace("hwb", arguments)
- },
- cmyk: function() {
- return this.setSpace("cmyk", arguments)
- },
- rgbArray: function() {
- return this.values.rgb
- },
- hslArray: function() {
- return this.values.hsl
- },
- hsvArray: function() {
- return this.values.hsv
- },
- hwbArray: function() {
- var t = this.values;
- return 1 !== t.alpha ? t.hwb.concat([t.alpha]) : t.hwb
- },
- cmykArray: function() {
- return this.values.cmyk
- },
- rgbaArray: function() {
- var t = this.values;
- return t.rgb.concat([t.alpha])
- },
- hslaArray: function() {
- var t = this.values;
- return t.hsl.concat([t.alpha])
- },
- alpha: function(t) {
- return void 0 === t ? this.values.alpha : (this.setValues("alpha", t), this)
- },
- red: function(t) {
- return this.setChannel("rgb", 0, t)
- },
- green: function(t) {
- return this.setChannel("rgb", 1, t)
- },
- blue: function(t) {
- return this.setChannel("rgb", 2, t)
- },
- hue: function(t) {
- return t && (t = (t %= 360) < 0 ? 360 + t : t), this.setChannel("hsl", 0, t)
- },
- saturation: function(t) {
- return this.setChannel("hsl", 1, t)
- },
- lightness: function(t) {
- return this.setChannel("hsl", 2, t)
- },
- saturationv: function(t) {
- return this.setChannel("hsv", 1, t)
- },
- whiteness: function(t) {
- return this.setChannel("hwb", 1, t)
- },
- blackness: function(t) {
- return this.setChannel("hwb", 2, t)
- },
- value: function(t) {
- return this.setChannel("hsv", 2, t)
- },
- cyan: function(t) {
- return this.setChannel("cmyk", 0, t)
- },
- magenta: function(t) {
- return this.setChannel("cmyk", 1, t)
- },
- yellow: function(t) {
- return this.setChannel("cmyk", 2, t)
- },
- black: function(t) {
- return this.setChannel("cmyk", 3, t)
- },
- hexString: function() {
- return i.hexString(this.values.rgb)
- },
- rgbString: function() {
- return i.rgbString(this.values.rgb, this.values.alpha)
- },
- rgbaString: function() {
- return i.rgbaString(this.values.rgb, this.values.alpha)
- },
- percentString: function() {
- return i.percentString(this.values.rgb, this.values.alpha)
- },
- hslString: function() {
- return i.hslString(this.values.hsl, this.values.alpha)
- },
- hslaString: function() {
- return i.hslaString(this.values.hsl, this.values.alpha)
- },
- hwbString: function() {
- return i.hwbString(this.values.hwb, this.values.alpha)
- },
- keyword: function() {
- return i.keyword(this.values.rgb, this.values.alpha)
- },
- rgbNumber: function() {
- var t = this.values.rgb;
- return t[0] << 16 | t[1] << 8 | t[2]
- },
- luminosity: function() {
- for (var t = this.values.rgb, e = [], n = 0; n < t.length; n++) {
- var r = t[n] / 255;
- e[n] = r <= .03928 ? r / 12.92 : Math.pow((r + .055) / 1.055, 2.4)
- }
- return .2126 * e[0] + .7152 * e[1] + .0722 * e[2]
- },
- contrast: function(t) {
- var e = this.luminosity(),
- n = t.luminosity();
- return e > n ? (e + .05) / (n + .05) : (n + .05) / (e + .05)
- },
- level: function(t) {
- var e = this.contrast(t);
- return e >= 7.1 ? "AAA" : e >= 4.5 ? "AA" : ""
- },
- dark: function() {
- var t = this.values.rgb;
- return (299 * t[0] + 587 * t[1] + 114 * t[2]) / 1e3 < 128
- },
- light: function() {
- return !this.dark()
- },
- negate: function() {
- for (var t = [], e = 0; e < 3; e++) t[e] = 255 - this.values.rgb[e];
- return this.setValues("rgb", t), this
- },
- lighten: function(t) {
- var e = this.values.hsl;
- return e[2] += e[2] * t, this.setValues("hsl", e), this
- },
- darken: function(t) {
- var e = this.values.hsl;
- return e[2] -= e[2] * t, this.setValues("hsl", e), this
- },
- saturate: function(t) {
- var e = this.values.hsl;
- return e[1] += e[1] * t, this.setValues("hsl", e), this
- },
- desaturate: function(t) {
- var e = this.values.hsl;
- return e[1] -= e[1] * t, this.setValues("hsl", e), this
- },
- whiten: function(t) {
- var e = this.values.hwb;
- return e[1] += e[1] * t, this.setValues("hwb", e), this
- },
- blacken: function(t) {
- var e = this.values.hwb;
- return e[2] += e[2] * t, this.setValues("hwb", e), this
- },
- greyscale: function() {
- var t = this.values.rgb,
- e = .3 * t[0] + .59 * t[1] + .11 * t[2];
- return this.setValues("rgb", [e, e, e]), this
- },
- clearer: function(t) {
- var e = this.values.alpha;
- return this.setValues("alpha", e - e * t), this
- },
- opaquer: function(t) {
- var e = this.values.alpha;
- return this.setValues("alpha", e + e * t), this
- },
- rotate: function(t) {
- var e = this.values.hsl,
- n = (e[0] + t) % 360;
- return e[0] = n < 0 ? 360 + n : n, this.setValues("hsl", e), this
- },
- mix: function(t, e) {
- var n = t,
- r = void 0 === e ? .5 : e,
- i = 2 * r - 1,
- o = this.alpha() - n.alpha(),
- a = ((i * o == -1 ? i : (i + o) / (1 + i * o)) + 1) / 2,
- s = 1 - a;
- return this.rgb(a * this.red() + s * n.red(), a * this.green() + s * n.green(), a * this.blue() + s * n.blue()).alpha(this.alpha() * r + n.alpha() * (1 - r))
- },
- toJSON: function() {
- return this.rgb()
- },
- clone: function() {
- var t, e, n = new a,
- r = this.values,
- i = n.values;
- for (var o in r) r.hasOwnProperty(o) && (t = r[o], "[object Array]" === (e = {}.toString.call(t)) ? i[o] = t.slice(0) : "[object Number]" === e ? i[o] = t : console.error("unexpected color value:", t));
- return n
- }
- }).spaces = {
- rgb: ["red", "green", "blue"],
- hsl: ["hue", "saturation", "lightness"],
- hsv: ["hue", "saturation", "value"],
- hwb: ["hue", "whiteness", "blackness"],
- cmyk: ["cyan", "magenta", "yellow", "black"]
- }, a.prototype.maxes = {
- rgb: [255, 255, 255],
- hsl: [360, 100, 100],
- hsv: [360, 100, 100],
- hwb: [360, 100, 100],
- cmyk: [100, 100, 100, 100]
- }, a.prototype.getValues = function(t) {
- for (var e = this.values, n = {}, r = 0; r < t.length; r++) n[t.charAt(r)] = e[t][r];
- return 1 !== e.alpha && (n.a = e.alpha), n
- }, a.prototype.setValues = function(t, e) {
- var n, i, o = this.values,
- a = this.spaces,
- s = this.maxes,
- l = 1;
- if (this.valid = !0, "alpha" === t) l = e;
- else if (e.length) o[t] = e.slice(0, t.length), l = e[t.length];
- else if (void 0 !== e[t.charAt(0)]) {
- for (n = 0; n < t.length; n++) o[t][n] = e[t.charAt(n)];
- l = e.a
- } else if (void 0 !== e[a[t][0]]) {
- var u = a[t];
- for (n = 0; n < t.length; n++) o[t][n] = e[u[n]];
- l = e.alpha
- }
- if (o.alpha = Math.max(0, Math.min(1, void 0 === l ? o.alpha : l)), "alpha" === t) return !1;
- for (n = 0; n < t.length; n++) i = Math.max(0, Math.min(s[t][n], o[t][n])), o[t][n] = Math.round(i);
- for (var c in a) c !== t && (o[c] = r[t][c](o[t]));
- return !0
- }, a.prototype.setSpace = function(t, e) {
- var n = e[0];
- return void 0 === n ? this.getValues(t) : ("number" == typeof n && (n = Array.prototype.slice.call(e)), this.setValues(t, n), this)
- }, a.prototype.setChannel = function(t, e, n) {
- var r = this.values[t];
- return void 0 === n ? r[e] : n === r[e] ? this : (r[e] = n, this.setValues(t, r), this)
- }, "undefined" != typeof window && (window.Color = a), e.exports = a
- }, {
- 2: 2,
- 5: 5
- }],
- 4: [function(t, e, n) {
- function i(t) {
- var e, n, r = t[0] / 255,
- i = t[1] / 255,
- o = t[2] / 255,
- a = Math.min(r, i, o),
- s = Math.max(r, i, o),
- l = s - a;
- return s == a ? e = 0 : r == s ? e = (i - o) / l : i == s ? e = 2 + (o - r) / l : o == s && (e = 4 + (r - i) / l), (e = Math.min(60 * e, 360)) < 0 && (e += 360), n = (a + s) / 2, [e, 100 * (s == a ? 0 : n <= .5 ? l / (s + a) : l / (2 - s - a)), 100 * n]
- }
- function o(t) {
- var e, n, r = t[0],
- i = t[1],
- o = t[2],
- a = Math.min(r, i, o),
- s = Math.max(r, i, o),
- l = s - a;
- return n = 0 == s ? 0 : l / s * 1e3 / 10, s == a ? e = 0 : r == s ? e = (i - o) / l : i == s ? e = 2 + (o - r) / l : o == s && (e = 4 + (r - i) / l), (e = Math.min(60 * e, 360)) < 0 && (e += 360), [e, n, s / 255 * 1e3 / 10]
- }
- function a(t) {
- var e = t[0],
- n = t[1],
- r = t[2];
- return [i(t)[0], 100 * (1 / 255 * Math.min(e, Math.min(n, r))), 100 * (r = 1 - 1 / 255 * Math.max(e, Math.max(n, r)))]
- }
- function s(t) {
- var e, n = t[0] / 255,
- r = t[1] / 255,
- i = t[2] / 255;
- return [100 * ((1 - n - (e = Math.min(1 - n, 1 - r, 1 - i))) / (1 - e) || 0), 100 * ((1 - r - e) / (1 - e) || 0), 100 * ((1 - i - e) / (1 - e) || 0), 100 * e]
- }
- function l(t) {
- return M[JSON.stringify(t)]
- }
- function u(t) {
- var e = t[0] / 255,
- n = t[1] / 255,
- r = t[2] / 255;
- return [100 * (.4124 * (e = e > .04045 ? Math.pow((e + .055) / 1.055, 2.4) : e / 12.92) + .3576 * (n = n > .04045 ? Math.pow((n + .055) / 1.055, 2.4) : n / 12.92) + .1805 * (r = r > .04045 ? Math.pow((r + .055) / 1.055, 2.4) : r / 12.92)), 100 * (.2126 * e + .7152 * n + .0722 * r), 100 * (.0193 * e + .1192 * n + .9505 * r)]
- }
- function c(t) {
- var e = u(t),
- n = e[0],
- r = e[1],
- i = e[2];
- return r /= 100, i /= 108.883, n = (n /= 95.047) > .008856 ? Math.pow(n, 1 / 3) : 7.787 * n + 16 / 116, [116 * (r = r > .008856 ? Math.pow(r, 1 / 3) : 7.787 * r + 16 / 116) - 16, 500 * (n - r), 200 * (r - (i = i > .008856 ? Math.pow(i, 1 / 3) : 7.787 * i + 16 / 116))]
- }
- function d(t) {
- var e, n, r, i, o, a = t[0] / 360,
- s = t[1] / 100,
- l = t[2] / 100;
- if (0 == s) return [o = 255 * l, o, o];
- e = 2 * l - (n = l < .5 ? l * (1 + s) : l + s - l * s), i = [0, 0, 0];
- for (var u = 0; u < 3; u++)(r = a + 1 / 3 * -(u - 1)) < 0 && r++, r > 1 && r--, o = 6 * r < 1 ? e + 6 * (n - e) * r : 2 * r < 1 ? n : 3 * r < 2 ? e + (n - e) * (2 / 3 - r) * 6 : e, i[u] = 255 * o;
- return i
- }
- function f(t) {
- var e = t[0] / 60,
- n = t[1] / 100,
- r = t[2] / 100,
- i = Math.floor(e) % 6,
- o = e - Math.floor(e),
- a = 255 * r * (1 - n),
- s = 255 * r * (1 - n * o),
- l = 255 * r * (1 - n * (1 - o));
- r *= 255;
- switch (i) {
- case 0:
- return [r, l, a];
- case 1:
- return [s, r, a];
- case 2:
- return [a, r, l];
- case 3:
- return [a, s, r];
- case 4:
- return [l, a, r];
- case 5:
- return [r, a, s]
- }
- }
- function h(t) {
- var e, n, i, o, a = t[0] / 360,
- s = t[1] / 100,
- l = t[2] / 100,
- u = s + l;
- switch (u > 1 && (s /= u, l /= u), i = 6 * a - (e = Math.floor(6 * a)), 0 != (1 & e) && (i = 1 - i), o = s + i * ((n = 1 - l) - s), e) {
- default:
- case 6:
- case 0:
- r = n, g = o, b = s;
- break;
- case 1:
- r = o, g = n, b = s;
- break;
- case 2:
- r = s, g = n, b = o;
- break;
- case 3:
- r = s, g = o, b = n;
- break;
- case 4:
- r = o, g = s, b = n;
- break;
- case 5:
- r = n, g = s, b = o
- }
- return [255 * r, 255 * g, 255 * b]
- }
- function p(t) {
- var e = t[0] / 100,
- n = t[1] / 100,
- r = t[2] / 100,
- i = t[3] / 100;
- return [255 * (1 - Math.min(1, e * (1 - i) + i)), 255 * (1 - Math.min(1, n * (1 - i) + i)), 255 * (1 - Math.min(1, r * (1 - i) + i))]
- }
- function v(t) {
- var e, n, r, i = t[0] / 100,
- o = t[1] / 100,
- a = t[2] / 100;
- return n = -.9689 * i + 1.8758 * o + .0415 * a, r = .0557 * i + -.204 * o + 1.057 * a, e = (e = 3.2406 * i + -1.5372 * o + -.4986 * a) > .0031308 ? 1.055 * Math.pow(e, 1 / 2.4) - .055 : e *= 12.92, n = n > .0031308 ? 1.055 * Math.pow(n, 1 / 2.4) - .055 : n *= 12.92, r = r > .0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - .055 : r *= 12.92, [255 * (e = Math.min(Math.max(0, e), 1)), 255 * (n = Math.min(Math.max(0, n), 1)), 255 * (r = Math.min(Math.max(0, r), 1))]
- }
- function m(t) {
- var e = t[0],
- n = t[1],
- r = t[2];
- return n /= 100, r /= 108.883, e = (e /= 95.047) > .008856 ? Math.pow(e, 1 / 3) : 7.787 * e + 16 / 116, [116 * (n = n > .008856 ? Math.pow(n, 1 / 3) : 7.787 * n + 16 / 116) - 16, 500 * (e - n), 200 * (n - (r = r > .008856 ? Math.pow(r, 1 / 3) : 7.787 * r + 16 / 116))]
- }
- function y(t) {
- var e, n, r, i, o = t[0],
- a = t[1],
- s = t[2];
- return o <= 8 ? i = (n = 100 * o / 903.3) / 100 * 7.787 + 16 / 116 : (n = 100 * Math.pow((o + 16) / 116, 3), i = Math.pow(n / 100, 1 / 3)), [e = e / 95.047 <= .008856 ? e = 95.047 * (a / 500 + i - 16 / 116) / 7.787 : 95.047 * Math.pow(a / 500 + i, 3), n, r = r / 108.883 <= .008859 ? r = 108.883 * (i - s / 200 - 16 / 116) / 7.787 : 108.883 * Math.pow(i - s / 200, 3)]
- }
- function x(t) {
- var e, n = t[0],
- r = t[1],
- i = t[2];
- return (e = 360 * Math.atan2(i, r) / 2 / Math.PI) < 0 && (e += 360), [n, Math.sqrt(r * r + i * i), e]
- }
- function w(t) {
- return v(y(t))
- }
- function S(t) {
- var e, n = t[0],
- r = t[1];
- return e = t[2] / 360 * 2 * Math.PI, [n, r * Math.cos(e), r * Math.sin(e)]
- }
- function k(t) {
- return C[t]
- }
- e.exports = {
- rgb2hsl: i,
- rgb2hsv: o,
- rgb2hwb: a,
- rgb2cmyk: s,
- rgb2keyword: l,
- rgb2xyz: u,
- rgb2lab: c,
- rgb2lch: function(t) {
- return x(c(t))
- },
- hsl2rgb: d,
- hsl2hsv: function(t) {
- var e = t[0],
- n = t[1] / 100,
- r = t[2] / 100;
- if (0 === r) return [0, 0, 0];
- return [e, 100 * (2 * (n *= (r *= 2) <= 1 ? r : 2 - r) / (r + n)), 100 * ((r + n) / 2)]
- },
- hsl2hwb: function(t) {
- return a(d(t))
- },
- hsl2cmyk: function(t) {
- return s(d(t))
- },
- hsl2keyword: function(t) {
- return l(d(t))
- },
- hsv2rgb: f,
- hsv2hsl: function(t) {
- var e, n, r = t[0],
- i = t[1] / 100,
- o = t[2] / 100;
- return e = i * o, [r, 100 * (e = (e /= (n = (2 - i) * o) <= 1 ? n : 2 - n) || 0), 100 * (n /= 2)]
- },
- hsv2hwb: function(t) {
- return a(f(t))
- },
- hsv2cmyk: function(t) {
- return s(f(t))
- },
- hsv2keyword: function(t) {
- return l(f(t))
- },
- hwb2rgb: h,
- hwb2hsl: function(t) {
- return i(h(t))
- },
- hwb2hsv: function(t) {
- return o(h(t))
- },
- hwb2cmyk: function(t) {
- return s(h(t))
- },
- hwb2keyword: function(t) {
- return l(h(t))
- },
- cmyk2rgb: p,
- cmyk2hsl: function(t) {
- return i(p(t))
- },
- cmyk2hsv: function(t) {
- return o(p(t))
- },
- cmyk2hwb: function(t) {
- return a(p(t))
- },
- cmyk2keyword: function(t) {
- return l(p(t))
- },
- keyword2rgb: k,
- keyword2hsl: function(t) {
- return i(k(t))
- },
- keyword2hsv: function(t) {
- return o(k(t))
- },
- keyword2hwb: function(t) {
- return a(k(t))
- },
- keyword2cmyk: function(t) {
- return s(k(t))
- },
- keyword2lab: function(t) {
- return c(k(t))
- },
- keyword2xyz: function(t) {
- return u(k(t))
- },
- xyz2rgb: v,
- xyz2lab: m,
- xyz2lch: function(t) {
- return x(m(t))
- },
- lab2xyz: y,
- lab2rgb: w,
- lab2lch: x,
- lch2lab: S,
- lch2xyz: function(t) {
- return y(S(t))
- },
- lch2rgb: function(t) {
- return w(S(t))
- }
- };
- var C = {
- aliceblue: [240, 248, 255],
- antiquewhite: [250, 235, 215],
- aqua: [0, 255, 255],
- aquamarine: [127, 255, 212],
- azure: [240, 255, 255],
- beige: [245, 245, 220],
- bisque: [255, 228, 196],
- black: [0, 0, 0],
- blanchedalmond: [255, 235, 205],
- blue: [0, 0, 255],
- blueviolet: [138, 43, 226],
- brown: [165, 42, 42],
- burlywood: [222, 184, 135],
- cadetblue: [95, 158, 160],
- chartreuse: [127, 255, 0],
- chocolate: [210, 105, 30],
- coral: [255, 127, 80],
- cornflowerblue: [100, 149, 237],
- cornsilk: [255, 248, 220],
- crimson: [220, 20, 60],
- cyan: [0, 255, 255],
- darkblue: [0, 0, 139],
- darkcyan: [0, 139, 139],
- darkgoldenrod: [184, 134, 11],
- darkgray: [169, 169, 169],
- darkgreen: [0, 100, 0],
- darkgrey: [169, 169, 169],
- darkkhaki: [189, 183, 107],
- darkmagenta: [139, 0, 139],
- darkolivegreen: [85, 107, 47],
- darkorange: [255, 140, 0],
- darkorchid: [153, 50, 204],
- darkred: [139, 0, 0],
- darksalmon: [233, 150, 122],
- darkseagreen: [143, 188, 143],
- darkslateblue: [72, 61, 139],
- darkslategray: [47, 79, 79],
- darkslategrey: [47, 79, 79],
- darkturquoise: [0, 206, 209],
- darkviolet: [148, 0, 211],
- deeppink: [255, 20, 147],
- deepskyblue: [0, 191, 255],
- dimgray: [105, 105, 105],
- dimgrey: [105, 105, 105],
- dodgerblue: [30, 144, 255],
- firebrick: [178, 34, 34],
- floralwhite: [255, 250, 240],
- forestgreen: [34, 139, 34],
- fuchsia: [255, 0, 255],
- gainsboro: [220, 220, 220],
- ghostwhite: [248, 248, 255],
- gold: [255, 215, 0],
- goldenrod: [218, 165, 32],
- gray: [128, 128, 128],
- green: [0, 128, 0],
- greenyellow: [173, 255, 47],
- grey: [128, 128, 128],
- honeydew: [240, 255, 240],
- hotpink: [255, 105, 180],
- indianred: [205, 92, 92],
- indigo: [75, 0, 130],
- ivory: [255, 255, 240],
- khaki: [240, 230, 140],
- lavender: [230, 230, 250],
- lavenderblush: [255, 240, 245],
- lawngreen: [124, 252, 0],
- lemonchiffon: [255, 250, 205],
- lightblue: [173, 216, 230],
- lightcoral: [240, 128, 128],
- lightcyan: [224, 255, 255],
- lightgoldenrodyellow: [250, 250, 210],
- lightgray: [211, 211, 211],
- lightgreen: [144, 238, 144],
- lightgrey: [211, 211, 211],
- lightpink: [255, 182, 193],
- lightsalmon: [255, 160, 122],
- lightseagreen: [32, 178, 170],
- lightskyblue: [135, 206, 250],
- lightslategray: [119, 136, 153],
- lightslategrey: [119, 136, 153],
- lightsteelblue: [176, 196, 222],
- lightyellow: [255, 255, 224],
- lime: [0, 255, 0],
- limegreen: [50, 205, 50],
- linen: [250, 240, 230],
- magenta: [255, 0, 255],
- maroon: [128, 0, 0],
- mediumaquamarine: [102, 205, 170],
- mediumblue: [0, 0, 205],
- mediumorchid: [186, 85, 211],
- mediumpurple: [147, 112, 219],
- mediumseagreen: [60, 179, 113],
- mediumslateblue: [123, 104, 238],
- mediumspringgreen: [0, 250, 154],
- mediumturquoise: [72, 209, 204],
- mediumvioletred: [199, 21, 133],
- midnightblue: [25, 25, 112],
- mintcream: [245, 255, 250],
- mistyrose: [255, 228, 225],
- moccasin: [255, 228, 181],
- navajowhite: [255, 222, 173],
- navy: [0, 0, 128],
- oldlace: [253, 245, 230],
- olive: [128, 128, 0],
- olivedrab: [107, 142, 35],
- orange: [255, 165, 0],
- orangered: [255, 69, 0],
- orchid: [218, 112, 214],
- palegoldenrod: [238, 232, 170],
- palegreen: [152, 251, 152],
- paleturquoise: [175, 238, 238],
- palevioletred: [219, 112, 147],
- papayawhip: [255, 239, 213],
- peachpuff: [255, 218, 185],
- peru: [205, 133, 63],
- pink: [255, 192, 203],
- plum: [221, 160, 221],
- powderblue: [176, 224, 230],
- purple: [128, 0, 128],
- rebeccapurple: [102, 51, 153],
- red: [255, 0, 0],
- rosybrown: [188, 143, 143],
- royalblue: [65, 105, 225],
- saddlebrown: [139, 69, 19],
- salmon: [250, 128, 114],
- sandybrown: [244, 164, 96],
- seagreen: [46, 139, 87],
- seashell: [255, 245, 238],
- sienna: [160, 82, 45],
- silver: [192, 192, 192],
- skyblue: [135, 206, 235],
- slateblue: [106, 90, 205],
- slategray: [112, 128, 144],
- slategrey: [112, 128, 144],
- snow: [255, 250, 250],
- springgreen: [0, 255, 127],
- steelblue: [70, 130, 180],
- tan: [210, 180, 140],
- teal: [0, 128, 128],
- thistle: [216, 191, 216],
- tomato: [255, 99, 71],
- turquoise: [64, 224, 208],
- violet: [238, 130, 238],
- wheat: [245, 222, 179],
- white: [255, 255, 255],
- whitesmoke: [245, 245, 245],
- yellow: [255, 255, 0],
- yellowgreen: [154, 205, 50]
- },
- M = {};
- for (var A in C) M[JSON.stringify(C[A])] = A
- }, {}],
- 5: [function(t, e, n) {
- var r = t(4),
- i = function() {
- return new u
- };
- for (var o in r) {
- i[o + "Raw"] = function(t) {
- return function(e) {
- return "number" == typeof e && (e = Array.prototype.slice.call(arguments)), r[t](e)
- }
- }(o);
- var a = /(\w+)2(\w+)/.exec(o),
- s = a[1],
- l = a[2];
- (i[s] = i[s] || {})[l] = i[o] = function(t) {
- return function(e) {
- "number" == typeof e && (e = Array.prototype.slice.call(arguments));
- var n = r[t](e);
- if ("string" == typeof n || void 0 === n) return n;
- for (var i = 0; i < n.length; i++) n[i] = Math.round(n[i]);
- return n
- }
- }(o)
- }
- var u = function() {
- this.convs = {}
- };
- u.prototype.routeSpace = function(t, e) {
- var n = e[0];
- return void 0 === n ? this.getValues(t) : ("number" == typeof n && (n = Array.prototype.slice.call(e)), this.setValues(t, n))
- }, u.prototype.setValues = function(t, e) {
- return this.space = t, this.convs = {}, this.convs[t] = e, this
- }, u.prototype.getValues = function(t) {
- var e = this.convs[t];
- if (!e) {
- var n = this.space,
- r = this.convs[n];
- e = i[n][t](r), this.convs[t] = e
- }
- return e
- }, ["rgb", "hsl", "hsv", "cmyk", "keyword"].forEach((function(t) {
- u.prototype[t] = function(e) {
- return this.routeSpace(t, arguments)
- }
- })), e.exports = i
- }, {
- 4: 4
- }],
- 6: [function(t, e, n) {
- e.exports = {
- aliceblue: [240, 248, 255],
- antiquewhite: [250, 235, 215],
- aqua: [0, 255, 255],
- aquamarine: [127, 255, 212],
- azure: [240, 255, 255],
- beige: [245, 245, 220],
- bisque: [255, 228, 196],
- black: [0, 0, 0],
- blanchedalmond: [255, 235, 205],
- blue: [0, 0, 255],
- blueviolet: [138, 43, 226],
- brown: [165, 42, 42],
- burlywood: [222, 184, 135],
- cadetblue: [95, 158, 160],
- chartreuse: [127, 255, 0],
- chocolate: [210, 105, 30],
- coral: [255, 127, 80],
- cornflowerblue: [100, 149, 237],
- cornsilk: [255, 248, 220],
- crimson: [220, 20, 60],
- cyan: [0, 255, 255],
- darkblue: [0, 0, 139],
- darkcyan: [0, 139, 139],
- darkgoldenrod: [184, 134, 11],
- darkgray: [169, 169, 169],
- darkgreen: [0, 100, 0],
- darkgrey: [169, 169, 169],
- darkkhaki: [189, 183, 107],
- darkmagenta: [139, 0, 139],
- darkolivegreen: [85, 107, 47],
- darkorange: [255, 140, 0],
- darkorchid: [153, 50, 204],
- darkred: [139, 0, 0],
- darksalmon: [233, 150, 122],
- darkseagreen: [143, 188, 143],
- darkslateblue: [72, 61, 139],
- darkslategray: [47, 79, 79],
- darkslategrey: [47, 79, 79],
- darkturquoise: [0, 206, 209],
- darkviolet: [148, 0, 211],
- deeppink: [255, 20, 147],
- deepskyblue: [0, 191, 255],
- dimgray: [105, 105, 105],
- dimgrey: [105, 105, 105],
- dodgerblue: [30, 144, 255],
- firebrick: [178, 34, 34],
- floralwhite: [255, 250, 240],
- forestgreen: [34, 139, 34],
- fuchsia: [255, 0, 255],
- gainsboro: [220, 220, 220],
- ghostwhite: [248, 248, 255],
- gold: [255, 215, 0],
- goldenrod: [218, 165, 32],
- gray: [128, 128, 128],
- green: [0, 128, 0],
- greenyellow: [173, 255, 47],
- grey: [128, 128, 128],
- honeydew: [240, 255, 240],
- hotpink: [255, 105, 180],
- indianred: [205, 92, 92],
- indigo: [75, 0, 130],
- ivory: [255, 255, 240],
- khaki: [240, 230, 140],
- lavender: [230, 230, 250],
- lavenderblush: [255, 240, 245],
- lawngreen: [124, 252, 0],
- lemonchiffon: [255, 250, 205],
- lightblue: [173, 216, 230],
- lightcoral: [240, 128, 128],
- lightcyan: [224, 255, 255],
- lightgoldenrodyellow: [250, 250, 210],
- lightgray: [211, 211, 211],
- lightgreen: [144, 238, 144],
- lightgrey: [211, 211, 211],
- lightpink: [255, 182, 193],
- lightsalmon: [255, 160, 122],
- lightseagreen: [32, 178, 170],
- lightskyblue: [135, 206, 250],
- lightslategray: [119, 136, 153],
- lightslategrey: [119, 136, 153],
- lightsteelblue: [176, 196, 222],
- lightyellow: [255, 255, 224],
- lime: [0, 255, 0],
- limegreen: [50, 205, 50],
- linen: [250, 240, 230],
- magenta: [255, 0, 255],
- maroon: [128, 0, 0],
- mediumaquamarine: [102, 205, 170],
- mediumblue: [0, 0, 205],
- mediumorchid: [186, 85, 211],
- mediumpurple: [147, 112, 219],
- mediumseagreen: [60, 179, 113],
- mediumslateblue: [123, 104, 238],
- mediumspringgreen: [0, 250, 154],
- mediumturquoise: [72, 209, 204],
- mediumvioletred: [199, 21, 133],
- midnightblue: [25, 25, 112],
- mintcream: [245, 255, 250],
- mistyrose: [255, 228, 225],
- moccasin: [255, 228, 181],
- navajowhite: [255, 222, 173],
- navy: [0, 0, 128],
- oldlace: [253, 245, 230],
- olive: [128, 128, 0],
- olivedrab: [107, 142, 35],
- orange: [255, 165, 0],
- orangered: [255, 69, 0],
- orchid: [218, 112, 214],
- palegoldenrod: [238, 232, 170],
- palegreen: [152, 251, 152],
- paleturquoise: [175, 238, 238],
- palevioletred: [219, 112, 147],
- papayawhip: [255, 239, 213],
- peachpuff: [255, 218, 185],
- peru: [205, 133, 63],
- pink: [255, 192, 203],
- plum: [221, 160, 221],
- powderblue: [176, 224, 230],
- purple: [128, 0, 128],
- rebeccapurple: [102, 51, 153],
- red: [255, 0, 0],
- rosybrown: [188, 143, 143],
- royalblue: [65, 105, 225],
- saddlebrown: [139, 69, 19],
- salmon: [250, 128, 114],
- sandybrown: [244, 164, 96],
- seagreen: [46, 139, 87],
- seashell: [255, 245, 238],
- sienna: [160, 82, 45],
- silver: [192, 192, 192],
- skyblue: [135, 206, 235],
- slateblue: [106, 90, 205],
- slategray: [112, 128, 144],
- slategrey: [112, 128, 144],
- snow: [255, 250, 250],
- springgreen: [0, 255, 127],
- steelblue: [70, 130, 180],
- tan: [210, 180, 140],
- teal: [0, 128, 128],
- thistle: [216, 191, 216],
- tomato: [255, 99, 71],
- turquoise: [64, 224, 208],
- violet: [238, 130, 238],
- wheat: [245, 222, 179],
- white: [255, 255, 255],
- whitesmoke: [245, 245, 245],
- yellow: [255, 255, 0],
- yellowgreen: [154, 205, 50]
- }
- }, {}],
- 7: [function(t, e, n) {
- var r = t(30)();
- r.helpers = t(46), t(28)(r), r.Animation = t(22), r.animationService = t(23), r.defaults = t(26), r.Element = t(27), r.elements = t(41), r.Interaction = t(29), r.layouts = t(31), r.platform = t(49), r.plugins = t(32), r.Scale = t(33), r.scaleService = t(34), r.Ticks = t(35), r.Tooltip = t(36), t(24)(r), t(25)(r), t(56)(r), t(54)(r), t(55)(r), t(57)(r), t(58)(r), t(59)(r), t(15)(r), t(16)(r), t(17)(r), t(18)(r), t(19)(r), t(20)(r), t(21)(r), t(8)(r), t(9)(r), t(10)(r), t(11)(r), t(12)(r), t(13)(r), t(14)(r);
- var i = t(50);
- for (var o in i) i.hasOwnProperty(o) && r.plugins.register(i[o]);
- r.platform.initialize(), e.exports = r, "undefined" != typeof window && (window.Chart = r), r.Legend = i.legend._element, r.Title = i.title._element, r.pluginService = r.plugins, r.PluginBase = r.Element.extend({}), r.canvasHelpers = r.helpers.canvas, r.layoutService = r.layouts
- }, {
- 10: 10,
- 11: 11,
- 12: 12,
- 13: 13,
- 14: 14,
- 15: 15,
- 16: 16,
- 17: 17,
- 18: 18,
- 19: 19,
- 20: 20,
- 21: 21,
- 22: 22,
- 23: 23,
- 24: 24,
- 25: 25,
- 26: 26,
- 27: 27,
- 28: 28,
- 29: 29,
- 30: 30,
- 31: 31,
- 32: 32,
- 33: 33,
- 34: 34,
- 35: 35,
- 36: 36,
- 41: 41,
- 46: 46,
- 49: 49,
- 50: 50,
- 54: 54,
- 55: 55,
- 56: 56,
- 57: 57,
- 58: 58,
- 59: 59,
- 8: 8,
- 9: 9
- }],
- 8: [function(t, e, n) {
- e.exports = function(t) {
- t.Bar = function(e, n) {
- return n.type = "bar", new t(e, n)
- }
- }
- }, {}],
- 9: [function(t, e, n) {
- e.exports = function(t) {
- t.Bubble = function(e, n) {
- return n.type = "bubble", new t(e, n)
- }
- }
- }, {}],
- 10: [function(t, e, n) {
- e.exports = function(t) {
- t.Doughnut = function(e, n) {
- return n.type = "doughnut", new t(e, n)
- }
- }
- }, {}],
- 11: [function(t, e, n) {
- e.exports = function(t) {
- t.Line = function(e, n) {
- return n.type = "line", new t(e, n)
- }
- }
- }, {}],
- 12: [function(t, e, n) {
- e.exports = function(t) {
- t.PolarArea = function(e, n) {
- return n.type = "polarArea", new t(e, n)
- }
- }
- }, {}],
- 13: [function(t, e, n) {
- e.exports = function(t) {
- t.Radar = function(e, n) {
- return n.type = "radar", new t(e, n)
- }
- }
- }, {}],
- 14: [function(t, e, n) {
- e.exports = function(t) {
- t.Scatter = function(e, n) {
- return n.type = "scatter", new t(e, n)
- }
- }
- }, {}],
- 15: [function(t, e, n) {
- var r = t(26),
- i = t(41),
- o = t(46);
- r._set("bar", {
- hover: {
- mode: "label"
- },
- scales: {
- xAxes: [{
- type: "category",
- categoryPercentage: .8,
- barPercentage: .9,
- offset: !0,
- gridLines: {
- offsetGridLines: !0
- }
- }],
- yAxes: [{
- type: "linear"
- }]
- }
- }), r._set("horizontalBar", {
- hover: {
- mode: "index",
- axis: "y"
- },
- scales: {
- xAxes: [{
- type: "linear",
- position: "bottom"
- }],
- yAxes: [{
- position: "left",
- type: "category",
- categoryPercentage: .8,
- barPercentage: .9,
- offset: !0,
- gridLines: {
- offsetGridLines: !0
- }
- }]
- },
- elements: {
- rectangle: {
- borderSkipped: "left"
- }
- },
- tooltips: {
- callbacks: {
- title: function(t, e) {
- var n = "";
- return t.length > 0 && (t[0].yLabel ? n = t[0].yLabel : e.labels.length > 0 && t[0].index < e.labels.length && (n = e.labels[t[0].index])), n
- },
- label: function(t, e) {
- return (e.datasets[t.datasetIndex].label || "") + ": " + t.xLabel
- }
- },
- mode: "index",
- axis: "y"
- }
- }), e.exports = function(t) {
- t.controllers.bar = t.DatasetController.extend({
- dataElementType: i.Rectangle,
- initialize: function() {
- var e, n = this;
- t.DatasetController.prototype.initialize.apply(n, arguments), (e = n.getMeta()).stack = n.getDataset().stack, e.bar = !0
- },
- update: function(t) {
- var e, n, r = this.getMeta().data;
- for (this._ruler = this.getRuler(), e = 0, n = r.length; e < n; ++e) this.updateElement(r[e], e, t)
- },
- updateElement: function(t, e, n) {
- var r = this,
- i = r.chart,
- a = r.getMeta(),
- s = r.getDataset(),
- l = t.custom || {},
- u = i.options.elements.rectangle;
- t._xScale = r.getScaleForId(a.xAxisID), t._yScale = r.getScaleForId(a.yAxisID), t._datasetIndex = r.index, t._index = e, t._model = {
- datasetLabel: s.label,
- label: i.data.labels[e],
- borderSkipped: l.borderSkipped ? l.borderSkipped : u.borderSkipped,
- backgroundColor: l.backgroundColor ? l.backgroundColor : o.valueAtIndexOrDefault(s.backgroundColor, e, u.backgroundColor),
- borderColor: l.borderColor ? l.borderColor : o.valueAtIndexOrDefault(s.borderColor, e, u.borderColor),
- borderWidth: l.borderWidth ? l.borderWidth : o.valueAtIndexOrDefault(s.borderWidth, e, u.borderWidth)
- }, r.updateElementGeometry(t, e, n), t.pivot()
- },
- updateElementGeometry: function(t, e, n) {
- var r = this,
- i = t._model,
- o = r.getValueScale(),
- a = o.getBasePixel(),
- s = o.isHorizontal(),
- l = r._ruler || r.getRuler(),
- u = r.calculateBarValuePixels(r.index, e),
- c = r.calculateBarIndexPixels(r.index, e, l);
- i.horizontal = s, i.base = n ? a : u.base, i.x = s ? n ? a : u.head : c.center, i.y = s ? c.center : n ? a : u.head, i.height = s ? c.size : void 0, i.width = s ? void 0 : c.size
- },
- getValueScaleId: function() {
- return this.getMeta().yAxisID
- },
- getIndexScaleId: function() {
- return this.getMeta().xAxisID
- },
- getValueScale: function() {
- return this.getScaleForId(this.getValueScaleId())
- },
- getIndexScale: function() {
- return this.getScaleForId(this.getIndexScaleId())
- },
- _getStacks: function(t) {
- var e, n, r = this.chart,
- i = this.getIndexScale().options.stacked,
- o = void 0 === t ? r.data.datasets.length : t + 1,
- a = [];
- for (e = 0; e < o; ++e)(n = r.getDatasetMeta(e)).bar && r.isDatasetVisible(e) && (!1 === i || !0 === i && -1 === a.indexOf(n.stack) || void 0 === i && (void 0 === n.stack || -1 === a.indexOf(n.stack))) && a.push(n.stack);
- return a
- },
- getStackCount: function() {
- return this._getStacks().length
- },
- getStackIndex: function(t, e) {
- var n = this._getStacks(t),
- r = void 0 !== e ? n.indexOf(e) : -1;
- return -1 === r ? n.length - 1 : r
- },
- getRuler: function() {
- var t, e, n = this.getIndexScale(),
- r = this.getStackCount(),
- i = this.index,
- a = n.isHorizontal(),
- s = a ? n.left : n.top,
- l = s + (a ? n.width : n.height),
- u = [];
- for (t = 0, e = this.getMeta().data.length; t < e; ++t) u.push(n.getPixelForValue(null, t, i));
- return {
- min: o.isNullOrUndef(n.options.barThickness) ? function(t, e) {
- var n, r, i, o, a = t.isHorizontal() ? t.width : t.height,
- s = t.getTicks();
- for (i = 1, o = e.length; i < o; ++i) a = Math.min(a, e[i] - e[i - 1]);
- for (i = 0, o = s.length; i < o; ++i) r = t.getPixelForTick(i), a = i > 0 ? Math.min(a, r - n) : a, n = r;
- return a
- }(n, u) : -1,
- pixels: u,
- start: s,
- end: l,
- stackCount: r,
- scale: n
- }
- },
- calculateBarValuePixels: function(t, e) {
- var n, r, i, o, a, s, l = this.chart,
- u = this.getMeta(),
- c = this.getValueScale(),
- d = l.data.datasets,
- f = c.getRightValue(d[t].data[e]),
- h = c.options.stacked,
- p = u.stack,
- g = 0;
- if (h || void 0 === h && void 0 !== p)
- for (n = 0; n < t; ++n)(r = l.getDatasetMeta(n)).bar && r.stack === p && r.controller.getValueScaleId() === c.id && l.isDatasetVisible(n) && (i = c.getRightValue(d[n].data[e]), (f < 0 && i < 0 || f >= 0 && i > 0) && (g += i));
- return o = c.getPixelForValue(g), {
- size: s = ((a = c.getPixelForValue(g + f)) - o) / 2,
- base: o,
- head: a,
- center: a + s / 2
- }
- },
- calculateBarIndexPixels: function(t, e, n) {
- var r = n.scale.options,
- i = "flex" === r.barThickness ? function(t, e, n) {
- var r, i = e.pixels,
- o = i[t],
- a = t > 0 ? i[t - 1] : null,
- s = t < i.length - 1 ? i[t + 1] : null,
- l = n.categoryPercentage;
- return null === a && (a = o - (null === s ? e.end - o : s - o)), null === s && (s = o + o - a), r = o - (o - a) / 2 * l, {
- chunk: (s - a) / 2 * l / e.stackCount,
- ratio: n.barPercentage,
- start: r
- }
- }(e, n, r) : function(t, e, n) {
- var r, i, a = n.barThickness,
- s = e.stackCount,
- l = e.pixels[t];
- return o.isNullOrUndef(a) ? (r = e.min * n.categoryPercentage, i = n.barPercentage) : (r = a * s, i = 1), {
- chunk: r / s,
- ratio: i,
- start: l - r / 2
- }
- }(e, n, r),
- a = this.getStackIndex(t, this.getMeta().stack),
- s = i.start + i.chunk * a + i.chunk / 2,
- l = Math.min(o.valueOrDefault(r.maxBarThickness, 1 / 0), i.chunk * i.ratio);
- return {
- base: s - l / 2,
- head: s + l / 2,
- center: s,
- size: l
- }
- },
- draw: function() {
- var t = this.chart,
- e = this.getValueScale(),
- n = this.getMeta().data,
- r = this.getDataset(),
- i = n.length,
- a = 0;
- for (o.canvas.clipArea(t.ctx, t.chartArea); a < i; ++a) isNaN(e.getRightValue(r.data[a])) || n[a].draw();
- o.canvas.unclipArea(t.ctx)
- }
- }), t.controllers.horizontalBar = t.controllers.bar.extend({
- getValueScaleId: function() {
- return this.getMeta().xAxisID
- },
- getIndexScaleId: function() {
- return this.getMeta().yAxisID
- }
- })
- }
- }, {
- 26: 26,
- 41: 41,
- 46: 46
- }],
- 16: [function(t, e, n) {
- var r = t(26),
- i = t(41),
- a = t(46);
- r._set("bubble", {
- hover: {
- mode: "single"
- },
- scales: {
- xAxes: [{
- type: "linear",
- position: "bottom",
- id: "x-axis-0"
- }],
- yAxes: [{
- type: "linear",
- position: "left",
- id: "y-axis-0"
- }]
- },
- tooltips: {
- callbacks: {
- title: function() {
- return ""
- },
- label: function(t, e) {
- var n = e.datasets[t.datasetIndex].label || "",
- r = e.datasets[t.datasetIndex].data[t.index];
- return n + ": (" + t.xLabel + ", " + t.yLabel + ", " + r.r + ")"
- }
- }
- }
- }), e.exports = function(t) {
- t.controllers.bubble = t.DatasetController.extend({
- dataElementType: i.Point,
- update: function(t) {
- var e = this,
- n = e.getMeta().data;
- a.each(n, (function(n, r) {
- e.updateElement(n, r, t)
- }))
- },
- updateElement: function(t, e, n) {
- var r = this,
- i = r.getMeta(),
- a = t.custom || {},
- s = r.getScaleForId(i.xAxisID),
- l = r.getScaleForId(i.yAxisID),
- u = r._resolveElementOptions(t, e),
- c = r.getDataset().data[e],
- d = r.index,
- f = n ? s.getPixelForDecimal(.5) : s.getPixelForValue("object" === o(c) ? c : NaN, e, d),
- h = n ? l.getBasePixel() : l.getPixelForValue(c, e, d);
- t._xScale = s, t._yScale = l, t._options = u, t._datasetIndex = d, t._index = e, t._model = {
- backgroundColor: u.backgroundColor,
- borderColor: u.borderColor,
- borderWidth: u.borderWidth,
- hitRadius: u.hitRadius,
- pointStyle: u.pointStyle,
- rotation: u.rotation,
- radius: n ? 0 : u.radius,
- skip: a.skip || isNaN(f) || isNaN(h),
- x: f,
- y: h
- }, t.pivot()
- },
- setHoverStyle: function(t) {
- var e = t._model,
- n = t._options;
- t.$previousStyle = {
- backgroundColor: e.backgroundColor,
- borderColor: e.borderColor,
- borderWidth: e.borderWidth,
- radius: e.radius
- }, e.backgroundColor = a.valueOrDefault(n.hoverBackgroundColor, a.getHoverColor(n.backgroundColor)), e.borderColor = a.valueOrDefault(n.hoverBorderColor, a.getHoverColor(n.borderColor)), e.borderWidth = a.valueOrDefault(n.hoverBorderWidth, n.borderWidth), e.radius = n.radius + n.hoverRadius
- },
- _resolveElementOptions: function(t, e) {
- var n, r, i, o = this.chart,
- s = o.data.datasets[this.index],
- l = t.custom || {},
- u = o.options.elements.point,
- c = a.options.resolve,
- d = s.data[e],
- f = {},
- h = {
- chart: o,
- dataIndex: e,
- dataset: s,
- datasetIndex: this.index
- },
- p = ["backgroundColor", "borderColor", "borderWidth", "hoverBackgroundColor", "hoverBorderColor", "hoverBorderWidth", "hoverRadius", "hitRadius", "pointStyle", "rotation"];
- for (n = 0, r = p.length; n < r; ++n) f[i = p[n]] = c([l[i], s[i], u[i]], h, e);
- return f.radius = c([l.radius, d ? d.r : void 0, s.radius, u.radius], h, e), f
- }
- })
- }
- }, {
- 26: 26,
- 41: 41,
- 46: 46
- }],
- 17: [function(t, e, n) {
- var r = t(26),
- i = t(41),
- o = t(46);
- r._set("doughnut", {
- animation: {
- animateRotate: !0,
- animateScale: !1
- },
- hover: {
- mode: "single"
- },
- legendCallback: function(t) {
- var e = [];
- e.push('<ul class="' + t.id + '-legend">');
- var n = t.data,
- r = n.datasets,
- i = n.labels;
- if (r.length)
- for (var o = 0; o < r[0].data.length; ++o) e.push('<li><span style="background-color:' + r[0].backgroundColor[o] + '"></span>'), i[o] && e.push(i[o]), e.push("</li>");
- return e.push("</ul>"), e.join("")
- },
- legend: {
- labels: {
- generateLabels: function(t) {
- var e = t.data;
- return e.labels.length && e.datasets.length ? e.labels.map((function(n, r) {
- var i = t.getDatasetMeta(0),
- a = e.datasets[0],
- s = i.data[r],
- l = s && s.custom || {},
- u = o.valueAtIndexOrDefault,
- c = t.options.elements.arc;
- return {
- text: n,
- fillStyle: l.backgroundColor ? l.backgroundColor : u(a.backgroundColor, r, c.backgroundColor),
- strokeStyle: l.borderColor ? l.borderColor : u(a.borderColor, r, c.borderColor),
- lineWidth: l.borderWidth ? l.borderWidth : u(a.borderWidth, r, c.borderWidth),
- hidden: isNaN(a.data[r]) || i.data[r].hidden,
- index: r
- }
- })) : []
- }
- },
- onClick: function(t, e) {
- var n, r, i, o = e.index,
- a = this.chart;
- for (n = 0, r = (a.data.datasets || []).length; n < r; ++n)(i = a.getDatasetMeta(n)).data[o] && (i.data[o].hidden = !i.data[o].hidden);
- a.update()
- }
- },
- cutoutPercentage: 50,
- rotation: -.5 * Math.PI,
- circumference: 2 * Math.PI,
- tooltips: {
- callbacks: {
- title: function() {
- return ""
- },
- label: function(t, e) {
- var n = e.labels[t.index],
- r = ": " + e.datasets[t.datasetIndex].data[t.index];
- return o.isArray(n) ? (n = n.slice())[0] += r : n += r, n
- }
- }
- }
- }), r._set("pie", o.clone(r.doughnut)), r._set("pie", {
- cutoutPercentage: 0
- }), e.exports = function(t) {
- t.controllers.doughnut = t.controllers.pie = t.DatasetController.extend({
- dataElementType: i.Arc,
- linkScales: o.noop,
- getRingIndex: function(t) {
- for (var e = 0, n = 0; n < t; ++n) this.chart.isDatasetVisible(n) && ++e;
- return e
- },
- update: function(t) {
- var e = this,
- n = e.chart,
- r = n.chartArea,
- i = n.options,
- a = i.elements.arc,
- s = r.right - r.left - a.borderWidth,
- l = r.bottom - r.top - a.borderWidth,
- u = Math.min(s, l),
- c = {
- x: 0,
- y: 0
- },
- d = e.getMeta(),
- f = i.cutoutPercentage,
- h = i.circumference;
- if (h < 2 * Math.PI) {
- var p = i.rotation % (2 * Math.PI),
- g = (p += 2 * Math.PI * (p >= Math.PI ? -1 : p < -Math.PI ? 1 : 0)) + h,
- v = {
- x: Math.cos(p),
- y: Math.sin(p)
- },
- m = {
- x: Math.cos(g),
- y: Math.sin(g)
- },
- y = p <= 0 && g >= 0 || p <= 2 * Math.PI && 2 * Math.PI <= g,
- b = p <= .5 * Math.PI && .5 * Math.PI <= g || p <= 2.5 * Math.PI && 2.5 * Math.PI <= g,
- x = p <= -Math.PI && -Math.PI <= g || p <= Math.PI && Math.PI <= g,
- w = p <= .5 * -Math.PI && .5 * -Math.PI <= g || p <= 1.5 * Math.PI && 1.5 * Math.PI <= g,
- S = f / 100,
- k = {
- x: x ? -1 : Math.min(v.x * (v.x < 0 ? 1 : S), m.x * (m.x < 0 ? 1 : S)),
- y: w ? -1 : Math.min(v.y * (v.y < 0 ? 1 : S), m.y * (m.y < 0 ? 1 : S))
- },
- C = {
- x: y ? 1 : Math.max(v.x * (v.x > 0 ? 1 : S), m.x * (m.x > 0 ? 1 : S)),
- y: b ? 1 : Math.max(v.y * (v.y > 0 ? 1 : S), m.y * (m.y > 0 ? 1 : S))
- },
- M = {
- width: .5 * (C.x - k.x),
- height: .5 * (C.y - k.y)
- };
- u = Math.min(s / M.width, l / M.height), c = {
- x: -.5 * (C.x + k.x),
- y: -.5 * (C.y + k.y)
- }
- }
- n.borderWidth = e.getMaxBorderWidth(d.data), n.outerRadius = Math.max((u - n.borderWidth) / 2, 0), n.innerRadius = Math.max(f ? n.outerRadius / 100 * f : 0, 0), n.radiusLength = (n.outerRadius - n.innerRadius) / n.getVisibleDatasetCount(), n.offsetX = c.x * n.outerRadius, n.offsetY = c.y * n.outerRadius, d.total = e.calculateTotal(), e.outerRadius = n.outerRadius - n.radiusLength * e.getRingIndex(e.index), e.innerRadius = Math.max(e.outerRadius - n.radiusLength, 0), o.each(d.data, (function(n, r) {
- e.updateElement(n, r, t)
- }))
- },
- updateElement: function(t, e, n) {
- var r = this,
- i = r.chart,
- a = i.chartArea,
- s = i.options,
- l = s.animation,
- u = (a.left + a.right) / 2,
- c = (a.top + a.bottom) / 2,
- d = s.rotation,
- f = s.rotation,
- h = r.getDataset(),
- p = n && l.animateRotate ? 0 : t.hidden ? 0 : r.calculateCircumference(h.data[e]) * (s.circumference / (2 * Math.PI)),
- g = n && l.animateScale ? 0 : r.innerRadius,
- v = n && l.animateScale ? 0 : r.outerRadius,
- m = o.valueAtIndexOrDefault;
- o.extend(t, {
- _datasetIndex: r.index,
- _index: e,
- _model: {
- x: u + i.offsetX,
- y: c + i.offsetY,
- startAngle: d,
- endAngle: f,
- circumference: p,
- outerRadius: v,
- innerRadius: g,
- label: m(h.label, e, i.data.labels[e])
- }
- });
- var y = t._model,
- b = t.custom || {},
- x = o.valueAtIndexOrDefault,
- w = this.chart.options.elements.arc;
- y.backgroundColor = b.backgroundColor ? b.backgroundColor : x(h.backgroundColor, e, w.backgroundColor), y.borderColor = b.borderColor ? b.borderColor : x(h.borderColor, e, w.borderColor), y.borderWidth = b.borderWidth ? b.borderWidth : x(h.borderWidth, e, w.borderWidth), n && l.animateRotate || (y.startAngle = 0 === e ? s.rotation : r.getMeta().data[e - 1]._model.endAngle, y.endAngle = y.startAngle + y.circumference), t.pivot()
- },
- calculateTotal: function() {
- var t, e = this.getDataset(),
- n = this.getMeta(),
- r = 0;
- return o.each(n.data, (function(n, i) {
- t = e.data[i], isNaN(t) || n.hidden || (r += Math.abs(t))
- })), r
- },
- calculateCircumference: function(t) {
- var e = this.getMeta().total;
- return e > 0 && !isNaN(t) ? 2 * Math.PI * (Math.abs(t) / e) : 0
- },
- getMaxBorderWidth: function(t) {
- for (var e, n, r = 0, i = this.index, o = t.length, a = 0; a < o; a++) e = t[a]._model ? t[a]._model.borderWidth : 0, r = (n = t[a]._chart ? t[a]._chart.config.data.datasets[i].hoverBorderWidth : 0) > (r = e > r ? e : r) ? n : r;
- return r
- }
- })
- }
- }, {
- 26: 26,
- 41: 41,
- 46: 46
- }],
- 18: [function(t, e, n) {
- var r = t(26),
- i = t(41),
- a = t(46);
- r._set("line", {
- showLines: !0,
- spanGaps: !1,
- hover: {
- mode: "label"
- },
- scales: {
- xAxes: [{
- type: "category",
- id: "x-axis-0"
- }],
- yAxes: [{
- type: "linear",
- id: "y-axis-0"
- }]
- }
- }), e.exports = function(t) {
- function e(t, e) {
- return a.valueOrDefault(t.showLine, e.showLines)
- }
- t.controllers.line = t.DatasetController.extend({
- datasetElementType: i.Line,
- dataElementType: i.Point,
- update: function(t) {
- var n, r, i, o = this,
- s = o.getMeta(),
- l = s.dataset,
- u = s.data || [],
- c = o.chart.options,
- d = c.elements.line,
- f = o.getScaleForId(s.yAxisID),
- h = o.getDataset(),
- p = e(h, c);
- for (p && (i = l.custom || {}, void 0 !== h.tension && void 0 === h.lineTension && (h.lineTension = h.tension), l._scale = f, l._datasetIndex = o.index, l._children = u, l._model = {
- spanGaps: h.spanGaps ? h.spanGaps : c.spanGaps,
- tension: i.tension ? i.tension : a.valueOrDefault(h.lineTension, d.tension),
- backgroundColor: i.backgroundColor ? i.backgroundColor : h.backgroundColor || d.backgroundColor,
- borderWidth: i.borderWidth ? i.borderWidth : h.borderWidth || d.borderWidth,
- borderColor: i.borderColor ? i.borderColor : h.borderColor || d.borderColor,
- borderCapStyle: i.borderCapStyle ? i.borderCapStyle : h.borderCapStyle || d.borderCapStyle,
- borderDash: i.borderDash ? i.borderDash : h.borderDash || d.borderDash,
- borderDashOffset: i.borderDashOffset ? i.borderDashOffset : h.borderDashOffset || d.borderDashOffset,
- borderJoinStyle: i.borderJoinStyle ? i.borderJoinStyle : h.borderJoinStyle || d.borderJoinStyle,
- fill: i.fill ? i.fill : void 0 !== h.fill ? h.fill : d.fill,
- steppedLine: i.steppedLine ? i.steppedLine : a.valueOrDefault(h.steppedLine, d.stepped),
- cubicInterpolationMode: i.cubicInterpolationMode ? i.cubicInterpolationMode : a.valueOrDefault(h.cubicInterpolationMode, d.cubicInterpolationMode)
- }, l.pivot()), n = 0, r = u.length; n < r; ++n) o.updateElement(u[n], n, t);
- for (p && 0 !== l._model.tension && o.updateBezierControlPoints(), n = 0, r = u.length; n < r; ++n) u[n].pivot()
- },
- getPointBackgroundColor: function(t, e) {
- var n = this.chart.options.elements.point.backgroundColor,
- r = this.getDataset(),
- i = t.custom || {};
- return i.backgroundColor ? n = i.backgroundColor : r.pointBackgroundColor ? n = a.valueAtIndexOrDefault(r.pointBackgroundColor, e, n) : r.backgroundColor && (n = r.backgroundColor), n
- },
- getPointBorderColor: function(t, e) {
- var n = this.chart.options.elements.point.borderColor,
- r = this.getDataset(),
- i = t.custom || {};
- return i.borderColor ? n = i.borderColor : r.pointBorderColor ? n = a.valueAtIndexOrDefault(r.pointBorderColor, e, n) : r.borderColor && (n = r.borderColor), n
- },
- getPointBorderWidth: function(t, e) {
- var n = this.chart.options.elements.point.borderWidth,
- r = this.getDataset(),
- i = t.custom || {};
- return isNaN(i.borderWidth) ? !isNaN(r.pointBorderWidth) || a.isArray(r.pointBorderWidth) ? n = a.valueAtIndexOrDefault(r.pointBorderWidth, e, n) : isNaN(r.borderWidth) || (n = r.borderWidth) : n = i.borderWidth, n
- },
- getPointRotation: function(t, e) {
- var n = this.chart.options.elements.point.rotation,
- r = this.getDataset(),
- i = t.custom || {};
- return isNaN(i.rotation) ? isNaN(r.pointRotation) && !a.isArray(r.pointRotation) || (n = a.valueAtIndexOrDefault(r.pointRotation, e, n)) : n = i.rotation, n
- },
- updateElement: function(t, e, n) {
- var r, i, s = this,
- l = s.getMeta(),
- u = t.custom || {},
- c = s.getDataset(),
- d = s.index,
- f = c.data[e],
- h = s.getScaleForId(l.yAxisID),
- p = s.getScaleForId(l.xAxisID),
- g = s.chart.options.elements.point;
- void 0 !== c.radius && void 0 === c.pointRadius && (c.pointRadius = c.radius), void 0 !== c.hitRadius && void 0 === c.pointHitRadius && (c.pointHitRadius = c.hitRadius), r = p.getPixelForValue("object" === o(f) ? f : NaN, e, d), i = n ? h.getBasePixel() : s.calculatePointY(f, e, d), t._xScale = p, t._yScale = h, t._datasetIndex = d, t._index = e, t._model = {
- x: r,
- y: i,
- skip: u.skip || isNaN(r) || isNaN(i),
- radius: u.radius || a.valueAtIndexOrDefault(c.pointRadius, e, g.radius),
- pointStyle: u.pointStyle || a.valueAtIndexOrDefault(c.pointStyle, e, g.pointStyle),
- rotation: s.getPointRotation(t, e),
- backgroundColor: s.getPointBackgroundColor(t, e),
- borderColor: s.getPointBorderColor(t, e),
- borderWidth: s.getPointBorderWidth(t, e),
- tension: l.dataset._model ? l.dataset._model.tension : 0,
- steppedLine: !!l.dataset._model && l.dataset._model.steppedLine,
- hitRadius: u.hitRadius || a.valueAtIndexOrDefault(c.pointHitRadius, e, g.hitRadius)
- }
- },
- calculatePointY: function(t, e, n) {
- var r, i, o, a = this.chart,
- s = this.getMeta(),
- l = this.getScaleForId(s.yAxisID),
- u = 0,
- c = 0;
- if (l.options.stacked) {
- for (r = 0; r < n; r++)
- if (i = a.data.datasets[r], "line" === (o = a.getDatasetMeta(r)).type && o.yAxisID === l.id && a.isDatasetVisible(r)) {
- var d = Number(l.getRightValue(i.data[e]));
- d < 0 ? c += d || 0 : u += d || 0
- } var f = Number(l.getRightValue(t));
- return f < 0 ? l.getPixelForValue(c + f) : l.getPixelForValue(u + f)
- }
- return l.getPixelForValue(t)
- },
- updateBezierControlPoints: function() {
- var t, e, n, r, i = this.getMeta(),
- o = this.chart.chartArea,
- s = i.data || [];
- function l(t, e, n) {
- return Math.max(Math.min(t, n), e)
- }
- if (i.dataset._model.spanGaps && (s = s.filter((function(t) {
- return !t._model.skip
- }))), "monotone" === i.dataset._model.cubicInterpolationMode) a.splineCurveMonotone(s);
- else
- for (t = 0, e = s.length; t < e; ++t) n = s[t]._model, r = a.splineCurve(a.previousItem(s, t)._model, n, a.nextItem(s, t)._model, i.dataset._model.tension), n.controlPointPreviousX = r.previous.x, n.controlPointPreviousY = r.previous.y, n.controlPointNextX = r.next.x, n.controlPointNextY = r.next.y;
- if (this.chart.options.elements.line.capBezierPoints)
- for (t = 0, e = s.length; t < e; ++t)(n = s[t]._model).controlPointPreviousX = l(n.controlPointPreviousX, o.left, o.right), n.controlPointPreviousY = l(n.controlPointPreviousY, o.top, o.bottom), n.controlPointNextX = l(n.controlPointNextX, o.left, o.right), n.controlPointNextY = l(n.controlPointNextY, o.top, o.bottom)
- },
- draw: function() {
- var t, n = this.chart,
- r = this.getMeta(),
- i = r.data || [],
- o = n.chartArea,
- s = i.length,
- l = 0;
- for (e(this.getDataset(), n.options) && (t = (r.dataset._model.borderWidth || 0) / 2, a.canvas.clipArea(n.ctx, {
- left: o.left,
- right: o.right,
- top: o.top - t,
- bottom: o.bottom + t
- }), r.dataset.draw(), a.canvas.unclipArea(n.ctx)); l < s; ++l) i[l].draw(o)
- },
- setHoverStyle: function(t) {
- var e = this.chart.data.datasets[t._datasetIndex],
- n = t._index,
- r = t.custom || {},
- i = t._model;
- t.$previousStyle = {
- backgroundColor: i.backgroundColor,
- borderColor: i.borderColor,
- borderWidth: i.borderWidth,
- radius: i.radius
- }, i.backgroundColor = r.hoverBackgroundColor || a.valueAtIndexOrDefault(e.pointHoverBackgroundColor, n, a.getHoverColor(i.backgroundColor)), i.borderColor = r.hoverBorderColor || a.valueAtIndexOrDefault(e.pointHoverBorderColor, n, a.getHoverColor(i.borderColor)), i.borderWidth = r.hoverBorderWidth || a.valueAtIndexOrDefault(e.pointHoverBorderWidth, n, i.borderWidth), i.radius = r.hoverRadius || a.valueAtIndexOrDefault(e.pointHoverRadius, n, this.chart.options.elements.point.hoverRadius)
- }
- })
- }
- }, {
- 26: 26,
- 41: 41,
- 46: 46
- }],
- 19: [function(t, e, n) {
- var r = t(26),
- i = t(41),
- o = t(46);
- r._set("polarArea", {
- scale: {
- type: "radialLinear",
- angleLines: {
- display: !1
- },
- gridLines: {
- circular: !0
- },
- pointLabels: {
- display: !1
- },
- ticks: {
- beginAtZero: !0
- }
- },
- animation: {
- animateRotate: !0,
- animateScale: !0
- },
- startAngle: -.5 * Math.PI,
- legendCallback: function(t) {
- var e = [];
- e.push('<ul class="' + t.id + '-legend">');
- var n = t.data,
- r = n.datasets,
- i = n.labels;
- if (r.length)
- for (var o = 0; o < r[0].data.length; ++o) e.push('<li><span style="background-color:' + r[0].backgroundColor[o] + '"></span>'), i[o] && e.push(i[o]), e.push("</li>");
- return e.push("</ul>"), e.join("")
- },
- legend: {
- labels: {
- generateLabels: function(t) {
- var e = t.data;
- return e.labels.length && e.datasets.length ? e.labels.map((function(n, r) {
- var i = t.getDatasetMeta(0),
- a = e.datasets[0],
- s = i.data[r].custom || {},
- l = o.valueAtIndexOrDefault,
- u = t.options.elements.arc;
- return {
- text: n,
- fillStyle: s.backgroundColor ? s.backgroundColor : l(a.backgroundColor, r, u.backgroundColor),
- strokeStyle: s.borderColor ? s.borderColor : l(a.borderColor, r, u.borderColor),
- lineWidth: s.borderWidth ? s.borderWidth : l(a.borderWidth, r, u.borderWidth),
- hidden: isNaN(a.data[r]) || i.data[r].hidden,
- index: r
- }
- })) : []
- }
- },
- onClick: function(t, e) {
- var n, r, i, o = e.index,
- a = this.chart;
- for (n = 0, r = (a.data.datasets || []).length; n < r; ++n)(i = a.getDatasetMeta(n)).data[o].hidden = !i.data[o].hidden;
- a.update()
- }
- },
- tooltips: {
- callbacks: {
- title: function() {
- return ""
- },
- label: function(t, e) {
- return e.labels[t.index] + ": " + t.yLabel
- }
- }
- }
- }), e.exports = function(t) {
- t.controllers.polarArea = t.DatasetController.extend({
- dataElementType: i.Arc,
- linkScales: o.noop,
- update: function(t) {
- var e, n, r, i = this,
- a = i.getDataset(),
- s = i.getMeta(),
- l = i.chart.options.startAngle || 0,
- u = i._starts = [],
- c = i._angles = [];
- for (i._updateRadius(), s.count = i.countVisibleElements(), e = 0, n = a.data.length; e < n; e++) u[e] = l, r = i._computeAngle(e), c[e] = r, l += r;
- o.each(s.data, (function(e, n) {
- i.updateElement(e, n, t)
- }))
- },
- _updateRadius: function() {
- var t = this,
- e = t.chart,
- n = e.chartArea,
- r = e.options,
- i = r.elements.arc,
- o = Math.min(n.right - n.left, n.bottom - n.top);
- e.outerRadius = Math.max((o - i.borderWidth / 2) / 2, 0), e.innerRadius = Math.max(r.cutoutPercentage ? e.outerRadius / 100 * r.cutoutPercentage : 1, 0), e.radiusLength = (e.outerRadius - e.innerRadius) / e.getVisibleDatasetCount(), t.outerRadius = e.outerRadius - e.radiusLength * t.index, t.innerRadius = t.outerRadius - e.radiusLength
- },
- updateElement: function(t, e, n) {
- var r = this,
- i = r.chart,
- a = r.getDataset(),
- s = i.options,
- l = s.animation,
- u = i.scale,
- c = i.data.labels,
- d = u.xCenter,
- f = u.yCenter,
- h = s.startAngle,
- p = t.hidden ? 0 : u.getDistanceFromCenterForValue(a.data[e]),
- g = r._starts[e],
- v = g + (t.hidden ? 0 : r._angles[e]),
- m = l.animateScale ? 0 : u.getDistanceFromCenterForValue(a.data[e]);
- o.extend(t, {
- _datasetIndex: r.index,
- _index: e,
- _scale: u,
- _model: {
- x: d,
- y: f,
- innerRadius: 0,
- outerRadius: n ? m : p,
- startAngle: n && l.animateRotate ? h : g,
- endAngle: n && l.animateRotate ? h : v,
- label: o.valueAtIndexOrDefault(c, e, c[e])
- }
- });
- var y = this.chart.options.elements.arc,
- b = t.custom || {},
- x = o.valueAtIndexOrDefault,
- w = t._model;
- w.backgroundColor = b.backgroundColor ? b.backgroundColor : x(a.backgroundColor, e, y.backgroundColor), w.borderColor = b.borderColor ? b.borderColor : x(a.borderColor, e, y.borderColor), w.borderWidth = b.borderWidth ? b.borderWidth : x(a.borderWidth, e, y.borderWidth), t.pivot()
- },
- countVisibleElements: function() {
- var t = this.getDataset(),
- e = this.getMeta(),
- n = 0;
- return o.each(e.data, (function(e, r) {
- isNaN(t.data[r]) || e.hidden || n++
- })), n
- },
- _computeAngle: function(t) {
- var e = this,
- n = this.getMeta().count,
- r = e.getDataset(),
- i = e.getMeta();
- if (isNaN(r.data[t]) || i.data[t].hidden) return 0;
- var a = {
- chart: e.chart,
- dataIndex: t,
- dataset: r,
- datasetIndex: e.index
- };
- return o.options.resolve([e.chart.options.elements.arc.angle, 2 * Math.PI / n], a, t)
- }
- })
- }
- }, {
- 26: 26,
- 41: 41,
- 46: 46
- }],
- 20: [function(t, e, n) {
- var r = t(26),
- i = t(41),
- o = t(46);
- r._set("radar", {
- scale: {
- type: "radialLinear"
- },
- elements: {
- line: {
- tension: 0
- }
- }
- }), e.exports = function(t) {
- t.controllers.radar = t.DatasetController.extend({
- datasetElementType: i.Line,
- dataElementType: i.Point,
- linkScales: o.noop,
- update: function(t) {
- var e = this,
- n = e.getMeta(),
- r = n.dataset,
- i = n.data,
- a = r.custom || {},
- s = e.getDataset(),
- l = e.chart.options.elements.line,
- u = e.chart.scale;
- void 0 !== s.tension && void 0 === s.lineTension && (s.lineTension = s.tension), o.extend(n.dataset, {
- _datasetIndex: e.index,
- _scale: u,
- _children: i,
- _loop: !0,
- _model: {
- tension: a.tension ? a.tension : o.valueOrDefault(s.lineTension, l.tension),
- backgroundColor: a.backgroundColor ? a.backgroundColor : s.backgroundColor || l.backgroundColor,
- borderWidth: a.borderWidth ? a.borderWidth : s.borderWidth || l.borderWidth,
- borderColor: a.borderColor ? a.borderColor : s.borderColor || l.borderColor,
- fill: a.fill ? a.fill : void 0 !== s.fill ? s.fill : l.fill,
- borderCapStyle: a.borderCapStyle ? a.borderCapStyle : s.borderCapStyle || l.borderCapStyle,
- borderDash: a.borderDash ? a.borderDash : s.borderDash || l.borderDash,
- borderDashOffset: a.borderDashOffset ? a.borderDashOffset : s.borderDashOffset || l.borderDashOffset,
- borderJoinStyle: a.borderJoinStyle ? a.borderJoinStyle : s.borderJoinStyle || l.borderJoinStyle
- }
- }), n.dataset.pivot(), o.each(i, (function(n, r) {
- e.updateElement(n, r, t)
- }), e), e.updateBezierControlPoints()
- },
- updateElement: function(t, e, n) {
- var r = this,
- i = t.custom || {},
- a = r.getDataset(),
- s = r.chart.scale,
- l = r.chart.options.elements.point,
- u = s.getPointPositionForValue(e, a.data[e]);
- void 0 !== a.radius && void 0 === a.pointRadius && (a.pointRadius = a.radius), void 0 !== a.hitRadius && void 0 === a.pointHitRadius && (a.pointHitRadius = a.hitRadius), o.extend(t, {
- _datasetIndex: r.index,
- _index: e,
- _scale: s,
- _model: {
- x: n ? s.xCenter : u.x,
- y: n ? s.yCenter : u.y,
- tension: i.tension ? i.tension : o.valueOrDefault(a.lineTension, r.chart.options.elements.line.tension),
- radius: i.radius ? i.radius : o.valueAtIndexOrDefault(a.pointRadius, e, l.radius),
- backgroundColor: i.backgroundColor ? i.backgroundColor : o.valueAtIndexOrDefault(a.pointBackgroundColor, e, l.backgroundColor),
- borderColor: i.borderColor ? i.borderColor : o.valueAtIndexOrDefault(a.pointBorderColor, e, l.borderColor),
- borderWidth: i.borderWidth ? i.borderWidth : o.valueAtIndexOrDefault(a.pointBorderWidth, e, l.borderWidth),
- pointStyle: i.pointStyle ? i.pointStyle : o.valueAtIndexOrDefault(a.pointStyle, e, l.pointStyle),
- rotation: i.rotation ? i.rotation : o.valueAtIndexOrDefault(a.pointRotation, e, l.rotation),
- hitRadius: i.hitRadius ? i.hitRadius : o.valueAtIndexOrDefault(a.pointHitRadius, e, l.hitRadius)
- }
- }), t._model.skip = i.skip ? i.skip : isNaN(t._model.x) || isNaN(t._model.y)
- },
- updateBezierControlPoints: function() {
- var t = this.chart.chartArea,
- e = this.getMeta();
- o.each(e.data, (function(n, r) {
- var i = n._model,
- a = o.splineCurve(o.previousItem(e.data, r, !0)._model, i, o.nextItem(e.data, r, !0)._model, i.tension);
- i.controlPointPreviousX = Math.max(Math.min(a.previous.x, t.right), t.left), i.controlPointPreviousY = Math.max(Math.min(a.previous.y, t.bottom), t.top), i.controlPointNextX = Math.max(Math.min(a.next.x, t.right), t.left), i.controlPointNextY = Math.max(Math.min(a.next.y, t.bottom), t.top), n.pivot()
- }))
- },
- setHoverStyle: function(t) {
- var e = this.chart.data.datasets[t._datasetIndex],
- n = t.custom || {},
- r = t._index,
- i = t._model;
- t.$previousStyle = {
- backgroundColor: i.backgroundColor,
- borderColor: i.borderColor,
- borderWidth: i.borderWidth,
- radius: i.radius
- }, i.radius = n.hoverRadius ? n.hoverRadius : o.valueAtIndexOrDefault(e.pointHoverRadius, r, this.chart.options.elements.point.hoverRadius), i.backgroundColor = n.hoverBackgroundColor ? n.hoverBackgroundColor : o.valueAtIndexOrDefault(e.pointHoverBackgroundColor, r, o.getHoverColor(i.backgroundColor)), i.borderColor = n.hoverBorderColor ? n.hoverBorderColor : o.valueAtIndexOrDefault(e.pointHoverBorderColor, r, o.getHoverColor(i.borderColor)), i.borderWidth = n.hoverBorderWidth ? n.hoverBorderWidth : o.valueAtIndexOrDefault(e.pointHoverBorderWidth, r, i.borderWidth)
- }
- })
- }
- }, {
- 26: 26,
- 41: 41,
- 46: 46
- }],
- 21: [function(t, e, n) {
- t(26)._set("scatter", {
- hover: {
- mode: "single"
- },
- scales: {
- xAxes: [{
- id: "x-axis-1",
- type: "linear",
- position: "bottom"
- }],
- yAxes: [{
- id: "y-axis-1",
- type: "linear",
- position: "left"
- }]
- },
- showLines: !1,
- tooltips: {
- callbacks: {
- title: function() {
- return ""
- },
- label: function(t) {
- return "(" + t.xLabel + ", " + t.yLabel + ")"
- }
- }
- }
- }), e.exports = function(t) {
- t.controllers.scatter = t.controllers.line
- }
- }, {
- 26: 26
- }],
- 22: [function(t, e, n) {
- var r = t(27);
- n = e.exports = r.extend({
- chart: null,
- currentStep: 0,
- numSteps: 60,
- easing: "",
- render: null,
- onAnimationProgress: null,
- onAnimationComplete: null
- });
- Object.defineProperty(n.prototype, "animationObject", {
- get: function() {
- return this
- }
- }), Object.defineProperty(n.prototype, "chartInstance", {
- get: function() {
- return this.chart
- },
- set: function(t) {
- this.chart = t
- }
- })
- }, {
- 27: 27
- }],
- 23: [function(t, e, n) {
- var r = t(26),
- i = t(46);
- r._set("global", {
- animation: {
- duration: 1e3,
- easing: "easeOutQuart",
- onProgress: i.noop,
- onComplete: i.noop
- }
- }), e.exports = {
- frameDuration: 17,
- animations: [],
- dropFrames: 0,
- request: null,
- addAnimation: function(t, e, n, r) {
- var i, o, a = this.animations;
- for (e.chart = t, r || (t.animating = !0), i = 0, o = a.length; i < o; ++i)
- if (a[i].chart === t) return void(a[i] = e);
- a.push(e), 1 === a.length && this.requestAnimationFrame()
- },
- cancelAnimation: function(t) {
- var e = i.findIndex(this.animations, (function(e) {
- return e.chart === t
- })); - 1 !== e && (this.animations.splice(e, 1), t.animating = !1)
- },
- requestAnimationFrame: function() {
- var t = this;
- null === t.request && (t.request = i.requestAnimFrame.call(window, (function() {
- t.request = null, t.startDigest()
- })))
- },
- startDigest: function() {
- var t = this,
- e = Date.now(),
- n = 0;
- t.dropFrames > 1 && (n = Math.floor(t.dropFrames), t.dropFrames = t.dropFrames % 1), t.advance(1 + n);
- var r = Date.now();
- t.dropFrames += (r - e) / t.frameDuration, t.animations.length > 0 && t.requestAnimationFrame()
- },
- advance: function(t) {
- for (var e, n, r = this.animations, o = 0; o < r.length;) n = (e = r[o]).chart, e.currentStep = (e.currentStep || 0) + t, e.currentStep = Math.min(e.currentStep, e.numSteps), i.callback(e.render, [n, e], n), i.callback(e.onAnimationProgress, [e], n), e.currentStep >= e.numSteps ? (i.callback(e.onAnimationComplete, [e], n), n.animating = !1, r.splice(o, 1)) : ++o
- }
- }
- }, {
- 26: 26,
- 46: 46
- }],
- 24: [function(t, e, n) {
- var r = t(22),
- i = t(23),
- a = t(26),
- s = t(46),
- l = t(29),
- u = t(31),
- c = t(49),
- d = t(32),
- f = t(34),
- h = t(36);
- e.exports = function(t) {
- function e(e) {
- var n = e.options;
- s.each(e.scales, (function(t) {
- u.removeBox(e, t)
- })), n = s.configMerge(t.defaults.global, t.defaults[e.config.type], n), e.options = e.config.options = n, e.ensureScalesHaveIDs(), e.buildOrUpdateScales(), e.tooltip._options = n.tooltips, e.tooltip.initialize()
- }
- function n(t) {
- return "top" === t || "bottom" === t
- }
- t.types = {}, t.instances = {}, t.controllers = {}, s.extend(t.prototype, {
- construct: function(e, n) {
- var r = this;
- n = function(t) {
- var e = (t = t || {}).data = t.data || {};
- return e.datasets = e.datasets || [], e.labels = e.labels || [], t.options = s.configMerge(a.global, a[t.type], t.options || {}), t
- }(n);
- var i = c.acquireContext(e, n),
- o = i && i.canvas,
- l = o && o.height,
- u = o && o.width;
- r.id = s.uid(), r.ctx = i, r.canvas = o, r.config = n, r.width = u, r.height = l, r.aspectRatio = l ? u / l : null, r.options = n.options, r._bufferedRender = !1, r.chart = r, r.controller = r, t.instances[r.id] = r, Object.defineProperty(r, "data", {
- get: function() {
- return r.config.data
- },
- set: function(t) {
- r.config.data = t
- }
- }), i && o ? (r.initialize(), r.update()) : console.error("Failed to create chart: can't acquire context from the given item")
- },
- initialize: function() {
- var t = this;
- return d.notify(t, "beforeInit"), s.retinaScale(t, t.options.devicePixelRatio), t.bindEvents(), t.options.responsive && t.resize(!0), t.ensureScalesHaveIDs(), t.buildOrUpdateScales(), t.initToolTip(), d.notify(t, "afterInit"), t
- },
- clear: function() {
- return s.canvas.clear(this), this
- },
- stop: function() {
- return i.cancelAnimation(this), this
- },
- resize: function(t) {
- var e = this,
- n = e.options,
- r = e.canvas,
- i = n.maintainAspectRatio && e.aspectRatio || null,
- o = Math.max(0, Math.floor(s.getMaximumWidth(r))),
- a = Math.max(0, Math.floor(i ? o / i : s.getMaximumHeight(r)));
- if ((e.width !== o || e.height !== a) && (r.width = e.width = o, r.height = e.height = a, r.style.width = o + "px", r.style.height = a + "px", s.retinaScale(e, n.devicePixelRatio), !t)) {
- var l = {
- width: o,
- height: a
- };
- d.notify(e, "resize", [l]), e.options.onResize && e.options.onResize(e, l), e.stop(), e.update({
- duration: e.options.responsiveAnimationDuration
- })
- }
- },
- ensureScalesHaveIDs: function() {
- var t = this.options,
- e = t.scales || {},
- n = t.scale;
- s.each(e.xAxes, (function(t, e) {
- t.id = t.id || "x-axis-" + e
- })), s.each(e.yAxes, (function(t, e) {
- t.id = t.id || "y-axis-" + e
- })), n && (n.id = n.id || "scale")
- },
- buildOrUpdateScales: function() {
- var t = this,
- e = t.options,
- r = t.scales || {},
- i = [],
- o = Object.keys(r).reduce((function(t, e) {
- return t[e] = !1, t
- }), {});
- e.scales && (i = i.concat((e.scales.xAxes || []).map((function(t) {
- return {
- options: t,
- dtype: "category",
- dposition: "bottom"
- }
- })), (e.scales.yAxes || []).map((function(t) {
- return {
- options: t,
- dtype: "linear",
- dposition: "left"
- }
- })))), e.scale && i.push({
- options: e.scale,
- dtype: "radialLinear",
- isDefault: !0,
- dposition: "chartArea"
- }), s.each(i, (function(e) {
- var i = e.options,
- a = i.id,
- l = s.valueOrDefault(i.type, e.dtype);
- n(i.position) !== n(e.dposition) && (i.position = e.dposition), o[a] = !0;
- var u = null;
- if (a in r && r[a].type === l)(u = r[a]).options = i, u.ctx = t.ctx, u.chart = t;
- else {
- var c = f.getScaleConstructor(l);
- if (!c) return;
- u = new c({
- id: a,
- type: l,
- options: i,
- ctx: t.ctx,
- chart: t
- }), r[u.id] = u
- }
- u.mergeTicksOptions(), e.isDefault && (t.scale = u)
- })), s.each(o, (function(t, e) {
- t || delete r[e]
- })), t.scales = r, f.addScalesToLayout(this)
- },
- buildOrUpdateControllers: function() {
- var e = this,
- n = [],
- r = [];
- return s.each(e.data.datasets, (function(i, o) {
- var a = e.getDatasetMeta(o),
- s = i.type || e.config.type;
- if (a.type && a.type !== s && (e.destroyDatasetMeta(o), a = e.getDatasetMeta(o)), a.type = s, n.push(a.type), a.controller) a.controller.updateIndex(o), a.controller.linkScales();
- else {
- var l = t.controllers[a.type];
- if (void 0 === l) throw new Error('"' + a.type + '" is not a chart type.');
- a.controller = new l(e, o), r.push(a.controller)
- }
- }), e), r
- },
- resetElements: function() {
- var t = this;
- s.each(t.data.datasets, (function(e, n) {
- t.getDatasetMeta(n).controller.reset()
- }), t)
- },
- reset: function() {
- this.resetElements(), this.tooltip.initialize()
- },
- update: function(t) {
- var n = this;
- if (t && "object" === o(t) || (t = {
- duration: t,
- lazy: arguments[1]
- }), e(n), d._invalidate(n), !1 !== d.notify(n, "beforeUpdate")) {
- n.tooltip._data = n.data;
- var r = n.buildOrUpdateControllers();
- s.each(n.data.datasets, (function(t, e) {
- n.getDatasetMeta(e).controller.buildOrUpdateElements()
- }), n), n.updateLayout(), n.options.animation && n.options.animation.duration && s.each(r, (function(t) {
- t.reset()
- })), n.updateDatasets(), n.tooltip.initialize(), n.lastActive = [], d.notify(n, "afterUpdate"), n._bufferedRender ? n._bufferedRequest = {
- duration: t.duration,
- easing: t.easing,
- lazy: t.lazy
- } : n.render(t)
- }
- },
- updateLayout: function() {
- !1 !== d.notify(this, "beforeLayout") && (u.update(this, this.width, this.height), d.notify(this, "afterScaleUpdate"), d.notify(this, "afterLayout"))
- },
- updateDatasets: function() {
- if (!1 !== d.notify(this, "beforeDatasetsUpdate")) {
- for (var t = 0, e = this.data.datasets.length; t < e; ++t) this.updateDataset(t);
- d.notify(this, "afterDatasetsUpdate")
- }
- },
- updateDataset: function(t) {
- var e = this.getDatasetMeta(t),
- n = {
- meta: e,
- index: t
- };
- !1 !== d.notify(this, "beforeDatasetUpdate", [n]) && (e.controller.update(), d.notify(this, "afterDatasetUpdate", [n]))
- },
- render: function(t) {
- var e = this;
- t && "object" === o(t) || (t = {
- duration: t,
- lazy: arguments[1]
- });
- var n = t.duration,
- a = t.lazy;
- if (!1 !== d.notify(e, "beforeRender")) {
- var l = e.options.animation,
- u = function(t) {
- d.notify(e, "afterRender"), s.callback(l && l.onComplete, [t], e)
- };
- if (l && (void 0 !== n && 0 !== n || void 0 === n && 0 !== l.duration)) {
- var c = new r({
- numSteps: (n || l.duration) / 16.66,
- easing: t.easing || l.easing,
- render: function(t, e) {
- var n = s.easing.effects[e.easing],
- r = e.currentStep,
- i = r / e.numSteps;
- t.draw(n(i), i, r)
- },
- onAnimationProgress: l.onProgress,
- onAnimationComplete: u
- });
- i.addAnimation(e, c, n, a)
- } else e.draw(), u(new r({
- numSteps: 0,
- chart: e
- }));
- return e
- }
- },
- draw: function(t) {
- var e = this;
- e.clear(), s.isNullOrUndef(t) && (t = 1), e.transition(t), e.width <= 0 || e.height <= 0 || !1 !== d.notify(e, "beforeDraw", [t]) && (s.each(e.boxes, (function(t) {
- t.draw(e.chartArea)
- }), e), e.scale && e.scale.draw(), e.drawDatasets(t), e._drawTooltip(t), d.notify(e, "afterDraw", [t]))
- },
- transition: function(t) {
- for (var e = 0, n = (this.data.datasets || []).length; e < n; ++e) this.isDatasetVisible(e) && this.getDatasetMeta(e).controller.transition(t);
- this.tooltip.transition(t)
- },
- drawDatasets: function(t) {
- var e = this;
- if (!1 !== d.notify(e, "beforeDatasetsDraw", [t])) {
- for (var n = (e.data.datasets || []).length - 1; n >= 0; --n) e.isDatasetVisible(n) && e.drawDataset(n, t);
- d.notify(e, "afterDatasetsDraw", [t])
- }
- },
- drawDataset: function(t, e) {
- var n = this.getDatasetMeta(t),
- r = {
- meta: n,
- index: t,
- easingValue: e
- };
- !1 !== d.notify(this, "beforeDatasetDraw", [r]) && (n.controller.draw(e), d.notify(this, "afterDatasetDraw", [r]))
- },
- _drawTooltip: function(t) {
- var e = this.tooltip,
- n = {
- tooltip: e,
- easingValue: t
- };
- !1 !== d.notify(this, "beforeTooltipDraw", [n]) && (e.draw(), d.notify(this, "afterTooltipDraw", [n]))
- },
- getElementAtEvent: function(t) {
- return l.modes.single(this, t)
- },
- getElementsAtEvent: function(t) {
- return l.modes.label(this, t, {
- intersect: !0
- })
- },
- getElementsAtXAxis: function(t) {
- return l.modes["x-axis"](this, t, {
- intersect: !0
- })
- },
- getElementsAtEventForMode: function(t, e, n) {
- var r = l.modes[e];
- return "function" == typeof r ? r(this, t, n) : []
- },
- getDatasetAtEvent: function(t) {
- return l.modes.dataset(this, t, {
- intersect: !0
- })
- },
- getDatasetMeta: function(t) {
- var e = this.data.datasets[t];
- e._meta || (e._meta = {});
- var n = e._meta[this.id];
- return n || (n = e._meta[this.id] = {
- type: null,
- data: [],
- dataset: null,
- controller: null,
- hidden: null,
- xAxisID: null,
- yAxisID: null
- }), n
- },
- getVisibleDatasetCount: function() {
- for (var t = 0, e = 0, n = this.data.datasets.length; e < n; ++e) this.isDatasetVisible(e) && t++;
- return t
- },
- isDatasetVisible: function(t) {
- var e = this.getDatasetMeta(t);
- return "boolean" == typeof e.hidden ? !e.hidden : !this.data.datasets[t].hidden
- },
- generateLegend: function() {
- return this.options.legendCallback(this)
- },
- destroyDatasetMeta: function(t) {
- var e = this.id,
- n = this.data.datasets[t],
- r = n._meta && n._meta[e];
- r && (r.controller.destroy(), delete n._meta[e])
- },
- destroy: function() {
- var e, n, r = this,
- i = r.canvas;
- for (r.stop(), e = 0, n = r.data.datasets.length; e < n; ++e) r.destroyDatasetMeta(e);
- i && (r.unbindEvents(), s.canvas.clear(r), c.releaseContext(r.ctx), r.canvas = null, r.ctx = null), d.notify(r, "destroy"), delete t.instances[r.id]
- },
- toBase64Image: function() {
- return this.canvas.toDataURL.apply(this.canvas, arguments)
- },
- initToolTip: function() {
- var t = this;
- t.tooltip = new h({
- _chart: t,
- _chartInstance: t,
- _data: t.data,
- _options: t.options.tooltips
- }, t)
- },
- bindEvents: function() {
- var t = this,
- e = t._listeners = {},
- n = function() {
- t.eventHandler.apply(t, arguments)
- };
- s.each(t.options.events, (function(r) {
- c.addEventListener(t, r, n), e[r] = n
- })), t.options.responsive && (n = function() {
- t.resize()
- }, c.addEventListener(t, "resize", n), e.resize = n)
- },
- unbindEvents: function() {
- var t = this,
- e = t._listeners;
- e && (delete t._listeners, s.each(e, (function(e, n) {
- c.removeEventListener(t, n, e)
- })))
- },
- updateHoverStyle: function(t, e, n) {
- var r, i, o, a = n ? "setHoverStyle" : "removeHoverStyle";
- for (i = 0, o = t.length; i < o; ++i)(r = t[i]) && this.getDatasetMeta(r._datasetIndex).controller[a](r)
- },
- eventHandler: function(t) {
- var e = this,
- n = e.tooltip;
- if (!1 !== d.notify(e, "beforeEvent", [t])) {
- e._bufferedRender = !0, e._bufferedRequest = null;
- var r = e.handleEvent(t);
- n && (r = n._start ? n.handleEvent(t) : r | n.handleEvent(t)), d.notify(e, "afterEvent", [t]);
- var i = e._bufferedRequest;
- return i ? e.render(i) : r && !e.animating && (e.stop(), e.render({
- duration: e.options.hover.animationDuration,
- lazy: !0
- })), e._bufferedRender = !1, e._bufferedRequest = null, e
- }
- },
- handleEvent: function(t) {
- var e, n = this,
- r = n.options || {},
- i = r.hover;
- return n.lastActive = n.lastActive || [], "mouseout" === t.type ? n.active = [] : n.active = n.getElementsAtEventForMode(t, i.mode, i), s.callback(r.onHover || r.hover.onHover, [t.native, n.active], n), "mouseup" !== t.type && "click" !== t.type || r.onClick && r.onClick.call(n, t.native, n.active), n.lastActive.length && n.updateHoverStyle(n.lastActive, i.mode, !1), n.active.length && i.mode && n.updateHoverStyle(n.active, i.mode, !0), e = !s.arrayEquals(n.active, n.lastActive), n.lastActive = n.active, e
- }
- }), t.Controller = t
- }
- }, {
- 22: 22,
- 23: 23,
- 26: 26,
- 29: 29,
- 31: 31,
- 32: 32,
- 34: 34,
- 36: 36,
- 46: 46,
- 49: 49
- }],
- 25: [function(t, e, n) {
- var r = t(46);
- e.exports = function(t) {
- var e = ["push", "pop", "shift", "splice", "unshift"];
- function n(t, n) {
- var r = t._chartjs;
- if (r) {
- var i = r.listeners,
- o = i.indexOf(n); - 1 !== o && i.splice(o, 1), i.length > 0 || (e.forEach((function(e) {
- delete t[e]
- })), delete t._chartjs)
- }
- }
- t.DatasetController = function(t, e) {
- this.initialize(t, e)
- }, r.extend(t.DatasetController.prototype, {
- datasetElementType: null,
- dataElementType: null,
- initialize: function(t, e) {
- this.chart = t, this.index = e, this.linkScales(), this.addElements()
- },
- updateIndex: function(t) {
- this.index = t
- },
- linkScales: function() {
- var t = this,
- e = t.getMeta(),
- n = t.getDataset();
- null !== e.xAxisID && e.xAxisID in t.chart.scales || (e.xAxisID = n.xAxisID || t.chart.options.scales.xAxes[0].id), null !== e.yAxisID && e.yAxisID in t.chart.scales || (e.yAxisID = n.yAxisID || t.chart.options.scales.yAxes[0].id)
- },
- getDataset: function() {
- return this.chart.data.datasets[this.index]
- },
- getMeta: function() {
- return this.chart.getDatasetMeta(this.index)
- },
- getScaleForId: function(t) {
- return this.chart.scales[t]
- },
- reset: function() {
- this.update(!0)
- },
- destroy: function() {
- this._data && n(this._data, this)
- },
- createMetaDataset: function() {
- var t = this.datasetElementType;
- return t && new t({
- _chart: this.chart,
- _datasetIndex: this.index
- })
- },
- createMetaData: function(t) {
- var e = this.dataElementType;
- return e && new e({
- _chart: this.chart,
- _datasetIndex: this.index,
- _index: t
- })
- },
- addElements: function() {
- var t, e, n = this.getMeta(),
- r = this.getDataset().data || [],
- i = n.data;
- for (t = 0, e = r.length; t < e; ++t) i[t] = i[t] || this.createMetaData(t);
- n.dataset = n.dataset || this.createMetaDataset()
- },
- addElementAndReset: function(t) {
- var e = this.createMetaData(t);
- this.getMeta().data.splice(t, 0, e), this.updateElement(e, t, !0)
- },
- buildOrUpdateElements: function() {
- var t, i, o = this,
- a = o.getDataset(),
- s = a.data || (a.data = []);
- o._data !== s && (o._data && n(o._data, o), i = o, (t = s)._chartjs ? t._chartjs.listeners.push(i) : (Object.defineProperty(t, "_chartjs", {
- configurable: !0,
- enumerable: !1,
- value: {
- listeners: [i]
- }
- }), e.forEach((function(e) {
- var n = "onData" + e.charAt(0).toUpperCase() + e.slice(1),
- i = t[e];
- Object.defineProperty(t, e, {
- configurable: !0,
- enumerable: !1,
- value: function() {
- var e = Array.prototype.slice.call(arguments),
- o = i.apply(this, e);
- return r.each(t._chartjs.listeners, (function(t) {
- "function" == typeof t[n] && t[n].apply(t, e)
- })), o
- }
- })
- }))), o._data = s), o.resyncElements()
- },
- update: r.noop,
- transition: function(t) {
- for (var e = this.getMeta(), n = e.data || [], r = n.length, i = 0; i < r; ++i) n[i].transition(t);
- e.dataset && e.dataset.transition(t)
- },
- draw: function() {
- var t = this.getMeta(),
- e = t.data || [],
- n = e.length,
- r = 0;
- for (t.dataset && t.dataset.draw(); r < n; ++r) e[r].draw()
- },
- removeHoverStyle: function(t) {
- r.merge(t._model, t.$previousStyle || {}), delete t.$previousStyle
- },
- setHoverStyle: function(t) {
- var e = this.chart.data.datasets[t._datasetIndex],
- n = t._index,
- i = t.custom || {},
- o = r.valueAtIndexOrDefault,
- a = r.getHoverColor,
- s = t._model;
- t.$previousStyle = {
- backgroundColor: s.backgroundColor,
- borderColor: s.borderColor,
- borderWidth: s.borderWidth
- }, s.backgroundColor = i.hoverBackgroundColor ? i.hoverBackgroundColor : o(e.hoverBackgroundColor, n, a(s.backgroundColor)), s.borderColor = i.hoverBorderColor ? i.hoverBorderColor : o(e.hoverBorderColor, n, a(s.borderColor)), s.borderWidth = i.hoverBorderWidth ? i.hoverBorderWidth : o(e.hoverBorderWidth, n, s.borderWidth)
- },
- resyncElements: function() {
- var t = this.getMeta(),
- e = this.getDataset().data,
- n = t.data.length,
- r = e.length;
- r < n ? t.data.splice(r, n - r) : r > n && this.insertElements(n, r - n)
- },
- insertElements: function(t, e) {
- for (var n = 0; n < e; ++n) this.addElementAndReset(t + n)
- },
- onDataPush: function() {
- this.insertElements(this.getDataset().data.length - 1, arguments.length)
- },
- onDataPop: function() {
- this.getMeta().data.pop()
- },
- onDataShift: function() {
- this.getMeta().data.shift()
- },
- onDataSplice: function(t, e) {
- this.getMeta().data.splice(t, e), this.insertElements(t, arguments.length - 2)
- },
- onDataUnshift: function() {
- this.insertElements(0, arguments.length)
- }
- }), t.DatasetController.extend = r.inherits
- }
- }, {
- 46: 46
- }],
- 26: [function(t, e, n) {
- var r = t(46);
- e.exports = {
- _set: function(t, e) {
- return r.merge(this[t] || (this[t] = {}), e)
- }
- }
- }, {
- 46: 46
- }],
- 27: [function(t, e, n) {
- var r = t(3),
- i = t(46);
- var a = function(t) {
- i.extend(this, t), this.initialize.apply(this, arguments)
- };
- i.extend(a.prototype, {
- initialize: function() {
- this.hidden = !1
- },
- pivot: function() {
- var t = this;
- return t._view || (t._view = i.clone(t._model)), t._start = {}, t
- },
- transition: function(t) {
- var e = this,
- n = e._model,
- i = e._start,
- a = e._view;
- return n && 1 !== t ? (a || (a = e._view = {}), i || (i = e._start = {}), function(t, e, n, i) {
- var a, s, l, u, c, d, f, h, p, g = Object.keys(n);
- for (a = 0, s = g.length; a < s; ++a)
- if (d = n[l = g[a]], e.hasOwnProperty(l) || (e[l] = d), (u = e[l]) !== d && "_" !== l[0]) {
- if (t.hasOwnProperty(l) || (t[l] = u), c = t[l], (f = o(d)) === o(c))
- if ("string" === f) {
- if ((h = r(c)).valid && (p = r(d)).valid) {
- e[l] = p.mix(h, i).rgbString();
- continue
- }
- } else if ("number" === f && isFinite(c) && isFinite(d)) {
- e[l] = c + (d - c) * i;
- continue
- }
- e[l] = d
- }
- }(i, a, n, t), e) : (e._view = n, e._start = null, e)
- },
- tooltipPosition: function() {
- return {
- x: this._model.x,
- y: this._model.y
- }
- },
- hasValue: function() {
- return i.isNumber(this._model.x) && i.isNumber(this._model.y)
- }
- }), a.extend = i.inherits, e.exports = a
- }, {
- 3: 3,
- 46: 46
- }],
- 28: [function(t, e, n) {
- var r = t(3),
- i = t(26),
- o = t(46),
- a = t(34);
- e.exports = function() {
- function t(t, e, n) {
- var r;
- return "string" == typeof t ? (r = parseInt(t, 10), -1 !== t.indexOf("%") && (r = r / 100 * e.parentNode[n])) : r = t, r
- }
- function e(t) {
- return null != t && "none" !== t
- }
- function n(n, r, i) {
- var a = document.defaultView,
- s = o._getParentNode(n),
- l = a.getComputedStyle(n)[r],
- u = a.getComputedStyle(s)[r],
- c = e(l),
- d = e(u),
- f = Number.POSITIVE_INFINITY;
- return c || d ? Math.min(c ? t(l, n, i) : f, d ? t(u, s, i) : f) : "none"
- }
- o.configMerge = function() {
- return o.merge(o.clone(arguments[0]), [].slice.call(arguments, 1), {
- merger: function(t, e, n, r) {
- var i = e[t] || {},
- s = n[t];
- "scales" === t ? e[t] = o.scaleMerge(i, s) : "scale" === t ? e[t] = o.merge(i, [a.getScaleDefaults(s.type), s]) : o._merger(t, e, n, r)
- }
- })
- }, o.scaleMerge = function() {
- return o.merge(o.clone(arguments[0]), [].slice.call(arguments, 1), {
- merger: function(t, e, n, r) {
- if ("xAxes" === t || "yAxes" === t) {
- var i, s, l, u = n[t].length;
- for (e[t] || (e[t] = []), i = 0; i < u; ++i) l = n[t][i], s = o.valueOrDefault(l.type, "xAxes" === t ? "category" : "linear"), i >= e[t].length && e[t].push({}), !e[t][i].type || l.type && l.type !== e[t][i].type ? o.merge(e[t][i], [a.getScaleDefaults(s), l]) : o.merge(e[t][i], l)
- } else o._merger(t, e, n, r)
- }
- })
- }, o.where = function(t, e) {
- if (o.isArray(t) && Array.prototype.filter) return t.filter(e);
- var n = [];
- return o.each(t, (function(t) {
- e(t) && n.push(t)
- })), n
- }, o.findIndex = Array.prototype.findIndex ? function(t, e, n) {
- return t.findIndex(e, n)
- } : function(t, e, n) {
- n = void 0 === n ? t : n;
- for (var r = 0, i = t.length; r < i; ++r)
- if (e.call(n, t[r], r, t)) return r;
- return -1
- }, o.findNextWhere = function(t, e, n) {
- o.isNullOrUndef(n) && (n = -1);
- for (var r = n + 1; r < t.length; r++) {
- var i = t[r];
- if (e(i)) return i
- }
- }, o.findPreviousWhere = function(t, e, n) {
- o.isNullOrUndef(n) && (n = t.length);
- for (var r = n - 1; r >= 0; r--) {
- var i = t[r];
- if (e(i)) return i
- }
- }, o.isNumber = function(t) {
- return !isNaN(parseFloat(t)) && isFinite(t)
- }, o.almostEquals = function(t, e, n) {
- return Math.abs(t - e) < n
- }, o.almostWhole = function(t, e) {
- var n = Math.round(t);
- return n - e < t && n + e > t
- }, o.max = function(t) {
- return t.reduce((function(t, e) {
- return isNaN(e) ? t : Math.max(t, e)
- }), Number.NEGATIVE_INFINITY)
- }, o.min = function(t) {
- return t.reduce((function(t, e) {
- return isNaN(e) ? t : Math.min(t, e)
- }), Number.POSITIVE_INFINITY)
- }, o.sign = Math.sign ? function(t) {
- return Math.sign(t)
- } : function(t) {
- return 0 === (t = +t) || isNaN(t) ? t : t > 0 ? 1 : -1
- }, o.log10 = Math.log10 ? function(t) {
- return Math.log10(t)
- } : function(t) {
- var e = Math.log(t) * Math.LOG10E,
- n = Math.round(e);
- return t === Math.pow(10, n) ? n : e
- }, o.toRadians = function(t) {
- return t * (Math.PI / 180)
- }, o.toDegrees = function(t) {
- return t * (180 / Math.PI)
- }, o.getAngleFromPoint = function(t, e) {
- var n = e.x - t.x,
- r = e.y - t.y,
- i = Math.sqrt(n * n + r * r),
- o = Math.atan2(r, n);
- return o < -.5 * Math.PI && (o += 2 * Math.PI), {
- angle: o,
- distance: i
- }
- }, o.distanceBetweenPoints = function(t, e) {
- return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2))
- }, o.aliasPixel = function(t) {
- return t % 2 == 0 ? 0 : .5
- }, o.splineCurve = function(t, e, n, r) {
- var i = t.skip ? e : t,
- o = e,
- a = n.skip ? e : n,
- s = Math.sqrt(Math.pow(o.x - i.x, 2) + Math.pow(o.y - i.y, 2)),
- l = Math.sqrt(Math.pow(a.x - o.x, 2) + Math.pow(a.y - o.y, 2)),
- u = s / (s + l),
- c = l / (s + l),
- d = r * (u = isNaN(u) ? 0 : u),
- f = r * (c = isNaN(c) ? 0 : c);
- return {
- previous: {
- x: o.x - d * (a.x - i.x),
- y: o.y - d * (a.y - i.y)
- },
- next: {
- x: o.x + f * (a.x - i.x),
- y: o.y + f * (a.y - i.y)
- }
- }
- }, o.EPSILON = Number.EPSILON || 1e-14, o.splineCurveMonotone = function(t) {
- var e, n, r, i, a, s, l, u, c, d = (t || []).map((function(t) {
- return {
- model: t._model,
- deltaK: 0,
- mK: 0
- }
- })),
- f = d.length;
- for (e = 0; e < f; ++e)
- if (!(r = d[e]).model.skip) {
- if (n = e > 0 ? d[e - 1] : null, (i = e < f - 1 ? d[e + 1] : null) && !i.model.skip) {
- var h = i.model.x - r.model.x;
- r.deltaK = 0 !== h ? (i.model.y - r.model.y) / h : 0
- }!n || n.model.skip ? r.mK = r.deltaK : !i || i.model.skip ? r.mK = n.deltaK : this.sign(n.deltaK) !== this.sign(r.deltaK) ? r.mK = 0 : r.mK = (n.deltaK + r.deltaK) / 2
- } for (e = 0; e < f - 1; ++e) r = d[e], i = d[e + 1], r.model.skip || i.model.skip || (o.almostEquals(r.deltaK, 0, this.EPSILON) ? r.mK = i.mK = 0 : (a = r.mK / r.deltaK, s = i.mK / r.deltaK, (u = Math.pow(a, 2) + Math.pow(s, 2)) <= 9 || (l = 3 / Math.sqrt(u), r.mK = a * l * r.deltaK, i.mK = s * l * r.deltaK)));
- for (e = 0; e < f; ++e)(r = d[e]).model.skip || (n = e > 0 ? d[e - 1] : null, i = e < f - 1 ? d[e + 1] : null, n && !n.model.skip && (c = (r.model.x - n.model.x) / 3, r.model.controlPointPreviousX = r.model.x - c, r.model.controlPointPreviousY = r.model.y - c * r.mK), i && !i.model.skip && (c = (i.model.x - r.model.x) / 3, r.model.controlPointNextX = r.model.x + c, r.model.controlPointNextY = r.model.y + c * r.mK))
- }, o.nextItem = function(t, e, n) {
- return n ? e >= t.length - 1 ? t[0] : t[e + 1] : e >= t.length - 1 ? t[t.length - 1] : t[e + 1]
- }, o.previousItem = function(t, e, n) {
- return n ? e <= 0 ? t[t.length - 1] : t[e - 1] : e <= 0 ? t[0] : t[e - 1]
- }, o.niceNum = function(t, e) {
- var n = Math.floor(o.log10(t)),
- r = t / Math.pow(10, n);
- return (e ? r < 1.5 ? 1 : r < 3 ? 2 : r < 7 ? 5 : 10 : r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10) * Math.pow(10, n)
- }, o.requestAnimFrame = "undefined" == typeof window ? function(t) {
- t()
- } : window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t) {
- return window.setTimeout(t, 1e3 / 60)
- }, o.getRelativePosition = function(t, e) {
- var n, r, i = t.originalEvent || t,
- a = t.target || t.srcElement,
- s = a.getBoundingClientRect(),
- l = i.touches;
- l && l.length > 0 ? (n = l[0].clientX, r = l[0].clientY) : (n = i.clientX, r = i.clientY);
- var u = parseFloat(o.getStyle(a, "padding-left")),
- c = parseFloat(o.getStyle(a, "padding-top")),
- d = parseFloat(o.getStyle(a, "padding-right")),
- f = parseFloat(o.getStyle(a, "padding-bottom")),
- h = s.right - s.left - u - d,
- p = s.bottom - s.top - c - f;
- return {
- x: n = Math.round((n - s.left - u) / h * a.width / e.currentDevicePixelRatio),
- y: r = Math.round((r - s.top - c) / p * a.height / e.currentDevicePixelRatio)
- }
- }, o.getConstraintWidth = function(t) {
- return n(t, "max-width", "clientWidth")
- }, o.getConstraintHeight = function(t) {
- return n(t, "max-height", "clientHeight")
- }, o._calculatePadding = function(t, e, n) {
- return (e = o.getStyle(t, e)).indexOf("%") > -1 ? n / parseInt(e, 10) : parseInt(e, 10)
- }, o._getParentNode = function(t) {
- var e = t.parentNode;
- return e && e.host && (e = e.host), e
- }, o.getMaximumWidth = function(t) {
- var e = o._getParentNode(t);
- if (!e) return t.clientWidth;
- var n = e.clientWidth,
- r = n - o._calculatePadding(e, "padding-left", n) - o._calculatePadding(e, "padding-right", n),
- i = o.getConstraintWidth(t);
- return isNaN(i) ? r : Math.min(r, i)
- }, o.getMaximumHeight = function(t) {
- var e = o._getParentNode(t);
- if (!e) return t.clientHeight;
- var n = e.clientHeight,
- r = n - o._calculatePadding(e, "padding-top", n) - o._calculatePadding(e, "padding-bottom", n),
- i = o.getConstraintHeight(t);
- return isNaN(i) ? r : Math.min(r, i)
- }, o.getStyle = function(t, e) {
- return t.currentStyle ? t.currentStyle[e] : document.defaultView.getComputedStyle(t, null).getPropertyValue(e)
- }, o.retinaScale = function(t, e) {
- var n = t.currentDevicePixelRatio = e || "undefined" != typeof window && window.devicePixelRatio || 1;
- if (1 !== n) {
- var r = t.canvas,
- i = t.height,
- o = t.width;
- r.height = i * n, r.width = o * n, t.ctx.scale(n, n), r.style.height || r.style.width || (r.style.height = i + "px", r.style.width = o + "px")
- }
- }, o.fontString = function(t, e, n) {
- return e + " " + t + "px " + n
- }, o.longestText = function(t, e, n, r) {
- var i = (r = r || {}).data = r.data || {},
- a = r.garbageCollect = r.garbageCollect || [];
- r.font !== e && (i = r.data = {}, a = r.garbageCollect = [], r.font = e), t.font = e;
- var s = 0;
- o.each(n, (function(e) {
- null != e && !0 !== o.isArray(e) ? s = o.measureText(t, i, a, s, e) : o.isArray(e) && o.each(e, (function(e) {
- null == e || o.isArray(e) || (s = o.measureText(t, i, a, s, e))
- }))
- }));
- var l = a.length / 2;
- if (l > n.length) {
- for (var u = 0; u < l; u++) delete i[a[u]];
- a.splice(0, l)
- }
- return s
- }, o.measureText = function(t, e, n, r, i) {
- var o = e[i];
- return o || (o = e[i] = t.measureText(i).width, n.push(i)), o > r && (r = o), r
- }, o.numberOfLabelLines = function(t) {
- var e = 1;
- return o.each(t, (function(t) {
- o.isArray(t) && t.length > e && (e = t.length)
- })), e
- }, o.color = r ? function(t) {
- return t instanceof CanvasGradient && (t = i.global.defaultColor), r(t)
- } : function(t) {
- return console.error("Color.js not found!"), t
- }, o.getHoverColor = function(t) {
- return t instanceof CanvasPattern ? t : o.color(t).saturate(.5).darken(.1).rgbString()
- }
- }
- }, {
- 26: 26,
- 3: 3,
- 34: 34,
- 46: 46
- }],
- 29: [function(t, e, n) {
- var r = t(46);
- function i(t, e) {
- return t.native ? {
- x: t.x,
- y: t.y
- } : r.getRelativePosition(t, e)
- }
- function o(t, e) {
- var n, r, i, o, a;
- for (r = 0, o = t.data.datasets.length; r < o; ++r)
- if (t.isDatasetVisible(r))
- for (i = 0, a = (n = t.getDatasetMeta(r)).data.length; i < a; ++i) {
- var s = n.data[i];
- s._view.skip || e(s)
- }
- }
- function a(t, e) {
- var n = [];
- return o(t, (function(t) {
- t.inRange(e.x, e.y) && n.push(t)
- })), n
- }
- function s(t, e, n, r) {
- var i = Number.POSITIVE_INFINITY,
- a = [];
- return o(t, (function(t) {
- if (!n || t.inRange(e.x, e.y)) {
- var o = t.getCenterPoint(),
- s = r(e, o);
- s < i ? (a = [t], i = s) : s === i && a.push(t)
- }
- })), a
- }
- function l(t) {
- var e = -1 !== t.indexOf("x"),
- n = -1 !== t.indexOf("y");
- return function(t, r) {
- var i = e ? Math.abs(t.x - r.x) : 0,
- o = n ? Math.abs(t.y - r.y) : 0;
- return Math.sqrt(Math.pow(i, 2) + Math.pow(o, 2))
- }
- }
- function u(t, e, n) {
- var r = i(e, t);
- n.axis = n.axis || "x";
- var o = l(n.axis),
- u = n.intersect ? a(t, r) : s(t, r, !1, o),
- c = [];
- return u.length ? (t.data.datasets.forEach((function(e, n) {
- if (t.isDatasetVisible(n)) {
- var r = t.getDatasetMeta(n).data[u[0]._index];
- r && !r._view.skip && c.push(r)
- }
- })), c) : []
- }
- e.exports = {
- modes: {
- single: function(t, e) {
- var n = i(e, t),
- r = [];
- return o(t, (function(t) {
- if (t.inRange(n.x, n.y)) return r.push(t), r
- })), r.slice(0, 1)
- },
- label: u,
- index: u,
- dataset: function(t, e, n) {
- var r = i(e, t);
- n.axis = n.axis || "xy";
- var o = l(n.axis),
- u = n.intersect ? a(t, r) : s(t, r, !1, o);
- return u.length > 0 && (u = t.getDatasetMeta(u[0]._datasetIndex).data), u
- },
- "x-axis": function(t, e) {
- return u(t, e, {
- intersect: !1
- })
- },
- point: function(t, e) {
- return a(t, i(e, t))
- },
- nearest: function(t, e, n) {
- var r = i(e, t);
- n.axis = n.axis || "xy";
- var o = l(n.axis),
- a = s(t, r, n.intersect, o);
- return a.length > 1 && a.sort((function(t, e) {
- var n = t.getArea() - e.getArea();
- return 0 === n && (n = t._datasetIndex - e._datasetIndex), n
- })), a.slice(0, 1)
- },
- x: function(t, e, n) {
- var r = i(e, t),
- a = [],
- s = !1;
- return o(t, (function(t) {
- t.inXRange(r.x) && a.push(t), t.inRange(r.x, r.y) && (s = !0)
- })), n.intersect && !s && (a = []), a
- },
- y: function(t, e, n) {
- var r = i(e, t),
- a = [],
- s = !1;
- return o(t, (function(t) {
- t.inYRange(r.y) && a.push(t), t.inRange(r.x, r.y) && (s = !0)
- })), n.intersect && !s && (a = []), a
- }
- }
- }
- }, {
- 46: 46
- }],
- 30: [function(t, e, n) {
- t(26)._set("global", {
- responsive: !0,
- responsiveAnimationDuration: 0,
- maintainAspectRatio: !0,
- events: ["mousemove", "mouseout", "click", "touchstart", "touchmove"],
- hover: {
- onHover: null,
- mode: "nearest",
- intersect: !0,
- animationDuration: 400
- },
- onClick: null,
- defaultColor: "rgba(0,0,0,0.1)",
- defaultFontColor: "#666",
- defaultFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
- defaultFontSize: 12,
- defaultFontStyle: "normal",
- showLines: !0,
- elements: {},
- layout: {
- padding: {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0
- }
- }
- }), e.exports = function() {
- var t = function(t, e) {
- return this.construct(t, e), this
- };
- return t.Chart = t, t
- }
- }, {
- 26: 26
- }],
- 31: [function(t, e, n) {
- var r = t(46);
- function i(t, e) {
- return r.where(t, (function(t) {
- return t.position === e
- }))
- }
- function o(t, e) {
- t.forEach((function(t, e) {
- return t._tmpIndex_ = e, t
- })), t.sort((function(t, n) {
- var r = e ? n : t,
- i = e ? t : n;
- return r.weight === i.weight ? r._tmpIndex_ - i._tmpIndex_ : r.weight - i.weight
- })), t.forEach((function(t) {
- delete t._tmpIndex_
- }))
- }
- e.exports = {
- defaults: {},
- addBox: function(t, e) {
- t.boxes || (t.boxes = []), e.fullWidth = e.fullWidth || !1, e.position = e.position || "top", e.weight = e.weight || 0, t.boxes.push(e)
- },
- removeBox: function(t, e) {
- var n = t.boxes ? t.boxes.indexOf(e) : -1; - 1 !== n && t.boxes.splice(n, 1)
- },
- configure: function(t, e, n) {
- for (var r, i = ["fullWidth", "position", "weight"], o = i.length, a = 0; a < o; ++a) r = i[a], n.hasOwnProperty(r) && (e[r] = n[r])
- },
- update: function(t, e, n) {
- if (t) {
- var a = t.options.layout || {},
- s = r.options.toPadding(a.padding),
- l = s.left,
- u = s.right,
- c = s.top,
- d = s.bottom,
- f = i(t.boxes, "left"),
- h = i(t.boxes, "right"),
- p = i(t.boxes, "top"),
- g = i(t.boxes, "bottom"),
- v = i(t.boxes, "chartArea");
- o(f, !0), o(h, !1), o(p, !0), o(g, !1);
- var m = e - l - u,
- y = n - c - d,
- b = y / 2,
- x = (e - m / 2) / (f.length + h.length),
- w = (n - b) / (p.length + g.length),
- S = m,
- k = y,
- C = [];
- r.each(f.concat(h, p, g), (function(t) {
- var e, n = t.isHorizontal();
- n ? (e = t.update(t.fullWidth ? m : S, w), k -= e.height) : (e = t.update(x, k), S -= e.width), C.push({
- horizontal: n,
- minSize: e,
- box: t
- })
- }));
- var M = 0,
- A = 0,
- P = 0,
- _ = 0;
- r.each(p.concat(g), (function(t) {
- if (t.getPadding) {
- var e = t.getPadding();
- M = Math.max(M, e.left), A = Math.max(A, e.right)
- }
- })), r.each(f.concat(h), (function(t) {
- if (t.getPadding) {
- var e = t.getPadding();
- P = Math.max(P, e.top), _ = Math.max(_, e.bottom)
- }
- }));
- var T = l,
- I = u,
- O = c,
- F = d;
- r.each(f.concat(h), z), r.each(f, (function(t) {
- T += t.width
- })), r.each(h, (function(t) {
- I += t.width
- })), r.each(p.concat(g), z), r.each(p, (function(t) {
- O += t.height
- })), r.each(g, (function(t) {
- F += t.height
- })), r.each(f.concat(h), (function(t) {
- var e = r.findNextWhere(C, (function(e) {
- return e.box === t
- })),
- n = {
- left: 0,
- right: 0,
- top: O,
- bottom: F
- };
- e && t.update(e.minSize.width, k, n)
- })), T = l, I = u, O = c, F = d, r.each(f, (function(t) {
- T += t.width
- })), r.each(h, (function(t) {
- I += t.width
- })), r.each(p, (function(t) {
- O += t.height
- })), r.each(g, (function(t) {
- F += t.height
- }));
- var D = Math.max(M - T, 0);
- T += D, I += Math.max(A - I, 0);
- var E = Math.max(P - O, 0);
- O += E, F += Math.max(_ - F, 0);
- var L = n - O - F,
- R = e - T - I;
- R === S && L === k || (r.each(f, (function(t) {
- t.height = L
- })), r.each(h, (function(t) {
- t.height = L
- })), r.each(p, (function(t) {
- t.fullWidth || (t.width = R)
- })), r.each(g, (function(t) {
- t.fullWidth || (t.width = R)
- })), k = L, S = R);
- var N = l + D,
- V = c + E;
- r.each(f.concat(p), B), N += S, V += k, r.each(h, B), r.each(g, B), t.chartArea = {
- left: T,
- top: O,
- right: T + S,
- bottom: O + k
- }, r.each(v, (function(e) {
- e.left = t.chartArea.left, e.top = t.chartArea.top, e.right = t.chartArea.right, e.bottom = t.chartArea.bottom, e.update(S, k)
- }))
- }
- function z(t) {
- var e = r.findNextWhere(C, (function(e) {
- return e.box === t
- }));
- if (e)
- if (t.isHorizontal()) {
- var n = {
- left: Math.max(T, M),
- right: Math.max(I, A),
- top: 0,
- bottom: 0
- };
- t.update(t.fullWidth ? m : S, y / 2, n)
- } else t.update(e.minSize.width, k)
- }
- function B(t) {
- t.isHorizontal() ? (t.left = t.fullWidth ? l : T, t.right = t.fullWidth ? e - u : T + S, t.top = V, t.bottom = V + t.height, V = t.bottom) : (t.left = N, t.right = N + t.width, t.top = O, t.bottom = O + k, N = t.right)
- }
- }
- }
- }, {
- 46: 46
- }],
- 32: [function(t, e, n) {
- var r = t(26),
- i = t(46);
- r._set("global", {
- plugins: {}
- }), e.exports = {
- _plugins: [],
- _cacheId: 0,
- register: function(t) {
- var e = this._plugins;
- [].concat(t).forEach((function(t) {
- -1 === e.indexOf(t) && e.push(t)
- })), this._cacheId++
- },
- unregister: function(t) {
- var e = this._plugins;
- [].concat(t).forEach((function(t) {
- var n = e.indexOf(t); - 1 !== n && e.splice(n, 1)
- })), this._cacheId++
- },
- clear: function() {
- this._plugins = [], this._cacheId++
- },
- count: function() {
- return this._plugins.length
- },
- getAll: function() {
- return this._plugins
- },
- notify: function(t, e, n) {
- var r, i, o, a, s, l = this.descriptors(t),
- u = l.length;
- for (r = 0; r < u; ++r)
- if ("function" == typeof(s = (o = (i = l[r]).plugin)[e]) && ((a = [t].concat(n || [])).push(i.options), !1 === s.apply(o, a))) return !1;
- return !0
- },
- descriptors: function(t) {
- var e = t.$plugins || (t.$plugins = {});
- if (e.id === this._cacheId) return e.descriptors;
- var n = [],
- o = [],
- a = t && t.config || {},
- s = a.options && a.options.plugins || {};
- return this._plugins.concat(a.plugins || []).forEach((function(t) {
- if (-1 === n.indexOf(t)) {
- var e = t.id,
- a = s[e];
- !1 !== a && (!0 === a && (a = i.clone(r.global.plugins[e])), n.push(t), o.push({
- plugin: t,
- options: a || {}
- }))
- }
- })), e.descriptors = o, e.id = this._cacheId, o
- },
- _invalidate: function(t) {
- delete t.$plugins
- }
- }
- }, {
- 26: 26,
- 46: 46
- }],
- 33: [function(t, e, n) {
- var r = t(26),
- i = t(27),
- o = t(46),
- a = t(35);
- function s(t) {
- var e, n, r = [];
- for (e = 0, n = t.length; e < n; ++e) r.push(t[e].label);
- return r
- }
- function l(t, e, n) {
- var r = t.getPixelForTick(e);
- return n && (r -= 0 === e ? (t.getPixelForTick(1) - r) / 2 : (r - t.getPixelForTick(e - 1)) / 2), r
- }
- function u(t, e, n) {
- return o.isArray(e) ? o.longestText(t, n, e) : t.measureText(e).width
- }
- function c(t) {
- var e = o.valueOrDefault,
- n = r.global,
- i = e(t.fontSize, n.defaultFontSize),
- a = e(t.fontStyle, n.defaultFontStyle),
- s = e(t.fontFamily, n.defaultFontFamily);
- return {
- size: i,
- style: a,
- family: s,
- font: o.fontString(i, a, s)
- }
- }
- function d(t) {
- return o.options.toLineHeight(o.valueOrDefault(t.lineHeight, 1.2), o.valueOrDefault(t.fontSize, r.global.defaultFontSize))
- }
- r._set("scale", {
- display: !0,
- position: "left",
- offset: !1,
- gridLines: {
- display: !0,
- color: "rgba(0, 0, 0, 0.1)",
- lineWidth: 1,
- drawBorder: !0,
- drawOnChartArea: !0,
- drawTicks: !0,
- tickMarkLength: 10,
- zeroLineWidth: 1,
- zeroLineColor: "rgba(0,0,0,0.25)",
- zeroLineBorderDash: [],
- zeroLineBorderDashOffset: 0,
- offsetGridLines: !1,
- borderDash: [],
- borderDashOffset: 0
- },
- scaleLabel: {
- display: !1,
- labelString: "",
- lineHeight: 1.2,
- padding: {
- top: 4,
- bottom: 4
- }
- },
- ticks: {
- beginAtZero: !1,
- minRotation: 0,
- maxRotation: 50,
- mirror: !1,
- padding: 0,
- reverse: !1,
- display: !0,
- autoSkip: !0,
- autoSkipPadding: 0,
- labelOffset: 0,
- callback: a.formatters.values,
- minor: {},
- major: {}
- }
- }), e.exports = i.extend({
- getPadding: function() {
- return {
- left: this.paddingLeft || 0,
- top: this.paddingTop || 0,
- right: this.paddingRight || 0,
- bottom: this.paddingBottom || 0
- }
- },
- getTicks: function() {
- return this._ticks
- },
- mergeTicksOptions: function() {
- var t = this.options.ticks;
- for (var e in !1 === t.minor && (t.minor = {
- display: !1
- }), !1 === t.major && (t.major = {
- display: !1
- }), t) "major" !== e && "minor" !== e && (void 0 === t.minor[e] && (t.minor[e] = t[e]), void 0 === t.major[e] && (t.major[e] = t[e]))
- },
- beforeUpdate: function() {
- o.callback(this.options.beforeUpdate, [this])
- },
- update: function(t, e, n) {
- var r, i, a, s, l, u, c = this;
- for (c.beforeUpdate(), c.maxWidth = t, c.maxHeight = e, c.margins = o.extend({
- left: 0,
- right: 0,
- top: 0,
- bottom: 0
- }, n), c.longestTextCache = c.longestTextCache || {}, c.beforeSetDimensions(), c.setDimensions(), c.afterSetDimensions(), c.beforeDataLimits(), c.determineDataLimits(), c.afterDataLimits(), c.beforeBuildTicks(), l = c.buildTicks() || [], c.afterBuildTicks(), c.beforeTickToLabelConversion(), a = c.convertTicksToLabels(l) || c.ticks, c.afterTickToLabelConversion(), c.ticks = a, r = 0, i = a.length; r < i; ++r) s = a[r], (u = l[r]) ? u.label = s : l.push(u = {
- label: s,
- major: !1
- });
- return c._ticks = l, c.beforeCalculateTickRotation(), c.calculateTickRotation(), c.afterCalculateTickRotation(), c.beforeFit(), c.fit(), c.afterFit(), c.afterUpdate(), c.minSize
- },
- afterUpdate: function() {
- o.callback(this.options.afterUpdate, [this])
- },
- beforeSetDimensions: function() {
- o.callback(this.options.beforeSetDimensions, [this])
- },
- setDimensions: function() {
- var t = this;
- t.isHorizontal() ? (t.width = t.maxWidth, t.left = 0, t.right = t.width) : (t.height = t.maxHeight, t.top = 0, t.bottom = t.height), t.paddingLeft = 0, t.paddingTop = 0, t.paddingRight = 0, t.paddingBottom = 0
- },
- afterSetDimensions: function() {
- o.callback(this.options.afterSetDimensions, [this])
- },
- beforeDataLimits: function() {
- o.callback(this.options.beforeDataLimits, [this])
- },
- determineDataLimits: o.noop,
- afterDataLimits: function() {
- o.callback(this.options.afterDataLimits, [this])
- },
- beforeBuildTicks: function() {
- o.callback(this.options.beforeBuildTicks, [this])
- },
- buildTicks: o.noop,
- afterBuildTicks: function() {
- o.callback(this.options.afterBuildTicks, [this])
- },
- beforeTickToLabelConversion: function() {
- o.callback(this.options.beforeTickToLabelConversion, [this])
- },
- convertTicksToLabels: function() {
- var t = this.options.ticks;
- this.ticks = this.ticks.map(t.userCallback || t.callback, this)
- },
- afterTickToLabelConversion: function() {
- o.callback(this.options.afterTickToLabelConversion, [this])
- },
- beforeCalculateTickRotation: function() {
- o.callback(this.options.beforeCalculateTickRotation, [this])
- },
- calculateTickRotation: function() {
- var t = this,
- e = t.ctx,
- n = t.options.ticks,
- r = s(t._ticks),
- i = c(n);
- e.font = i.font;
- var a = n.minRotation || 0;
- if (r.length && t.options.display && t.isHorizontal())
- for (var l, u = o.longestText(e, i.font, r, t.longestTextCache), d = u, f = t.getPixelForTick(1) - t.getPixelForTick(0) - 6; d > f && a < n.maxRotation;) {
- var h = o.toRadians(a);
- if (l = Math.cos(h), Math.sin(h) * u > t.maxHeight) {
- a--;
- break
- }
- a++, d = l * u
- }
- t.labelRotation = a
- },
- afterCalculateTickRotation: function() {
- o.callback(this.options.afterCalculateTickRotation, [this])
- },
- beforeFit: function() {
- o.callback(this.options.beforeFit, [this])
- },
- fit: function() {
- var t = this,
- e = t.minSize = {
- width: 0,
- height: 0
- },
- n = s(t._ticks),
- r = t.options,
- i = r.ticks,
- a = r.scaleLabel,
- l = r.gridLines,
- f = r.display,
- h = t.isHorizontal(),
- p = c(i),
- g = r.gridLines.tickMarkLength;
- if (e.width = h ? t.isFullWidth() ? t.maxWidth - t.margins.left - t.margins.right : t.maxWidth : f && l.drawTicks ? g : 0, e.height = h ? f && l.drawTicks ? g : 0 : t.maxHeight, a.display && f) {
- var v = d(a) + o.options.toPadding(a.padding).height;
- h ? e.height += v : e.width += v
- }
- if (i.display && f) {
- var m = o.longestText(t.ctx, p.font, n, t.longestTextCache),
- y = o.numberOfLabelLines(n),
- b = .5 * p.size,
- x = t.options.ticks.padding;
- if (h) {
- t.longestLabelWidth = m;
- var w = o.toRadians(t.labelRotation),
- S = Math.cos(w),
- k = Math.sin(w) * m + p.size * y + b * (y - 1) + b;
- e.height = Math.min(t.maxHeight, e.height + k + x), t.ctx.font = p.font;
- var C = u(t.ctx, n[0], p.font),
- M = u(t.ctx, n[n.length - 1], p.font);
- 0 !== t.labelRotation ? (t.paddingLeft = "bottom" === r.position ? S * C + 3 : S * b + 3, t.paddingRight = "bottom" === r.position ? S * b + 3 : S * M + 3) : (t.paddingLeft = C / 2 + 3, t.paddingRight = M / 2 + 3)
- } else i.mirror ? m = 0 : m += x + b, e.width = Math.min(t.maxWidth, e.width + m), t.paddingTop = p.size / 2, t.paddingBottom = p.size / 2
- }
- t.handleMargins(), t.width = e.width, t.height = e.height
- },
- handleMargins: function() {
- var t = this;
- t.margins && (t.paddingLeft = Math.max(t.paddingLeft - t.margins.left, 0), t.paddingTop = Math.max(t.paddingTop - t.margins.top, 0), t.paddingRight = Math.max(t.paddingRight - t.margins.right, 0), t.paddingBottom = Math.max(t.paddingBottom - t.margins.bottom, 0))
- },
- afterFit: function() {
- o.callback(this.options.afterFit, [this])
- },
- isHorizontal: function() {
- return "top" === this.options.position || "bottom" === this.options.position
- },
- isFullWidth: function() {
- return this.options.fullWidth
- },
- getRightValue: function(t) {
- if (o.isNullOrUndef(t)) return NaN;
- if ("number" == typeof t && !isFinite(t)) return NaN;
- if (t)
- if (this.isHorizontal()) {
- if (void 0 !== t.x) return this.getRightValue(t.x)
- } else if (void 0 !== t.y) return this.getRightValue(t.y);
- return t
- },
- getLabelForIndex: o.noop,
- getPixelForValue: o.noop,
- getValueForPixel: o.noop,
- getPixelForTick: function(t) {
- var e = this,
- n = e.options.offset;
- if (e.isHorizontal()) {
- var r = (e.width - (e.paddingLeft + e.paddingRight)) / Math.max(e._ticks.length - (n ? 0 : 1), 1),
- i = r * t + e.paddingLeft;
- n && (i += r / 2);
- var o = e.left + Math.round(i);
- return o += e.isFullWidth() ? e.margins.left : 0
- }
- var a = e.height - (e.paddingTop + e.paddingBottom);
- return e.top + t * (a / (e._ticks.length - 1))
- },
- getPixelForDecimal: function(t) {
- var e = this;
- if (e.isHorizontal()) {
- var n = (e.width - (e.paddingLeft + e.paddingRight)) * t + e.paddingLeft,
- r = e.left + Math.round(n);
- return r += e.isFullWidth() ? e.margins.left : 0
- }
- return e.top + t * e.height
- },
- getBasePixel: function() {
- return this.getPixelForValue(this.getBaseValue())
- },
- getBaseValue: function() {
- var t = this.min,
- e = this.max;
- return this.beginAtZero ? 0 : t < 0 && e < 0 ? e : t > 0 && e > 0 ? t : 0
- },
- _autoSkip: function(t) {
- var e, n, r, i, a = this,
- s = a.isHorizontal(),
- l = a.options.ticks.minor,
- u = t.length,
- c = o.toRadians(a.labelRotation),
- d = Math.cos(c),
- f = a.longestLabelWidth * d,
- h = [];
- for (l.maxTicksLimit && (i = l.maxTicksLimit), s && (e = !1, (f + l.autoSkipPadding) * u > a.width - (a.paddingLeft + a.paddingRight) && (e = 1 + Math.floor((f + l.autoSkipPadding) * u / (a.width - (a.paddingLeft + a.paddingRight)))), i && u > i && (e = Math.max(e, Math.floor(u / i)))), n = 0; n < u; n++) r = t[n], (e > 1 && n % e > 0 || n % e == 0 && n + e >= u) && n !== u - 1 && delete r.label, h.push(r);
- return h
- },
- draw: function(t) {
- var e = this,
- n = e.options;
- if (n.display) {
- var i = e.ctx,
- a = r.global,
- s = n.ticks.minor,
- u = n.ticks.major || s,
- f = n.gridLines,
- h = n.scaleLabel,
- p = 0 !== e.labelRotation,
- g = e.isHorizontal(),
- v = s.autoSkip ? e._autoSkip(e.getTicks()) : e.getTicks(),
- m = o.valueOrDefault(s.fontColor, a.defaultFontColor),
- y = c(s),
- b = o.valueOrDefault(u.fontColor, a.defaultFontColor),
- x = c(u),
- w = f.drawTicks ? f.tickMarkLength : 0,
- S = o.valueOrDefault(h.fontColor, a.defaultFontColor),
- k = c(h),
- C = o.options.toPadding(h.padding),
- M = o.toRadians(e.labelRotation),
- A = [],
- P = e.options.gridLines.lineWidth,
- _ = "right" === n.position ? e.left : e.right - P - w,
- T = "right" === n.position ? e.left + w : e.right,
- I = "bottom" === n.position ? e.top + P : e.bottom - w - P,
- O = "bottom" === n.position ? e.top + P + w : e.bottom + P;
- if (o.each(v, (function(r, i) {
- if (!o.isNullOrUndef(r.label)) {
- var u, c, d, h, m, y, b, x, S, k, C, F, D, E, L = r.label;
- i === e.zeroLineIndex && n.offset === f.offsetGridLines ? (u = f.zeroLineWidth, c = f.zeroLineColor, d = f.zeroLineBorderDash, h = f.zeroLineBorderDashOffset) : (u = o.valueAtIndexOrDefault(f.lineWidth, i), c = o.valueAtIndexOrDefault(f.color, i), d = o.valueOrDefault(f.borderDash, a.borderDash), h = o.valueOrDefault(f.borderDashOffset, a.borderDashOffset));
- var R = "middle",
- N = "middle",
- V = s.padding;
- if (g) {
- var z = w + V;
- "bottom" === n.position ? (N = p ? "middle" : "top", R = p ? "right" : "center", E = e.top + z) : (N = p ? "middle" : "bottom", R = p ? "left" : "center", E = e.bottom - z);
- var B = l(e, i, f.offsetGridLines && v.length > 1);
- B < e.left && (c = "rgba(0,0,0,0)"), B += o.aliasPixel(u), D = e.getPixelForTick(i) + s.labelOffset, m = b = S = C = B, y = I, x = O, k = t.top, F = t.bottom + P
- } else {
- var W, j = "left" === n.position;
- s.mirror ? (R = j ? "left" : "right", W = V) : (R = j ? "right" : "left", W = w + V), D = j ? e.right - W : e.left + W;
- var H = l(e, i, f.offsetGridLines && v.length > 1);
- H < e.top && (c = "rgba(0,0,0,0)"), H += o.aliasPixel(u), E = e.getPixelForTick(i) + s.labelOffset, m = _, b = T, S = t.left, C = t.right + P, y = x = k = F = H
- }
- A.push({
- tx1: m,
- ty1: y,
- tx2: b,
- ty2: x,
- x1: S,
- y1: k,
- x2: C,
- y2: F,
- labelX: D,
- labelY: E,
- glWidth: u,
- glColor: c,
- glBorderDash: d,
- glBorderDashOffset: h,
- rotation: -1 * M,
- label: L,
- major: r.major,
- textBaseline: N,
- textAlign: R
- })
- }
- })), o.each(A, (function(t) {
- if (f.display && (i.save(), i.lineWidth = t.glWidth, i.strokeStyle = t.glColor, i.setLineDash && (i.setLineDash(t.glBorderDash), i.lineDashOffset = t.glBorderDashOffset), i.beginPath(), f.drawTicks && (i.moveTo(t.tx1, t.ty1), i.lineTo(t.tx2, t.ty2)), f.drawOnChartArea && (i.moveTo(t.x1, t.y1), i.lineTo(t.x2, t.y2)), i.stroke(), i.restore()), s.display) {
- i.save(), i.translate(t.labelX, t.labelY), i.rotate(t.rotation), i.font = t.major ? x.font : y.font, i.fillStyle = t.major ? b : m, i.textBaseline = t.textBaseline, i.textAlign = t.textAlign;
- var n = t.label;
- if (o.isArray(n))
- for (var r = n.length, a = 1.5 * y.size, l = e.isHorizontal() ? 0 : -a * (r - 1) / 2, u = 0; u < r; ++u) i.fillText("" + n[u], 0, l), l += a;
- else i.fillText(n, 0, 0);
- i.restore()
- }
- })), h.display) {
- var F, D, E = 0,
- L = d(h) / 2;
- if (g) F = e.left + (e.right - e.left) / 2, D = "bottom" === n.position ? e.bottom - L - C.bottom : e.top + L + C.top;
- else {
- var R = "left" === n.position;
- F = R ? e.left + L + C.top : e.right - L - C.top, D = e.top + (e.bottom - e.top) / 2, E = R ? -.5 * Math.PI : .5 * Math.PI
- }
- i.save(), i.translate(F, D), i.rotate(E), i.textAlign = "center", i.textBaseline = "middle", i.fillStyle = S, i.font = k.font, i.fillText(h.labelString, 0, 0), i.restore()
- }
- if (f.drawBorder) {
- i.lineWidth = o.valueAtIndexOrDefault(f.lineWidth, 0), i.strokeStyle = o.valueAtIndexOrDefault(f.color, 0);
- var N = e.left,
- V = e.right + P,
- z = e.top,
- B = e.bottom + P,
- W = o.aliasPixel(i.lineWidth);
- g ? (z = B = "top" === n.position ? e.bottom : e.top, z += W, B += W) : (N = V = "left" === n.position ? e.right : e.left, N += W, V += W), i.beginPath(), i.moveTo(N, z), i.lineTo(V, B), i.stroke()
- }
- }
- }
- })
- }, {
- 26: 26,
- 27: 27,
- 35: 35,
- 46: 46
- }],
- 34: [function(t, e, n) {
- var r = t(26),
- i = t(46),
- o = t(31);
- e.exports = {
- constructors: {},
- defaults: {},
- registerScaleType: function(t, e, n) {
- this.constructors[t] = e, this.defaults[t] = i.clone(n)
- },
- getScaleConstructor: function(t) {
- return this.constructors.hasOwnProperty(t) ? this.constructors[t] : void 0
- },
- getScaleDefaults: function(t) {
- return this.defaults.hasOwnProperty(t) ? i.merge({}, [r.scale, this.defaults[t]]) : {}
- },
- updateScaleDefaults: function(t, e) {
- this.defaults.hasOwnProperty(t) && (this.defaults[t] = i.extend(this.defaults[t], e))
- },
- addScalesToLayout: function(t) {
- i.each(t.scales, (function(e) {
- e.fullWidth = e.options.fullWidth, e.position = e.options.position, e.weight = e.options.weight, o.addBox(t, e)
- }))
- }
- }
- }, {
- 26: 26,
- 31: 31,
- 46: 46
- }],
- 35: [function(t, e, n) {
- var r = t(46);
- e.exports = {
- formatters: {
- values: function(t) {
- return r.isArray(t) ? t : "" + t
- },
- linear: function(t, e, n) {
- var i = n.length > 3 ? n[2] - n[1] : n[1] - n[0];
- Math.abs(i) > 1 && t !== Math.floor(t) && (i = t - Math.floor(t));
- var o = r.log10(Math.abs(i)),
- a = "";
- if (0 !== t)
- if (Math.max(Math.abs(n[0]), Math.abs(n[n.length - 1])) < 1e-4) {
- var s = r.log10(Math.abs(t));
- a = t.toExponential(Math.floor(s) - Math.floor(o))
- } else {
- var l = -1 * Math.floor(o);
- l = Math.max(Math.min(l, 20), 0), a = t.toFixed(l)
- }
- else a = "0";
- return a
- },
- logarithmic: function(t, e, n) {
- var i = t / Math.pow(10, Math.floor(r.log10(t)));
- return 0 === t ? "0" : 1 === i || 2 === i || 5 === i || 0 === e || e === n.length - 1 ? t.toExponential() : ""
- }
- }
- }
- }, {
- 46: 46
- }],
- 36: [function(t, e, n) {
- var r = t(26),
- i = t(27),
- o = t(46);
- r._set("global", {
- tooltips: {
- enabled: !0,
- custom: null,
- mode: "nearest",
- position: "average",
- intersect: !0,
- backgroundColor: "rgba(0,0,0,0.8)",
- titleFontStyle: "bold",
- titleSpacing: 2,
- titleMarginBottom: 6,
- titleFontColor: "#fff",
- titleAlign: "left",
- bodySpacing: 2,
- bodyFontColor: "#fff",
- bodyAlign: "left",
- footerFontStyle: "bold",
- footerSpacing: 2,
- footerMarginTop: 6,
- footerFontColor: "#fff",
- footerAlign: "left",
- yPadding: 6,
- xPadding: 6,
- caretPadding: 2,
- caretSize: 5,
- cornerRadius: 6,
- multiKeyBackground: "#fff",
- displayColors: !0,
- borderColor: "rgba(0,0,0,0)",
- borderWidth: 0,
- callbacks: {
- beforeTitle: o.noop,
- title: function(t, e) {
- var n = "",
- r = e.labels,
- i = r ? r.length : 0;
- if (t.length > 0) {
- var o = t[0];
- o.xLabel ? n = o.xLabel : i > 0 && o.index < i && (n = r[o.index])
- }
- return n
- },
- afterTitle: o.noop,
- beforeBody: o.noop,
- beforeLabel: o.noop,
- label: function(t, e) {
- var n = e.datasets[t.datasetIndex].label || "";
- return n && (n += ": "), n += t.yLabel, n
- },
- labelColor: function(t, e) {
- var n = e.getDatasetMeta(t.datasetIndex).data[t.index]._view;
- return {
- borderColor: n.borderColor,
- backgroundColor: n.backgroundColor
- }
- },
- labelTextColor: function() {
- return this._options.bodyFontColor
- },
- afterLabel: o.noop,
- afterBody: o.noop,
- beforeFooter: o.noop,
- footer: o.noop,
- afterFooter: o.noop
- }
- }
- });
- var a = {
- average: function(t) {
- if (!t.length) return !1;
- var e, n, r = 0,
- i = 0,
- o = 0;
- for (e = 0, n = t.length; e < n; ++e) {
- var a = t[e];
- if (a && a.hasValue()) {
- var s = a.tooltipPosition();
- r += s.x, i += s.y, ++o
- }
- }
- return {
- x: Math.round(r / o),
- y: Math.round(i / o)
- }
- },
- nearest: function(t, e) {
- var n, r, i, a = e.x,
- s = e.y,
- l = Number.POSITIVE_INFINITY;
- for (n = 0, r = t.length; n < r; ++n) {
- var u = t[n];
- if (u && u.hasValue()) {
- var c = u.getCenterPoint(),
- d = o.distanceBetweenPoints(e, c);
- d < l && (l = d, i = u)
- }
- }
- if (i) {
- var f = i.tooltipPosition();
- a = f.x, s = f.y
- }
- return {
- x: a,
- y: s
- }
- }
- };
- function s(t, e) {
- var n = o.color(t);
- return n.alpha(e * n.alpha()).rgbaString()
- }
- function l(t, e) {
- return e && (o.isArray(e) ? Array.prototype.push.apply(t, e) : t.push(e)), t
- }
- function u(t) {
- return ("string" == typeof t || t instanceof String) && t.indexOf("\n") > -1 ? t.split("\n") : t
- }
- function c(t) {
- var e = r.global,
- n = o.valueOrDefault;
- return {
- xPadding: t.xPadding,
- yPadding: t.yPadding,
- xAlign: t.xAlign,
- yAlign: t.yAlign,
- bodyFontColor: t.bodyFontColor,
- _bodyFontFamily: n(t.bodyFontFamily, e.defaultFontFamily),
- _bodyFontStyle: n(t.bodyFontStyle, e.defaultFontStyle),
- _bodyAlign: t.bodyAlign,
- bodyFontSize: n(t.bodyFontSize, e.defaultFontSize),
- bodySpacing: t.bodySpacing,
- titleFontColor: t.titleFontColor,
- _titleFontFamily: n(t.titleFontFamily, e.defaultFontFamily),
- _titleFontStyle: n(t.titleFontStyle, e.defaultFontStyle),
- titleFontSize: n(t.titleFontSize, e.defaultFontSize),
- _titleAlign: t.titleAlign,
- titleSpacing: t.titleSpacing,
- titleMarginBottom: t.titleMarginBottom,
- footerFontColor: t.footerFontColor,
- _footerFontFamily: n(t.footerFontFamily, e.defaultFontFamily),
- _footerFontStyle: n(t.footerFontStyle, e.defaultFontStyle),
- footerFontSize: n(t.footerFontSize, e.defaultFontSize),
- _footerAlign: t.footerAlign,
- footerSpacing: t.footerSpacing,
- footerMarginTop: t.footerMarginTop,
- caretSize: t.caretSize,
- cornerRadius: t.cornerRadius,
- backgroundColor: t.backgroundColor,
- opacity: 0,
- legendColorBackground: t.multiKeyBackground,
- displayColors: t.displayColors,
- borderColor: t.borderColor,
- borderWidth: t.borderWidth
- }
- }
- function d(t) {
- return l([], u(t))
- }(e.exports = i.extend({
- initialize: function() {
- this._model = c(this._options), this._lastActive = []
- },
- getTitle: function() {
- var t = this,
- e = t._options,
- n = e.callbacks,
- r = n.beforeTitle.apply(t, arguments),
- i = n.title.apply(t, arguments),
- o = n.afterTitle.apply(t, arguments),
- a = [];
- return a = l(a, u(r)), a = l(a, u(i)), a = l(a, u(o))
- },
- getBeforeBody: function() {
- return d(this._options.callbacks.beforeBody.apply(this, arguments))
- },
- getBody: function(t, e) {
- var n = this,
- r = n._options.callbacks,
- i = [];
- return o.each(t, (function(t) {
- var o = {
- before: [],
- lines: [],
- after: []
- };
- l(o.before, u(r.beforeLabel.call(n, t, e))), l(o.lines, r.label.call(n, t, e)), l(o.after, u(r.afterLabel.call(n, t, e))), i.push(o)
- })), i
- },
- getAfterBody: function() {
- return d(this._options.callbacks.afterBody.apply(this, arguments))
- },
- getFooter: function() {
- var t = this,
- e = t._options.callbacks,
- n = e.beforeFooter.apply(t, arguments),
- r = e.footer.apply(t, arguments),
- i = e.afterFooter.apply(t, arguments),
- o = [];
- return o = l(o, u(n)), o = l(o, u(r)), o = l(o, u(i))
- },
- update: function(t) {
- var e, n, r, i, s, l, u, d = this,
- f = d._options,
- h = d._model,
- p = d._model = c(f),
- g = d._active,
- v = d._data,
- m = {
- xAlign: h.xAlign,
- yAlign: h.yAlign
- },
- y = {
- x: h.x,
- y: h.y
- },
- b = {
- width: h.width,
- height: h.height
- },
- x = {
- x: h.caretX,
- y: h.caretY
- };
- if (g.length) {
- p.opacity = 1;
- var w = [],
- S = [];
- x = a[f.position].call(d, g, d._eventPosition);
- var k = [];
- for (e = 0, n = g.length; e < n; ++e) k.push((r = g[e], i = void 0, s = void 0, l = void 0, u = void 0, i = r._xScale, s = r._yScale || r._scale, l = r._index, u = r._datasetIndex, {
- xLabel: i ? i.getLabelForIndex(l, u) : "",
- yLabel: s ? s.getLabelForIndex(l, u) : "",
- index: l,
- datasetIndex: u,
- x: r._model.x,
- y: r._model.y
- }));
- f.filter && (k = k.filter((function(t) {
- return f.filter(t, v)
- }))), f.itemSort && (k = k.sort((function(t, e) {
- return f.itemSort(t, e, v)
- }))), o.each(k, (function(t) {
- w.push(f.callbacks.labelColor.call(d, t, d._chart)), S.push(f.callbacks.labelTextColor.call(d, t, d._chart))
- })), p.title = d.getTitle(k, v), p.beforeBody = d.getBeforeBody(k, v), p.body = d.getBody(k, v), p.afterBody = d.getAfterBody(k, v), p.footer = d.getFooter(k, v), p.x = Math.round(x.x), p.y = Math.round(x.y), p.caretPadding = f.caretPadding, p.labelColors = w, p.labelTextColors = S, p.dataPoints = k, b = function(t, e) {
- var n = t._chart.ctx,
- r = 2 * e.yPadding,
- i = 0,
- a = e.body,
- s = a.reduce((function(t, e) {
- return t + e.before.length + e.lines.length + e.after.length
- }), 0);
- s += e.beforeBody.length + e.afterBody.length;
- var l = e.title.length,
- u = e.footer.length,
- c = e.titleFontSize,
- d = e.bodyFontSize,
- f = e.footerFontSize;
- r += l * c, r += l ? (l - 1) * e.titleSpacing : 0, r += l ? e.titleMarginBottom : 0, r += s * d, r += s ? (s - 1) * e.bodySpacing : 0, r += u ? e.footerMarginTop : 0, r += u * f, r += u ? (u - 1) * e.footerSpacing : 0;
- var h = 0,
- p = function(t) {
- i = Math.max(i, n.measureText(t).width + h)
- };
- return n.font = o.fontString(c, e._titleFontStyle, e._titleFontFamily), o.each(e.title, p), n.font = o.fontString(d, e._bodyFontStyle, e._bodyFontFamily), o.each(e.beforeBody.concat(e.afterBody), p), h = e.displayColors ? d + 2 : 0, o.each(a, (function(t) {
- o.each(t.before, p), o.each(t.lines, p), o.each(t.after, p)
- })), h = 0, n.font = o.fontString(f, e._footerFontStyle, e._footerFontFamily), o.each(e.footer, p), {
- width: i += 2 * e.xPadding,
- height: r
- }
- }(this, p), y = function(t, e, n, r) {
- var i = t.x,
- o = t.y,
- a = t.caretSize,
- s = t.caretPadding,
- l = t.cornerRadius,
- u = n.xAlign,
- c = n.yAlign,
- d = a + s,
- f = l + s;
- return "right" === u ? i -= e.width : "center" === u && ((i -= e.width / 2) + e.width > r.width && (i = r.width - e.width), i < 0 && (i = 0)), "top" === c ? o += d : o -= "bottom" === c ? e.height + d : e.height / 2, "center" === c ? "left" === u ? i += d : "right" === u && (i -= d) : "left" === u ? i -= f : "right" === u && (i += f), {
- x: i,
- y: o
- }
- }(p, b, m = function(t, e) {
- var n, r, i, o, a, s = t._model,
- l = t._chart,
- u = t._chart.chartArea,
- c = "center",
- d = "center";
- s.y < e.height ? d = "top" : s.y > l.height - e.height && (d = "bottom");
- var f = (u.left + u.right) / 2,
- h = (u.top + u.bottom) / 2;
- "center" === d ? (n = function(t) {
- return t <= f
- }, r = function(t) {
- return t > f
- }) : (n = function(t) {
- return t <= e.width / 2
- }, r = function(t) {
- return t >= l.width - e.width / 2
- }), i = function(t) {
- return t + e.width + s.caretSize + s.caretPadding > l.width
- }, o = function(t) {
- return t - e.width - s.caretSize - s.caretPadding < 0
- }, a = function(t) {
- return t <= h ? "top" : "bottom"
- }, n(s.x) ? (c = "left", i(s.x) && (c = "center", d = a(s.y))) : r(s.x) && (c = "right", o(s.x) && (c = "center", d = a(s.y)));
- var p = t._options;
- return {
- xAlign: p.xAlign ? p.xAlign : c,
- yAlign: p.yAlign ? p.yAlign : d
- }
- }(this, b), d._chart)
- } else p.opacity = 0;
- return p.xAlign = m.xAlign, p.yAlign = m.yAlign, p.x = y.x, p.y = y.y, p.width = b.width, p.height = b.height, p.caretX = x.x, p.caretY = x.y, d._model = p, t && f.custom && f.custom.call(d, p), d
- },
- drawCaret: function(t, e) {
- var n = this._chart.ctx,
- r = this._view,
- i = this.getCaretPosition(t, e, r);
- n.lineTo(i.x1, i.y1), n.lineTo(i.x2, i.y2), n.lineTo(i.x3, i.y3)
- },
- getCaretPosition: function(t, e, n) {
- var r, i, o, a, s, l, u = n.caretSize,
- c = n.cornerRadius,
- d = n.xAlign,
- f = n.yAlign,
- h = t.x,
- p = t.y,
- g = e.width,
- v = e.height;
- if ("center" === f) s = p + v / 2, "left" === d ? (i = (r = h) - u, o = r, a = s + u, l = s - u) : (i = (r = h + g) + u, o = r, a = s - u, l = s + u);
- else if ("left" === d ? (r = (i = h + c + u) - u, o = i + u) : "right" === d ? (r = (i = h + g - c - u) - u, o = i + u) : (r = (i = n.caretX) - u, o = i + u), "top" === f) s = (a = p) - u, l = a;
- else {
- s = (a = p + v) + u, l = a;
- var m = o;
- o = r, r = m
- }
- return {
- x1: r,
- x2: i,
- x3: o,
- y1: a,
- y2: s,
- y3: l
- }
- },
- drawTitle: function(t, e, n, r) {
- var i = e.title;
- if (i.length) {
- n.textAlign = e._titleAlign, n.textBaseline = "top";
- var a, l, u = e.titleFontSize,
- c = e.titleSpacing;
- for (n.fillStyle = s(e.titleFontColor, r), n.font = o.fontString(u, e._titleFontStyle, e._titleFontFamily), a = 0, l = i.length; a < l; ++a) n.fillText(i[a], t.x, t.y), t.y += u + c, a + 1 === i.length && (t.y += e.titleMarginBottom - c)
- }
- },
- drawBody: function(t, e, n, r) {
- var i = e.bodyFontSize,
- a = e.bodySpacing,
- l = e.body;
- n.textAlign = e._bodyAlign, n.textBaseline = "top", n.font = o.fontString(i, e._bodyFontStyle, e._bodyFontFamily);
- var u = 0,
- c = function(e) {
- n.fillText(e, t.x + u, t.y), t.y += i + a
- };
- n.fillStyle = s(e.bodyFontColor, r), o.each(e.beforeBody, c);
- var d = e.displayColors;
- u = d ? i + 2 : 0, o.each(l, (function(a, l) {
- var u = s(e.labelTextColors[l], r);
- n.fillStyle = u, o.each(a.before, c), o.each(a.lines, (function(o) {
- d && (n.fillStyle = s(e.legendColorBackground, r), n.fillRect(t.x, t.y, i, i), n.lineWidth = 1, n.strokeStyle = s(e.labelColors[l].borderColor, r), n.strokeRect(t.x, t.y, i, i), n.fillStyle = s(e.labelColors[l].backgroundColor, r), n.fillRect(t.x + 1, t.y + 1, i - 2, i - 2), n.fillStyle = u), c(o)
- })), o.each(a.after, c)
- })), u = 0, o.each(e.afterBody, c), t.y -= a
- },
- drawFooter: function(t, e, n, r) {
- var i = e.footer;
- i.length && (t.y += e.footerMarginTop, n.textAlign = e._footerAlign, n.textBaseline = "top", n.fillStyle = s(e.footerFontColor, r), n.font = o.fontString(e.footerFontSize, e._footerFontStyle, e._footerFontFamily), o.each(i, (function(r) {
- n.fillText(r, t.x, t.y), t.y += e.footerFontSize + e.footerSpacing
- })))
- },
- drawBackground: function(t, e, n, r, i) {
- n.fillStyle = s(e.backgroundColor, i), n.strokeStyle = s(e.borderColor, i), n.lineWidth = e.borderWidth;
- var o = e.xAlign,
- a = e.yAlign,
- l = t.x,
- u = t.y,
- c = r.width,
- d = r.height,
- f = e.cornerRadius;
- n.beginPath(), n.moveTo(l + f, u), "top" === a && this.drawCaret(t, r), n.lineTo(l + c - f, u), n.quadraticCurveTo(l + c, u, l + c, u + f), "center" === a && "right" === o && this.drawCaret(t, r), n.lineTo(l + c, u + d - f), n.quadraticCurveTo(l + c, u + d, l + c - f, u + d), "bottom" === a && this.drawCaret(t, r), n.lineTo(l + f, u + d), n.quadraticCurveTo(l, u + d, l, u + d - f), "center" === a && "left" === o && this.drawCaret(t, r), n.lineTo(l, u + f), n.quadraticCurveTo(l, u, l + f, u), n.closePath(), n.fill(), e.borderWidth > 0 && n.stroke()
- },
- draw: function() {
- var t = this._chart.ctx,
- e = this._view;
- if (0 !== e.opacity) {
- var n = {
- width: e.width,
- height: e.height
- },
- r = {
- x: e.x,
- y: e.y
- },
- i = Math.abs(e.opacity < .001) ? 0 : e.opacity,
- o = e.title.length || e.beforeBody.length || e.body.length || e.afterBody.length || e.footer.length;
- this._options.enabled && o && (this.drawBackground(r, e, t, n, i), r.x += e.xPadding, r.y += e.yPadding, this.drawTitle(r, e, t, i), this.drawBody(r, e, t, i), this.drawFooter(r, e, t, i))
- }
- },
- handleEvent: function(t) {
- var e, n = this,
- r = n._options;
- return n._lastActive = n._lastActive || [], "mouseout" === t.type ? n._active = [] : n._active = n._chart.getElementsAtEventForMode(t, r.mode, r), (e = !o.arrayEquals(n._active, n._lastActive)) && (n._lastActive = n._active, (r.enabled || r.custom) && (n._eventPosition = {
- x: t.x,
- y: t.y
- }, n.update(!0), n.pivot())), e
- }
- })).positioners = a
- }, {
- 26: 26,
- 27: 27,
- 46: 46
- }],
- 37: [function(t, e, n) {
- var r = t(26),
- i = t(27),
- o = t(46);
- r._set("global", {
- elements: {
- arc: {
- backgroundColor: r.global.defaultColor,
- borderColor: "#fff",
- borderWidth: 2
- }
- }
- }), e.exports = i.extend({
- inLabelRange: function(t) {
- var e = this._view;
- return !!e && Math.pow(t - e.x, 2) < Math.pow(e.radius + e.hoverRadius, 2)
- },
- inRange: function(t, e) {
- var n = this._view;
- if (n) {
- for (var r = o.getAngleFromPoint(n, {
- x: t,
- y: e
- }), i = r.angle, a = r.distance, s = n.startAngle, l = n.endAngle; l < s;) l += 2 * Math.PI;
- for (; i > l;) i -= 2 * Math.PI;
- for (; i < s;) i += 2 * Math.PI;
- var u = i >= s && i <= l,
- c = a >= n.innerRadius && a <= n.outerRadius;
- return u && c
- }
- return !1
- },
- getCenterPoint: function() {
- var t = this._view,
- e = (t.startAngle + t.endAngle) / 2,
- n = (t.innerRadius + t.outerRadius) / 2;
- return {
- x: t.x + Math.cos(e) * n,
- y: t.y + Math.sin(e) * n
- }
- },
- getArea: function() {
- var t = this._view;
- return Math.PI * ((t.endAngle - t.startAngle) / (2 * Math.PI)) * (Math.pow(t.outerRadius, 2) - Math.pow(t.innerRadius, 2))
- },
- tooltipPosition: function() {
- var t = this._view,
- e = t.startAngle + (t.endAngle - t.startAngle) / 2,
- n = (t.outerRadius - t.innerRadius) / 2 + t.innerRadius;
- return {
- x: t.x + Math.cos(e) * n,
- y: t.y + Math.sin(e) * n
- }
- },
- draw: function() {
- var t = this._chart.ctx,
- e = this._view,
- n = e.startAngle,
- r = e.endAngle;
- t.beginPath(), t.arc(e.x, e.y, e.outerRadius, n, r), t.arc(e.x, e.y, e.innerRadius, r, n, !0), t.closePath(), t.strokeStyle = e.borderColor, t.lineWidth = e.borderWidth, t.fillStyle = e.backgroundColor, t.fill(), t.lineJoin = "bevel", e.borderWidth && t.stroke()
- }
- })
- }, {
- 26: 26,
- 27: 27,
- 46: 46
- }],
- 38: [function(t, e, n) {
- var r = t(26),
- i = t(27),
- o = t(46),
- a = r.global;
- r._set("global", {
- elements: {
- line: {
- tension: .4,
- backgroundColor: a.defaultColor,
- borderWidth: 3,
- borderColor: a.defaultColor,
- borderCapStyle: "butt",
- borderDash: [],
- borderDashOffset: 0,
- borderJoinStyle: "miter",
- capBezierPoints: !0,
- fill: !0
- }
- }
- }), e.exports = i.extend({
- draw: function() {
- var t, e, n, r, i = this._view,
- s = this._chart.ctx,
- l = i.spanGaps,
- u = this._children.slice(),
- c = a.elements.line,
- d = -1;
- for (this._loop && u.length && u.push(u[0]), s.save(), s.lineCap = i.borderCapStyle || c.borderCapStyle, s.setLineDash && s.setLineDash(i.borderDash || c.borderDash), s.lineDashOffset = i.borderDashOffset || c.borderDashOffset, s.lineJoin = i.borderJoinStyle || c.borderJoinStyle, s.lineWidth = i.borderWidth || c.borderWidth, s.strokeStyle = i.borderColor || a.defaultColor, s.beginPath(), d = -1, t = 0; t < u.length; ++t) e = u[t], n = o.previousItem(u, t), r = e._view, 0 === t ? r.skip || (s.moveTo(r.x, r.y), d = t) : (n = -1 === d ? n : u[d], r.skip || (d !== t - 1 && !l || -1 === d ? s.moveTo(r.x, r.y) : o.canvas.lineTo(s, n._view, e._view), d = t));
- s.stroke(), s.restore()
- }
- })
- }, {
- 26: 26,
- 27: 27,
- 46: 46
- }],
- 39: [function(t, e, n) {
- var r = t(26),
- i = t(27),
- o = t(46),
- a = r.global.defaultColor;
- function s(t) {
- var e = this._view;
- return !!e && Math.abs(t - e.x) < e.radius + e.hitRadius
- }
- r._set("global", {
- elements: {
- point: {
- radius: 3,
- pointStyle: "circle",
- backgroundColor: a,
- borderColor: a,
- borderWidth: 1,
- hitRadius: 1,
- hoverRadius: 4,
- hoverBorderWidth: 1
- }
- }
- }), e.exports = i.extend({
- inRange: function(t, e) {
- var n = this._view;
- return !!n && Math.pow(t - n.x, 2) + Math.pow(e - n.y, 2) < Math.pow(n.hitRadius + n.radius, 2)
- },
- inLabelRange: s,
- inXRange: s,
- inYRange: function(t) {
- var e = this._view;
- return !!e && Math.abs(t - e.y) < e.radius + e.hitRadius
- },
- getCenterPoint: function() {
- var t = this._view;
- return {
- x: t.x,
- y: t.y
- }
- },
- getArea: function() {
- return Math.PI * Math.pow(this._view.radius, 2)
- },
- tooltipPosition: function() {
- var t = this._view;
- return {
- x: t.x,
- y: t.y,
- padding: t.radius + t.borderWidth
- }
- },
- draw: function(t) {
- var e = this._view,
- n = this._model,
- i = this._chart.ctx,
- s = e.pointStyle,
- l = e.rotation,
- u = e.radius,
- c = e.x,
- d = e.y;
- e.skip || (void 0 === t || n.x >= t.left && 1.01 * t.right >= n.x && n.y >= t.top && 1.01 * t.bottom >= n.y) && (i.strokeStyle = e.borderColor || a, i.lineWidth = o.valueOrDefault(e.borderWidth, r.global.elements.point.borderWidth), i.fillStyle = e.backgroundColor || a, o.canvas.drawPoint(i, s, u, c, d, l))
- }
- })
- }, {
- 26: 26,
- 27: 27,
- 46: 46
- }],
- 40: [function(t, e, n) {
- var r = t(26),
- i = t(27);
- function o(t) {
- return void 0 !== t._view.width
- }
- function a(t) {
- var e, n, r, i, a = t._view;
- if (o(t)) {
- var s = a.width / 2;
- e = a.x - s, n = a.x + s, r = Math.min(a.y, a.base), i = Math.max(a.y, a.base)
- } else {
- var l = a.height / 2;
- e = Math.min(a.x, a.base), n = Math.max(a.x, a.base), r = a.y - l, i = a.y + l
- }
- return {
- left: e,
- top: r,
- right: n,
- bottom: i
- }
- }
- r._set("global", {
- elements: {
- rectangle: {
- backgroundColor: r.global.defaultColor,
- borderColor: r.global.defaultColor,
- borderSkipped: "bottom",
- borderWidth: 0
- }
- }
- }), e.exports = i.extend({
- draw: function() {
- var t, e, n, r, i, o, a, s = this._chart.ctx,
- l = this._view,
- u = l.borderWidth;
- if (l.horizontal ? (t = l.base, e = l.x, n = l.y - l.height / 2, r = l.y + l.height / 2, i = e > t ? 1 : -1, o = 1, a = l.borderSkipped || "left") : (t = l.x - l.width / 2, e = l.x + l.width / 2, n = l.y, i = 1, o = (r = l.base) > n ? 1 : -1, a = l.borderSkipped || "bottom"), u) {
- var c = Math.min(Math.abs(t - e), Math.abs(n - r)),
- d = (u = u > c ? c : u) / 2,
- f = t + ("left" !== a ? d * i : 0),
- h = e + ("right" !== a ? -d * i : 0),
- p = n + ("top" !== a ? d * o : 0),
- g = r + ("bottom" !== a ? -d * o : 0);
- f !== h && (n = p, r = g), p !== g && (t = f, e = h)
- }
- s.beginPath(), s.fillStyle = l.backgroundColor, s.strokeStyle = l.borderColor, s.lineWidth = u;
- var v = [
- [t, r],
- [t, n],
- [e, n],
- [e, r]
- ],
- m = ["bottom", "left", "top", "right"].indexOf(a, 0);
- function y(t) {
- return v[(m + t) % 4]
- } - 1 === m && (m = 0);
- var b = y(0);
- s.moveTo(b[0], b[1]);
- for (var x = 1; x < 4; x++) b = y(x), s.lineTo(b[0], b[1]);
- s.fill(), u && s.stroke()
- },
- height: function() {
- var t = this._view;
- return t.base - t.y
- },
- inRange: function(t, e) {
- var n = !1;
- if (this._view) {
- var r = a(this);
- n = t >= r.left && t <= r.right && e >= r.top && e <= r.bottom
- }
- return n
- },
- inLabelRange: function(t, e) {
- if (!this._view) return !1;
- var n = a(this);
- return o(this) ? t >= n.left && t <= n.right : e >= n.top && e <= n.bottom
- },
- inXRange: function(t) {
- var e = a(this);
- return t >= e.left && t <= e.right
- },
- inYRange: function(t) {
- var e = a(this);
- return t >= e.top && t <= e.bottom
- },
- getCenterPoint: function() {
- var t, e, n = this._view;
- return o(this) ? (t = n.x, e = (n.y + n.base) / 2) : (t = (n.x + n.base) / 2, e = n.y), {
- x: t,
- y: e
- }
- },
- getArea: function() {
- var t = this._view;
- return t.width * Math.abs(t.y - t.base)
- },
- tooltipPosition: function() {
- var t = this._view;
- return {
- x: t.x,
- y: t.y
- }
- }
- })
- }, {
- 26: 26,
- 27: 27
- }],
- 41: [function(t, e, n) {
- e.exports = {}, e.exports.Arc = t(37), e.exports.Line = t(38), e.exports.Point = t(39), e.exports.Rectangle = t(40)
- }, {
- 37: 37,
- 38: 38,
- 39: 39,
- 40: 40
- }],
- 42: [function(t, e, n) {
- var r = t(43);
- n = e.exports = {
- clear: function(t) {
- t.ctx.clearRect(0, 0, t.width, t.height)
- },
- roundedRect: function(t, e, n, r, i, o) {
- if (o) {
- var a = Math.min(o, i / 2 - 1e-7, r / 2 - 1e-7);
- t.moveTo(e + a, n), t.lineTo(e + r - a, n), t.arcTo(e + r, n, e + r, n + a, a), t.lineTo(e + r, n + i - a), t.arcTo(e + r, n + i, e + r - a, n + i, a), t.lineTo(e + a, n + i), t.arcTo(e, n + i, e, n + i - a, a), t.lineTo(e, n + a), t.arcTo(e, n, e + a, n, a), t.closePath(), t.moveTo(e, n)
- } else t.rect(e, n, r, i)
- },
- drawPoint: function(t, e, n, r, i, a) {
- var s, l, u, c, d, f;
- if (a = a || 0, !e || "object" !== o(e) || "[object HTMLImageElement]" !== (s = e.toString()) && "[object HTMLCanvasElement]" !== s) {
- if (!(isNaN(n) || n <= 0)) {
- switch (t.save(), t.translate(r, i), t.rotate(a * Math.PI / 180), t.beginPath(), e) {
- default:
- t.arc(0, 0, n, 0, 2 * Math.PI), t.closePath();
- break;
- case "triangle":
- d = (l = 3 * n / Math.sqrt(3)) * Math.sqrt(3) / 2, t.moveTo(-l / 2, d / 3), t.lineTo(l / 2, d / 3), t.lineTo(0, -2 * d / 3), t.closePath();
- break;
- case "rect":
- f = 1 / Math.SQRT2 * n, t.rect(-f, -f, 2 * f, 2 * f);
- break;
- case "rectRounded":
- var h = n / Math.SQRT2,
- p = -h,
- g = -h,
- v = Math.SQRT2 * n;
- this.roundedRect(t, p, g, v, v, .425 * n);
- break;
- case "rectRot":
- f = 1 / Math.SQRT2 * n, t.moveTo(-f, 0), t.lineTo(0, f), t.lineTo(f, 0), t.lineTo(0, -f), t.closePath();
- break;
- case "cross":
- t.moveTo(0, n), t.lineTo(0, -n), t.moveTo(-n, 0), t.lineTo(n, 0);
- break;
- case "crossRot":
- u = Math.cos(Math.PI / 4) * n, c = Math.sin(Math.PI / 4) * n, t.moveTo(-u, -c), t.lineTo(u, c), t.moveTo(-u, c), t.lineTo(u, -c);
- break;
- case "star":
- t.moveTo(0, n), t.lineTo(0, -n), t.moveTo(-n, 0), t.lineTo(n, 0), u = Math.cos(Math.PI / 4) * n, c = Math.sin(Math.PI / 4) * n, t.moveTo(-u, -c), t.lineTo(u, c), t.moveTo(-u, c), t.lineTo(u, -c);
- break;
- case "line":
- t.moveTo(-n, 0), t.lineTo(n, 0);
- break;
- case "dash":
- t.moveTo(0, 0), t.lineTo(n, 0)
- }
- t.fill(), t.stroke(), t.restore()
- }
- } else t.drawImage(e, r - e.width / 2, i - e.height / 2, e.width, e.height)
- },
- clipArea: function(t, e) {
- t.save(), t.beginPath(), t.rect(e.left, e.top, e.right - e.left, e.bottom - e.top), t.clip()
- },
- unclipArea: function(t) {
- t.restore()
- },
- lineTo: function(t, e, n, r) {
- if (n.steppedLine) return "after" === n.steppedLine && !r || "after" !== n.steppedLine && r ? t.lineTo(e.x, n.y) : t.lineTo(n.x, e.y), void t.lineTo(n.x, n.y);
- n.tension ? t.bezierCurveTo(r ? e.controlPointPreviousX : e.controlPointNextX, r ? e.controlPointPreviousY : e.controlPointNextY, r ? n.controlPointNextX : n.controlPointPreviousX, r ? n.controlPointNextY : n.controlPointPreviousY, n.x, n.y) : t.lineTo(n.x, n.y)
- }
- };
- r.clear = n.clear, r.drawRoundedRectangle = function(t) {
- t.beginPath(), n.roundedRect.apply(n, arguments)
- }
- }, {
- 43: 43
- }],
- 43: [function(t, e, n) {
- var r, i = {
- noop: function() {},
- uid: (r = 0, function() {
- return r++
- }),
- isNullOrUndef: function(t) {
- return null == t
- },
- isArray: Array.isArray ? Array.isArray : function(t) {
- return "[object Array]" === Object.prototype.toString.call(t)
- },
- isObject: function(t) {
- return null !== t && "[object Object]" === Object.prototype.toString.call(t)
- },
- valueOrDefault: function(t, e) {
- return void 0 === t ? e : t
- },
- valueAtIndexOrDefault: function(t, e, n) {
- return i.valueOrDefault(i.isArray(t) ? t[e] : t, n)
- },
- callback: function(t, e, n) {
- if (t && "function" == typeof t.call) return t.apply(n, e)
- },
- each: function(t, e, n, r) {
- var o, a, s;
- if (i.isArray(t))
- if (a = t.length, r)
- for (o = a - 1; o >= 0; o--) e.call(n, t[o], o);
- else
- for (o = 0; o < a; o++) e.call(n, t[o], o);
- else if (i.isObject(t))
- for (a = (s = Object.keys(t)).length, o = 0; o < a; o++) e.call(n, t[s[o]], s[o])
- },
- arrayEquals: function(t, e) {
- var n, r, o, a;
- if (!t || !e || t.length !== e.length) return !1;
- for (n = 0, r = t.length; n < r; ++n)
- if (o = t[n], a = e[n], o instanceof Array && a instanceof Array) {
- if (!i.arrayEquals(o, a)) return !1
- } else if (o !== a) return !1;
- return !0
- },
- clone: function(t) {
- if (i.isArray(t)) return t.map(i.clone);
- if (i.isObject(t)) {
- for (var e = {}, n = Object.keys(t), r = n.length, o = 0; o < r; ++o) e[n[o]] = i.clone(t[n[o]]);
- return e
- }
- return t
- },
- _merger: function(t, e, n, r) {
- var o = e[t],
- a = n[t];
- i.isObject(o) && i.isObject(a) ? i.merge(o, a, r) : e[t] = i.clone(a)
- },
- _mergerIf: function(t, e, n) {
- var r = e[t],
- o = n[t];
- i.isObject(r) && i.isObject(o) ? i.mergeIf(r, o) : e.hasOwnProperty(t) || (e[t] = i.clone(o))
- },
- merge: function(t, e, n) {
- var r, o, a, s, l, u = i.isArray(e) ? e : [e],
- c = u.length;
- if (!i.isObject(t)) return t;
- for (r = (n = n || {}).merger || i._merger, o = 0; o < c; ++o)
- if (e = u[o], i.isObject(e))
- for (l = 0, s = (a = Object.keys(e)).length; l < s; ++l) r(a[l], t, e, n);
- return t
- },
- mergeIf: function(t, e) {
- return i.merge(t, e, {
- merger: i._mergerIf
- })
- },
- extend: function(t) {
- for (var e = function(e, n) {
- t[n] = e
- }, n = 1, r = arguments.length; n < r; ++n) i.each(arguments[n], e);
- return t
- },
- inherits: function(t) {
- var e = this,
- n = t && t.hasOwnProperty("constructor") ? t.constructor : function() {
- return e.apply(this, arguments)
- },
- r = function() {
- this.constructor = n
- };
- return r.prototype = e.prototype, n.prototype = new r, n.extend = i.inherits, t && i.extend(n.prototype, t), n.__super__ = e.prototype, n
- }
- };
- e.exports = i, i.callCallback = i.callback, i.indexOf = function(t, e, n) {
- return Array.prototype.indexOf.call(t, e, n)
- }, i.getValueOrDefault = i.valueOrDefault, i.getValueAtIndexOrDefault = i.valueAtIndexOrDefault
- }, {}],
- 44: [function(t, e, n) {
- var r = t(43),
- i = {
- linear: function(t) {
- return t
- },
- easeInQuad: function(t) {
- return t * t
- },
- easeOutQuad: function(t) {
- return -t * (t - 2)
- },
- easeInOutQuad: function(t) {
- return (t /= .5) < 1 ? .5 * t * t : -.5 * (--t * (t - 2) - 1)
- },
- easeInCubic: function(t) {
- return t * t * t
- },
- easeOutCubic: function(t) {
- return (t -= 1) * t * t + 1
- },
- easeInOutCubic: function(t) {
- return (t /= .5) < 1 ? .5 * t * t * t : .5 * ((t -= 2) * t * t + 2)
- },
- easeInQuart: function(t) {
- return t * t * t * t
- },
- easeOutQuart: function(t) {
- return -((t -= 1) * t * t * t - 1)
- },
- easeInOutQuart: function(t) {
- return (t /= .5) < 1 ? .5 * t * t * t * t : -.5 * ((t -= 2) * t * t * t - 2)
- },
- easeInQuint: function(t) {
- return t * t * t * t * t
- },
- easeOutQuint: function(t) {
- return (t -= 1) * t * t * t * t + 1
- },
- easeInOutQuint: function(t) {
- return (t /= .5) < 1 ? .5 * t * t * t * t * t : .5 * ((t -= 2) * t * t * t * t + 2)
- },
- easeInSine: function(t) {
- return 1 - Math.cos(t * (Math.PI / 2))
- },
- easeOutSine: function(t) {
- return Math.sin(t * (Math.PI / 2))
- },
- easeInOutSine: function(t) {
- return -.5 * (Math.cos(Math.PI * t) - 1)
- },
- easeInExpo: function(t) {
- return 0 === t ? 0 : Math.pow(2, 10 * (t - 1))
- },
- easeOutExpo: function(t) {
- return 1 === t ? 1 : 1 - Math.pow(2, -10 * t)
- },
- easeInOutExpo: function(t) {
- return 0 === t ? 0 : 1 === t ? 1 : (t /= .5) < 1 ? .5 * Math.pow(2, 10 * (t - 1)) : .5 * (2 - Math.pow(2, -10 * --t))
- },
- easeInCirc: function(t) {
- return t >= 1 ? t : -(Math.sqrt(1 - t * t) - 1)
- },
- easeOutCirc: function(t) {
- return Math.sqrt(1 - (t -= 1) * t)
- },
- easeInOutCirc: function(t) {
- return (t /= .5) < 1 ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1)
- },
- easeInElastic: function(t) {
- var e = 1.70158,
- n = 0,
- r = 1;
- return 0 === t ? 0 : 1 === t ? 1 : (n || (n = .3), r < 1 ? (r = 1, e = n / 4) : e = n / (2 * Math.PI) * Math.asin(1 / r), -r * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / n))
- },
- easeOutElastic: function(t) {
- var e = 1.70158,
- n = 0,
- r = 1;
- return 0 === t ? 0 : 1 === t ? 1 : (n || (n = .3), r < 1 ? (r = 1, e = n / 4) : e = n / (2 * Math.PI) * Math.asin(1 / r), r * Math.pow(2, -10 * t) * Math.sin((t - e) * (2 * Math.PI) / n) + 1)
- },
- easeInOutElastic: function(t) {
- var e = 1.70158,
- n = 0,
- r = 1;
- return 0 === t ? 0 : 2 == (t /= .5) ? 1 : (n || (n = .45), r < 1 ? (r = 1, e = n / 4) : e = n / (2 * Math.PI) * Math.asin(1 / r), t < 1 ? r * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / n) * -.5 : r * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / n) * .5 + 1)
- },
- easeInBack: function(t) {
- var e = 1.70158;
- return t * t * ((e + 1) * t - e)
- },
- easeOutBack: function(t) {
- var e = 1.70158;
- return (t -= 1) * t * ((e + 1) * t + e) + 1
- },
- easeInOutBack: function(t) {
- var e = 1.70158;
- return (t /= .5) < 1 ? t * t * ((1 + (e *= 1.525)) * t - e) * .5 : .5 * ((t -= 2) * t * ((1 + (e *= 1.525)) * t + e) + 2)
- },
- easeInBounce: function(t) {
- return 1 - i.easeOutBounce(1 - t)
- },
- easeOutBounce: function(t) {
- return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375
- },
- easeInOutBounce: function(t) {
- return t < .5 ? .5 * i.easeInBounce(2 * t) : .5 * i.easeOutBounce(2 * t - 1) + .5
- }
- };
- e.exports = {
- effects: i
- }, r.easingEffects = i
- }, {
- 43: 43
- }],
- 45: [function(t, e, n) {
- var r = t(43);
- e.exports = {
- toLineHeight: function(t, e) {
- var n = ("" + t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);
- if (!n || "normal" === n[1]) return 1.2 * e;
- switch (t = +n[2], n[3]) {
- case "px":
- return t;
- case "%":
- t /= 100
- }
- return e * t
- },
- toPadding: function(t) {
- var e, n, i, o;
- return r.isObject(t) ? (e = +t.top || 0, n = +t.right || 0, i = +t.bottom || 0, o = +t.left || 0) : e = n = i = o = +t || 0, {
- top: e,
- right: n,
- bottom: i,
- left: o,
- height: e + i,
- width: o + n
- }
- },
- resolve: function(t, e, n) {
- var i, o, a;
- for (i = 0, o = t.length; i < o; ++i)
- if (void 0 !== (a = t[i]) && (void 0 !== e && "function" == typeof a && (a = a(e)), void 0 !== n && r.isArray(a) && (a = a[n]), void 0 !== a)) return a
- }
- }
- }, {
- 43: 43
- }],
- 46: [function(t, e, n) {
- e.exports = t(43), e.exports.easing = t(44), e.exports.canvas = t(42), e.exports.options = t(45)
- }, {
- 42: 42,
- 43: 43,
- 44: 44,
- 45: 45
- }],
- 47: [function(t, e, n) {
- e.exports = {
- acquireContext: function(t) {
- return t && t.canvas && (t = t.canvas), t && t.getContext("2d") || null
- }
- }
- }, {}],
- 48: [function(t, e, n) {
- var r = t(46),
- i = "$chartjs",
- o = "chartjs-",
- a = o + "render-monitor",
- s = o + "render-animation",
- l = ["animationstart", "webkitAnimationStart"],
- u = {
- touchstart: "mousedown",
- touchmove: "mousemove",
- touchend: "mouseup",
- pointerenter: "mouseenter",
- pointerdown: "mousedown",
- pointermove: "mousemove",
- pointerup: "mouseup",
- pointerleave: "mouseout",
- pointerout: "mouseout"
- };
- function c(t, e) {
- var n = r.getStyle(t, e),
- i = n && n.match(/^(\d+)(\.\d+)?px$/);
- return i ? Number(i[1]) : void 0
- }
- var d = !! function() {
- var t = !1;
- try {
- var e = Object.defineProperty({}, "passive", {
- get: function() {
- t = !0
- }
- });
- window.addEventListener("e", null, e)
- } catch (t) {}
- return t
- }() && {
- passive: !0
- };
- function f(t, e, n) {
- t.addEventListener(e, n, d)
- }
- function h(t, e, n) {
- t.removeEventListener(e, n, d)
- }
- function p(t, e, n, r, i) {
- return {
- type: t,
- chart: e,
- native: i || null,
- x: void 0 !== n ? n : null,
- y: void 0 !== r ? r : null
- }
- }
- function g(t, e, n) {
- var u, c, d, h, g = t[i] || (t[i] = {}),
- v = g.resizer = function(t) {
- var e = document.createElement("div"),
- n = o + "size-monitor",
- r = "position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";
- e.style.cssText = r, e.className = n, e.innerHTML = '<div class="' + n + '-expand" style="' + r + '"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="' + n + '-shrink" style="' + r + '"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';
- var i = e.childNodes[0],
- a = e.childNodes[1];
- e._reset = function() {
- i.scrollLeft = 1e6, i.scrollTop = 1e6, a.scrollLeft = 1e6, a.scrollTop = 1e6
- };
- var s = function() {
- e._reset(), t()
- };
- return f(i, "scroll", s.bind(i, "expand")), f(a, "scroll", s.bind(a, "shrink")), e
- }((u = function() {
- if (g.resizer) return e(p("resize", n))
- }, d = !1, h = [], function() {
- h = Array.prototype.slice.call(arguments), c = c || this, d || (d = !0, r.requestAnimFrame.call(window, (function() {
- d = !1, u.apply(c, h)
- })))
- }));
- ! function(t, e) {
- var n = t[i] || (t[i] = {}),
- o = n.renderProxy = function(t) {
- t.animationName === s && e()
- };
- r.each(l, (function(e) {
- f(t, e, o)
- })), n.reflow = !!t.offsetParent, t.classList.add(a)
- }(t, (function() {
- if (g.resizer) {
- var e = t.parentNode;
- e && e !== v.parentNode && e.insertBefore(v, e.firstChild), v._reset()
- }
- }))
- }
- function v(t) {
- var e = t[i] || {},
- n = e.resizer;
- delete e.resizer,
- function(t) {
- var e = t[i] || {},
- n = e.renderProxy;
- n && (r.each(l, (function(e) {
- h(t, e, n)
- })), delete e.renderProxy), t.classList.remove(a)
- }(t), n && n.parentNode && n.parentNode.removeChild(n)
- }
- e.exports = {
- _enabled: "undefined" != typeof window && "undefined" != typeof document,
- initialize: function() {
- var t, e, n, r = "from{opacity:0.99}to{opacity:1}";
- e = "@-webkit-keyframes " + s + "{" + r + "}@keyframes " + s + "{" + r + "}." + a + "{-webkit-animation:" + s + " 0.001s;animation:" + s + " 0.001s;}", n = (t = this)._style || document.createElement("style"), t._style || (t._style = n, e = "/* Chart.js */\n" + e, n.setAttribute("type", "text/css"), document.getElementsByTagName("head")[0].appendChild(n)), n.appendChild(document.createTextNode(e))
- },
- acquireContext: function(t, e) {
- "string" == typeof t ? t = document.getElementById(t) : t.length && (t = t[0]), t && t.canvas && (t = t.canvas);
- var n = t && t.getContext && t.getContext("2d");
- return n && n.canvas === t ? (function(t, e) {
- var n = t.style,
- r = t.getAttribute("height"),
- o = t.getAttribute("width");
- if (t[i] = {
- initial: {
- height: r,
- width: o,
- style: {
- display: n.display,
- height: n.height,
- width: n.width
- }
- }
- }, n.display = n.display || "block", null === o || "" === o) {
- var a = c(t, "width");
- void 0 !== a && (t.width = a)
- }
- if (null === r || "" === r)
- if ("" === t.style.height) t.height = t.width / (e.options.aspectRatio || 2);
- else {
- var s = c(t, "height");
- void 0 !== a && (t.height = s)
- }
- }(t, e), n) : null
- },
- releaseContext: function(t) {
- var e = t.canvas;
- if (e[i]) {
- var n = e[i].initial;
- ["height", "width"].forEach((function(t) {
- var i = n[t];
- r.isNullOrUndef(i) ? e.removeAttribute(t) : e.setAttribute(t, i)
- })), r.each(n.style || {}, (function(t, n) {
- e.style[n] = t
- })), e.width = e.width, delete e[i]
- }
- },
- addEventListener: function(t, e, n) {
- var o = t.canvas;
- if ("resize" !== e) {
- var a = n[i] || (n[i] = {});
- f(o, e, (a.proxies || (a.proxies = {}))[t.id + "_" + e] = function(e) {
- n(function(t, e) {
- var n = u[t.type] || t.type,
- i = r.getRelativePosition(t, e);
- return p(n, e, i.x, i.y, t)
- }(e, t))
- })
- } else g(o, n, t)
- },
- removeEventListener: function(t, e, n) {
- var r = t.canvas;
- if ("resize" !== e) {
- var o = ((n[i] || {}).proxies || {})[t.id + "_" + e];
- o && h(r, e, o)
- } else v(r)
- }
- }, r.addEvent = f, r.removeEvent = h
- }, {
- 46: 46
- }],
- 49: [function(t, e, n) {
- var r = t(46),
- i = t(47),
- o = t(48),
- a = o._enabled ? o : i;
- e.exports = r.extend({
- initialize: function() {},
- acquireContext: function() {},
- releaseContext: function() {},
- addEventListener: function() {},
- removeEventListener: function() {}
- }, a)
- }, {
- 46: 46,
- 47: 47,
- 48: 48
- }],
- 50: [function(t, e, n) {
- e.exports = {}, e.exports.filler = t(51), e.exports.legend = t(52), e.exports.title = t(53)
- }, {
- 51: 51,
- 52: 52,
- 53: 53
- }],
- 51: [function(t, e, n) {
- var r = t(26),
- i = t(41),
- o = t(46);
- r._set("global", {
- plugins: {
- filler: {
- propagate: !0
- }
- }
- });
- var a = {
- dataset: function(t) {
- var e = t.fill,
- n = t.chart,
- r = n.getDatasetMeta(e),
- i = r && n.isDatasetVisible(e) && r.dataset._children || [],
- o = i.length || 0;
- return o ? function(t, e) {
- return e < o && i[e]._view || null
- } : null
- },
- boundary: function(t) {
- var e = t.boundary,
- n = e ? e.x : null,
- r = e ? e.y : null;
- return function(t) {
- return {
- x: null === n ? t.x : n,
- y: null === r ? t.y : r
- }
- }
- }
- };
- function s(t, e, n) {
- var r, i = t._model || {},
- o = i.fill;
- if (void 0 === o && (o = !!i.backgroundColor), !1 === o || null === o) return !1;
- if (!0 === o) return "origin";
- if (r = parseFloat(o, 10), isFinite(r) && Math.floor(r) === r) return "-" !== o[0] && "+" !== o[0] || (r = e + r), !(r === e || r < 0 || r >= n) && r;
- switch (o) {
- case "bottom":
- return "start";
- case "top":
- return "end";
- case "zero":
- return "origin";
- case "origin":
- case "start":
- case "end":
- return o;
- default:
- return !1
- }
- }
- function l(t) {
- var e, n = t.el._model || {},
- r = t.el._scale || {},
- i = t.fill,
- o = null;
- if (isFinite(i)) return null;
- if ("start" === i ? o = void 0 === n.scaleBottom ? r.bottom : n.scaleBottom : "end" === i ? o = void 0 === n.scaleTop ? r.top : n.scaleTop : void 0 !== n.scaleZero ? o = n.scaleZero : r.getBasePosition ? o = r.getBasePosition() : r.getBasePixel && (o = r.getBasePixel()), null != o) {
- if (void 0 !== o.x && void 0 !== o.y) return o;
- if ("number" == typeof o && isFinite(o)) return {
- x: (e = r.isHorizontal()) ? o : null,
- y: e ? null : o
- }
- }
- return null
- }
- function u(t, e, n) {
- var r, i = t[e].fill,
- o = [e];
- if (!n) return i;
- for (; !1 !== i && -1 === o.indexOf(i);) {
- if (!isFinite(i)) return i;
- if (!(r = t[i])) return !1;
- if (r.visible) return i;
- o.push(i), i = r.fill
- }
- return !1
- }
- function c(t) {
- var e = t.fill,
- n = "dataset";
- return !1 === e ? null : (isFinite(e) || (n = "boundary"), a[n](t))
- }
- function d(t) {
- return t && !t.skip
- }
- function f(t, e, n, r, i) {
- var a;
- if (r && i) {
- for (t.moveTo(e[0].x, e[0].y), a = 1; a < r; ++a) o.canvas.lineTo(t, e[a - 1], e[a]);
- for (t.lineTo(n[i - 1].x, n[i - 1].y), a = i - 1; a > 0; --a) o.canvas.lineTo(t, n[a], n[a - 1], !0)
- }
- }
- e.exports = {
- id: "filler",
- afterDatasetsUpdate: function(t, e) {
- var n, r, o, a, d = (t.data.datasets || []).length,
- f = e.propagate,
- h = [];
- for (r = 0; r < d; ++r) a = null, (o = (n = t.getDatasetMeta(r)).dataset) && o._model && o instanceof i.Line && (a = {
- visible: t.isDatasetVisible(r),
- fill: s(o, r, d),
- chart: t,
- el: o
- }), n.$filler = a, h.push(a);
- for (r = 0; r < d; ++r)(a = h[r]) && (a.fill = u(h, r, f), a.boundary = l(a), a.mapper = c(a))
- },
- beforeDatasetDraw: function(t, e) {
- var n = e.meta.$filler;
- if (n) {
- var i = t.ctx,
- a = n.el,
- s = a._view,
- l = a._children || [],
- u = n.mapper,
- c = s.backgroundColor || r.global.defaultColor;
- u && c && l.length && (o.canvas.clipArea(i, t.chartArea), function(t, e, n, r, i, o) {
- var a, s, l, u, c, h, p, g = e.length,
- v = r.spanGaps,
- m = [],
- y = [],
- b = 0,
- x = 0;
- for (t.beginPath(), a = 0, s = g + !!o; a < s; ++a) c = n(u = e[l = a % g]._view, l, r), h = d(u), p = d(c), h && p ? (b = m.push(u), x = y.push(c)) : b && x && (v ? (h && m.push(u), p && y.push(c)) : (f(t, m, y, b, x), b = x = 0, m = [], y = []));
- f(t, m, y, b, x), t.closePath(), t.fillStyle = i, t.fill()
- }(i, l, u, s, c, a._loop), o.canvas.unclipArea(i))
- }
- }
- }
- }, {
- 26: 26,
- 41: 41,
- 46: 46
- }],
- 52: [function(t, e, n) {
- var r = t(26),
- i = t(27),
- o = t(46),
- a = t(31),
- s = o.noop;
- function l(t, e) {
- return t.usePointStyle ? e * Math.SQRT2 : t.boxWidth
- }
- r._set("global", {
- legend: {
- display: !0,
- position: "top",
- fullWidth: !0,
- reverse: !1,
- weight: 1e3,
- onClick: function(t, e) {
- var n = e.datasetIndex,
- r = this.chart,
- i = r.getDatasetMeta(n);
- i.hidden = null === i.hidden ? !r.data.datasets[n].hidden : null, r.update()
- },
- onHover: null,
- labels: {
- boxWidth: 40,
- padding: 10,
- generateLabels: function(t) {
- var e = t.data;
- return o.isArray(e.datasets) ? e.datasets.map((function(e, n) {
- return {
- text: e.label,
- fillStyle: o.isArray(e.backgroundColor) ? e.backgroundColor[0] : e.backgroundColor,
- hidden: !t.isDatasetVisible(n),
- lineCap: e.borderCapStyle,
- lineDash: e.borderDash,
- lineDashOffset: e.borderDashOffset,
- lineJoin: e.borderJoinStyle,
- lineWidth: e.borderWidth,
- strokeStyle: e.borderColor,
- pointStyle: e.pointStyle,
- datasetIndex: n
- }
- }), this) : []
- }
- }
- },
- legendCallback: function(t) {
- var e = [];
- e.push('<ul class="' + t.id + '-legend">');
- for (var n = 0; n < t.data.datasets.length; n++) e.push('<li><span style="background-color:' + t.data.datasets[n].backgroundColor + '"></span>'), t.data.datasets[n].label && e.push(t.data.datasets[n].label), e.push("</li>");
- return e.push("</ul>"), e.join("")
- }
- });
- var u = i.extend({
- initialize: function(t) {
- o.extend(this, t), this.legendHitBoxes = [], this.doughnutMode = !1
- },
- beforeUpdate: s,
- update: function(t, e, n) {
- var r = this;
- return r.beforeUpdate(), r.maxWidth = t, r.maxHeight = e, r.margins = n, r.beforeSetDimensions(), r.setDimensions(), r.afterSetDimensions(), r.beforeBuildLabels(), r.buildLabels(), r.afterBuildLabels(), r.beforeFit(), r.fit(), r.afterFit(), r.afterUpdate(), r.minSize
- },
- afterUpdate: s,
- beforeSetDimensions: s,
- setDimensions: function() {
- var t = this;
- t.isHorizontal() ? (t.width = t.maxWidth, t.left = 0, t.right = t.width) : (t.height = t.maxHeight, t.top = 0, t.bottom = t.height), t.paddingLeft = 0, t.paddingTop = 0, t.paddingRight = 0, t.paddingBottom = 0, t.minSize = {
- width: 0,
- height: 0
- }
- },
- afterSetDimensions: s,
- beforeBuildLabels: s,
- buildLabels: function() {
- var t = this,
- e = t.options.labels || {},
- n = o.callback(e.generateLabels, [t.chart], t) || [];
- e.filter && (n = n.filter((function(n) {
- return e.filter(n, t.chart.data)
- }))), t.options.reverse && n.reverse(), t.legendItems = n
- },
- afterBuildLabels: s,
- beforeFit: s,
- fit: function() {
- var t = this,
- e = t.options,
- n = e.labels,
- i = e.display,
- a = t.ctx,
- s = r.global,
- u = o.valueOrDefault,
- c = u(n.fontSize, s.defaultFontSize),
- d = u(n.fontStyle, s.defaultFontStyle),
- f = u(n.fontFamily, s.defaultFontFamily),
- h = o.fontString(c, d, f),
- p = t.legendHitBoxes = [],
- g = t.minSize,
- v = t.isHorizontal();
- if (v ? (g.width = t.maxWidth, g.height = i ? 10 : 0) : (g.width = i ? 10 : 0, g.height = t.maxHeight), i)
- if (a.font = h, v) {
- var m = t.lineWidths = [0],
- y = t.legendItems.length ? c + n.padding : 0;
- a.textAlign = "left", a.textBaseline = "top", o.each(t.legendItems, (function(e, r) {
- var i = l(n, c) + c / 2 + a.measureText(e.text).width;
- m[m.length - 1] + i + n.padding >= t.width && (y += c + n.padding, m[m.length] = t.left), p[r] = {
- left: 0,
- top: 0,
- width: i,
- height: c
- }, m[m.length - 1] += i + n.padding
- })), g.height += y
- } else {
- var b = n.padding,
- x = t.columnWidths = [],
- w = n.padding,
- S = 0,
- k = 0,
- C = c + b;
- o.each(t.legendItems, (function(t, e) {
- var r = l(n, c) + c / 2 + a.measureText(t.text).width;
- k + C > g.height && (w += S + n.padding, x.push(S), S = 0, k = 0), S = Math.max(S, r), k += C, p[e] = {
- left: 0,
- top: 0,
- width: r,
- height: c
- }
- })), w += S, x.push(S), g.width += w
- } t.width = g.width, t.height = g.height
- },
- afterFit: s,
- isHorizontal: function() {
- return "top" === this.options.position || "bottom" === this.options.position
- },
- draw: function() {
- var t = this,
- e = t.options,
- n = e.labels,
- i = r.global,
- a = i.elements.line,
- s = t.width,
- u = t.lineWidths;
- if (e.display) {
- var c, d = t.ctx,
- f = o.valueOrDefault,
- h = f(n.fontColor, i.defaultFontColor),
- p = f(n.fontSize, i.defaultFontSize),
- g = f(n.fontStyle, i.defaultFontStyle),
- v = f(n.fontFamily, i.defaultFontFamily),
- m = o.fontString(p, g, v);
- d.textAlign = "left", d.textBaseline = "middle", d.lineWidth = .5, d.strokeStyle = h, d.fillStyle = h, d.font = m;
- var y = l(n, p),
- b = t.legendHitBoxes,
- x = t.isHorizontal();
- c = x ? {
- x: t.left + (s - u[0]) / 2,
- y: t.top + n.padding,
- line: 0
- } : {
- x: t.left + n.padding,
- y: t.top + n.padding,
- line: 0
- };
- var w = p + n.padding;
- o.each(t.legendItems, (function(r, l) {
- var h = d.measureText(r.text).width,
- g = y + p / 2 + h,
- v = c.x,
- m = c.y;
- x ? v + g >= s && (m = c.y += w, c.line++, v = c.x = t.left + (s - u[c.line]) / 2) : m + w > t.bottom && (v = c.x = v + t.columnWidths[c.line] + n.padding, m = c.y = t.top + n.padding, c.line++),
- function(t, n, r) {
- if (!(isNaN(y) || y <= 0)) {
- d.save(), d.fillStyle = f(r.fillStyle, i.defaultColor), d.lineCap = f(r.lineCap, a.borderCapStyle), d.lineDashOffset = f(r.lineDashOffset, a.borderDashOffset), d.lineJoin = f(r.lineJoin, a.borderJoinStyle), d.lineWidth = f(r.lineWidth, a.borderWidth), d.strokeStyle = f(r.strokeStyle, i.defaultColor);
- var s = 0 === f(r.lineWidth, a.borderWidth);
- if (d.setLineDash && d.setLineDash(f(r.lineDash, a.borderDash)), e.labels && e.labels.usePointStyle) {
- var l = p * Math.SQRT2 / 2,
- u = l / Math.SQRT2,
- c = t + u,
- h = n + u;
- o.canvas.drawPoint(d, r.pointStyle, l, c, h)
- } else s || d.strokeRect(t, n, y, p), d.fillRect(t, n, y, p);
- d.restore()
- }
- }(v, m, r), b[l].left = v, b[l].top = m,
- function(t, e, n, r) {
- var i = p / 2,
- o = y + i + t,
- a = e + i;
- d.fillText(n.text, o, a), n.hidden && (d.beginPath(), d.lineWidth = 2, d.moveTo(o, a), d.lineTo(o + r, a), d.stroke())
- }(v, m, r, h), x ? c.x += g + n.padding : c.y += w
- }))
- }
- },
- handleEvent: function(t) {
- var e = this,
- n = e.options,
- r = "mouseup" === t.type ? "click" : t.type,
- i = !1;
- if ("mousemove" === r) {
- if (!n.onHover) return
- } else {
- if ("click" !== r) return;
- if (!n.onClick) return
- }
- var o = t.x,
- a = t.y;
- if (o >= e.left && o <= e.right && a >= e.top && a <= e.bottom)
- for (var s = e.legendHitBoxes, l = 0; l < s.length; ++l) {
- var u = s[l];
- if (o >= u.left && o <= u.left + u.width && a >= u.top && a <= u.top + u.height) {
- if ("click" === r) {
- n.onClick.call(e, t.native, e.legendItems[l]), i = !0;
- break
- }
- if ("mousemove" === r) {
- n.onHover.call(e, t.native, e.legendItems[l]), i = !0;
- break
- }
- }
- }
- return i
- }
- });
- function c(t, e) {
- var n = new u({
- ctx: t.ctx,
- options: e,
- chart: t
- });
- a.configure(t, n, e), a.addBox(t, n), t.legend = n
- }
- e.exports = {
- id: "legend",
- _element: u,
- beforeInit: function(t) {
- var e = t.options.legend;
- e && c(t, e)
- },
- beforeUpdate: function(t) {
- var e = t.options.legend,
- n = t.legend;
- e ? (o.mergeIf(e, r.global.legend), n ? (a.configure(t, n, e), n.options = e) : c(t, e)) : n && (a.removeBox(t, n), delete t.legend)
- },
- afterEvent: function(t, e) {
- var n = t.legend;
- n && n.handleEvent(e)
- }
- }
- }, {
- 26: 26,
- 27: 27,
- 31: 31,
- 46: 46
- }],
- 53: [function(t, e, n) {
- var r = t(26),
- i = t(27),
- o = t(46),
- a = t(31),
- s = o.noop;
- r._set("global", {
- title: {
- display: !1,
- fontStyle: "bold",
- fullWidth: !0,
- lineHeight: 1.2,
- padding: 10,
- position: "top",
- text: "",
- weight: 2e3
- }
- });
- var l = i.extend({
- initialize: function(t) {
- o.extend(this, t), this.legendHitBoxes = []
- },
- beforeUpdate: s,
- update: function(t, e, n) {
- var r = this;
- return r.beforeUpdate(), r.maxWidth = t, r.maxHeight = e, r.margins = n, r.beforeSetDimensions(), r.setDimensions(), r.afterSetDimensions(), r.beforeBuildLabels(), r.buildLabels(), r.afterBuildLabels(), r.beforeFit(), r.fit(), r.afterFit(), r.afterUpdate(), r.minSize
- },
- afterUpdate: s,
- beforeSetDimensions: s,
- setDimensions: function() {
- var t = this;
- t.isHorizontal() ? (t.width = t.maxWidth, t.left = 0, t.right = t.width) : (t.height = t.maxHeight, t.top = 0, t.bottom = t.height), t.paddingLeft = 0, t.paddingTop = 0, t.paddingRight = 0, t.paddingBottom = 0, t.minSize = {
- width: 0,
- height: 0
- }
- },
- afterSetDimensions: s,
- beforeBuildLabels: s,
- buildLabels: s,
- afterBuildLabels: s,
- beforeFit: s,
- fit: function() {
- var t = this,
- e = o.valueOrDefault,
- n = t.options,
- i = n.display,
- a = e(n.fontSize, r.global.defaultFontSize),
- s = t.minSize,
- l = o.isArray(n.text) ? n.text.length : 1,
- u = o.options.toLineHeight(n.lineHeight, a),
- c = i ? l * u + 2 * n.padding : 0;
- t.isHorizontal() ? (s.width = t.maxWidth, s.height = c) : (s.width = c, s.height = t.maxHeight), t.width = s.width, t.height = s.height
- },
- afterFit: s,
- isHorizontal: function() {
- var t = this.options.position;
- return "top" === t || "bottom" === t
- },
- draw: function() {
- var t = this,
- e = t.ctx,
- n = o.valueOrDefault,
- i = t.options,
- a = r.global;
- if (i.display) {
- var s, l, u, c = n(i.fontSize, a.defaultFontSize),
- d = n(i.fontStyle, a.defaultFontStyle),
- f = n(i.fontFamily, a.defaultFontFamily),
- h = o.fontString(c, d, f),
- p = o.options.toLineHeight(i.lineHeight, c),
- g = p / 2 + i.padding,
- v = 0,
- m = t.top,
- y = t.left,
- b = t.bottom,
- x = t.right;
- e.fillStyle = n(i.fontColor, a.defaultFontColor), e.font = h, t.isHorizontal() ? (l = y + (x - y) / 2, u = m + g, s = x - y) : (l = "left" === i.position ? y + g : x - g, u = m + (b - m) / 2, s = b - m, v = Math.PI * ("left" === i.position ? -.5 : .5)), e.save(), e.translate(l, u), e.rotate(v), e.textAlign = "center", e.textBaseline = "middle";
- var w = i.text;
- if (o.isArray(w))
- for (var S = 0, k = 0; k < w.length; ++k) e.fillText(w[k], 0, S, s), S += p;
- else e.fillText(w, 0, 0, s);
- e.restore()
- }
- }
- });
- function u(t, e) {
- var n = new l({
- ctx: t.ctx,
- options: e,
- chart: t
- });
- a.configure(t, n, e), a.addBox(t, n), t.titleBlock = n
- }
- e.exports = {
- id: "title",
- _element: l,
- beforeInit: function(t) {
- var e = t.options.title;
- e && u(t, e)
- },
- beforeUpdate: function(t) {
- var e = t.options.title,
- n = t.titleBlock;
- e ? (o.mergeIf(e, r.global.title), n ? (a.configure(t, n, e), n.options = e) : u(t, e)) : n && (a.removeBox(t, n), delete t.titleBlock)
- }
- }
- }, {
- 26: 26,
- 27: 27,
- 31: 31,
- 46: 46
- }],
- 54: [function(t, e, n) {
- var r = t(33),
- i = t(34);
- e.exports = function() {
- var t = r.extend({
- getLabels: function() {
- var t = this.chart.data;
- return this.options.labels || (this.isHorizontal() ? t.xLabels : t.yLabels) || t.labels
- },
- determineDataLimits: function() {
- var t, e = this,
- n = e.getLabels();
- e.minIndex = 0, e.maxIndex = n.length - 1, void 0 !== e.options.ticks.min && (t = n.indexOf(e.options.ticks.min), e.minIndex = -1 !== t ? t : e.minIndex), void 0 !== e.options.ticks.max && (t = n.indexOf(e.options.ticks.max), e.maxIndex = -1 !== t ? t : e.maxIndex), e.min = n[e.minIndex], e.max = n[e.maxIndex]
- },
- buildTicks: function() {
- var t = this,
- e = t.getLabels();
- t.ticks = 0 === t.minIndex && t.maxIndex === e.length - 1 ? e : e.slice(t.minIndex, t.maxIndex + 1)
- },
- getLabelForIndex: function(t, e) {
- var n = this,
- r = n.chart.data,
- i = n.isHorizontal();
- return r.yLabels && !i ? n.getRightValue(r.datasets[e].data[t]) : n.ticks[t - n.minIndex]
- },
- getPixelForValue: function(t, e) {
- var n, r = this,
- i = r.options.offset,
- o = Math.max(r.maxIndex + 1 - r.minIndex - (i ? 0 : 1), 1);
- if (null != t && (n = r.isHorizontal() ? t.x : t.y), void 0 !== n || void 0 !== t && isNaN(e)) {
- t = n || t;
- var a = r.getLabels().indexOf(t);
- e = -1 !== a ? a : e
- }
- if (r.isHorizontal()) {
- var s = r.width / o,
- l = s * (e - r.minIndex);
- return i && (l += s / 2), r.left + Math.round(l)
- }
- var u = r.height / o,
- c = u * (e - r.minIndex);
- return i && (c += u / 2), r.top + Math.round(c)
- },
- getPixelForTick: function(t) {
- return this.getPixelForValue(this.ticks[t], t + this.minIndex, null)
- },
- getValueForPixel: function(t) {
- var e = this,
- n = e.options.offset,
- r = Math.max(e._ticks.length - (n ? 0 : 1), 1),
- i = e.isHorizontal(),
- o = (i ? e.width : e.height) / r;
- return t -= i ? e.left : e.top, n && (t -= o / 2), (t <= 0 ? 0 : Math.round(t / o)) + e.minIndex
- },
- getBasePixel: function() {
- return this.bottom
- }
- });
- i.registerScaleType("category", t, {
- position: "bottom"
- })
- }
- }, {
- 33: 33,
- 34: 34
- }],
- 55: [function(t, e, n) {
- var r = t(26),
- i = t(46),
- o = t(34),
- a = t(35);
- e.exports = function(t) {
- var e = {
- position: "left",
- ticks: {
- callback: a.formatters.linear
- }
- },
- n = t.LinearScaleBase.extend({
- determineDataLimits: function() {
- var t = this,
- e = t.options,
- n = t.chart,
- r = n.data.datasets,
- o = t.isHorizontal();
- function a(e) {
- return o ? e.xAxisID === t.id : e.yAxisID === t.id
- }
- t.min = null, t.max = null;
- var s = e.stacked;
- if (void 0 === s && i.each(r, (function(t, e) {
- if (!s) {
- var r = n.getDatasetMeta(e);
- n.isDatasetVisible(e) && a(r) && void 0 !== r.stack && (s = !0)
- }
- })), e.stacked || s) {
- var l = {};
- i.each(r, (function(r, o) {
- var s = n.getDatasetMeta(o),
- u = [s.type, void 0 === e.stacked && void 0 === s.stack ? o : "", s.stack].join(".");
- void 0 === l[u] && (l[u] = {
- positiveValues: [],
- negativeValues: []
- });
- var c = l[u].positiveValues,
- d = l[u].negativeValues;
- n.isDatasetVisible(o) && a(s) && i.each(r.data, (function(n, r) {
- var i = +t.getRightValue(n);
- isNaN(i) || s.data[r].hidden || (c[r] = c[r] || 0, d[r] = d[r] || 0, e.relativePoints ? c[r] = 100 : i < 0 ? d[r] += i : c[r] += i)
- }))
- })), i.each(l, (function(e) {
- var n = e.positiveValues.concat(e.negativeValues),
- r = i.min(n),
- o = i.max(n);
- t.min = null === t.min ? r : Math.min(t.min, r), t.max = null === t.max ? o : Math.max(t.max, o)
- }))
- } else i.each(r, (function(e, r) {
- var o = n.getDatasetMeta(r);
- n.isDatasetVisible(r) && a(o) && i.each(e.data, (function(e, n) {
- var r = +t.getRightValue(e);
- isNaN(r) || o.data[n].hidden || (null === t.min ? t.min = r : r < t.min && (t.min = r), null === t.max ? t.max = r : r > t.max && (t.max = r))
- }))
- }));
- t.min = isFinite(t.min) && !isNaN(t.min) ? t.min : 0, t.max = isFinite(t.max) && !isNaN(t.max) ? t.max : 1, this.handleTickRangeOptions()
- },
- getTickLimit: function() {
- var t, e = this.options.ticks;
- if (this.isHorizontal()) t = Math.min(e.maxTicksLimit ? e.maxTicksLimit : 11, Math.ceil(this.width / 50));
- else {
- var n = i.valueOrDefault(e.fontSize, r.global.defaultFontSize);
- t = Math.min(e.maxTicksLimit ? e.maxTicksLimit : 11, Math.ceil(this.height / (2 * n)))
- }
- return t
- },
- handleDirectionalChanges: function() {
- this.isHorizontal() || this.ticks.reverse()
- },
- getLabelForIndex: function(t, e) {
- return +this.getRightValue(this.chart.data.datasets[e].data[t])
- },
- getPixelForValue: function(t) {
- var e = this,
- n = e.start,
- r = +e.getRightValue(t),
- i = e.end - n;
- return e.isHorizontal() ? e.left + e.width / i * (r - n) : e.bottom - e.height / i * (r - n)
- },
- getValueForPixel: function(t) {
- var e = this,
- n = e.isHorizontal(),
- r = n ? e.width : e.height,
- i = (n ? t - e.left : e.bottom - t) / r;
- return e.start + (e.end - e.start) * i
- },
- getPixelForTick: function(t) {
- return this.getPixelForValue(this.ticksAsNumbers[t])
- }
- });
- o.registerScaleType("linear", n, e)
- }
- }, {
- 26: 26,
- 34: 34,
- 35: 35,
- 46: 46
- }],
- 56: [function(t, e, n) {
- var r = t(46),
- i = t(33);
- e.exports = function(t) {
- var e = r.noop;
- t.LinearScaleBase = i.extend({
- getRightValue: function(t) {
- return "string" == typeof t ? +t : i.prototype.getRightValue.call(this, t)
- },
- handleTickRangeOptions: function() {
- var t = this,
- e = t.options.ticks;
- if (e.beginAtZero) {
- var n = r.sign(t.min),
- i = r.sign(t.max);
- n < 0 && i < 0 ? t.max = 0 : n > 0 && i > 0 && (t.min = 0)
- }
- var o = void 0 !== e.min || void 0 !== e.suggestedMin,
- a = void 0 !== e.max || void 0 !== e.suggestedMax;
- void 0 !== e.min ? t.min = e.min : void 0 !== e.suggestedMin && (null === t.min ? t.min = e.suggestedMin : t.min = Math.min(t.min, e.suggestedMin)), void 0 !== e.max ? t.max = e.max : void 0 !== e.suggestedMax && (null === t.max ? t.max = e.suggestedMax : t.max = Math.max(t.max, e.suggestedMax)), o !== a && t.min >= t.max && (o ? t.max = t.min + 1 : t.min = t.max - 1), t.min === t.max && (t.max++, e.beginAtZero || t.min--)
- },
- getTickLimit: e,
- handleDirectionalChanges: e,
- buildTicks: function() {
- var t = this,
- e = t.options.ticks,
- n = t.getTickLimit(),
- i = {
- maxTicks: n = Math.max(2, n),
- min: e.min,
- max: e.max,
- precision: e.precision,
- stepSize: r.valueOrDefault(e.fixedStepSize, e.stepSize)
- },
- o = t.ticks = function(t, e) {
- var n, i, o, a = [];
- if (t.stepSize && t.stepSize > 0) o = t.stepSize;
- else {
- var s = r.niceNum(e.max - e.min, !1);
- o = r.niceNum(s / (t.maxTicks - 1), !0), void 0 !== (i = t.precision) && (n = Math.pow(10, i), o = Math.ceil(o * n) / n)
- }
- var l = Math.floor(e.min / o) * o,
- u = Math.ceil(e.max / o) * o;
- r.isNullOrUndef(t.min) || r.isNullOrUndef(t.max) || !t.stepSize || r.almostWhole((t.max - t.min) / t.stepSize, o / 1e3) && (l = t.min, u = t.max);
- var c = (u - l) / o;
- c = r.almostEquals(c, Math.round(c), o / 1e3) ? Math.round(c) : Math.ceil(c), i = 1, o < 1 && (i = Math.pow(10, 1 - Math.floor(r.log10(o))), l = Math.round(l * i) / i, u = Math.round(u * i) / i), a.push(void 0 !== t.min ? t.min : l);
- for (var d = 1; d < c; ++d) a.push(Math.round((l + d * o) * i) / i);
- return a.push(void 0 !== t.max ? t.max : u), a
- }(i, t);
- t.handleDirectionalChanges(), t.max = r.max(o), t.min = r.min(o), e.reverse ? (o.reverse(), t.start = t.max, t.end = t.min) : (t.start = t.min, t.end = t.max)
- },
- convertTicksToLabels: function() {
- var t = this;
- t.ticksAsNumbers = t.ticks.slice(), t.zeroLineIndex = t.ticks.indexOf(0), i.prototype.convertTicksToLabels.call(t)
- }
- })
- }
- }, {
- 33: 33,
- 46: 46
- }],
- 57: [function(t, e, n) {
- var r = t(46),
- i = t(33),
- o = t(34),
- a = t(35);
- e.exports = function(t) {
- var e = {
- position: "left",
- ticks: {
- callback: a.formatters.logarithmic
- }
- },
- n = i.extend({
- determineDataLimits: function() {
- var t = this,
- e = t.options,
- n = t.chart,
- i = n.data.datasets,
- o = t.isHorizontal();
- function a(e) {
- return o ? e.xAxisID === t.id : e.yAxisID === t.id
- }
- t.min = null, t.max = null, t.minNotZero = null;
- var s = e.stacked;
- if (void 0 === s && r.each(i, (function(t, e) {
- if (!s) {
- var r = n.getDatasetMeta(e);
- n.isDatasetVisible(e) && a(r) && void 0 !== r.stack && (s = !0)
- }
- })), e.stacked || s) {
- var l = {};
- r.each(i, (function(i, o) {
- var s = n.getDatasetMeta(o),
- u = [s.type, void 0 === e.stacked && void 0 === s.stack ? o : "", s.stack].join(".");
- n.isDatasetVisible(o) && a(s) && (void 0 === l[u] && (l[u] = []), r.each(i.data, (function(e, n) {
- var r = l[u],
- i = +t.getRightValue(e);
- isNaN(i) || s.data[n].hidden || i < 0 || (r[n] = r[n] || 0, r[n] += i)
- })))
- })), r.each(l, (function(e) {
- if (e.length > 0) {
- var n = r.min(e),
- i = r.max(e);
- t.min = null === t.min ? n : Math.min(t.min, n), t.max = null === t.max ? i : Math.max(t.max, i)
- }
- }))
- } else r.each(i, (function(e, i) {
- var o = n.getDatasetMeta(i);
- n.isDatasetVisible(i) && a(o) && r.each(e.data, (function(e, n) {
- var r = +t.getRightValue(e);
- isNaN(r) || o.data[n].hidden || r < 0 || (null === t.min ? t.min = r : r < t.min && (t.min = r), null === t.max ? t.max = r : r > t.max && (t.max = r), 0 !== r && (null === t.minNotZero || r < t.minNotZero) && (t.minNotZero = r))
- }))
- }));
- this.handleTickRangeOptions()
- },
- handleTickRangeOptions: function() {
- var t = this,
- e = t.options.ticks,
- n = r.valueOrDefault;
- t.min = n(e.min, t.min), t.max = n(e.max, t.max), t.min === t.max && (0 !== t.min && null !== t.min ? (t.min = Math.pow(10, Math.floor(r.log10(t.min)) - 1), t.max = Math.pow(10, Math.floor(r.log10(t.max)) + 1)) : (t.min = 1, t.max = 10)), null === t.min && (t.min = Math.pow(10, Math.floor(r.log10(t.max)) - 1)), null === t.max && (t.max = 0 !== t.min ? Math.pow(10, Math.floor(r.log10(t.min)) + 1) : 10), null === t.minNotZero && (t.min > 0 ? t.minNotZero = t.min : t.max < 1 ? t.minNotZero = Math.pow(10, Math.floor(r.log10(t.max))) : t.minNotZero = 1)
- },
- buildTicks: function() {
- var t = this,
- e = t.options.ticks,
- n = !t.isHorizontal(),
- i = {
- min: e.min,
- max: e.max
- },
- o = t.ticks = function(t, e) {
- var n, i, o = [],
- a = r.valueOrDefault,
- s = a(t.min, Math.pow(10, Math.floor(r.log10(e.min)))),
- l = Math.floor(r.log10(e.max)),
- u = Math.ceil(e.max / Math.pow(10, l));
- 0 === s ? (n = Math.floor(r.log10(e.minNotZero)), i = Math.floor(e.minNotZero / Math.pow(10, n)), o.push(s), s = i * Math.pow(10, n)) : (n = Math.floor(r.log10(s)), i = Math.floor(s / Math.pow(10, n)));
- var c = n < 0 ? Math.pow(10, Math.abs(n)) : 1;
- do {
- o.push(s), 10 === ++i && (i = 1, c = ++n >= 0 ? 1 : c), s = Math.round(i * Math.pow(10, n) * c) / c
- } while (n < l || n === l && i < u);
- var d = a(t.max, s);
- return o.push(d), o
- }(i, t);
- t.max = r.max(o), t.min = r.min(o), e.reverse ? (n = !n, t.start = t.max, t.end = t.min) : (t.start = t.min, t.end = t.max), n && o.reverse()
- },
- convertTicksToLabels: function() {
- this.tickValues = this.ticks.slice(), i.prototype.convertTicksToLabels.call(this)
- },
- getLabelForIndex: function(t, e) {
- return +this.getRightValue(this.chart.data.datasets[e].data[t])
- },
- getPixelForTick: function(t) {
- return this.getPixelForValue(this.tickValues[t])
- },
- _getFirstTickValue: function(t) {
- var e = Math.floor(r.log10(t));
- return Math.floor(t / Math.pow(10, e)) * Math.pow(10, e)
- },
- getPixelForValue: function(e) {
- var n, i, o, a, s, l = this,
- u = l.options.ticks.reverse,
- c = r.log10,
- d = l._getFirstTickValue(l.minNotZero),
- f = 0;
- return e = +l.getRightValue(e), u ? (o = l.end, a = l.start, s = -1) : (o = l.start, a = l.end, s = 1), l.isHorizontal() ? (n = l.width, i = u ? l.right : l.left) : (n = l.height, s *= -1, i = u ? l.top : l.bottom), e !== o && (0 === o && (n -= f = r.getValueOrDefault(l.options.ticks.fontSize, t.defaults.global.defaultFontSize), o = d), 0 !== e && (f += n / (c(a) - c(o)) * (c(e) - c(o))), i += s * f), i
- },
- getValueForPixel: function(e) {
- var n, i, o, a, s = this,
- l = s.options.ticks.reverse,
- u = r.log10,
- c = s._getFirstTickValue(s.minNotZero);
- if (l ? (i = s.end, o = s.start) : (i = s.start, o = s.end), s.isHorizontal() ? (n = s.width, a = l ? s.right - e : e - s.left) : (n = s.height, a = l ? e - s.top : s.bottom - e), a !== i) {
- if (0 === i) {
- var d = r.getValueOrDefault(s.options.ticks.fontSize, t.defaults.global.defaultFontSize);
- a -= d, n -= d, i = c
- }
- a *= u(o) - u(i), a /= n, a = Math.pow(10, u(i) + a)
- }
- return a
- }
- });
- o.registerScaleType("logarithmic", n, e)
- }
- }, {
- 33: 33,
- 34: 34,
- 35: 35,
- 46: 46
- }],
- 58: [function(t, e, n) {
- var r = t(26),
- i = t(46),
- o = t(34),
- a = t(35);
- e.exports = function(t) {
- var e = r.global,
- n = {
- display: !0,
- animate: !0,
- position: "chartArea",
- angleLines: {
- display: !0,
- color: "rgba(0, 0, 0, 0.1)",
- lineWidth: 1
- },
- gridLines: {
- circular: !1
- },
- ticks: {
- showLabelBackdrop: !0,
- backdropColor: "rgba(255,255,255,0.75)",
- backdropPaddingY: 2,
- backdropPaddingX: 2,
- callback: a.formatters.linear
- },
- pointLabels: {
- display: !0,
- fontSize: 10,
- callback: function(t) {
- return t
- }
- }
- };
- function s(t) {
- var e = t.options;
- return e.angleLines.display || e.pointLabels.display ? t.chart.data.labels.length : 0
- }
- function l(t) {
- var n = t.options.pointLabels,
- r = i.valueOrDefault(n.fontSize, e.defaultFontSize),
- o = i.valueOrDefault(n.fontStyle, e.defaultFontStyle),
- a = i.valueOrDefault(n.fontFamily, e.defaultFontFamily);
- return {
- size: r,
- style: o,
- family: a,
- font: i.fontString(r, o, a)
- }
- }
- function u(t, e, n, r, i) {
- return t === r || t === i ? {
- start: e - n / 2,
- end: e + n / 2
- } : t < r || t > i ? {
- start: e - n - 5,
- end: e
- } : {
- start: e,
- end: e + n + 5
- }
- }
- function c(t) {
- return 0 === t || 180 === t ? "center" : t < 180 ? "left" : "right"
- }
- function d(t, e, n, r) {
- if (i.isArray(e))
- for (var o = n.y, a = 1.5 * r, s = 0; s < e.length; ++s) t.fillText(e[s], n.x, o), o += a;
- else t.fillText(e, n.x, n.y)
- }
- function f(t, e, n) {
- 90 === t || 270 === t ? n.y -= e.h / 2 : (t > 270 || t < 90) && (n.y -= e.h)
- }
- function h(t) {
- return i.isNumber(t) ? t : 0
- }
- var p = t.LinearScaleBase.extend({
- setDimensions: function() {
- var t = this,
- n = t.options,
- r = n.ticks;
- t.width = t.maxWidth, t.height = t.maxHeight, t.xCenter = Math.round(t.width / 2), t.yCenter = Math.round(t.height / 2);
- var o = i.min([t.height, t.width]),
- a = i.valueOrDefault(r.fontSize, e.defaultFontSize);
- t.drawingArea = n.display ? o / 2 - (a / 2 + r.backdropPaddingY) : o / 2
- },
- determineDataLimits: function() {
- var t = this,
- e = t.chart,
- n = Number.POSITIVE_INFINITY,
- r = Number.NEGATIVE_INFINITY;
- i.each(e.data.datasets, (function(o, a) {
- if (e.isDatasetVisible(a)) {
- var s = e.getDatasetMeta(a);
- i.each(o.data, (function(e, i) {
- var o = +t.getRightValue(e);
- isNaN(o) || s.data[i].hidden || (n = Math.min(o, n), r = Math.max(o, r))
- }))
- }
- })), t.min = n === Number.POSITIVE_INFINITY ? 0 : n, t.max = r === Number.NEGATIVE_INFINITY ? 0 : r, t.handleTickRangeOptions()
- },
- getTickLimit: function() {
- var t = this.options.ticks,
- n = i.valueOrDefault(t.fontSize, e.defaultFontSize);
- return Math.min(t.maxTicksLimit ? t.maxTicksLimit : 11, Math.ceil(this.drawingArea / (1.5 * n)))
- },
- convertTicksToLabels: function() {
- var e = this;
- t.LinearScaleBase.prototype.convertTicksToLabels.call(e), e.pointLabels = e.chart.data.labels.map(e.options.pointLabels.callback, e)
- },
- getLabelForIndex: function(t, e) {
- return +this.getRightValue(this.chart.data.datasets[e].data[t])
- },
- fit: function() {
- var t, e;
- this.options.pointLabels.display ? function(t) {
- var e, n, r, o = l(t),
- a = Math.min(t.height / 2, t.width / 2),
- c = {
- r: t.width,
- l: 0,
- t: t.height,
- b: 0
- },
- d = {};
- t.ctx.font = o.font, t._pointLabelSizes = [];
- var f, h, p, g = s(t);
- for (e = 0; e < g; e++) {
- r = t.getPointPosition(e, a), f = t.ctx, h = o.size, p = t.pointLabels[e] || "", n = i.isArray(p) ? {
- w: i.longestText(f, f.font, p),
- h: p.length * h + 1.5 * (p.length - 1) * h
- } : {
- w: f.measureText(p).width,
- h: h
- }, t._pointLabelSizes[e] = n;
- var v = t.getIndexAngle(e),
- m = i.toDegrees(v) % 360,
- y = u(m, r.x, n.w, 0, 180),
- b = u(m, r.y, n.h, 90, 270);
- y.start < c.l && (c.l = y.start, d.l = v), y.end > c.r && (c.r = y.end, d.r = v), b.start < c.t && (c.t = b.start, d.t = v), b.end > c.b && (c.b = b.end, d.b = v)
- }
- t.setReductions(a, c, d)
- }(this) : (t = this, e = Math.min(t.height / 2, t.width / 2), t.drawingArea = Math.round(e), t.setCenterPoint(0, 0, 0, 0))
- },
- setReductions: function(t, e, n) {
- var r = e.l / Math.sin(n.l),
- i = Math.max(e.r - this.width, 0) / Math.sin(n.r),
- o = -e.t / Math.cos(n.t),
- a = -Math.max(e.b - this.height, 0) / Math.cos(n.b);
- r = h(r), i = h(i), o = h(o), a = h(a), this.drawingArea = Math.min(Math.round(t - (r + i) / 2), Math.round(t - (o + a) / 2)), this.setCenterPoint(r, i, o, a)
- },
- setCenterPoint: function(t, e, n, r) {
- var i = this,
- o = i.width - e - i.drawingArea,
- a = t + i.drawingArea,
- s = n + i.drawingArea,
- l = i.height - r - i.drawingArea;
- i.xCenter = Math.round((a + o) / 2 + i.left), i.yCenter = Math.round((s + l) / 2 + i.top)
- },
- getIndexAngle: function(t) {
- return t * (2 * Math.PI / s(this)) + (this.chart.options && this.chart.options.startAngle ? this.chart.options.startAngle : 0) * Math.PI * 2 / 360
- },
- getDistanceFromCenterForValue: function(t) {
- var e = this;
- if (null === t) return 0;
- var n = e.drawingArea / (e.max - e.min);
- return e.options.ticks.reverse ? (e.max - t) * n : (t - e.min) * n
- },
- getPointPosition: function(t, e) {
- var n = this.getIndexAngle(t) - Math.PI / 2;
- return {
- x: Math.round(Math.cos(n) * e) + this.xCenter,
- y: Math.round(Math.sin(n) * e) + this.yCenter
- }
- },
- getPointPositionForValue: function(t, e) {
- return this.getPointPosition(t, this.getDistanceFromCenterForValue(e))
- },
- getBasePosition: function() {
- var t = this.min,
- e = this.max;
- return this.getPointPositionForValue(0, this.beginAtZero ? 0 : t < 0 && e < 0 ? e : t > 0 && e > 0 ? t : 0)
- },
- draw: function() {
- var t = this,
- n = t.options,
- r = n.gridLines,
- o = n.ticks,
- a = i.valueOrDefault;
- if (n.display) {
- var u = t.ctx,
- h = this.getIndexAngle(0),
- p = a(o.fontSize, e.defaultFontSize),
- g = a(o.fontStyle, e.defaultFontStyle),
- v = a(o.fontFamily, e.defaultFontFamily),
- m = i.fontString(p, g, v);
- i.each(t.ticks, (function(n, l) {
- if (l > 0 || o.reverse) {
- var c = t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]);
- if (r.display && 0 !== l && function(t, e, n, r) {
- var o = t.ctx;
- if (o.strokeStyle = i.valueAtIndexOrDefault(e.color, r - 1), o.lineWidth = i.valueAtIndexOrDefault(e.lineWidth, r - 1), t.options.gridLines.circular) o.beginPath(), o.arc(t.xCenter, t.yCenter, n, 0, 2 * Math.PI), o.closePath(), o.stroke();
- else {
- var a = s(t);
- if (0 === a) return;
- o.beginPath();
- var l = t.getPointPosition(0, n);
- o.moveTo(l.x, l.y);
- for (var u = 1; u < a; u++) l = t.getPointPosition(u, n), o.lineTo(l.x, l.y);
- o.closePath(), o.stroke()
- }
- }(t, r, c, l), o.display) {
- var d = a(o.fontColor, e.defaultFontColor);
- if (u.font = m, u.save(), u.translate(t.xCenter, t.yCenter), u.rotate(h), o.showLabelBackdrop) {
- var f = u.measureText(n).width;
- u.fillStyle = o.backdropColor, u.fillRect(-f / 2 - o.backdropPaddingX, -c - p / 2 - o.backdropPaddingY, f + 2 * o.backdropPaddingX, p + 2 * o.backdropPaddingY)
- }
- u.textAlign = "center", u.textBaseline = "middle", u.fillStyle = d, u.fillText(n, 0, -c), u.restore()
- }
- }
- })), (n.angleLines.display || n.pointLabels.display) && function(t) {
- var n = t.ctx,
- r = t.options,
- o = r.angleLines,
- a = r.pointLabels;
- n.lineWidth = o.lineWidth, n.strokeStyle = o.color;
- var u = t.getDistanceFromCenterForValue(r.ticks.reverse ? t.min : t.max),
- h = l(t);
- n.textBaseline = "top";
- for (var p = s(t) - 1; p >= 0; p--) {
- if (o.display) {
- var g = t.getPointPosition(p, u);
- n.beginPath(), n.moveTo(t.xCenter, t.yCenter), n.lineTo(g.x, g.y), n.stroke(), n.closePath()
- }
- if (a.display) {
- var v = t.getPointPosition(p, u + 5),
- m = i.valueAtIndexOrDefault(a.fontColor, p, e.defaultFontColor);
- n.font = h.font, n.fillStyle = m;
- var y = t.getIndexAngle(p),
- b = i.toDegrees(y);
- n.textAlign = c(b), f(b, t._pointLabelSizes[p], v), d(n, t.pointLabels[p] || "", v, h.size)
- }
- }
- }(t)
- }
- }
- });
- o.registerScaleType("radialLinear", p, n)
- }
- }, {
- 26: 26,
- 34: 34,
- 35: 35,
- 46: 46
- }],
- 59: [function(t, e, n) {
- var r = t(1);
- r = "function" == typeof r ? r : window.moment;
- var i = t(26),
- o = t(46),
- a = t(33),
- s = t(34),
- l = Number.MIN_SAFE_INTEGER || -9007199254740991,
- u = Number.MAX_SAFE_INTEGER || 9007199254740991,
- c = {
- millisecond: {
- common: !0,
- size: 1,
- steps: [1, 2, 5, 10, 20, 50, 100, 250, 500]
- },
- second: {
- common: !0,
- size: 1e3,
- steps: [1, 2, 5, 10, 15, 30]
- },
- minute: {
- common: !0,
- size: 6e4,
- steps: [1, 2, 5, 10, 15, 30]
- },
- hour: {
- common: !0,
- size: 36e5,
- steps: [1, 2, 3, 6, 12]
- },
- day: {
- common: !0,
- size: 864e5,
- steps: [1, 2, 5]
- },
- week: {
- common: !1,
- size: 6048e5,
- steps: [1, 2, 3, 4]
- },
- month: {
- common: !0,
- size: 2628e6,
- steps: [1, 2, 3]
- },
- quarter: {
- common: !1,
- size: 7884e6,
- steps: [1, 2, 3, 4]
- },
- year: {
- common: !0,
- size: 3154e7
- }
- },
- d = Object.keys(c);
- function f(t, e) {
- return t - e
- }
- function h(t) {
- var e, n, r, i = {},
- o = [];
- for (e = 0, n = t.length; e < n; ++e) i[r = t[e]] || (i[r] = !0, o.push(r));
- return o
- }
- function p(t, e, n, r) {
- var i = function(t, e, n) {
- for (var r, i, o, a = 0, s = t.length - 1; a >= 0 && a <= s;) {
- if (i = t[(r = a + s >> 1) - 1] || null, o = t[r], !i) return {
- lo: null,
- hi: o
- };
- if (o[e] < n) a = r + 1;
- else {
- if (!(i[e] > n)) return {
- lo: i,
- hi: o
- };
- s = r - 1
- }
- }
- return {
- lo: o,
- hi: null
- }
- }(t, e, n),
- o = i.lo ? i.hi ? i.lo : t[t.length - 2] : t[0],
- a = i.lo ? i.hi ? i.hi : t[t.length - 1] : t[1],
- s = a[e] - o[e],
- l = s ? (n - o[e]) / s : 0,
- u = (a[r] - o[r]) * l;
- return o[r] + u
- }
- function g(t, e) {
- var n = e.parser,
- i = e.parser || e.format;
- return "function" == typeof n ? n(t) : "string" == typeof t && "string" == typeof i ? r(t, i) : (t instanceof r || (t = r(t)), t.isValid() ? t : "function" == typeof i ? i(t) : t)
- }
- function v(t, e) {
- if (o.isNullOrUndef(t)) return null;
- var n = e.options.time,
- r = g(e.getRightValue(t), n);
- return r.isValid() ? (n.round && r.startOf(n.round), r.valueOf()) : null
- }
- function m(t) {
- for (var e = d.indexOf(t) + 1, n = d.length; e < n; ++e)
- if (c[d[e]].common) return d[e]
- }
- function y(t, e, n, i) {
- var a, s = i.time,
- l = s.unit || function(t, e, n, r) {
- var i, o, a, s = d.length;
- for (i = d.indexOf(t); i < s - 1; ++i)
- if (a = (o = c[d[i]]).steps ? o.steps[o.steps.length - 1] : u, o.common && Math.ceil((n - e) / (a * o.size)) <= r) return d[i];
- return d[s - 1]
- }(s.minUnit, t, e, n),
- f = m(l),
- h = o.valueOrDefault(s.stepSize, s.unitStepSize),
- p = "week" === l && s.isoWeekday,
- g = i.ticks.major.enabled,
- v = c[l],
- y = r(t),
- b = r(e),
- x = [];
- for (h || (h = function(t, e, n, r) {
- var i, o, a, s = e - t,
- l = c[n],
- u = l.size,
- d = l.steps;
- if (!d) return Math.ceil(s / (r * u));
- for (i = 0, o = d.length; i < o && (a = d[i], !(Math.ceil(s / (u * a)) <= r)); ++i);
- return a
- }(t, e, l, n)), p && (y = y.isoWeekday(p), b = b.isoWeekday(p)), y = y.startOf(p ? "day" : l), (b = b.startOf(p ? "day" : l)) < e && b.add(1, l), a = r(y), g && f && !p && !s.round && (a.startOf(f), a.add(~~((y - a) / (v.size * h)) * h, l)); a < b; a.add(h, l)) x.push(+a);
- return x.push(+a), x
- }
- e.exports = function() {
- var t = a.extend({
- initialize: function() {
- if (!r) throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");
- this.mergeTicksOptions(), a.prototype.initialize.call(this)
- },
- update: function() {
- var t = this,
- e = t.options;
- return e.time && e.time.format && console.warn("options.time.format is deprecated and replaced by options.time.parser."), a.prototype.update.apply(t, arguments)
- },
- getRightValue: function(t) {
- return t && void 0 !== t.t && (t = t.t), a.prototype.getRightValue.call(this, t)
- },
- determineDataLimits: function() {
- var t, e, n, i, a, s, c = this,
- d = c.chart,
- p = c.options.time,
- g = p.unit || "day",
- m = u,
- y = l,
- b = [],
- x = [],
- w = [];
- for (t = 0, n = d.data.labels.length; t < n; ++t) w.push(v(d.data.labels[t], c));
- for (t = 0, n = (d.data.datasets || []).length; t < n; ++t)
- if (d.isDatasetVisible(t))
- if (a = d.data.datasets[t].data, o.isObject(a[0]))
- for (x[t] = [], e = 0, i = a.length; e < i; ++e) s = v(a[e], c), b.push(s), x[t][e] = s;
- else b.push.apply(b, w), x[t] = w.slice(0);
- else x[t] = [];
- w.length && (w = h(w).sort(f), m = Math.min(m, w[0]), y = Math.max(y, w[w.length - 1])), b.length && (b = h(b).sort(f), m = Math.min(m, b[0]), y = Math.max(y, b[b.length - 1])), m = v(p.min, c) || m, y = v(p.max, c) || y, m = m === u ? +r().startOf(g) : m, y = y === l ? +r().endOf(g) + 1 : y, c.min = Math.min(m, y), c.max = Math.max(m + 1, y), c._horizontal = c.isHorizontal(), c._table = [], c._timestamps = {
- data: b,
- datasets: x,
- labels: w
- }
- },
- buildTicks: function() {
- var t, e, n, i = this,
- o = i.min,
- a = i.max,
- s = i.options,
- l = s.time,
- u = [],
- f = [];
- switch (s.ticks.source) {
- case "data":
- u = i._timestamps.data;
- break;
- case "labels":
- u = i._timestamps.labels;
- break;
- case "auto":
- default:
- u = y(o, a, i.getLabelCapacity(o), s)
- }
- for ("ticks" === s.bounds && u.length && (o = u[0], a = u[u.length - 1]), o = v(l.min, i) || o, a = v(l.max, i) || a, t = 0, e = u.length; t < e; ++t)(n = u[t]) >= o && n <= a && f.push(n);
- return i.min = o, i.max = a, i._unit = l.unit || function(t, e, n, i) {
- var o, a, s = r.duration(r(i).diff(r(n)));
- for (o = d.length - 1; o >= d.indexOf(e); o--)
- if (a = d[o], c[a].common && s.as(a) >= t.length) return a;
- return d[e ? d.indexOf(e) : 0]
- }(f, l.minUnit, i.min, i.max), i._majorUnit = m(i._unit), i._table = function(t, e, n, r) {
- if ("linear" === r || !t.length) return [{
- time: e,
- pos: 0
- }, {
- time: n,
- pos: 1
- }];
- var i, o, a, s, l, u = [],
- c = [e];
- for (i = 0, o = t.length; i < o; ++i)(s = t[i]) > e && s < n && c.push(s);
- for (c.push(n), i = 0, o = c.length; i < o; ++i) l = c[i + 1], a = c[i - 1], s = c[i], void 0 !== a && void 0 !== l && Math.round((l + a) / 2) === s || u.push({
- time: s,
- pos: i / (o - 1)
- });
- return u
- }(i._timestamps.data, o, a, s.distribution), i._offsets = function(t, e, n, r, i) {
- var o, a, s = 0,
- l = 0;
- return i.offset && e.length && (i.time.min || (o = e.length > 1 ? e[1] : r, a = e[0], s = (p(t, "time", o, "pos") - p(t, "time", a, "pos")) / 2), i.time.max || (o = e[e.length - 1], a = e.length > 1 ? e[e.length - 2] : n, l = (p(t, "time", o, "pos") - p(t, "time", a, "pos")) / 2)), {
- left: s,
- right: l
- }
- }(i._table, f, o, a, s), i._labelFormat = function(t, e) {
- var n, r, i, o = t.length;
- for (n = 0; n < o; n++) {
- if (0 !== (r = g(t[n], e)).millisecond()) return "MMM D, YYYY h:mm:ss.SSS a";
- 0 === r.second() && 0 === r.minute() && 0 === r.hour() || (i = !0)
- }
- return i ? "MMM D, YYYY h:mm:ss a" : "MMM D, YYYY"
- }(i._timestamps.data, l),
- function(t, e) {
- var n, i, o, a, s = [];
- for (n = 0, i = t.length; n < i; ++n) o = t[n], a = !!e && o === +r(o).startOf(e), s.push({
- value: o,
- major: a
- });
- return s
- }(f, i._majorUnit)
- },
- getLabelForIndex: function(t, e) {
- var n = this.chart.data,
- r = this.options.time,
- i = n.labels && t < n.labels.length ? n.labels[t] : "",
- a = n.datasets[e].data[t];
- return o.isObject(a) && (i = this.getRightValue(a)), r.tooltipFormat ? g(i, r).format(r.tooltipFormat) : "string" == typeof i ? i : g(i, r).format(this._labelFormat)
- },
- tickFormatFunction: function(t, e, n, r) {
- var i = this.options,
- a = t.valueOf(),
- s = i.time.displayFormats,
- l = s[this._unit],
- u = this._majorUnit,
- c = s[u],
- d = t.clone().startOf(u).valueOf(),
- f = i.ticks.major,
- h = f.enabled && u && c && a === d,
- p = t.format(r || (h ? c : l)),
- g = h ? f : i.ticks.minor,
- v = o.valueOrDefault(g.callback, g.userCallback);
- return v ? v(p, e, n) : p
- },
- convertTicksToLabels: function(t) {
- var e, n, i = [];
- for (e = 0, n = t.length; e < n; ++e) i.push(this.tickFormatFunction(r(t[e].value), e, t));
- return i
- },
- getPixelForOffset: function(t) {
- var e = this,
- n = e._horizontal ? e.width : e.height,
- r = e._horizontal ? e.left : e.top,
- i = p(e._table, "time", t, "pos");
- return r + n * (e._offsets.left + i) / (e._offsets.left + 1 + e._offsets.right)
- },
- getPixelForValue: function(t, e, n) {
- var r = null;
- if (void 0 !== e && void 0 !== n && (r = this._timestamps.datasets[n][e]), null === r && (r = v(t, this)), null !== r) return this.getPixelForOffset(r)
- },
- getPixelForTick: function(t) {
- var e = this.getTicks();
- return t >= 0 && t < e.length ? this.getPixelForOffset(e[t].value) : null
- },
- getValueForPixel: function(t) {
- var e = this,
- n = e._horizontal ? e.width : e.height,
- i = e._horizontal ? e.left : e.top,
- o = (n ? (t - i) / n : 0) * (e._offsets.left + 1 + e._offsets.left) - e._offsets.right,
- a = p(e._table, "pos", o, "time");
- return r(a)
- },
- getLabelWidth: function(t) {
- var e = this.options.ticks,
- n = this.ctx.measureText(t).width,
- r = o.toRadians(e.maxRotation),
- a = Math.cos(r),
- s = Math.sin(r);
- return n * a + o.valueOrDefault(e.fontSize, i.global.defaultFontSize) * s
- },
- getLabelCapacity: function(t) {
- var e = this,
- n = e.options.time.displayFormats.millisecond,
- i = e.tickFormatFunction(r(t), 0, [], n),
- o = e.getLabelWidth(i),
- a = e.isHorizontal() ? e.width : e.height,
- s = Math.floor(a / o);
- return s > 0 ? s : 1
- }
- });
- s.registerScaleType("time", t, {
- position: "bottom",
- distribution: "linear",
- bounds: "data",
- time: {
- parser: !1,
- format: !1,
- unit: !1,
- round: !1,
- displayFormat: !1,
- isoWeekday: !1,
- minUnit: "millisecond",
- displayFormats: {
- millisecond: "h:mm:ss.SSS a",
- second: "h:mm:ss a",
- minute: "h:mm a",
- hour: "hA",
- day: "MMM D",
- week: "ll",
- month: "MMM YYYY",
- quarter: "[Q]Q - YYYY",
- year: "YYYY"
- }
- },
- ticks: {
- autoSkip: !1,
- source: "auto",
- major: {
- enabled: !1
- }
- }
- })
- }
- }, {
- 1: 1,
- 26: 26,
- 33: 33,
- 34: 34,
- 46: 46
- }]
- }, {}, [7])(7)
- }))
- }).call(this, n(87)(t), n(57))
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(25).findIndex,
- o = n(62),
- a = !0;
- "findIndex" in [] && Array(1).findIndex((function() {
- a = !1
- })), r({
- target: "Array",
- proto: !0,
- forced: a
- }, {
- findIndex: function(t) {
- return i(this, t, arguments.length > 1 ? arguments[1] : void 0)
- }
- }), o("findIndex")
- }, function(t, e, n) {
- var r = n(3),
- i = Math.log,
- o = Math.LOG10E;
- r({
- target: "Math",
- stat: !0
- }, {
- log10: function(t) {
- return i(t) * o
- }
- })
- }, function(t, e, n) {
- n(3)({
- target: "Math",
- stat: !0
- }, {
- sign: n(154)
- })
- }, function(t, e) {
- t.exports = Math.sign || function(t) {
- return 0 == (t = +t) || t != t ? t : t < 0 ? -1 : 1
- }
- }, function(t, e, n) {
- n(3)({
- target: "Number",
- stat: !0
- }, {
- EPSILON: Math.pow(2, -52)
- })
- }, function(t, e, n) {
- "use strict";
- (function(t) {
- var e, r;
- n(75), n(78), n(79), n(100), n(138), n(110), n(92), n(54), n(120), n(89), n(122), n(97), n(112), n(139), n(140), n(141), n(64), n(80), n(81), n(109), n(157), n(115), n(84);
- function i(t) {
- return (i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
- return typeof t
- } : function(t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
- /*!
- * chartjs-plugin-datalabels v0.7.0
- * https://chartjs-plugin-datalabels.netlify.com
- * (c) 2019 Chart.js Contributors
- * Released under the MIT license
- */
- e = void 0, r = function(t) {
- var e = (t = t && t.hasOwnProperty("default") ? t.default : t).helpers,
- n = function() {
- if ("undefined" != typeof window) {
- if (window.devicePixelRatio) return window.devicePixelRatio;
- var t = window.screen;
- if (t) return (t.deviceXDPI || 1) / (t.logicalXDPI || 1)
- }
- return 1
- }(),
- r = {
- toTextLines: function(t) {
- var n, r = [];
- for (t = [].concat(t); t.length;) "string" == typeof(n = t.pop()) ? r.unshift.apply(r, n.split("\n")) : Array.isArray(n) ? t.push.apply(t, n) : e.isNullOrUndef(t) || r.unshift("" + n);
- return r
- },
- toFontString: function(t) {
- return !t || e.isNullOrUndef(t.size) || e.isNullOrUndef(t.family) ? null : (t.style ? t.style + " " : "") + (t.weight ? t.weight + " " : "") + t.size + "px " + t.family
- },
- textSize: function(t, e, n) {
- var r, i = [].concat(e),
- o = i.length,
- a = t.font,
- s = 0;
- for (t.font = n.string, r = 0; r < o; ++r) s = Math.max(t.measureText(i[r]).width, s);
- return t.font = a, {
- height: o * n.lineHeight,
- width: s
- }
- },
- parseFont: function(n) {
- var i = t.defaults.global,
- o = e.valueOrDefault(n.size, i.defaultFontSize),
- a = {
- family: e.valueOrDefault(n.family, i.defaultFontFamily),
- lineHeight: e.options.toLineHeight(n.lineHeight, o),
- size: o,
- style: e.valueOrDefault(n.style, i.defaultFontStyle),
- weight: e.valueOrDefault(n.weight, null),
- string: ""
- };
- return a.string = r.toFontString(a), a
- },
- bound: function(t, e, n) {
- return Math.max(t, Math.min(e, n))
- },
- arrayDiff: function(t, e) {
- var n, r, i, o, a = t.slice(),
- s = [];
- for (n = 0, i = e.length; n < i; ++n) o = e[n], -1 === (r = a.indexOf(o)) ? s.push([o, 1]) : a.splice(r, 1);
- for (n = 0, i = a.length; n < i; ++n) s.push([a[n], -1]);
- return s
- },
- rasterize: function(t) {
- return Math.round(t * n) / n
- }
- };
- function i(t, e) {
- var n = e.x,
- r = e.y;
- if (null === n) return {
- x: 0,
- y: -1
- };
- if (null === r) return {
- x: 1,
- y: 0
- };
- var i = t.x - n,
- o = t.y - r,
- a = Math.sqrt(i * i + o * o);
- return {
- x: a ? i / a : 0,
- y: a ? o / a : -1
- }
- }
- var o = 0,
- a = 1,
- s = 2,
- l = 4,
- u = 8;
- function c(t, e, n) {
- var r = o;
- return t < n.left ? r |= a : t > n.right && (r |= s), e < n.top ? r |= u : e > n.bottom && (r |= l), r
- }
- function d(t, e) {
- var n, r, i = e.anchor,
- o = t;
- return e.clamp && (o = function(t, e) {
- for (var n, r, i, o = t.x0, d = t.y0, f = t.x1, h = t.y1, p = c(o, d, e), g = c(f, h, e); p | g && !(p & g);)(n = p || g) & u ? (r = o + (f - o) * (e.top - d) / (h - d), i = e.top) : n & l ? (r = o + (f - o) * (e.bottom - d) / (h - d), i = e.bottom) : n & s ? (i = d + (h - d) * (e.right - o) / (f - o), r = e.right) : n & a && (i = d + (h - d) * (e.left - o) / (f - o), r = e.left), n === p ? p = c(o = r, d = i, e) : g = c(f = r, h = i, e);
- return {
- x0: o,
- x1: f,
- y0: d,
- y1: h
- }
- }(o, e.area)), "start" === i ? (n = o.x0, r = o.y0) : "end" === i ? (n = o.x1, r = o.y1) : (n = (o.x0 + o.x1) / 2, r = (o.y0 + o.y1) / 2),
- function(t, e, n, r, i) {
- switch (i) {
- case "center":
- n = r = 0;
- break;
- case "bottom":
- n = 0, r = 1;
- break;
- case "right":
- n = 1, r = 0;
- break;
- case "left":
- n = -1, r = 0;
- break;
- case "top":
- n = 0, r = -1;
- break;
- case "start":
- n = -n, r = -r;
- break;
- case "end":
- break;
- default:
- i *= Math.PI / 180, n = Math.cos(i), r = Math.sin(i)
- }
- return {
- x: t,
- y: e,
- vx: n,
- vy: r
- }
- }(n, r, t.vx, t.vy, e.align)
- }
- var f = {
- arc: function(t, e) {
- var n = (t.startAngle + t.endAngle) / 2,
- r = Math.cos(n),
- i = Math.sin(n),
- o = t.innerRadius,
- a = t.outerRadius;
- return d({
- x0: t.x + r * o,
- y0: t.y + i * o,
- x1: t.x + r * a,
- y1: t.y + i * a,
- vx: r,
- vy: i
- }, e)
- },
- point: function(t, e) {
- var n = i(t, e.origin),
- r = n.x * t.radius,
- o = n.y * t.radius;
- return d({
- x0: t.x - r,
- y0: t.y - o,
- x1: t.x + r,
- y1: t.y + o,
- vx: n.x,
- vy: n.y
- }, e)
- },
- rect: function(t, e) {
- var n = i(t, e.origin),
- r = t.x,
- o = t.y,
- a = 0,
- s = 0;
- return t.horizontal ? (r = Math.min(t.x, t.base), a = Math.abs(t.base - t.x)) : (o = Math.min(t.y, t.base), s = Math.abs(t.base - t.y)), d({
- x0: r,
- y0: o + s,
- x1: r + a,
- y1: o,
- vx: n.x,
- vy: n.y
- }, e)
- },
- fallback: function(t, e) {
- var n = i(t, e.origin);
- return d({
- x0: t.x,
- y0: t.y,
- x1: t.x,
- y1: t.y,
- vx: n.x,
- vy: n.y
- }, e)
- }
- },
- h = t.helpers,
- p = r.rasterize;
- function g(t) {
- var e = t._model.horizontal,
- n = t._scale || e && t._xScale || t._yScale;
- if (!n) return null;
- if (void 0 !== n.xCenter && void 0 !== n.yCenter) return {
- x: n.xCenter,
- y: n.yCenter
- };
- var r = n.getBasePixel();
- return e ? {
- x: r,
- y: null
- } : {
- x: null,
- y: r
- }
- }
- function v(t, e, n) {
- var r = t.shadowBlur,
- i = n.stroked,
- o = p(n.x),
- a = p(n.y),
- s = p(n.w);
- i && t.strokeText(e, o, a, s), n.filled && (r && i && (t.shadowBlur = 0), t.fillText(e, o, a, s), r && i && (t.shadowBlur = r))
- }
- var m = function(t, e, n, r) {
- var i = this;
- i._config = t, i._index = r, i._model = null, i._rects = null, i._ctx = e, i._el = n
- };
- h.extend(m.prototype, {
- _modelize: function(e, n, i, o) {
- var a, s = this._index,
- l = h.options.resolve,
- u = r.parseFont(l([i.font, {}], o, s)),
- c = l([i.color, t.defaults.global.defaultFontColor], o, s);
- return {
- align: l([i.align, "center"], o, s),
- anchor: l([i.anchor, "center"], o, s),
- area: o.chart.chartArea,
- backgroundColor: l([i.backgroundColor, null], o, s),
- borderColor: l([i.borderColor, null], o, s),
- borderRadius: l([i.borderRadius, 0], o, s),
- borderWidth: l([i.borderWidth, 0], o, s),
- clamp: l([i.clamp, !1], o, s),
- clip: l([i.clip, !1], o, s),
- color: c,
- display: e,
- font: u,
- lines: n,
- offset: l([i.offset, 0], o, s),
- opacity: l([i.opacity, 1], o, s),
- origin: g(this._el),
- padding: h.options.toPadding(l([i.padding, 0], o, s)),
- positioner: (a = this._el, a instanceof t.elements.Arc ? f.arc : a instanceof t.elements.Point ? f.point : a instanceof t.elements.Rectangle ? f.rect : f.fallback),
- rotation: l([i.rotation, 0], o, s) * (Math.PI / 180),
- size: r.textSize(this._ctx, n, u),
- textAlign: l([i.textAlign, "start"], o, s),
- textShadowBlur: l([i.textShadowBlur, 0], o, s),
- textShadowColor: l([i.textShadowColor, c], o, s),
- textStrokeColor: l([i.textStrokeColor, c], o, s),
- textStrokeWidth: l([i.textStrokeWidth, 0], o, s)
- }
- },
- update: function(t) {
- var e, n, i, o = this,
- a = null,
- s = null,
- l = o._index,
- u = o._config,
- c = h.options.resolve([u.display, !0], t, l);
- c && (e = t.dataset.data[l], n = h.valueOrDefault(h.callback(u.formatter, [e, t]), e), (i = h.isNullOrUndef(n) ? [] : r.toTextLines(n)).length && (s = function(t) {
- var e = t.borderWidth || 0,
- n = t.padding,
- r = t.size.height,
- i = t.size.width,
- o = -i / 2,
- a = -r / 2;
- return {
- frame: {
- x: o - n.left - e,
- y: a - n.top - e,
- w: i + n.width + 2 * e,
- h: r + n.height + 2 * e
- },
- text: {
- x: o,
- y: a,
- w: i,
- h: r
- }
- }
- }(a = o._modelize(c, i, u, t)))), o._model = a, o._rects = s
- },
- geometry: function() {
- return this._rects ? this._rects.frame : {}
- },
- rotation: function() {
- return this._model ? this._model.rotation : 0
- },
- visible: function() {
- return this._model && this._model.opacity
- },
- model: function() {
- return this._model
- },
- draw: function(t, e) {
- var n, i = t.ctx,
- o = this._model,
- a = this._rects;
- this.visible() && (i.save(), o.clip && (n = o.area, i.beginPath(), i.rect(n.left, n.top, n.right - n.left, n.bottom - n.top), i.clip()), i.globalAlpha = r.bound(0, o.opacity, 1), i.translate(p(e.x), p(e.y)), i.rotate(o.rotation), function(t, e, n) {
- var r = n.backgroundColor,
- i = n.borderColor,
- o = n.borderWidth;
- (r || i && o) && (t.beginPath(), h.canvas.roundedRect(t, p(e.x) + o / 2, p(e.y) + o / 2, p(e.w) - o, p(e.h) - o, n.borderRadius), t.closePath(), r && (t.fillStyle = r, t.fill()), i && o && (t.strokeStyle = i, t.lineWidth = o, t.lineJoin = "miter", t.stroke()))
- }(i, a.frame, o), function(t, e, n, r) {
- var i, o = r.textAlign,
- a = r.color,
- s = !!a,
- l = r.font,
- u = e.length,
- c = r.textStrokeColor,
- d = r.textStrokeWidth,
- f = c && d;
- if (u && (s || f))
- for (n = function(t, e, n) {
- var r = n.lineHeight,
- i = t.w,
- o = t.x;
- return "center" === e ? o += i / 2 : "end" !== e && "right" !== e || (o += i), {
- h: r,
- w: i,
- x: o,
- y: t.y + r / 2
- }
- }(n, o, l), t.font = l.string, t.textAlign = o, t.textBaseline = "middle", t.shadowBlur = r.textShadowBlur, t.shadowColor = r.textShadowColor, s && (t.fillStyle = a), f && (t.lineJoin = "round", t.lineWidth = d, t.strokeStyle = c), i = 0, u = e.length; i < u; ++i) v(t, e[i], {
- stroked: f,
- filled: s,
- w: n.w,
- x: n.x,
- y: n.y + n.h * i
- })
- }(i, o.lines, a.text, o), i.restore())
- }
- });
- var y = t.helpers,
- b = Number.MIN_SAFE_INTEGER || -9007199254740991,
- x = Number.MAX_SAFE_INTEGER || 9007199254740991;
- function w(t, e, n) {
- var r = Math.cos(n),
- i = Math.sin(n),
- o = e.x,
- a = e.y;
- return {
- x: o + r * (t.x - o) - i * (t.y - a),
- y: a + i * (t.x - o) + r * (t.y - a)
- }
- }
- function S(t, e) {
- var n, r, i, o, a, s = x,
- l = b,
- u = e.origin;
- for (n = 0; n < t.length; ++n) i = (r = t[n]).x - u.x, o = r.y - u.y, a = e.vx * i + e.vy * o, s = Math.min(s, a), l = Math.max(l, a);
- return {
- min: s,
- max: l
- }
- }
- function k(t, e) {
- var n = e.x - t.x,
- r = e.y - t.y,
- i = Math.sqrt(n * n + r * r);
- return {
- vx: (e.x - t.x) / i,
- vy: (e.y - t.y) / i,
- origin: t,
- ln: i
- }
- }
- var C = function() {
- this._rotation = 0, this._rect = {
- x: 0,
- y: 0,
- w: 0,
- h: 0
- }
- };
- function M(t, e, n) {
- var r = e.positioner(t, e),
- i = r.vx,
- o = r.vy;
- if (!i && !o) return {
- x: r.x,
- y: r.y
- };
- var a = n.w,
- s = n.h,
- l = e.rotation,
- u = Math.abs(a / 2 * Math.cos(l)) + Math.abs(s / 2 * Math.sin(l)),
- c = Math.abs(a / 2 * Math.sin(l)) + Math.abs(s / 2 * Math.cos(l)),
- d = 1 / Math.max(Math.abs(i), Math.abs(o));
- return u *= i * d, c *= o * d, u += e.offset * i, c += e.offset * o, {
- x: r.x + u,
- y: r.y + c
- }
- }
- y.extend(C.prototype, {
- center: function() {
- var t = this._rect;
- return {
- x: t.x + t.w / 2,
- y: t.y + t.h / 2
- }
- },
- update: function(t, e, n) {
- this._rotation = n, this._rect = {
- x: e.x + t.x,
- y: e.y + t.y,
- w: e.w,
- h: e.h
- }
- },
- contains: function(t) {
- var e = this._rect;
- return !((t = w(t, this.center(), -this._rotation)).x < e.x - 1 || t.y < e.y - 1 || t.x > e.x + e.w + 2 || t.y > e.y + e.h + 2)
- },
- intersects: function(t) {
- var e, n, r, i = this._points(),
- o = t._points(),
- a = [k(i[0], i[1]), k(i[0], i[3])];
- for (this._rotation !== t._rotation && a.push(k(o[0], o[1]), k(o[0], o[3])), e = 0; e < a.length; ++e)
- if (n = S(i, a[e]), r = S(o, a[e]), n.max < r.min || r.max < n.min) return !1;
- return !0
- },
- _points: function() {
- var t = this._rect,
- e = this._rotation,
- n = this.center();
- return [w({
- x: t.x,
- y: t.y
- }, n, e), w({
- x: t.x + t.w,
- y: t.y
- }, n, e), w({
- x: t.x + t.w,
- y: t.y + t.h
- }, n, e), w({
- x: t.x,
- y: t.y + t.h
- }, n, e)]
- }
- });
- var A = {
- prepare: function(t) {
- var e, n, r, i, o, a = [];
- for (e = 0, r = t.length; e < r; ++e)
- for (n = 0, i = t[e].length; n < i; ++n) o = t[e][n], a.push(o), o.$layout = {
- _box: new C,
- _hidable: !1,
- _visible: !0,
- _set: e,
- _idx: n
- };
- return a.sort((function(t, e) {
- var n = t.$layout,
- r = e.$layout;
- return n._idx === r._idx ? r._set - n._set : r._idx - n._idx
- })), this.update(a), a
- },
- update: function(t) {
- var e, n, r, i, o, a = !1;
- for (e = 0, n = t.length; e < n; ++e) i = (r = t[e]).model(), (o = r.$layout)._hidable = i && "auto" === i.display, o._visible = r.visible(), a |= o._hidable;
- a && function(t) {
- var e, n, r, i, o, a;
- for (e = 0, n = t.length; e < n; ++e)(i = (r = t[e]).$layout)._visible && (o = r.geometry(), a = M(r._el._model, r.model(), o), i._box.update(a, o, r.rotation()));
- ! function(t, e) {
- var n, r, i, o;
- for (n = t.length - 1; n >= 0; --n)
- for (i = t[n].$layout, r = n - 1; r >= 0 && i._visible; --r)(o = t[r].$layout)._visible && i._box.intersects(o._box) && e(i, o)
- }(t, (function(t, e) {
- var n = t._hidable,
- r = e._hidable;
- n && r || r ? e._visible = !1 : n && (t._visible = !1)
- }))
- }(t)
- },
- lookup: function(t, e) {
- var n, r;
- for (n = t.length - 1; n >= 0; --n)
- if ((r = t[n].$layout) && r._visible && r._box.contains(e)) return t[n];
- return null
- },
- draw: function(t, e) {
- var n, r, i, o, a, s;
- for (n = 0, r = e.length; n < r; ++n)(o = (i = e[n]).$layout)._visible && (a = i.geometry(), s = M(i._el._view, i.model(), a), o._box.update(s, a, i.rotation()), i.draw(t, s))
- }
- },
- P = t.helpers,
- _ = {
- align: "center",
- anchor: "center",
- backgroundColor: null,
- borderColor: null,
- borderRadius: 0,
- borderWidth: 0,
- clamp: !1,
- clip: !1,
- color: void 0,
- display: !0,
- font: {
- family: void 0,
- lineHeight: 1.2,
- size: void 0,
- style: void 0,
- weight: null
- },
- formatter: function(t) {
- if (P.isNullOrUndef(t)) return null;
- var e, n, r, i = t;
- if (P.isObject(t))
- if (P.isNullOrUndef(t.label))
- if (P.isNullOrUndef(t.r))
- for (i = "", r = 0, n = (e = Object.keys(t)).length; r < n; ++r) i += (0 !== r ? ", " : "") + e[r] + ": " + t[e[r]];
- else i = t.r;
- else i = t.label;
- return "" + i
- },
- labels: void 0,
- listeners: {},
- offset: 4,
- opacity: 1,
- padding: {
- top: 4,
- right: 4,
- bottom: 4,
- left: 4
- },
- rotation: 0,
- textAlign: "start",
- textStrokeColor: void 0,
- textStrokeWidth: 0,
- textShadowBlur: 0,
- textShadowColor: void 0
- },
- T = t.helpers,
- I = "$datalabels",
- O = "$default";
- function F(t, e, n) {
- if (e) {
- var r, i = n.$context,
- o = n.$groups;
- e[o._set] && (r = e[o._set][o._key]) && !0 === T.callback(r, [i]) && (t[I]._dirty = !0, n.update(i))
- }
- }
- function D(t, e) {
- var n, r, i = t[I],
- o = i._listeners;
- if (o.enter || o.leave) {
- if ("mousemove" === e.type) r = A.lookup(i._labels, e);
- else if ("mouseout" !== e.type) return;
- n = i._hovered, i._hovered = r,
- function(t, e, n, r) {
- var i, o;
- (n || r) && (n ? r ? n !== r && (o = i = !0) : o = !0 : i = !0, o && F(t, e.leave, n), i && F(t, e.enter, r))
- }(t, o, n, r)
- }
- }
- t.defaults.global.plugins.datalabels = _;
- var E = {
- id: "datalabels",
- beforeInit: function(t) {
- t[I] = {
- _actives: []
- }
- },
- beforeUpdate: function(t) {
- var e = t[I];
- e._listened = !1, e._listeners = {}, e._datasets = [], e._labels = []
- },
- afterDatasetUpdate: function(t, e, n) {
- var r, i, o, a, s, l, u, c, d = e.index,
- f = t[I],
- h = f._datasets[d] = [],
- p = t.isDatasetVisible(d),
- g = t.data.datasets[d],
- v = function(t, e) {
- var n, r, i, o = t.datalabels,
- a = [];
- return !1 === o ? null : (!0 === o && (o = {}), e = T.merge({}, [e, o]), r = e.labels || {}, i = Object.keys(r), delete e.labels, i.length ? i.forEach((function(t) {
- r[t] && a.push(T.merge({}, [e, r[t], {
- _key: t
- }]))
- })) : a.push(e), n = a.reduce((function(t, e) {
- return T.each(e.listeners || {}, (function(n, r) {
- t[r] = t[r] || {}, t[r][e._key || O] = n
- })), delete e.listeners, t
- }), {}), {
- labels: a,
- listeners: n
- })
- }(g, n),
- y = e.meta.data || [],
- b = t.ctx;
- for (b.save(), r = 0, o = y.length; r < o; ++r)
- if ((u = y[r])[I] = [], p && u && !u.hidden && !u._model.skip)
- for (i = 0, a = v.labels.length; i < a; ++i) l = (s = v.labels[i])._key, (c = new m(s, b, u, r)).$groups = {
- _set: d,
- _key: l || O
- }, c.$context = {
- active: !1,
- chart: t,
- dataIndex: r,
- dataset: g,
- datasetIndex: d
- }, c.update(c.$context), u[I].push(c), h.push(c);
- b.restore(), T.merge(f._listeners, v.listeners, {
- merger: function(t, n, r) {
- n[t] = n[t] || {}, n[t][e.index] = r[t], f._listened = !0
- }
- })
- },
- afterUpdate: function(t, e) {
- t[I]._labels = A.prepare(t[I]._datasets, e)
- },
- afterDatasetsDraw: function(t) {
- A.draw(t, t[I]._labels)
- },
- beforeEvent: function(t, e) {
- if (t[I]._listened) switch (e.type) {
- case "mousemove":
- case "mouseout":
- D(t, e);
- break;
- case "click":
- ! function(t, e) {
- var n = t[I],
- r = n._listeners.click,
- i = r && A.lookup(n._labels, e);
- i && F(t, r, i)
- }(t, e)
- }
- },
- afterEvent: function(e) {
- var n, i, o, a, s, l, u, c = e[I],
- d = c._actives,
- f = c._actives = e.lastActive || [],
- h = r.arrayDiff(d, f);
- for (n = 0, i = h.length; n < i; ++n)
- if ((s = h[n])[1])
- for (o = 0, a = (u = s[0][I] || []).length; o < a; ++o)(l = u[o]).$context.active = 1 === s[1], l.update(l.$context);
- (c._dirty || h.length) && (A.update(c._labels), function(e) {
- if (!e.animating) {
- for (var n = t.animationService.animations, r = 0, i = n.length; r < i; ++r)
- if (n[r].chart === e) return;
- e.render({
- duration: 1,
- lazy: !0
- })
- }
- }(e)), delete c._dirty
- }
- };
- return t.plugins.unregister(E), E
- }, "object" === ("undefined" == typeof exports ? "undefined" : i(exports)) && void 0 !== t ? t.exports = r(n(160)) : "function" == typeof define && n(55) ? define(["chart.js"], r) : (e = e || self).ChartDataLabels = r(e.Chart)
- }).call(this, n(87)(t))
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(158);
- r({
- target: "String",
- proto: !0,
- forced: n(159)("anchor")
- }, {
- anchor: function(t) {
- return i(this, "a", "name", t)
- }
- })
- }, function(t, e, n) {
- var r = n(13),
- i = /"/g;
- t.exports = function(t, e, n, o) {
- var a = String(r(t)),
- s = "<" + e;
- return "" !== n && (s += " " + n + '="' + String(o).replace(i, """) + '"'), s + ">" + a + "</" + e + ">"
- }
- }, function(t, e, n) {
- var r = n(1);
- t.exports = function(t) {
- return r((function() {
- var e = "" [t]('"');
- return e !== e.toLowerCase() || e.split('"').length > 3
- }))
- }
- }, function(t, e) {
- t.exports = chart
- }, function(t, e) {
- ! function(t) {
- t("body").on("shown.bs.modal", ".modal", (function() {
- t(".modal-backdrop").length || ($modal_dialog = t(this).children(".modal-dialog"), $modal_dialog.hasClass("modal-side") && (t(this).addClass("modal-scrolling"), t("body").addClass("scrollable")), $modal_dialog.hasClass("modal-frame") && (t(this).addClass("modal-content-clickable"), t("body").addClass("scrollable")))
- })), t("body").on("hidden.bs.modal", ".modal", (function() {
- t("body").removeClass("scrollable")
- }))
- }(jQuery)
- }, function(t, e) {
- jQuery.easing.jswing = jQuery.easing.swing, jQuery.extend(jQuery.easing, {
- def: "easeOutQuad",
- swing: function(t, e, n, r, i) {
- return jQuery.easing[jQuery.easing.def](t, e, n, r, i)
- },
- easeInQuad: function(t, e, n, r, i) {
- return r * (e /= i) * e + n
- },
- easeOutQuad: function(t, e, n, r, i) {
- return -r * (e /= i) * (e - 2) + n
- },
- easeInOutQuad: function(t, e, n, r, i) {
- return (e /= i / 2) < 1 ? r / 2 * e * e + n : -r / 2 * (--e * (e - 2) - 1) + n
- },
- easeInCubic: function(t, e, n, r, i) {
- return r * (e /= i) * e * e + n
- },
- easeOutCubic: function(t, e, n, r, i) {
- return r * ((e = e / i - 1) * e * e + 1) + n
- },
- easeInOutCubic: function(t, e, n, r, i) {
- return (e /= i / 2) < 1 ? r / 2 * e * e * e + n : r / 2 * ((e -= 2) * e * e + 2) + n
- },
- easeInQuart: function(t, e, n, r, i) {
- return r * (e /= i) * e * e * e + n
- },
- easeOutQuart: function(t, e, n, r, i) {
- return -r * ((e = e / i - 1) * e * e * e - 1) + n
- },
- easeInOutQuart: function(t, e, n, r, i) {
- return (e /= i / 2) < 1 ? r / 2 * e * e * e * e + n : -r / 2 * ((e -= 2) * e * e * e - 2) + n
- },
- easeInQuint: function(t, e, n, r, i) {
- return r * (e /= i) * e * e * e * e + n
- },
- easeOutQuint: function(t, e, n, r, i) {
- return r * ((e = e / i - 1) * e * e * e * e + 1) + n
- },
- easeInOutQuint: function(t, e, n, r, i) {
- return (e /= i / 2) < 1 ? r / 2 * e * e * e * e * e + n : r / 2 * ((e -= 2) * e * e * e * e + 2) + n
- },
- easeInSine: function(t, e, n, r, i) {
- return -r * Math.cos(e / i * (Math.PI / 2)) + r + n
- },
- easeOutSine: function(t, e, n, r, i) {
- return r * Math.sin(e / i * (Math.PI / 2)) + n
- },
- easeInOutSine: function(t, e, n, r, i) {
- return -r / 2 * (Math.cos(Math.PI * e / i) - 1) + n
- },
- easeInExpo: function(t, e, n, r, i) {
- return 0 == e ? n : r * Math.pow(2, 10 * (e / i - 1)) + n
- },
- easeOutExpo: function(t, e, n, r, i) {
- return e == i ? n + r : r * (1 - Math.pow(2, -10 * e / i)) + n
- },
- easeInOutExpo: function(t, e, n, r, i) {
- return 0 == e ? n : e == i ? n + r : (e /= i / 2) < 1 ? r / 2 * Math.pow(2, 10 * (e - 1)) + n : r / 2 * (2 - Math.pow(2, -10 * --e)) + n
- },
- easeInCirc: function(t, e, n, r, i) {
- return -r * (Math.sqrt(1 - (e /= i) * e) - 1) + n
- },
- easeOutCirc: function(t, e, n, r, i) {
- return r * Math.sqrt(1 - (e = e / i - 1) * e) + n
- },
- easeInOutCirc: function(t, e, n, r, i) {
- return (e /= i / 2) < 1 ? -r / 2 * (Math.sqrt(1 - e * e) - 1) + n : r / 2 * (Math.sqrt(1 - (e -= 2) * e) + 1) + n
- },
- easeInElastic: function(t, e, n, r, i) {
- var o = 1.70158,
- a = 0,
- s = r;
- if (0 == e) return n;
- if (1 == (e /= i)) return n + r;
- if (a || (a = .3 * i), s < Math.abs(r)) {
- s = r;
- o = a / 4
- } else o = a / (2 * Math.PI) * Math.asin(r / s);
- return -s * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * i - o) * (2 * Math.PI) / a) + n
- },
- easeOutElastic: function(t, e, n, r, i) {
- var o = 1.70158,
- a = 0,
- s = r;
- if (0 == e) return n;
- if (1 == (e /= i)) return n + r;
- if (a || (a = .3 * i), s < Math.abs(r)) {
- s = r;
- o = a / 4
- } else o = a / (2 * Math.PI) * Math.asin(r / s);
- return s * Math.pow(2, -10 * e) * Math.sin((e * i - o) * (2 * Math.PI) / a) + r + n
- },
- easeInOutElastic: function(t, e, n, r, i) {
- var o = 1.70158,
- a = 0,
- s = r;
- if (0 == e) return n;
- if (2 == (e /= i / 2)) return n + r;
- if (a || (a = i * (.3 * 1.5)), s < Math.abs(r)) {
- s = r;
- o = a / 4
- } else o = a / (2 * Math.PI) * Math.asin(r / s);
- return e < 1 ? s * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * i - o) * (2 * Math.PI) / a) * -.5 + n : s * Math.pow(2, -10 * (e -= 1)) * Math.sin((e * i - o) * (2 * Math.PI) / a) * .5 + r + n
- },
- easeInBack: function(t, e, n, r, i, o) {
- return null == o && (o = 1.70158), r * (e /= i) * e * ((o + 1) * e - o) + n
- },
- easeOutBack: function(t, e, n, r, i, o) {
- return null == o && (o = 1.70158), r * ((e = e / i - 1) * e * ((o + 1) * e + o) + 1) + n
- },
- easeInOutBack: function(t, e, n, r, i, o) {
- return null == o && (o = 1.70158), (e /= i / 2) < 1 ? r / 2 * (e * e * ((1 + (o *= 1.525)) * e - o)) + n : r / 2 * ((e -= 2) * e * ((1 + (o *= 1.525)) * e + o) + 2) + n
- },
- easeInBounce: function(t, e, n, r, i) {
- return r - jQuery.easing.easeOutBounce(t, i - e, 0, r, i) + n
- },
- easeOutBounce: function(t, e, n, r, i) {
- return (e /= i) < 1 / 2.75 ? r * (7.5625 * e * e) + n : e < 2 / 2.75 ? r * (7.5625 * (e -= 1.5 / 2.75) * e + .75) + n : e < 2.5 / 2.75 ? r * (7.5625 * (e -= 2.25 / 2.75) * e + .9375) + n : r * (7.5625 * (e -= 2.625 / 2.75) * e + .984375) + n
- },
- easeInOutBounce: function(t, e, n, r, i) {
- return e < i / 2 ? .5 * jQuery.easing.easeInBounce(t, 2 * e, 0, r, i) + n : .5 * jQuery.easing.easeOutBounce(t, 2 * e - i, 0, r, i) + .5 * r + n
- }
- })
- }, function(t, e, n) {
- "use strict";
- (function(t) {
- var e;
- n(75), n(78), n(79), n(100), n(54), n(99), n(121), n(89), n(164), n(104), n(64), n(105), n(123), n(130), n(80), n(106), n(81), n(114), n(98), n(109), n(166), n(174), n(176), n(177), n(178), n(179), n(180), n(181), n(182), n(183), n(184), n(185), n(186), n(187), n(188), n(189), n(190), n(191), n(192), n(193), n(194), n(195), n(196), n(197), n(84);
- function r(t) {
- return (r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
- return typeof t
- } : function(t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
- /*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
- /*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
- /*! Note that this has been modified by Materialize to confirm that Velocity is not already being imported. */
- jQuery.Velocity ? console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity.") : (function(t) {
- function e(t) {
- var e = t.length,
- r = n.type(t);
- return "function" !== r && !n.isWindow(t) && (!(1 !== t.nodeType || !e) || ("array" === r || 0 === e || "number" == typeof e && e > 0 && e - 1 in t))
- }
- if (!t.jQuery) {
- var n = function t(e, n) {
- return new t.fn.init(e, n)
- };
- n.isWindow = function(t) {
- return null != t && t == t.window
- }, n.type = function(t) {
- return null == t ? t + "" : "object" == r(t) || "function" == typeof t ? o[s.call(t)] || "object" : r(t)
- }, n.isArray = Array.isArray || function(t) {
- return "array" === n.type(t)
- }, n.isPlainObject = function(t) {
- var e;
- if (!t || "object" !== n.type(t) || t.nodeType || n.isWindow(t)) return !1;
- try {
- if (t.constructor && !a.call(t, "constructor") && !a.call(t.constructor.prototype, "isPrototypeOf")) return !1
- } catch (t) {
- return !1
- }
- for (e in t);
- return void 0 === e || a.call(t, e)
- }, n.each = function(t, n, r) {
- var i = 0,
- o = t.length,
- a = e(t);
- if (r) {
- if (a)
- for (; o > i && !1 !== n.apply(t[i], r); i++);
- else
- for (i in t)
- if (!1 === n.apply(t[i], r)) break
- } else if (a)
- for (; o > i && !1 !== n.call(t[i], i, t[i]); i++);
- else
- for (i in t)
- if (!1 === n.call(t[i], i, t[i])) break;
- return t
- }, n.data = function(t, e, r) {
- if (void 0 === r) {
- var o = (a = t[n.expando]) && i[a];
- if (void 0 === e) return o;
- if (o && e in o) return o[e]
- } else if (void 0 !== e) {
- var a = t[n.expando] || (t[n.expando] = ++n.uuid);
- return i[a] = i[a] || {}, i[a][e] = r, r
- }
- }, n.removeData = function(t, e) {
- var r = t[n.expando],
- o = r && i[r];
- o && n.each(e, (function(t, e) {
- delete o[e]
- }))
- }, n.extend = function() {
- var t, e, i, o, a, s, l = arguments[0] || {},
- u = 1,
- c = arguments.length,
- d = !1;
- for ("boolean" == typeof l && (d = l, l = arguments[u] || {}, u++), "object" != r(l) && "function" !== n.type(l) && (l = {}), u === c && (l = this, u--); c > u; u++)
- if (null != (a = arguments[u]))
- for (o in a) t = l[o], l !== (i = a[o]) && (d && i && (n.isPlainObject(i) || (e = n.isArray(i))) ? (e ? (e = !1, s = t && n.isArray(t) ? t : []) : s = t && n.isPlainObject(t) ? t : {}, l[o] = n.extend(d, s, i)) : void 0 !== i && (l[o] = i));
- return l
- }, n.queue = function(t, r, i) {
- if (t) {
- r = (r || "fx") + "queue";
- var o = n.data(t, r);
- return i ? (!o || n.isArray(i) ? o = n.data(t, r, function(t, n) {
- var r = n || [];
- return null != t && (e(Object(t)) ? function(t, e) {
- for (var n = +e.length, r = 0, i = t.length; n > r;) t[i++] = e[r++];
- if (n != n)
- for (; void 0 !== e[r];) t[i++] = e[r++];
- t.length = i
- }(r, "string" == typeof t ? [t] : t) : [].push.call(r, t)), r
- }(i)) : o.push(i), o) : o || []
- }
- }, n.dequeue = function(t, e) {
- n.each(t.nodeType ? [t] : t, (function(t, r) {
- e = e || "fx";
- var i = n.queue(r, e),
- o = i.shift();
- "inprogress" === o && (o = i.shift()), o && ("fx" === e && i.unshift("inprogress"), o.call(r, (function() {
- n.dequeue(r, e)
- })))
- }))
- }, n.fn = n.prototype = {
- init: function(t) {
- if (t.nodeType) return this[0] = t, this;
- throw new Error("Not a DOM node.")
- },
- offset: function() {
- var e = this[0].getBoundingClientRect ? this[0].getBoundingClientRect() : {
- top: 0,
- left: 0
- };
- return {
- top: e.top + (t.pageYOffset || document.scrollTop || 0) - (document.clientTop || 0),
- left: e.left + (t.pageXOffset || document.scrollLeft || 0) - (document.clientLeft || 0)
- }
- },
- position: function() {
- function t() {
- for (var t = this.offsetParent || document; t && "html" === !t.nodeType.toLowerCase && "static" === t.style.position;) t = t.offsetParent;
- return t || document
- }
- var e = this[0],
- t = t.apply(e),
- r = this.offset(),
- i = /^(?:body|html)$/i.test(t.nodeName) ? {
- top: 0,
- left: 0
- } : n(t).offset();
- return r.top -= parseFloat(e.style.marginTop) || 0, r.left -= parseFloat(e.style.marginLeft) || 0, t.style && (i.top += parseFloat(t.style.borderTopWidth) || 0, i.left += parseFloat(t.style.borderLeftWidth) || 0), {
- top: r.top - i.top,
- left: r.left - i.left
- }
- }
- };
- var i = {};
- n.expando = "velocity" + (new Date).getTime(), n.uuid = 0;
- for (var o = {}, a = o.hasOwnProperty, s = o.toString, l = "Boolean Number String Function Array Date RegExp Object Error".split(" "), u = 0; u < l.length; u++) o["[object " + l[u] + "]"] = l[u].toLowerCase();
- n.fn.init.prototype = n.fn, t.Velocity = {
- Utilities: n
- }
- }
- }(window), e = function() {
- return function(t, e, n, i) {
- function o(t) {
- return g.isWrapped(t) ? t = [].slice.call(t) : g.isNode(t) && (t = [t]), t
- }
- function a(t) {
- var e = f.data(t, "velocity");
- return null === e ? i : e
- }
- function s(t) {
- return function(e) {
- return Math.round(e * t) * (1 / t)
- }
- }
- function l(t, n, r, i) {
- function o(t, e) {
- return 1 - 3 * e + 3 * t
- }
- function a(t, e) {
- return 3 * e - 6 * t
- }
- function s(t) {
- return 3 * t
- }
- function l(t, e, n) {
- return ((o(e, n) * t + a(e, n)) * t + s(e)) * t
- }
- function u(t, e, n) {
- return 3 * o(e, n) * t * t + 2 * a(e, n) * t + s(e)
- }
- function c(e, n) {
- for (var i = 0; h > i; ++i) {
- var o = u(n, t, r);
- if (0 === o) return n;
- n -= (l(n, t, r) - e) / o
- }
- return n
- }
- function d(e, n, i) {
- var o, a, s = 0;
- do {
- (o = l(a = n + (i - n) / 2, t, r) - e) > 0 ? i = a : n = a
- } while (Math.abs(o) > g && ++s < v);
- return a
- }
- function f() {
- S = !0, (t != n || r != i) && function() {
- for (var e = 0; m > e; ++e) w[e] = l(e * y, t, r)
- }()
- }
- var h = 4,
- p = .001,
- g = 1e-7,
- v = 10,
- m = 11,
- y = 1 / (m - 1),
- b = "Float32Array" in e;
- if (4 !== arguments.length) return !1;
- for (var x = 0; 4 > x; ++x)
- if ("number" != typeof arguments[x] || isNaN(arguments[x]) || !isFinite(arguments[x])) return !1;
- t = Math.min(t, 1), r = Math.min(r, 1), t = Math.max(t, 0), r = Math.max(r, 0);
- var w = b ? new Float32Array(m) : new Array(m),
- S = !1,
- k = function(e) {
- return S || f(), t === n && r === i ? e : 0 === e ? 0 : 1 === e ? 1 : l(function(e) {
- for (var n = 0, i = 1, o = m - 1; i != o && w[i] <= e; ++i) n += y;
- var a = n + (e - w[--i]) / (w[i + 1] - w[i]) * y,
- s = u(a, t, r);
- return s >= p ? c(e, a) : 0 == s ? a : d(e, n, n + y)
- }(e), n, i)
- };
- k.getControlPoints = function() {
- return [{
- x: t,
- y: n
- }, {
- x: r,
- y: i
- }]
- };
- var C = "generateBezier(" + [t, n, r, i] + ")";
- return k.toString = function() {
- return C
- }, k
- }
- function u(t, e) {
- var n = t;
- return g.isString(t) ? b.Easings[t] || (n = !1) : n = g.isArray(t) && 1 === t.length ? s.apply(null, t) : g.isArray(t) && 2 === t.length ? x.apply(null, t.concat([e])) : !(!g.isArray(t) || 4 !== t.length) && l.apply(null, t), !1 === n && (n = b.Easings[b.defaults.easing] ? b.defaults.easing : y), n
- }
- function c(t) {
- if (t) {
- var e = (new Date).getTime(),
- n = b.State.calls.length;
- n > 1e4 && (b.State.calls = function(t) {
- for (var e = -1, n = t ? t.length : 0, r = []; ++e < n;) {
- var i = t[e];
- i && r.push(i)
- }
- return r
- }(b.State.calls));
- for (var r = 0; n > r; r++)
- if (b.State.calls[r]) {
- var o = b.State.calls[r],
- s = o[0],
- l = o[2],
- u = o[3],
- h = !!u,
- p = null;
- u || (u = b.State.calls[r][3] = e - 16);
- for (var v = Math.min((e - u) / l.duration, 1), m = 0, y = s.length; y > m; m++) {
- var x = s[m],
- S = x.element;
- if (a(S)) {
- var C = !1;
- for (var M in l.display !== i && null !== l.display && "none" !== l.display && ("flex" === l.display && f.each(["-webkit-box", "-moz-box", "-ms-flexbox", "-webkit-flex"], (function(t, e) {
- w.setPropertyValue(S, "display", e)
- })), w.setPropertyValue(S, "display", l.display)), l.visibility !== i && "hidden" !== l.visibility && w.setPropertyValue(S, "visibility", l.visibility), x)
- if ("element" !== M) {
- var A, P = x[M],
- _ = g.isString(P.easing) ? b.Easings[P.easing] : P.easing;
- if (1 === v) A = P.endValue;
- else {
- var T = P.endValue - P.startValue;
- if (A = P.startValue + T * _(v, l, T), !h && A === P.currentValue) continue
- }
- if (P.currentValue = A, "tween" === M) p = A;
- else {
- if (w.Hooks.registered[M]) {
- var I = w.Hooks.getRoot(M),
- O = a(S).rootPropertyValueCache[I];
- O && (P.rootPropertyValue = O)
- }
- var F = w.setPropertyValue(S, M, P.currentValue + (0 === parseFloat(A) ? "" : P.unitType), P.rootPropertyValue, P.scrollData);
- w.Hooks.registered[M] && (a(S).rootPropertyValueCache[I] = w.Normalizations.registered[I] ? w.Normalizations.registered[I]("extract", null, F[1]) : F[1]), "transform" === F[0] && (C = !0)
- }
- } l.mobileHA && a(S).transformCache.translate3d === i && (a(S).transformCache.translate3d = "(0px, 0px, 0px)", C = !0), C && w.flushTransformCache(S)
- }
- }
- l.display !== i && "none" !== l.display && (b.State.calls[r][2].display = !1), l.visibility !== i && "hidden" !== l.visibility && (b.State.calls[r][2].visibility = !1), l.progress && l.progress.call(o[1], o[1], v, Math.max(0, u + l.duration - e), u, p), 1 === v && d(r)
- }
- }
- b.State.isTicking && k(c)
- }
- function d(t, e) {
- if (!b.State.calls[t]) return !1;
- for (var n = b.State.calls[t][0], r = b.State.calls[t][1], o = b.State.calls[t][2], s = b.State.calls[t][4], l = !1, u = 0, c = n.length; c > u; u++) {
- var d = n[u].element;
- if (e || o.loop || ("none" === o.display && w.setPropertyValue(d, "display", o.display), "hidden" === o.visibility && w.setPropertyValue(d, "visibility", o.visibility)), !0 !== o.loop && (f.queue(d)[1] === i || !/\.velocityQueueEntryFlag/i.test(f.queue(d)[1])) && a(d)) {
- a(d).isAnimating = !1, a(d).rootPropertyValueCache = {};
- var h = !1;
- f.each(w.Lists.transforms3D, (function(t, e) {
- var n = /^scale/.test(e) ? 1 : 0,
- r = a(d).transformCache[e];
- a(d).transformCache[e] !== i && new RegExp("^\\(" + n + "[^.]").test(r) && (h = !0, delete a(d).transformCache[e])
- })), o.mobileHA && (h = !0, delete a(d).transformCache.translate3d), h && w.flushTransformCache(d), w.Values.removeClass(d, "velocity-animating")
- }
- if (!e && o.complete && !o.loop && u === c - 1) try {
- o.complete.call(r, r)
- } catch (t) {
- setTimeout((function() {
- throw t
- }), 1)
- }
- s && !0 !== o.loop && s(r), a(d) && !0 === o.loop && !e && (f.each(a(d).tweensContainer, (function(t, e) {
- /^rotate/.test(t) && 360 === parseFloat(e.endValue) && (e.endValue = 0, e.startValue = 360), /^backgroundPosition/.test(t) && 100 === parseFloat(e.endValue) && "%" === e.unitType && (e.endValue = 0, e.startValue = 100)
- })), b(d, "reverse", {
- loop: !0,
- delay: o.delay
- })), !1 !== o.queue && f.dequeue(d, o.queue)
- }
- b.State.calls[t] = !1;
- for (var p = 0, g = b.State.calls.length; g > p; p++)
- if (!1 !== b.State.calls[p]) {
- l = !0;
- break
- }! 1 === l && (b.State.isTicking = !1, delete b.State.calls, b.State.calls = [])
- }
- var f, h = function() {
- if (n.documentMode) return n.documentMode;
- for (var t = 7; t > 4; t--) {
- var e = n.createElement("div");
- if (e.innerHTML = "\x3c!--[if IE " + t + "]><span></span><![endif]--\x3e", e.getElementsByTagName("span").length) return e = null, t
- }
- return i
- }(),
- p = function() {
- var t = 0;
- return e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || function(e) {
- var n, r = (new Date).getTime();
- return n = Math.max(0, 16 - (r - t)), t = r + n, setTimeout((function() {
- e(r + n)
- }), n)
- }
- }(),
- g = {
- isString: function(t) {
- return "string" == typeof t
- },
- isArray: Array.isArray || function(t) {
- return "[object Array]" === Object.prototype.toString.call(t)
- },
- isFunction: function(t) {
- return "[object Function]" === Object.prototype.toString.call(t)
- },
- isNode: function(t) {
- return t && t.nodeType
- },
- isNodeList: function(t) {
- return "object" == r(t) && /^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t)) && t.length !== i && (0 === t.length || "object" == r(t[0]) && t[0].nodeType > 0)
- },
- isWrapped: function(t) {
- return t && (t.jquery || e.Zepto && e.Zepto.zepto.isZ(t))
- },
- isSVG: function(t) {
- return e.SVGElement && t instanceof e.SVGElement
- },
- isEmptyObject: function(t) {
- for (var e in t) return !1;
- return !0
- }
- },
- v = !1;
- if (t.fn && t.fn.jquery ? (f = t, v = !0) : f = e.Velocity.Utilities, 8 >= h && !v) throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");
- if (!(7 >= h)) {
- var m = 400,
- y = "swing",
- b = {
- State: {
- isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),
- isAndroid: /Android/i.test(navigator.userAgent),
- isGingerbread: /Android 2\.3\.[3-7]/i.test(navigator.userAgent),
- isChrome: e.chrome,
- isFirefox: /Firefox/i.test(navigator.userAgent),
- prefixElement: n.createElement("div"),
- prefixMatches: {},
- scrollAnchor: null,
- scrollPropertyLeft: null,
- scrollPropertyTop: null,
- isTicking: !1,
- calls: []
- },
- CSS: {},
- Utilities: f,
- Redirects: {},
- Easings: {},
- Promise: e.Promise,
- defaults: {
- queue: "",
- duration: m,
- easing: y,
- begin: i,
- complete: i,
- progress: i,
- display: i,
- visibility: i,
- loop: !1,
- delay: !1,
- mobileHA: !0,
- _cacheValues: !0
- },
- init: function(t) {
- f.data(t, "velocity", {
- isSVG: g.isSVG(t),
- isAnimating: !1,
- computedStyle: null,
- tweensContainer: null,
- rootPropertyValueCache: {},
- transformCache: {}
- })
- },
- hook: null,
- mock: !1,
- version: {
- major: 1,
- minor: 2,
- patch: 2
- },
- debug: !1
- };
- e.pageYOffset !== i ? (b.State.scrollAnchor = e, b.State.scrollPropertyLeft = "pageXOffset", b.State.scrollPropertyTop = "pageYOffset") : (b.State.scrollAnchor = n.documentElement || n.body.parentNode || n.body, b.State.scrollPropertyLeft = "scrollLeft", b.State.scrollPropertyTop = "scrollTop");
- var x = function() {
- function t(t) {
- return -t.tension * t.x - t.friction * t.v
- }
- function e(e, n, r) {
- var i = {
- x: e.x + r.dx * n,
- v: e.v + r.dv * n,
- tension: e.tension,
- friction: e.friction
- };
- return {
- dx: i.v,
- dv: t(i)
- }
- }
- function n(n, r) {
- var i = {
- dx: n.v,
- dv: t(n)
- },
- o = e(n, .5 * r, i),
- a = e(n, .5 * r, o),
- s = e(n, r, a),
- l = 1 / 6 * (i.dx + 2 * (o.dx + a.dx) + s.dx),
- u = 1 / 6 * (i.dv + 2 * (o.dv + a.dv) + s.dv);
- return n.x = n.x + l * r, n.v = n.v + u * r, n
- }
- return function t(e, r, i) {
- var o, a, s, l = {
- x: -1,
- v: 0,
- tension: null,
- friction: null
- },
- u = [0],
- c = 0;
- for (e = parseFloat(e) || 500, r = parseFloat(r) || 20, i = i || null, l.tension = e, l.friction = r, a = (o = null !== i) ? (c = t(e, r)) / i * .016 : .016; s = n(s || l, a), u.push(1 + s.x), c += 16, Math.abs(s.x) > 1e-4 && Math.abs(s.v) > 1e-4;);
- return o ? function(t) {
- return u[t * (u.length - 1) | 0]
- } : c
- }
- }();
- b.Easings = {
- linear: function(t) {
- return t
- },
- swing: function(t) {
- return .5 - Math.cos(t * Math.PI) / 2
- },
- spring: function(t) {
- return 1 - Math.cos(4.5 * t * Math.PI) * Math.exp(6 * -t)
- }
- }, f.each([
- ["ease", [.25, .1, .25, 1]],
- ["ease-in", [.42, 0, 1, 1]],
- ["ease-out", [0, 0, .58, 1]],
- ["ease-in-out", [.42, 0, .58, 1]],
- ["easeInSine", [.47, 0, .745, .715]],
- ["easeOutSine", [.39, .575, .565, 1]],
- ["easeInOutSine", [.445, .05, .55, .95]],
- ["easeInQuad", [.55, .085, .68, .53]],
- ["easeOutQuad", [.25, .46, .45, .94]],
- ["easeInOutQuad", [.455, .03, .515, .955]],
- ["easeInCubic", [.55, .055, .675, .19]],
- ["easeOutCubic", [.215, .61, .355, 1]],
- ["easeInOutCubic", [.645, .045, .355, 1]],
- ["easeInQuart", [.895, .03, .685, .22]],
- ["easeOutQuart", [.165, .84, .44, 1]],
- ["easeInOutQuart", [.77, 0, .175, 1]],
- ["easeInQuint", [.755, .05, .855, .06]],
- ["easeOutQuint", [.23, 1, .32, 1]],
- ["easeInOutQuint", [.86, 0, .07, 1]],
- ["easeInExpo", [.95, .05, .795, .035]],
- ["easeOutExpo", [.19, 1, .22, 1]],
- ["easeInOutExpo", [1, 0, 0, 1]],
- ["easeInCirc", [.6, .04, .98, .335]],
- ["easeOutCirc", [.075, .82, .165, 1]],
- ["easeInOutCirc", [.785, .135, .15, .86]]
- ], (function(t, e) {
- b.Easings[e[0]] = l.apply(null, e[1])
- }));
- var w = b.CSS = {
- RegEx: {
- isHex: /^#([A-f\d]{3}){1,2}$/i,
- valueUnwrap: /^[A-z]+\((.*)\)$/i,
- wrappedValueAlreadyExtracted: /[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,
- valueSplit: /([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi
- },
- Lists: {
- colors: ["fill", "stroke", "stopColor", "color", "backgroundColor", "borderColor", "borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor", "outlineColor"],
- transformsBase: ["translateX", "translateY", "scale", "scaleX", "scaleY", "skewX", "skewY", "rotateZ"],
- transforms3D: ["transformPerspective", "translateZ", "scaleZ", "rotateX", "rotateY"]
- },
- Hooks: {
- templates: {
- textShadow: ["Color X Y Blur", "black 0px 0px 0px"],
- boxShadow: ["Color X Y Blur Spread", "black 0px 0px 0px 0px"],
- clip: ["Top Right Bottom Left", "0px 0px 0px 0px"],
- backgroundPosition: ["X Y", "0% 0%"],
- transformOrigin: ["X Y Z", "50% 50% 0px"],
- perspectiveOrigin: ["X Y", "50% 50%"]
- },
- registered: {},
- register: function() {
- for (var t = 0; t < w.Lists.colors.length; t++) {
- var e = "color" === w.Lists.colors[t] ? "0 0 0 1" : "255 255 255 1";
- w.Hooks.templates[w.Lists.colors[t]] = ["Red Green Blue Alpha", e]
- }
- var n, r, i;
- if (h)
- for (n in w.Hooks.templates) {
- i = (r = w.Hooks.templates[n])[0].split(" ");
- var o = r[1].match(w.RegEx.valueSplit);
- "Color" === i[0] && (i.push(i.shift()), o.push(o.shift()), w.Hooks.templates[n] = [i.join(" "), o.join(" ")])
- }
- for (n in w.Hooks.templates)
- for (var t in i = (r = w.Hooks.templates[n])[0].split(" ")) {
- var a = n + i[t],
- s = t;
- w.Hooks.registered[a] = [n, s]
- }
- },
- getRoot: function(t) {
- var e = w.Hooks.registered[t];
- return e ? e[0] : t
- },
- cleanRootPropertyValue: function(t, e) {
- return w.RegEx.valueUnwrap.test(e) && (e = e.match(w.RegEx.valueUnwrap)[1]), w.Values.isCSSNullValue(e) && (e = w.Hooks.templates[t][1]), e
- },
- extractValue: function(t, e) {
- var n = w.Hooks.registered[t];
- if (n) {
- var r = n[0],
- i = n[1];
- return (e = w.Hooks.cleanRootPropertyValue(r, e)).toString().match(w.RegEx.valueSplit)[i]
- }
- return e
- },
- injectValue: function(t, e, n) {
- var r = w.Hooks.registered[t];
- if (r) {
- var i, o = r[0],
- a = r[1];
- return (i = (n = w.Hooks.cleanRootPropertyValue(o, n)).toString().match(w.RegEx.valueSplit))[a] = e, i.join(" ")
- }
- return n
- }
- },
- Normalizations: {
- registered: {
- clip: function(t, e, n) {
- switch (t) {
- case "name":
- return "clip";
- case "extract":
- var r;
- return r = w.RegEx.wrappedValueAlreadyExtracted.test(n) ? n : (r = n.toString().match(w.RegEx.valueUnwrap)) ? r[1].replace(/,(\s+)?/g, " ") : n;
- case "inject":
- return "rect(" + n + ")"
- }
- },
- blur: function(t, e, n) {
- switch (t) {
- case "name":
- return b.State.isFirefox ? "filter" : "-webkit-filter";
- case "extract":
- var r = parseFloat(n);
- if (!r && 0 !== r) {
- var i = n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);
- r = i ? i[1] : 0
- }
- return r;
- case "inject":
- return parseFloat(n) ? "blur(" + n + ")" : "none"
- }
- },
- opacity: function(t, e, n) {
- if (8 >= h) switch (t) {
- case "name":
- return "filter";
- case "extract":
- var r = n.toString().match(/alpha\(opacity=(.*)\)/i);
- return r ? r[1] / 100 : 1;
- case "inject":
- return e.style.zoom = 1, parseFloat(n) >= 1 ? "" : "alpha(opacity=" + parseInt(100 * parseFloat(n), 10) + ")"
- } else switch (t) {
- case "name":
- return "opacity";
- case "extract":
- case "inject":
- return n
- }
- }
- },
- register: function() {
- 9 >= h || b.State.isGingerbread || (w.Lists.transformsBase = w.Lists.transformsBase.concat(w.Lists.transforms3D));
- for (var t = 0; t < w.Lists.transformsBase.length; t++) ! function() {
- var e = w.Lists.transformsBase[t];
- w.Normalizations.registered[e] = function(t, n, r) {
- switch (t) {
- case "name":
- return "transform";
- case "extract":
- return a(n) === i || a(n).transformCache[e] === i ? /^scale/i.test(e) ? 1 : 0 : a(n).transformCache[e].replace(/[()]/g, "");
- case "inject":
- var o = !1;
- switch (e.substr(0, e.length - 1)) {
- case "translate":
- o = !/(%|px|em|rem|vw|vh|\d)$/i.test(r);
- break;
- case "scal":
- case "scale":
- b.State.isAndroid && a(n).transformCache[e] === i && 1 > r && (r = 1), o = !/(\d)$/i.test(r);
- break;
- case "skew":
- o = !/(deg|\d)$/i.test(r);
- break;
- case "rotate":
- o = !/(deg|\d)$/i.test(r)
- }
- return o || (a(n).transformCache[e] = "(" + r + ")"), a(n).transformCache[e]
- }
- }
- }();
- for (t = 0; t < w.Lists.colors.length; t++) ! function() {
- var e = w.Lists.colors[t];
- w.Normalizations.registered[e] = function(t, n, r) {
- switch (t) {
- case "name":
- return e;
- case "extract":
- var o;
- if (w.RegEx.wrappedValueAlreadyExtracted.test(r)) o = r;
- else {
- var a, s = {
- black: "rgb(0, 0, 0)",
- blue: "rgb(0, 0, 255)",
- gray: "rgb(128, 128, 128)",
- green: "rgb(0, 128, 0)",
- red: "rgb(255, 0, 0)",
- white: "rgb(255, 255, 255)"
- };
- /^[A-z]+$/i.test(r) ? a = s[r] !== i ? s[r] : s.black : w.RegEx.isHex.test(r) ? a = "rgb(" + w.Values.hexToRgb(r).join(" ") + ")" : /^rgba?\(/i.test(r) || (a = s.black), o = (a || r).toString().match(w.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g, " ")
- }
- return 8 >= h || 3 !== o.split(" ").length || (o += " 1"), o;
- case "inject":
- return 8 >= h ? 4 === r.split(" ").length && (r = r.split(/\s+/).slice(0, 3).join(" ")) : 3 === r.split(" ").length && (r += " 1"), (8 >= h ? "rgb" : "rgba") + "(" + r.replace(/\s+/g, ",").replace(/\.(\d)+(?=,)/g, "") + ")"
- }
- }
- }()
- }
- },
- Names: {
- camelCase: function(t) {
- return t.replace(/-(\w)/g, (function(t, e) {
- return e.toUpperCase()
- }))
- },
- SVGAttribute: function(t) {
- var e = "width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";
- return (h || b.State.isAndroid && !b.State.isChrome) && (e += "|transform"), new RegExp("^(" + e + ")$", "i").test(t)
- },
- prefixCheck: function(t) {
- if (b.State.prefixMatches[t]) return [b.State.prefixMatches[t], !0];
- for (var e = ["", "Webkit", "Moz", "ms", "O"], n = 0, r = e.length; r > n; n++) {
- var i;
- if (i = 0 === n ? t : e[n] + t.replace(/^\w/, (function(t) {
- return t.toUpperCase()
- })), g.isString(b.State.prefixElement.style[i])) return b.State.prefixMatches[t] = i, [i, !0]
- }
- return [t, !1]
- }
- },
- Values: {
- hexToRgb: function(t) {
- var e;
- return t = t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (function(t, e, n, r) {
- return e + e + n + n + r + r
- })), (e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t)) ? [parseInt(e[1], 16), parseInt(e[2], 16), parseInt(e[3], 16)] : [0, 0, 0]
- },
- isCSSNullValue: function(t) {
- return 0 == t || /^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)
- },
- getUnitType: function(t) {
- return /^(rotate|skew)/i.test(t) ? "deg" : /(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t) ? "" : "px"
- },
- getDisplayType: function(t) {
- var e = t && t.tagName.toString().toLowerCase();
- return /^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e) ? "inline" : /^(li)$/i.test(e) ? "list-item" : /^(tr)$/i.test(e) ? "table-row" : /^(table)$/i.test(e) ? "table" : /^(tbody)$/i.test(e) ? "table-row-group" : "block"
- },
- addClass: function(t, e) {
- t.classList ? t.classList.add(e) : t.className += (t.className.length ? " " : "") + e
- },
- removeClass: function(t, e) {
- t.classList ? t.classList.remove(e) : t.className = t.className.toString().replace(new RegExp("(^|\\s)" + e.split(" ").join("|") + "(\\s|$)", "gi"), " ")
- }
- },
- getPropertyValue: function(t, n, r, o) {
- function s(t, n) {
- function r() {
- c && w.setPropertyValue(t, "display", "none")
- }
- var l = 0;
- if (8 >= h) l = f.css(t, n);
- else {
- var u, c = !1;
- if (/^(width|height)$/.test(n) && 0 === w.getPropertyValue(t, "display") && (c = !0, w.setPropertyValue(t, "display", w.Values.getDisplayType(t))), !o) {
- if ("height" === n && "border-box" !== w.getPropertyValue(t, "boxSizing").toString().toLowerCase()) {
- var d = t.offsetHeight - (parseFloat(w.getPropertyValue(t, "borderTopWidth")) || 0) - (parseFloat(w.getPropertyValue(t, "borderBottomWidth")) || 0) - (parseFloat(w.getPropertyValue(t, "paddingTop")) || 0) - (parseFloat(w.getPropertyValue(t, "paddingBottom")) || 0);
- return r(), d
- }
- if ("width" === n && "border-box" !== w.getPropertyValue(t, "boxSizing").toString().toLowerCase()) {
- var p = t.offsetWidth - (parseFloat(w.getPropertyValue(t, "borderLeftWidth")) || 0) - (parseFloat(w.getPropertyValue(t, "borderRightWidth")) || 0) - (parseFloat(w.getPropertyValue(t, "paddingLeft")) || 0) - (parseFloat(w.getPropertyValue(t, "paddingRight")) || 0);
- return r(), p
- }
- }
- u = a(t) === i ? e.getComputedStyle(t, null) : a(t).computedStyle ? a(t).computedStyle : a(t).computedStyle = e.getComputedStyle(t, null), "borderColor" === n && (n = "borderTopColor"), ("" === (l = 9 === h && "filter" === n ? u.getPropertyValue(n) : u[n]) || null === l) && (l = t.style[n]), r()
- }
- if ("auto" === l && /^(top|right|bottom|left)$/i.test(n)) {
- var g = s(t, "position");
- ("fixed" === g || "absolute" === g && /top|left/i.test(n)) && (l = f(t).position()[n] + "px")
- }
- return l
- }
- var l;
- if (w.Hooks.registered[n]) {
- var u = n,
- c = w.Hooks.getRoot(u);
- r === i && (r = w.getPropertyValue(t, w.Names.prefixCheck(c)[0])), w.Normalizations.registered[c] && (r = w.Normalizations.registered[c]("extract", t, r)), l = w.Hooks.extractValue(u, r)
- } else if (w.Normalizations.registered[n]) {
- var d, p;
- "transform" !== (d = w.Normalizations.registered[n]("name", t)) && (p = s(t, w.Names.prefixCheck(d)[0]), w.Values.isCSSNullValue(p) && w.Hooks.templates[n] && (p = w.Hooks.templates[n][1])), l = w.Normalizations.registered[n]("extract", t, p)
- }
- if (!/^[\d-]/.test(l))
- if (a(t) && a(t).isSVG && w.Names.SVGAttribute(n))
- if (/^(height|width)$/i.test(n)) try {
- l = t.getBBox()[n]
- } catch (t) {
- l = 0
- } else l = t.getAttribute(n);
- else l = s(t, w.Names.prefixCheck(n)[0]);
- return w.Values.isCSSNullValue(l) && (l = 0), b.debug >= 2 && console.log("Get " + n + ": " + l), l
- },
- setPropertyValue: function(t, n, r, i, o) {
- var s = n;
- if ("scroll" === n) o.container ? o.container["scroll" + o.direction] = r : "Left" === o.direction ? e.scrollTo(r, o.alternateValue) : e.scrollTo(o.alternateValue, r);
- else if (w.Normalizations.registered[n] && "transform" === w.Normalizations.registered[n]("name", t)) w.Normalizations.registered[n]("inject", t, r), s = "transform", r = a(t).transformCache[n];
- else {
- if (w.Hooks.registered[n]) {
- var l = n,
- u = w.Hooks.getRoot(n);
- i = i || w.getPropertyValue(t, u), r = w.Hooks.injectValue(l, r, i), n = u
- }
- if (w.Normalizations.registered[n] && (r = w.Normalizations.registered[n]("inject", t, r), n = w.Normalizations.registered[n]("name", t)), s = w.Names.prefixCheck(n)[0], 8 >= h) try {
- t.style[s] = r
- } catch (t) {
- b.debug && console.log("Browser does not support [" + r + "] for [" + s + "]")
- } else a(t) && a(t).isSVG && w.Names.SVGAttribute(n) ? t.setAttribute(n, r) : t.style[s] = r;
- b.debug >= 2 && console.log("Set " + n + " (" + s + "): " + r)
- }
- return [s, r]
- },
- flushTransformCache: function(t) {
- function e(e) {
- return parseFloat(w.getPropertyValue(t, e))
- }
- var n = "";
- if ((h || b.State.isAndroid && !b.State.isChrome) && a(t).isSVG) {
- var r = {
- translate: [e("translateX"), e("translateY")],
- skewX: [e("skewX")],
- skewY: [e("skewY")],
- scale: 1 !== e("scale") ? [e("scale"), e("scale")] : [e("scaleX"), e("scaleY")],
- rotate: [e("rotateZ"), 0, 0]
- };
- f.each(a(t).transformCache, (function(t) {
- /^translate/i.test(t) ? t = "translate" : /^scale/i.test(t) ? t = "scale" : /^rotate/i.test(t) && (t = "rotate"), r[t] && (n += t + "(" + r[t].join(" ") + ") ", delete r[t])
- }))
- } else {
- var i, o;
- f.each(a(t).transformCache, (function(e) {
- return i = a(t).transformCache[e], "transformPerspective" === e ? (o = i, !0) : (9 === h && "rotateZ" === e && (e = "rotate"), void(n += e + i + " "))
- })), o && (n = "perspective" + o + " " + n)
- }
- w.setPropertyValue(t, "transform", n)
- }
- };
- w.Hooks.register(), w.Normalizations.register(), b.hook = function(t, e, n) {
- var r = i;
- return t = o(t), f.each(t, (function(t, o) {
- if (a(o) === i && b.init(o), n === i) r === i && (r = b.CSS.getPropertyValue(o, e));
- else {
- var s = b.CSS.setPropertyValue(o, e, n);
- "transform" === s[0] && b.CSS.flushTransformCache(o), r = s
- }
- })), r
- };
- var S = function t() {
- function r() {
- return l ? _.promise || null : h
- }
- function s() {
- function t(t) {
- function d(t, e) {
- var n = i,
- r = i,
- a = i;
- return g.isArray(t) ? (n = t[0], !g.isArray(t[1]) && /^[\d-]/.test(t[1]) || g.isFunction(t[1]) || w.RegEx.isHex.test(t[1]) ? a = t[1] : (g.isString(t[1]) && !w.RegEx.isHex.test(t[1]) || g.isArray(t[1])) && (r = e ? t[1] : u(t[1], s.duration), t[2] !== i && (a = t[2]))) : n = t, e || (r = r || s.easing), g.isFunction(n) && (n = n.call(o, C, k)), g.isFunction(a) && (a = a.call(o, C, k)), [n || 0, r, a]
- }
- function h(t, e) {
- var n, r;
- return r = (e || "0").toString().toLowerCase().replace(/[%A-z]+$/, (function(t) {
- return n = t, ""
- })), n || (n = w.Values.getUnitType(t)), [r, n]
- }
- function p() {
- var t = {
- myParent: o.parentNode || n.body,
- position: w.getPropertyValue(o, "position"),
- fontSize: w.getPropertyValue(o, "fontSize")
- },
- r = t.position === L.lastPosition && t.myParent === L.lastParent,
- i = t.fontSize === L.lastFontSize;
- L.lastParent = t.myParent, L.lastPosition = t.position, L.lastFontSize = t.fontSize;
- var s = 100,
- l = {};
- if (i && r) l.emToPx = L.lastEmToPx, l.percentToPxWidth = L.lastPercentToPxWidth, l.percentToPxHeight = L.lastPercentToPxHeight;
- else {
- var u = a(o).isSVG ? n.createElementNS("http://www.w3.org/2000/svg", "rect") : n.createElement("div");
- b.init(u), t.myParent.appendChild(u), f.each(["overflow", "overflowX", "overflowY"], (function(t, e) {
- b.CSS.setPropertyValue(u, e, "hidden")
- })), b.CSS.setPropertyValue(u, "position", t.position), b.CSS.setPropertyValue(u, "fontSize", t.fontSize), b.CSS.setPropertyValue(u, "boxSizing", "content-box"), f.each(["minWidth", "maxWidth", "width", "minHeight", "maxHeight", "height"], (function(t, e) {
- b.CSS.setPropertyValue(u, e, s + "%")
- })), b.CSS.setPropertyValue(u, "paddingLeft", s + "em"), l.percentToPxWidth = L.lastPercentToPxWidth = (parseFloat(w.getPropertyValue(u, "width", null, !0)) || 1) / s, l.percentToPxHeight = L.lastPercentToPxHeight = (parseFloat(w.getPropertyValue(u, "height", null, !0)) || 1) / s, l.emToPx = L.lastEmToPx = (parseFloat(w.getPropertyValue(u, "paddingLeft")) || 1) / s, t.myParent.removeChild(u)
- }
- return null === L.remToPx && (L.remToPx = parseFloat(w.getPropertyValue(n.body, "fontSize")) || 16), null === L.vwToPx && (L.vwToPx = parseFloat(e.innerWidth) / 100, L.vhToPx = parseFloat(e.innerHeight) / 100), l.remToPx = L.remToPx, l.vwToPx = L.vwToPx, l.vhToPx = L.vhToPx, b.debug >= 1 && console.log("Unit ratios: " + JSON.stringify(l), o), l
- }
- if (s.begin && 0 === C) try {
- s.begin.call(v, v)
- } catch (t) {
- setTimeout((function() {
- throw t
- }), 1)
- }
- if ("scroll" === P) {
- var m, S, M, A = /^x$/i.test(s.axis) ? "Left" : "Top",
- T = parseFloat(s.offset) || 0;
- s.container ? g.isWrapped(s.container) || g.isNode(s.container) ? (s.container = s.container[0] || s.container, M = (m = s.container["scroll" + A]) + f(o).position()[A.toLowerCase()] + T) : s.container = null : (m = b.State.scrollAnchor[b.State["scrollProperty" + A]], S = b.State.scrollAnchor[b.State["scrollProperty" + ("Left" === A ? "Top" : "Left")]], M = f(o).offset()[A.toLowerCase()] + T), l = {
- scroll: {
- rootPropertyValue: !1,
- startValue: m,
- currentValue: m,
- endValue: M,
- unitType: "",
- easing: s.easing,
- scrollData: {
- container: s.container,
- direction: A,
- alternateValue: S
- }
- },
- element: o
- }, b.debug && console.log("tweensContainer (scroll): ", l.scroll, o)
- } else if ("reverse" === P) {
- if (!a(o).tweensContainer) return void f.dequeue(o, s.queue);
- "none" === a(o).opts.display && (a(o).opts.display = "auto"), "hidden" === a(o).opts.visibility && (a(o).opts.visibility = "visible"), a(o).opts.loop = !1, a(o).opts.begin = null, a(o).opts.complete = null, x.easing || delete s.easing, x.duration || delete s.duration, s = f.extend({}, a(o).opts, s);
- var I = f.extend(!0, {}, a(o).tweensContainer);
- for (var O in I)
- if ("element" !== O) {
- var F = I[O].startValue;
- I[O].startValue = I[O].currentValue = I[O].endValue, I[O].endValue = F, g.isEmptyObject(x) || (I[O].easing = s.easing), b.debug && console.log("reverse tweensContainer (" + O + "): " + JSON.stringify(I[O]), o)
- } l = I
- } else if ("start" === P) {
- for (var D in a(o).tweensContainer && !0 === a(o).isAnimating && (I = a(o).tweensContainer), f.each(y, (function(t, e) {
- if (RegExp("^" + w.Lists.colors.join("$|^") + "$").test(t)) {
- var n = d(e, !0),
- r = n[0],
- o = n[1],
- a = n[2];
- if (w.RegEx.isHex.test(r)) {
- for (var s = ["Red", "Green", "Blue"], l = w.Values.hexToRgb(r), u = a ? w.Values.hexToRgb(a) : i, c = 0; c < s.length; c++) {
- var f = [l[c]];
- o && f.push(o), u !== i && f.push(u[c]), y[t + s[c]] = f
- }
- delete y[t]
- }
- }
- })), y) {
- var E = d(y[D]),
- N = E[0],
- V = E[1],
- z = E[2];
- D = w.Names.camelCase(D);
- var B = w.Hooks.getRoot(D),
- W = !1;
- if (a(o).isSVG || "tween" === B || !1 !== w.Names.prefixCheck(B)[1] || w.Normalizations.registered[B] !== i) {
- (s.display !== i && null !== s.display && "none" !== s.display || s.visibility !== i && "hidden" !== s.visibility) && /opacity|filter/.test(D) && !z && 0 !== N && (z = 0), s._cacheValues && I && I[D] ? (z === i && (z = I[D].endValue + I[D].unitType), W = a(o).rootPropertyValueCache[B]) : w.Hooks.registered[D] ? z === i ? (W = w.getPropertyValue(o, B), z = w.getPropertyValue(o, D, W)) : W = w.Hooks.templates[B][1] : z === i && (z = w.getPropertyValue(o, D));
- var j, H, q, U = !1;
- if (z = (j = h(D, z))[0], q = j[1], N = (j = h(D, N))[0].replace(/^([+-\/*])=/, (function(t, e) {
- return U = e, ""
- })), H = j[1], z = parseFloat(z) || 0, N = parseFloat(N) || 0, "%" === H && (/^(fontSize|lineHeight)$/.test(D) ? (N /= 100, H = "em") : /^scale/.test(D) ? (N /= 100, H = "") : /(Red|Green|Blue)$/i.test(D) && (N = N / 100 * 255, H = "")), /[\/*]/.test(U)) H = q;
- else if (q !== H && 0 !== z)
- if (0 === N) H = q;
- else {
- r = r || p();
- var Y = /margin|padding|left|right|width|text|word|letter/i.test(D) || /X$/.test(D) || "x" === D ? "x" : "y";
- switch (q) {
- case "%":
- z *= "x" === Y ? r.percentToPxWidth : r.percentToPxHeight;
- break;
- case "px":
- break;
- default:
- z *= r[q + "ToPx"]
- }
- switch (H) {
- case "%":
- z *= 1 / ("x" === Y ? r.percentToPxWidth : r.percentToPxHeight);
- break;
- case "px":
- break;
- default:
- z *= 1 / r[H + "ToPx"]
- }
- } switch (U) {
- case "+":
- N = z + N;
- break;
- case "-":
- N = z - N;
- break;
- case "*":
- N *= z;
- break;
- case "/":
- N = z / N
- }
- l[D] = {
- rootPropertyValue: W,
- startValue: z,
- currentValue: z,
- endValue: N,
- unitType: H,
- easing: V
- }, b.debug && console.log("tweensContainer (" + D + "): " + JSON.stringify(l[D]), o)
- } else b.debug && console.log("Skipping [" + B + "] due to a lack of browser support.")
- }
- l.element = o
- }
- l.element && (w.Values.addClass(o, "velocity-animating"), R.push(l), "" === s.queue && (a(o).tweensContainer = l, a(o).opts = s), a(o).isAnimating = !0, C === k - 1 ? (b.State.calls.push([R, v, s, null, _.resolver]), !1 === b.State.isTicking && (b.State.isTicking = !0, c())) : C++)
- }
- var r, o = this,
- s = f.extend({}, b.defaults, x),
- l = {};
- switch (a(o) === i && b.init(o), parseFloat(s.delay) && !1 !== s.queue && f.queue(o, s.queue, (function(t) {
- b.velocityQueueEntryFlag = !0, a(o).delayTimer = {
- setTimeout: setTimeout(t, parseFloat(s.delay)),
- next: t
- }
- })), s.duration.toString().toLowerCase()) {
- case "fast":
- s.duration = 200;
- break;
- case "normal":
- s.duration = m;
- break;
- case "slow":
- s.duration = 600;
- break;
- default:
- s.duration = parseFloat(s.duration) || 1
- }!1 !== b.mock && (!0 === b.mock ? s.duration = s.delay = 1 : (s.duration *= parseFloat(b.mock) || 1, s.delay *= parseFloat(b.mock) || 1)), s.easing = u(s.easing, s.duration), s.begin && !g.isFunction(s.begin) && (s.begin = null), s.progress && !g.isFunction(s.progress) && (s.progress = null), s.complete && !g.isFunction(s.complete) && (s.complete = null), s.display !== i && null !== s.display && (s.display = s.display.toString().toLowerCase(), "auto" === s.display && (s.display = b.CSS.Values.getDisplayType(o))), s.visibility !== i && null !== s.visibility && (s.visibility = s.visibility.toString().toLowerCase()), s.mobileHA = s.mobileHA && b.State.isMobile && !b.State.isGingerbread, !1 === s.queue ? s.delay ? setTimeout(t, s.delay) : t() : f.queue(o, s.queue, (function(e, n) {
- return !0 === n ? (_.promise && _.resolver(v), !0) : (b.velocityQueueEntryFlag = !0, void t())
- })), "" !== s.queue && "fx" !== s.queue || "inprogress" === f.queue(o)[0] || f.dequeue(o)
- }
- var l, h, p, v, y, x, S = arguments[0] && (arguments[0].p || f.isPlainObject(arguments[0].properties) && !arguments[0].properties.names || g.isString(arguments[0].properties));
- if (g.isWrapped(this) ? (l = !1, p = 0, v = this, h = this) : (l = !0, p = 1, v = S ? arguments[0].elements || arguments[0].e : arguments[0]), v = o(v)) {
- S ? (y = arguments[0].properties || arguments[0].p, x = arguments[0].options || arguments[0].o) : (y = arguments[p], x = arguments[p + 1]);
- var k = v.length,
- C = 0;
- if (!/^(stop|finish)$/i.test(y) && !f.isPlainObject(x)) {
- var M = p + 1;
- x = {};
- for (var A = M; A < arguments.length; A++) g.isArray(arguments[A]) || !/^(fast|normal|slow)$/i.test(arguments[A]) && !/^\d/.test(arguments[A]) ? g.isString(arguments[A]) || g.isArray(arguments[A]) ? x.easing = arguments[A] : g.isFunction(arguments[A]) && (x.complete = arguments[A]) : x.duration = arguments[A]
- }
- var P, _ = {
- promise: null,
- resolver: null,
- rejecter: null
- };
- switch (l && b.Promise && (_.promise = new b.Promise((function(t, e) {
- _.resolver = t, _.rejecter = e
- }))), y) {
- case "scroll":
- P = "scroll";
- break;
- case "reverse":
- P = "reverse";
- break;
- case "finish":
- case "stop":
- f.each(v, (function(t, e) {
- a(e) && a(e).delayTimer && (clearTimeout(a(e).delayTimer.setTimeout), a(e).delayTimer.next && a(e).delayTimer.next(), delete a(e).delayTimer)
- }));
- var T = [];
- return f.each(b.State.calls, (function(t, e) {
- e && f.each(e[1], (function(n, r) {
- var o = x === i ? "" : x;
- return !0 !== o && e[2].queue !== o && (x !== i || !1 !== e[2].queue) || void f.each(v, (function(n, i) {
- i === r && ((!0 === x || g.isString(x)) && (f.each(f.queue(i, g.isString(x) ? x : ""), (function(t, e) {
- g.isFunction(e) && e(null, !0)
- })), f.queue(i, g.isString(x) ? x : "", [])), "stop" === y ? (a(i) && a(i).tweensContainer && !1 !== o && f.each(a(i).tweensContainer, (function(t, e) {
- e.endValue = e.currentValue
- })), T.push(t)) : "finish" === y && (e[2].duration = 1))
- }))
- }))
- })), "stop" === y && (f.each(T, (function(t, e) {
- d(e, !0)
- })), _.promise && _.resolver(v)), r();
- default:
- if (!f.isPlainObject(y) || g.isEmptyObject(y)) {
- if (g.isString(y) && b.Redirects[y]) {
- var I = (E = f.extend({}, x)).duration,
- O = E.delay || 0;
- return !0 === E.backwards && (v = f.extend(!0, [], v).reverse()), f.each(v, (function(t, e) {
- parseFloat(E.stagger) ? E.delay = O + parseFloat(E.stagger) * t : g.isFunction(E.stagger) && (E.delay = O + E.stagger.call(e, t, k)), E.drag && (E.duration = parseFloat(I) || (/^(callout|transition)/.test(y) ? 1e3 : m), E.duration = Math.max(E.duration * (E.backwards ? 1 - t / k : (t + 1) / k), .75 * E.duration, 200)), b.Redirects[y].call(e, e, E || {}, t, k, v, _.promise ? _ : i)
- })), r()
- }
- var F = "Velocity: First argument (" + y + ") was not a property map, a known action, or a registered redirect. Aborting.";
- return _.promise ? _.rejecter(new Error(F)) : console.log(F), r()
- }
- P = "start"
- }
- var D, E, L = {
- lastParent: null,
- lastPosition: null,
- lastFontSize: null,
- lastPercentToPxWidth: null,
- lastPercentToPxHeight: null,
- lastEmToPx: null,
- remToPx: null,
- vwToPx: null,
- vhToPx: null
- },
- R = [];
- if (f.each(v, (function(t, e) {
- g.isNode(e) && s.call(e)
- })), (E = f.extend({}, b.defaults, x)).loop = parseInt(E.loop), D = 2 * E.loop - 1, E.loop)
- for (var N = 0; D > N; N++) {
- var V = {
- delay: E.delay,
- progress: E.progress
- };
- N === D - 1 && (V.display = E.display, V.visibility = E.visibility, V.complete = E.complete), t(v, "reverse", V)
- }
- return r()
- }
- };
- (b = f.extend(S, b)).animate = S;
- var k = e.requestAnimationFrame || p;
- return b.State.isMobile || n.hidden === i || n.addEventListener("visibilitychange", (function() {
- n.hidden ? (k = function(t) {
- return setTimeout((function() {
- t(!0)
- }), 16)
- }, c()) : k = e.requestAnimationFrame || p
- })), t.Velocity = b, t !== e && (t.fn.velocity = S, t.fn.velocity.defaults = b.defaults), f.each(["Down", "Up"], (function(t, e) {
- b.Redirects["slide" + e] = function(t, n, r, o, a, s) {
- var l = f.extend({}, n),
- u = l.begin,
- c = l.complete,
- d = {
- height: "",
- marginTop: "",
- marginBottom: "",
- paddingTop: "",
- paddingBottom: ""
- },
- h = {};
- l.display === i && (l.display = "Down" === e ? "inline" === b.CSS.Values.getDisplayType(t) ? "inline-block" : "block" : "none"), l.begin = function() {
- for (var n in u && u.call(a, a), d) {
- h[n] = t.style[n];
- var r = b.CSS.getPropertyValue(t, n);
- d[n] = "Down" === e ? [r, 0] : [0, r]
- }
- h.overflow = t.style.overflow, t.style.overflow = "hidden"
- }, l.complete = function() {
- for (var e in h) t.style[e] = h[e];
- c && c.call(a, a), s && s.resolver(a)
- }, b(t, d, l)
- }
- })), f.each(["In", "Out"], (function(t, e) {
- b.Redirects["fade" + e] = function(t, n, r, o, a, s) {
- var l = f.extend({}, n),
- u = {
- opacity: "In" === e ? 1 : 0
- },
- c = l.complete;
- l.complete = r !== o - 1 ? l.begin = null : function() {
- c && c.call(a, a), s && s.resolver(a)
- }, l.display === i && (l.display = "In" === e ? "auto" : "none"), b(this, u, l)
- }
- })), b
- }
- jQuery.fn.velocity = jQuery.fn.animate
- }(window.jQuery || window.Zepto || window, window, document)
- }, "object" == r(t) && "object" == r(t.exports) ? t.exports = e() : "function" == typeof define && n(55) ? define(e) : e())
- }).call(this, n(87)(t))
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(1),
- o = n(142),
- a = n(7),
- s = n(31),
- l = n(11),
- u = n(102),
- c = o.ArrayBuffer,
- d = o.DataView,
- f = c.prototype.slice;
- r({
- target: "ArrayBuffer",
- proto: !0,
- unsafe: !0,
- forced: i((function() {
- return !new c(2).slice(1, void 0).byteLength
- }))
- }, {
- slice: function(t, e) {
- if (void 0 !== f && void 0 === e) return f.call(a(this), t);
- for (var n = a(this).byteLength, r = s(t, n), i = s(void 0 === e ? n : e, n), o = new(u(this, c))(l(i - r)), h = new d(this), p = new d(o), g = 0; r < i;) p.setUint8(g++, h.getUint8(r++));
- return o
- }
- })
- }, function(t, e, n) {
- var r = n(14);
- t.exports = function(t, e, n) {
- for (var i in e) r(t, i, e[i], n);
- return t
- }
- }, function(t, e, n) {
- n(167)("Float32", 4, (function(t) {
- return function(e, n, r) {
- return t(this, e, n, r)
- }
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(3),
- i = n(0),
- o = n(8),
- a = n(168),
- s = n(40),
- l = n(142),
- u = n(143),
- c = n(17),
- d = n(6),
- f = n(11),
- h = n(144),
- p = n(145),
- g = n(19),
- v = n(4),
- m = n(73),
- y = n(5),
- b = n(33),
- x = n(69),
- w = n(27).f,
- S = n(171),
- k = n(25).forEach,
- C = n(124),
- M = n(9),
- A = n(24),
- P = n(22),
- _ = P.get,
- T = P.set,
- I = M.f,
- O = A.f,
- F = Math.round,
- D = i.RangeError,
- E = l.ArrayBuffer,
- L = l.DataView,
- R = s.NATIVE_ARRAY_BUFFER_VIEWS,
- N = s.TYPED_ARRAY_TAG,
- V = s.TypedArray,
- z = s.TypedArrayPrototype,
- B = s.aTypedArrayConstructor,
- W = s.isTypedArray,
- j = function(t, e) {
- for (var n = 0, r = e.length, i = new(B(t))(r); r > n;) i[n] = e[n++];
- return i
- },
- H = function(t, e) {
- I(t, e, {
- get: function() {
- return _(this)[e]
- }
- })
- },
- q = function(t) {
- var e;
- return t instanceof E || "ArrayBuffer" == (e = m(t)) || "SharedArrayBuffer" == e
- },
- U = function(t, e) {
- return W(t) && "symbol" != typeof e && e in t && String(+e) == String(e)
- },
- Y = function(t, e) {
- return U(t, e = g(e, !0)) ? c(2, t[e]) : O(t, e)
- },
- $ = function(t, e, n) {
- return !(U(t, e = g(e, !0)) && y(n) && v(n, "value")) || v(n, "get") || v(n, "set") || n.configurable || v(n, "writable") && !n.writable || v(n, "enumerable") && !n.enumerable ? I(t, e, n) : (t[e] = n.value, t)
- };
- o ? (R || (A.f = Y, M.f = $, H(z, "buffer"), H(z, "byteOffset"), H(z, "byteLength"), H(z, "length")), r({
- target: "Object",
- stat: !0,
- forced: !R
- }, {
- getOwnPropertyDescriptor: Y,
- defineProperty: $
- }), t.exports = function(t, e, n, o) {
- var s = t + (o ? "Clamped" : "") + "Array",
- l = "get" + t,
- c = "set" + t,
- g = i[s],
- v = g,
- m = v && v.prototype,
- M = {},
- A = function(t, n) {
- I(t, n, {
- get: function() {
- return function(t, n) {
- var r = _(t);
- return r.view[l](n * e + r.byteOffset, !0)
- }(this, n)
- },
- set: function(t) {
- return function(t, n, r) {
- var i = _(t);
- o && (r = (r = F(r)) < 0 ? 0 : r > 255 ? 255 : 255 & r), i.view[c](n * e + i.byteOffset, r, !0)
- }(this, n, t)
- },
- enumerable: !0
- })
- };
- R ? a && (v = n((function(t, n, r, i) {
- return u(t, v, s), y(n) ? q(n) ? void 0 !== i ? new g(n, p(r, e), i) : void 0 !== r ? new g(n, p(r, e)) : new g(n) : W(n) ? j(v, n) : S.call(v, n) : new g(h(n))
- })), x && x(v, V), k(w(g), (function(t) {
- t in v || d(v, t, g[t])
- })), v.prototype = m) : (v = n((function(t, n, r, i) {
- u(t, v, s);
- var o, a, l, c = 0,
- d = 0;
- if (y(n)) {
- if (!q(n)) return W(n) ? j(v, n) : S.call(v, n);
- o = n, d = p(r, e);
- var g = n.byteLength;
- if (void 0 === i) {
- if (g % e) throw D("Wrong length");
- if ((a = g - d) < 0) throw D("Wrong length")
- } else if ((a = f(i) * e) + d > g) throw D("Wrong length");
- l = a / e
- } else l = h(n), o = new E(a = l * e);
- for (T(t, {
- buffer: o,
- byteOffset: d,
- byteLength: a,
- length: l,
- view: new L(o)
- }); c < l;) A(t, c++)
- })), x && x(v, V), m = v.prototype = b(z)), m.constructor !== v && d(m, "constructor", v), N && d(m, N, s), M[s] = v, r({
- global: !0,
- forced: v != g,
- sham: !R
- }, M), "BYTES_PER_ELEMENT" in v || d(v, "BYTES_PER_ELEMENT", e), "BYTES_PER_ELEMENT" in m || d(m, "BYTES_PER_ELEMENT", e), C(s)
- }) : t.exports = function() {}
- }, function(t, e, n) {
- var r = n(0),
- i = n(1),
- o = n(169),
- a = n(40).NATIVE_ARRAY_BUFFER_VIEWS,
- s = r.ArrayBuffer,
- l = r.Int8Array;
- t.exports = !a || !i((function() {
- l(1)
- })) || !i((function() {
- new l(-1)
- })) || !o((function(t) {
- new l, new l(null), new l(1.5), new l(t)
- }), !0) || i((function() {
- return 1 !== new l(new s(2), 1, void 0).length
- }))
- }, function(t, e, n) {
- var r = n(2)("iterator"),
- i = !1;
- try {
- var o = 0,
- a = {
- next: function() {
- return {
- done: !!o++
- }
- },
- return: function() {
- i = !0
- }
- };
- a[r] = function() {
- return this
- }, Array.from(a, (function() {
- throw 2
- }))
- } catch (t) {}
- t.exports = function(t, e) {
- if (!e && !i) return !1;
- var n = !1;
- try {
- var o = {};
- o[r] = function() {
- return {
- next: function() {
- return {
- done: n = !0
- }
- }
- }
- }, t(o)
- } catch (t) {}
- return n
- }
- }, function(t, e, n) {
- var r = n(12);
- t.exports = function(t) {
- var e = r(t);
- if (e < 0) throw RangeError("The argument can't be less than 0");
- return e
- }
- }, function(t, e, n) {
- var r = n(16),
- i = n(11),
- o = n(172),
- a = n(173),
- s = n(72),
- l = n(40).aTypedArrayConstructor;
- t.exports = function(t) {
- var e, n, u, c, d, f, h = r(t),
- p = arguments.length,
- g = p > 1 ? arguments[1] : void 0,
- v = void 0 !== g,
- m = o(h);
- if (null != m && !a(m))
- for (f = (d = m.call(h)).next, h = []; !(c = f.call(d)).done;) h.push(c.value);
- for (v && p > 2 && (g = s(g, arguments[2], 2)), n = i(h.length), u = new(l(this))(n), e = 0; n > e; e++) u[e] = v ? g(h[e], e) : h[e];
- return u
- }
- }, function(t, e, n) {
- var r = n(73),
- i = n(48),
- o = n(2)("iterator");
- t.exports = function(t) {
- if (null != t) return t[o] || t["@@iterator"] || i[r(t)]
- }
- }, function(t, e, n) {
- var r = n(2),
- i = n(48),
- o = r("iterator"),
- a = Array.prototype;
- t.exports = function(t) {
- return void 0 !== t && (i.Array === t || a[o] === t)
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(175),
- o = r.aTypedArray;
- r.exportProto("copyWithin", (function(t, e) {
- return i.call(o(this), t, e, arguments.length > 2 ? arguments[2] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(16),
- i = n(31),
- o = n(11),
- a = Math.min;
- t.exports = [].copyWithin || function(t, e) {
- var n = r(this),
- s = o(n.length),
- l = i(t, s),
- u = i(e, s),
- c = arguments.length > 2 ? arguments[2] : void 0,
- d = a((void 0 === c ? s : i(c, s)) - u, s - l),
- f = 1;
- for (u < l && l < u + d && (f = -1, u += d - 1, l += d - 1); d-- > 0;) u in n ? n[l] = n[u] : delete n[l], l += f, u += f;
- return n
- }
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(25).every,
- o = r.aTypedArray;
- r.exportProto("every", (function(t) {
- return i(o(this), t, arguments.length > 1 ? arguments[1] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(128),
- o = r.aTypedArray;
- r.exportProto("fill", (function(t) {
- return i.apply(o(this), arguments)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(25).filter,
- o = n(102),
- a = r.aTypedArray,
- s = r.aTypedArrayConstructor;
- r.exportProto("filter", (function(t) {
- for (var e = i(a(this), t, arguments.length > 1 ? arguments[1] : void 0), n = o(this, this.constructor), r = 0, l = e.length, u = new(s(n))(l); l > r;) u[r] = e[r++];
- return u
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(25).find,
- o = r.aTypedArray;
- r.exportProto("find", (function(t) {
- return i(o(this), t, arguments.length > 1 ? arguments[1] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(25).findIndex,
- o = r.aTypedArray;
- r.exportProto("findIndex", (function(t) {
- return i(o(this), t, arguments.length > 1 ? arguments[1] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(25).forEach,
- o = r.aTypedArray;
- r.exportProto("forEach", (function(t) {
- i(o(this), t, arguments.length > 1 ? arguments[1] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(41).includes,
- o = r.aTypedArray;
- r.exportProto("includes", (function(t) {
- return i(o(this), t, arguments.length > 1 ? arguments[1] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(41).indexOf,
- o = r.aTypedArray;
- r.exportProto("indexOf", (function(t) {
- return i(o(this), t, arguments.length > 1 ? arguments[1] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(0),
- i = n(40),
- o = n(54),
- a = n(2)("iterator"),
- s = r.Uint8Array,
- l = o.values,
- u = o.keys,
- c = o.entries,
- d = i.aTypedArray,
- f = i.exportProto,
- h = s && s.prototype[a],
- p = !!h && ("values" == h.name || null == h.name),
- g = function() {
- return l.call(d(this))
- };
- f("entries", (function() {
- return c.call(d(this))
- })), f("keys", (function() {
- return u.call(d(this))
- })), f("values", g, !p), f(a, g, !p)
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = r.aTypedArray,
- o = [].join;
- r.exportProto("join", (function(t) {
- return o.apply(i(this), arguments)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(131),
- o = r.aTypedArray;
- r.exportProto("lastIndexOf", (function(t) {
- return i.apply(o(this), arguments)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(25).map,
- o = n(102),
- a = r.aTypedArray,
- s = r.aTypedArrayConstructor;
- r.exportProto("map", (function(t) {
- return i(a(this), t, arguments.length > 1 ? arguments[1] : void 0, (function(t, e) {
- return new(s(o(t, t.constructor)))(e)
- }))
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(111).left,
- o = r.aTypedArray;
- r.exportProto("reduce", (function(t) {
- return i(o(this), t, arguments.length, arguments.length > 1 ? arguments[1] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(111).right,
- o = r.aTypedArray;
- r.exportProto("reduceRight", (function(t) {
- return i(o(this), t, arguments.length, arguments.length > 1 ? arguments[1] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = r.aTypedArray,
- o = Math.floor;
- r.exportProto("reverse", (function() {
- for (var t, e = i(this).length, n = o(e / 2), r = 0; r < n;) t = this[r], this[r++] = this[--e], this[e] = t;
- return this
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(11),
- o = n(145),
- a = n(16),
- s = n(1),
- l = r.aTypedArray,
- u = s((function() {
- new Int8Array(1).set({})
- }));
- r.exportProto("set", (function(t) {
- l(this);
- var e = o(arguments.length > 1 ? arguments[1] : void 0, 1),
- n = this.length,
- r = a(t),
- s = i(r.length),
- u = 0;
- if (s + e > n) throw RangeError("Wrong length");
- for (; u < s;) this[e + u] = r[u++]
- }), u)
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(102),
- o = n(1),
- a = r.aTypedArray,
- s = r.aTypedArrayConstructor,
- l = [].slice,
- u = o((function() {
- new Int8Array(1).slice()
- }));
- r.exportProto("slice", (function(t, e) {
- for (var n = l.call(a(this), t, e), r = i(this, this.constructor), o = 0, u = n.length, c = new(s(r))(u); u > o;) c[o] = n[o++];
- return c
- }), u)
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(25).some,
- o = r.aTypedArray;
- r.exportProto("some", (function(t) {
- return i(o(this), t, arguments.length > 1 ? arguments[1] : void 0)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = r.aTypedArray,
- o = [].sort;
- r.exportProto("sort", (function(t) {
- return o.call(i(this), t)
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(40),
- i = n(11),
- o = n(31),
- a = n(102),
- s = r.aTypedArray;
- r.exportProto("subarray", (function(t, e) {
- var n = s(this),
- r = n.length,
- l = o(t, r);
- return new(a(n, n.constructor))(n.buffer, n.byteOffset + l * n.BYTES_PER_ELEMENT, i((void 0 === e ? r : o(e, r)) - l))
- }))
- }, function(t, e, n) {
- "use strict";
- var r = n(0),
- i = n(40),
- o = n(1),
- a = r.Int8Array,
- s = i.aTypedArray,
- l = [].toLocaleString,
- u = [].slice,
- c = !!a && o((function() {
- l.call(new a(1))
- })),
- d = o((function() {
- return [1, 2].toLocaleString() != new a([1, 2]).toLocaleString()
- })) || !o((function() {
- a.prototype.toLocaleString.call([1, 2])
- }));
- i.exportProto("toLocaleString", (function() {
- return l.apply(c ? u.call(s(this)) : s(this), arguments)
- }), d)
- }, function(t, e, n) {
- "use strict";
- var r = n(0),
- i = n(40),
- o = n(1),
- a = r.Uint8Array,
- s = a && a.prototype,
- l = [].toString,
- u = [].join;
- o((function() {
- l.call({})
- })) && (l = function() {
- return u.call(this)
- }), i.exportProto("toString", l, (s || {}).toString != l)
- }, function(t, e, n) {
- "use strict";
- (function(t) {
- n(75), n(78), n(79), n(92), n(54), n(99), n(104), n(112), n(64), n(106), n(81), n(84);
- function e(t) {
- return (e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
- return typeof t
- } : function(t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
- })(t)
- }
- /*!
- * Waves v0.7.6
- * http://fian.my.id/Waves
- *
- * Copyright 2014-2018 Alfiana E. Sibuea and other contributors
- * Released under the MIT license
- * https://github.com/fians/Waves/blob/master/LICENSE
- */
- ! function(r, i) {
- "function" == typeof define && n(55) ? define([], (function() {
- return r.Waves = i.call(r), r.Waves
- })) : "object" === ("undefined" == typeof exports ? "undefined" : e(exports)) ? t.exports = i.call(r) : r.Waves = i.call(r)
- }("object" === ("undefined" == typeof window ? "undefined" : e(window)) ? window : void 0, (function() {
- var t = t || {},
- n = document.querySelectorAll.bind(document),
- r = Object.prototype.toString,
- i = "ontouchstart" in window;
- function o(t) {
- var n = e(t);
- return "function" === n || "object" === n && !!t
- }
- function a(t) {
- var e, i = r.call(t);
- return "[object String]" === i ? n(t) : o(t) && /^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(i) && t.hasOwnProperty("length") ? t : o(e = t) && e.nodeType > 0 ? [t] : []
- }
- function s(t) {
- var n, r, i = {
- top: 0,
- left: 0
- },
- o = t && t.ownerDocument;
- return n = o.documentElement, "undefined" !== e(t.getBoundingClientRect) && (i = t.getBoundingClientRect()), r = function(t) {
- return null !== (e = t) && e === e.window ? t : 9 === t.nodeType && t.defaultView;
- var e
- }(o), {
- top: i.top + r.pageYOffset - n.clientTop,
- left: i.left + r.pageXOffset - n.clientLeft
- }
- }
- function l(t) {
- var e = "";
- for (var n in t) t.hasOwnProperty(n) && (e += n + ":" + t[n] + ";");
- return e
- }
- var u = {
- duration: 750,
- delay: 200,
- show: function(t, e, n) {
- if (2 === t.button) return !1;
- e = e || this;
- var r = document.createElement("div");
- r.className = "waves-ripple waves-rippling", e.appendChild(r);
- var i = s(e),
- o = 0,
- a = 0;
- "touches" in t && t.touches.length ? (o = t.touches[0].pageY - i.top, a = t.touches[0].pageX - i.left) : (o = t.pageY - i.top, a = t.pageX - i.left), a = a >= 0 ? a : 0, o = o >= 0 ? o : 0;
- var c = "scale(" + e.clientWidth / 100 * 3 + ")",
- d = "translate(0,0)";
- n && (d = "translate(" + n.x + "px, " + n.y + "px)"), r.setAttribute("data-hold", Date.now()), r.setAttribute("data-x", a), r.setAttribute("data-y", o), r.setAttribute("data-scale", c), r.setAttribute("data-translate", d);
- var f = {
- top: o + "px",
- left: a + "px"
- };
- r.classList.add("waves-notransition"), r.setAttribute("style", l(f)), r.classList.remove("waves-notransition"), f["-webkit-transform"] = c + " " + d, f["-moz-transform"] = c + " " + d, f["-ms-transform"] = c + " " + d, f["-o-transform"] = c + " " + d, f.transform = c + " " + d, f.opacity = "1";
- var h = "mousemove" === t.type ? 2500 : u.duration;
- f["-webkit-transition-duration"] = h + "ms", f["-moz-transition-duration"] = h + "ms", f["-o-transition-duration"] = h + "ms", f["transition-duration"] = h + "ms", r.setAttribute("style", l(f))
- },
- hide: function(t, e) {
- for (var n = (e = e || this).getElementsByClassName("waves-rippling"), r = 0, o = n.length; r < o; r++) d(t, e, n[r]);
- i && (e.removeEventListener("touchend", u.hide), e.removeEventListener("touchcancel", u.hide)), e.removeEventListener("mouseup", u.hide), e.removeEventListener("mouseleave", u.hide)
- }
- },
- c = {
- input: function(t) {
- var e = t.parentNode;
- if ("span" !== e.tagName.toLowerCase() || !e.classList.contains("waves-effect")) {
- var n = document.createElement("span");
- n.className = "waves-input-wrapper", e.replaceChild(n, t), n.appendChild(t)
- }
- },
- img: function(t) {
- var e = t.parentNode;
- if ("i" !== e.tagName.toLowerCase() || !e.classList.contains("waves-effect")) {
- var n = document.createElement("i");
- e.replaceChild(n, t), n.appendChild(t)
- }
- }
- };
- function d(t, e, n) {
- if (n) {
- n.classList.remove("waves-rippling");
- var r = n.getAttribute("data-x"),
- i = n.getAttribute("data-y"),
- o = n.getAttribute("data-scale"),
- a = n.getAttribute("data-translate"),
- s = 350 - (Date.now() - Number(n.getAttribute("data-hold")));
- s < 0 && (s = 0), "mousemove" === t.type && (s = 150);
- var c = "mousemove" === t.type ? 2500 : u.duration;
- setTimeout((function() {
- var t = {
- top: i + "px",
- left: r + "px",
- opacity: "0",
- "-webkit-transition-duration": c + "ms",
- "-moz-transition-duration": c + "ms",
- "-o-transition-duration": c + "ms",
- "transition-duration": c + "ms",
- "-webkit-transform": o + " " + a,
- "-moz-transform": o + " " + a,
- "-ms-transform": o + " " + a,
- "-o-transform": o + " " + a,
- transform: o + " " + a
- };
- n.setAttribute("style", l(t)), setTimeout((function() {
- try {
- e.removeChild(n)
- } catch (t) {
- return !1
- }
- }), c)
- }), s)
- }
- }
- var f = {
- touches: 0,
- allowEvent: function(t) {
- var e = !0;
- return /^(mousedown|mousemove)$/.test(t.type) && f.touches && (e = !1), e
- },
- registerEvent: function(t) {
- var e = t.type;
- "touchstart" === e ? f.touches += 1 : /^(touchend|touchcancel)$/.test(e) && setTimeout((function() {
- f.touches && (f.touches -= 1)
- }), 500)
- }
- };
- function h(t) {
- var e = function(t) {
- if (!1 === f.allowEvent(t)) return null;
- for (var e = null, n = t.target || t.srcElement; n.parentElement;) {
- if (!(n instanceof SVGElement) && n.classList.contains("waves-effect")) {
- e = n;
- break
- }
- n = n.parentElement
- }
- return e
- }(t);
- if (null !== e) {
- if (e.disabled || e.getAttribute("disabled") || e.classList.contains("disabled")) return;
- if (f.registerEvent(t), "touchstart" === t.type && u.delay) {
- var n = !1,
- r = setTimeout((function() {
- r = null, u.show(t, e)
- }), u.delay),
- o = function(i) {
- r && (clearTimeout(r), r = null, u.show(t, e)), n || (n = !0, u.hide(i, e)), s()
- },
- a = function(t) {
- r && (clearTimeout(r), r = null), o(t), s()
- };
- e.addEventListener("touchmove", a, !1), e.addEventListener("touchend", o, !1), e.addEventListener("touchcancel", o, !1);
- var s = function() {
- e.removeEventListener("touchmove", a), e.removeEventListener("touchend", o), e.removeEventListener("touchcancel", o)
- }
- } else u.show(t, e), i && (e.addEventListener("touchend", u.hide, !1), e.addEventListener("touchcancel", u.hide, !1)), e.addEventListener("mouseup", u.hide, !1), e.addEventListener("mouseleave", u.hide, !1)
- }
- }
- return t.init = function(t) {
- var e = document.body;
- "duration" in (t = t || {}) && (u.duration = t.duration), "delay" in t && (u.delay = t.delay), i && (e.addEventListener("touchstart", h, !1), e.addEventListener("touchcancel", f.registerEvent, !1), e.addEventListener("touchend", f.registerEvent, !1)), e.addEventListener("mousedown", h, !1)
- }, t.attach = function(t, e) {
- var n, i;
- t = a(t), "[object Array]" === r.call(e) && (e = e.join(" ")), e = e ? " " + e : "";
- for (var o = 0, s = t.length; o < s; o++) i = (n = t[o]).tagName.toLowerCase(), -1 !== ["input", "img"].indexOf(i) && (c[i](n), n = n.parentElement), -1 === n.className.indexOf("waves-effect") && (n.className += " waves-effect" + e)
- }, t.ripple = function(t, e) {
- var n = (t = a(t)).length;
- if ((e = e || {}).wait = e.wait || 0, e.position = e.position || null, n)
- for (var r, i, o, l = {}, c = 0, d = {
- type: "mousedown",
- button: 1
- }, f = function(t, e) {
- return function() {
- u.hide(t, e)
- }
- }; c < n; c++)
- if (r = t[c], i = e.position || {
- x: r.clientWidth / 2,
- y: r.clientHeight / 2
- }, o = s(r), l.x = o.left + i.x, l.y = o.top + i.y, d.pageX = l.x, d.pageY = l.y, u.show(d, r), e.wait >= 0 && null !== e.wait) {
- setTimeout(f({
- type: "mouseup",
- button: 1
- }, r), e.wait)
- }
- }, t.calm = function(t) {
- for (var e = {
- type: "mouseup",
- button: 1
- }, n = 0, r = (t = a(t)).length; n < r; n++) u.hide(e, t[n])
- }, t.displayEffect = function(e) {
- console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"), t.init(e)
- }, t
- })), $(document).ready((function() {
- Waves.attach(".btn:not(.btn-flat), .btn-floating", ["waves-light"]), Waves.attach(".btn-flat", ["waves-effect"]), Waves.attach(".chip", ["waves-effect"]), Waves.attach(".view a .mask", ["waves-light"]), Waves.attach(".waves-light", ["waves-light"]), Waves.attach(".navbar-nav a:not(.navbar-brand), .nav-icons li a, .nav-tabs .nav-item:not(.dropdown)", ["waves-light"]), Waves.attach(".pager li a", ["waves-light"]), Waves.attach(".pagination .page-item .page-link", ["waves-effect"]), Waves.init()
- }))
- }).call(this, n(87)(t))
- }]);
|