chunks-L4FNOR5Z.js 1.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421
  1. import {
  2. o
  3. } from "./chunk-CZBRZ6SU.js";
  4. import "./chunk-S5KM4IGW.js";
  5. // node_modules/@arcgis/core/chunks/index.js
  6. function e(t, e2) {
  7. for (var i2 = 0; i2 < e2.length; i2++) {
  8. const n2 = e2[i2];
  9. if ("string" != typeof n2 && !Array.isArray(n2)) {
  10. for (const e3 in n2)
  11. if ("default" !== e3 && !(e3 in t)) {
  12. const i3 = Object.getOwnPropertyDescriptor(n2, e3);
  13. i3 && Object.defineProperty(t, e3, i3.get ? i3 : { enumerable: true, get: () => n2[e3] });
  14. }
  15. }
  16. }
  17. return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
  18. }
  19. var i;
  20. var n = { exports: {} };
  21. self, i = () => (() => {
  22. var t, e2, i2, n2, r2 = {}, s = {};
  23. function a(t2) {
  24. var e3 = s[t2];
  25. if (void 0 !== e3)
  26. return e3.exports;
  27. var i3 = s[t2] = { exports: {} };
  28. return r2[t2].call(i3.exports, i3, i3.exports, a), i3.exports;
  29. }
  30. a.m = r2, a.n = (t2) => {
  31. var e3 = t2 && t2.__esModule ? () => t2.default : () => t2;
  32. return a.d(e3, { a: e3 }), e3;
  33. }, e2 = Object.getPrototypeOf ? (t2) => Object.getPrototypeOf(t2) : (t2) => t2.__proto__, a.t = function(i3, n3) {
  34. if (1 & n3 && (i3 = this(i3)), 8 & n3)
  35. return i3;
  36. if ("object" == typeof i3 && i3) {
  37. if (4 & n3 && i3.__esModule)
  38. return i3;
  39. if (16 & n3 && "function" == typeof i3.then)
  40. return i3;
  41. }
  42. var r3 = /* @__PURE__ */ Object.create(null);
  43. a.r(r3);
  44. var s2 = {};
  45. t = t || [null, e2({}), e2([]), e2(e2)];
  46. for (var o3 = 2 & n3 && i3; "object" == typeof o3 && !~t.indexOf(o3); o3 = e2(o3))
  47. Object.getOwnPropertyNames(o3).forEach((t2) => s2[t2] = () => i3[t2]);
  48. return s2.default = () => i3, a.d(r3, s2), r3;
  49. }, a.d = (t2, e3) => {
  50. for (var i3 in e3)
  51. a.o(e3, i3) && !a.o(t2, i3) && Object.defineProperty(t2, i3, { enumerable: true, get: e3[i3] });
  52. }, a.f = {}, a.e = (t2) => Promise.all(Object.keys(a.f).reduce((e3, i3) => (a.f[i3](t2, e3), e3), [])), a.u = (t2) => ({ 265: "canvg", 297: "xlsx", 643: "pdfmake" }[t2] || t2) + ".js", a.g = function() {
  53. if ("object" == typeof globalThis)
  54. return globalThis;
  55. try {
  56. return this || new Function("return this")();
  57. } catch (t2) {
  58. if ("object" == typeof window)
  59. return window;
  60. }
  61. }(), a.o = (t2, e3) => Object.prototype.hasOwnProperty.call(t2, e3), i2 = {}, n2 = "EsriAmCharts:", a.l = (t2, e3, r3, s2) => {
  62. if (i2[t2])
  63. i2[t2].push(e3);
  64. else {
  65. var o3, l2;
  66. if (void 0 !== r3)
  67. for (var h2 = document.getElementsByTagName("script"), p2 = 0; p2 < h2.length; p2++) {
  68. var u2 = h2[p2];
  69. if (u2.getAttribute("src") == t2 || u2.getAttribute("data-webpack") == n2 + r3) {
  70. o3 = u2;
  71. break;
  72. }
  73. }
  74. o3 || (l2 = true, (o3 = document.createElement("script")).charset = "utf-8", o3.timeout = 120, a.nc && o3.setAttribute("nonce", a.nc), o3.setAttribute("data-webpack", n2 + r3), o3.src = t2), i2[t2] = [e3];
  75. var d2 = (e4, n3) => {
  76. o3.onerror = o3.onload = null, clearTimeout(c2);
  77. var r4 = i2[t2];
  78. if (delete i2[t2], o3.parentNode && o3.parentNode.removeChild(o3), r4 && r4.forEach((t3) => t3(n3)), e4)
  79. return e4(n3);
  80. }, c2 = setTimeout(d2.bind(null, void 0, { type: "timeout", target: o3 }), 12e4);
  81. o3.onerror = d2.bind(null, o3.onerror), o3.onload = d2.bind(null, o3.onload), l2 && document.head.appendChild(o3);
  82. }
  83. }, a.r = (t2) => {
  84. "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
  85. }, a.p = "", (() => {
  86. var t2 = { 826: 0 };
  87. a.f.j = (e4, i4) => {
  88. var n3 = a.o(t2, e4) ? t2[e4] : void 0;
  89. if (0 !== n3)
  90. if (n3)
  91. i4.push(n3[2]);
  92. else {
  93. var r3 = new Promise((i5, r4) => n3 = t2[e4] = [i5, r4]);
  94. i4.push(n3[2] = r3);
  95. var s2 = a.p + a.u(e4), o3 = new Error();
  96. a.l(s2, (i5) => {
  97. if (a.o(t2, e4) && (0 !== (n3 = t2[e4]) && (t2[e4] = void 0), n3)) {
  98. var r4 = i5 && ("load" === i5.type ? "missing" : i5.type), s3 = i5 && i5.target && i5.target.src;
  99. o3.message = "Loading chunk " + e4 + " failed.\n(" + r4 + ": " + s3 + ")", o3.name = "ChunkLoadError", o3.type = r4, o3.request = s3, n3[1](o3);
  100. }
  101. }, "chunk-" + e4, e4);
  102. }
  103. };
  104. var e3 = (e4, i4) => {
  105. var n3, r3, [s2, o3, l2] = i4, h2 = 0;
  106. if (s2.some((e5) => 0 !== t2[e5])) {
  107. for (n3 in o3)
  108. a.o(o3, n3) && (a.m[n3] = o3[n3]);
  109. l2 && l2(a);
  110. }
  111. for (e4 && e4(i4); h2 < s2.length; h2++)
  112. r3 = s2[h2], a.o(t2, r3) && t2[r3] && t2[r3][0](), t2[r3] = 0;
  113. }, i3 = self.webpackChunkEsriAmCharts = self.webpackChunkEsriAmCharts || [];
  114. i3.forEach(e3.bind(null, 0)), i3.push = e3.bind(null, i3.push.bind(i3));
  115. })();
  116. var o2 = {};
  117. a.r(o2), a.d(o2, { am4charts: () => P, am4core: () => _, am4themes_animated: () => vu, am4themes_dark: () => bu });
  118. var l = {};
  119. a.r(l), a.d(l, { castNumber: () => Y, castString: () => X, checkArray: () => N, checkBoolean: () => R, checkDate: () => W, checkNumber: () => B, checkObject: () => H, checkString: () => E, getDefault: () => j, getType: () => L, getValue: () => q, getValueDefault: () => $, hasValue: () => Z, isArray: () => it, isDate: () => J, isNaN: () => M, isNumber: () => tt, isObject: () => et, isString: () => Q, toBoolean: () => z, toNumber: () => U, toNumberOrPercent: () => K, toText: () => G });
  120. var h = {};
  121. a.r(h), a.d(h, { DEGREES: () => at, HALFPI: () => rt, PI: () => nt, RADIANS: () => st, adjustTension: () => jt, ceil: () => ht, closest: () => mt, cos: () => ft, fitAngleToRange: () => Rt, fitToRange: () => ut, getAngle: () => Dt, getArcPoint: () => Ht, getArcRect: () => Bt, getBBox: () => Tt, getCenterShift: () => kt, getCommonRectangle: () => At, getCubicControlPointA: () => Mt, getCubicControlPointB: () => Lt, getCubicCurveDistance: () => Ct, getDistance: () => _t, getHorizontalDistance: () => Pt, getLineIntersection: () => Wt, getMidPoint: () => St, getPointOnCubicCurve: () => Ft, getPointOnQuadraticCurve: () => Vt, getRotation: () => It, getScale: () => Ot, getVerticalDistance: () => wt, intersect: () => vt, intersection: () => xt, invertRange: () => bt, isInRectangle: () => Nt, max: () => gt, min: () => yt, normalizeAngle: () => Et, round: () => lt, sin: () => dt, stretch: () => pt, tan: () => ct, toNumberRange: () => ot });
  122. var p = {};
  123. a.r(p), a.d(p, { add: () => ne, any: () => Yt, copy: () => oe, each: () => Ut, eachContinue: () => Kt, eachReverse: () => Gt, find: () => ce, findIndex: () => de, first: () => $t, getSortedIndex: () => ue, has: () => ae, indexOf: () => Xt, insert: () => Jt, insertIndex: () => he, keepIf: () => ge, last: () => qt, map: () => zt, move: () => ie, pushAll: () => te, remove: () => ee, removeIndex: () => pe, replace: () => re, setIndex: () => Qt, shiftLeft: () => Zt, shuffle: () => fe, slice: () => le, toArray: () => se });
  124. var u = {};
  125. a.r(u), a.d(u, { clone: () => ze, copy: () => Xe, copyAllProperties: () => Ze, copyProperties: () => Ue, each: () => Ne, eachContinue: () => He, eachOrdered: () => We, entries: () => Le, forceCopyProperties: () => Ke, getKey: () => Be, hasKey: () => Re, keys: () => je, keysOrdered: () => Ee, merge: () => Ye, softCopyProperties: () => Ge });
  126. var d = {};
  127. a.r(d), a.d(d, { ListIterator: () => mi, concat: () => ri, contains: () => pi, each: () => ti, eachContinue: () => Qe, filter: () => ni, find: () => li, findIndex: () => oi, findMap: () => hi, flatten: () => si, foldl: () => ui, fromArray: () => qe, indexed: () => ai, join: () => yi, length: () => $e, map: () => ii, max: () => gi, min: () => ci, sort: () => ei, toArray: () => Je });
  128. var c = {};
  129. a.r(c), a.d(c, { order: () => vi, random: () => xi, repeat: () => bi });
  130. var f = {};
  131. a.r(f), a.d(f, { order: () => Bi });
  132. var g = {};
  133. a.r(g), a.d(g, { brighten: () => nn, getBrightnessStep: () => rn, getLightnessStep: () => en, hexToRgb: () => Gi, hexToRgbWithAlpha: () => Ki, hslToRgb: () => an, hsvToRgb: () => hn, interpolate: () => Qi, isLight: () => pn, lighten: () => tn, pad2: () => Ji, rgb: () => Ui, rgbToHex: () => qi, rgbToHsl: () => on, rgbToHsv: () => ln, rgbToRGBA: () => $i, rgbaToRgb: () => Zi, saturate: () => sn });
  134. var y = {};
  135. a.r(y), a.d(y, { anyToDate: () => Qn, anyToNumber: () => tr, camelToDashed: () => jn, capitalize: () => En, cleanFormat: () => Zn, copy: () => Tn, copyProperties: () => Sn, decimalPlaces: () => _r, documentPointToSprite: () => mr, documentPointToSvg: () => gr, escapeForRgex: () => Bn, fitNumber: () => lr, fitNumberRelative: () => hr, get12Hours: () => sr, getBaseURI: () => Dn, getDayFromWeek: () => rr, getFormat: () => Kn, getMonthWeek: () => nr, getPixelRatio: () => Ln, getTimeZone: () => ar, getWeek: () => ir, getYearDay: () => er, height: () => xr, isIE: () => Ir, isNotEmpty: () => An, joinUrl: () => Sr, ltrim: () => Yn, numberToString: () => Jn, padString: () => Gn, parseUrl: () => wr, plainText: () => $n, random: () => or, relativeRadiusToValue: () => Fn, relativeToValue: () => Vn, reverseString: () => zn, rtrim: () => Xn, serializeUrl: () => Cr, softCopyProperties: () => kn, splitTextByCharCount: () => Hn, spritePointToDocument: () => vr, spritePointToSprite: () => dr, spritePointToSvg: () => ur, spriteRectToSvg: () => fr, stringify: () => Rn, stripHash: () => In, stripTags: () => qn, svgPointToDocument: () => yr, svgPointToSprite: () => pr, svgRectToSprite: () => cr, trim: () => Wn, truncateWithEllipsis: () => Nn, unquote: () => Un, used: () => On, valueToRelative: () => Mn, width: () => br });
  136. var m = {};
  137. a.r(m), a.d(m, { bounceIn: () => $r, bounceInOut: () => Qr, bounceOut: () => Jr, circleIn: () => Gr, circleInOut: () => Zr, circleOut: () => Kr, cubicIn: () => Yr, cubicInOut: () => Ur, cubicOut: () => zr, elasticIn: () => is, elasticInOut: () => rs, elasticOut: () => ns, expIn: () => Rr, expInOut: () => Hr, expOut: () => Br, linear: () => Dr, polyIn: () => Vr, polyIn3: () => Lr, polyInOut: () => Mr, polyInOut3: () => Er, polyOut: () => Fr, polyOut3: () => jr, quadIn: () => kr, quadInOut: () => Ar, quadOut: () => Tr, sinIn: () => Nr, sinInOut: () => Xr, sinOut: () => Wr });
  138. var v = {};
  139. a.r(v), a.d(v, { add: () => sa, checkChange: () => ra, copy: () => na, getDuration: () => ta, getNextUnit: () => Qs, getTime: () => ia, getTimezoneMinutes: () => la, now: () => ea, round: () => aa, setTimezone: () => oa, timeUnitDurations: () => Js });
  140. var b = {};
  141. a.r(b), a.d(b, { load: () => Ha, readBlob: () => Na });
  142. var x = {};
  143. a.r(x), a.d(x, { arc: () => ko, arcTo: () => Do, arcToPoint: () => To, closePath: () => Io, cubicCurveTo: () => So, lineTo: () => Co, moveTo: () => wo, pathToPoints: () => Fo, pointsToPath: () => Lo, polyline: () => Po, quadraticCurveTo: () => Oo, rectToPath: () => Vo, rectangle: () => Ao, spiralPoints: () => Mo });
  144. var _ = {};
  145. a.r(_), a.d(_, { AMElement: () => Ws, Adapter: () => Yi, Animation: () => ys, BaseObject: () => yn, BaseObjectEvents: () => mn, Basis: () => ll, BlurFilter: () => Il, Button: () => go, CSVParser: () => io, Cache: () => Ci, Circle: () => yo, CirclePattern: () => wl, CloseButton: () => Yo, Color: () => un, ColorModifier: () => fl, ColorSet: () => kl, ColorizeFilter: () => Ol, Component: () => uo, Cone: () => ml, Container: () => $a, CounterDisposer: () => be, DATE: () => _n, DURATION: () => Pn, DataItem: () => po, DataLoader: () => ro, DataParser: () => to, DataSource: () => ao, DateFormatter: () => Ma, DesaturateFilter: () => Sl, Dictionary: () => Pi, DictionaryDisposer: () => _i, DictionaryTemplate: () => wi, Disposer: () => ye, DropShadowFilter: () => qo, DurationFormatter: () => La, Ellipse: () => mo, EventDispatcher: () => Fe, Export: () => Ga, ExportMenu: () => Ba, Filter: () => Zo, FocusFilter: () => Dl, GlobalAdapter: () => Wi, Group: () => Xs, Image: () => vo, IndexedIterable: () => ki, Inertia: () => Zs, Interaction: () => ha, InteractionKeyboardObject: () => Ks, InteractionObject: () => Gs, InteractionObjectEventDispatcher: () => Us, InterfaceColorSet: () => Ys, JSONParser: () => no, Keyboard: () => qs, Label: () => co, Language: () => Ta, LightenFilter: () => vl, Line: () => bo, LinePattern: () => Pl, LinearGradient: () => Oa, LinearGradientModifier: () => yl, List: () => Fi, ListDisposer: () => Ai, ListGrouper: () => Ti, ListIterator: () => mi, ListTemplate: () => Mi, Modal: () => ca, Morpher: () => Ro, MouseCursorStyle: () => Ia, MultiDisposer: () => me, MutableValueDisposer: () => ve, NUMBER: () => xn, NumberFormatter: () => Fa, OrderedList: () => Li, OrderedListTemplate: () => Ei, PLACEHOLDER: () => wn, PLACEHOLDER2: () => Cn, PX: () => vn, Paper: () => _a, Pattern: () => Ca, PatternSet: () => Tl, Percent: () => A, PlayButton: () => cl, Plugin: () => Al, PointedRectangle: () => _o, PointedShape: () => xo, Polyarc: () => Eo, Polygon: () => Bo, Polyline: () => jo, Polyspline: () => Ho, Popup: () => da, Preloader: () => Wo, RadialGradient: () => Sa, RadialGradientModifier: () => _l, RectPattern: () => Cl, Rectangle: () => qa, Rectangle3D: () => bl, Registry: () => Si, ResizeButton: () => Xo, Responsive: () => oo, ResponsiveBreakpoints: () => ho, RoundedRectangle: () => fo, STRING: () => bn, SVGContainer: () => xa, SVGDefaults: () => os, Scrollbar: () => Uo, Slice: () => No, Slice3D: () => xl, Slider: () => Go, SortedList: () => ji, SortedListTemplate: () => Ri, Sprite: () => Za, SpriteEventDispatcher: () => as, SpriteState: () => ss, StyleClass: () => Es, StyleRule: () => Ls, SwitchButton: () => zo, System: () => Ja, TargetedEventDispatcher: () => Me, Tension: () => tl, TextFormatter: () => Aa, TextLink: () => Ko, Tooltip: () => $o, Trapezoid: () => Jo, Triangle: () => Qo, Validatable: () => Ra, WavedCircle: () => hl, WavedLine: () => pl, WavedRectangle: () => ul, ZoomOutButton: () => dl, addClass: () => Ps, addLicense: () => Ul, animate: () => hs, array: () => p, blur: () => Ss, cache: () => Oi, castColor: () => fn, castNumber: () => Y, castString: () => X, checkBoolean: () => R, checkNumber: () => B, checkObject: () => H, checkString: () => E, color: () => dn, colors: () => g, copyAttributes: () => Fs, create: () => Bl, createDeferred: () => Nl, createFromConfig: () => Hl, dataLoader: () => so, defaultRules: () => lo, disposeAllCharts: () => Ml, ease: () => m, fixPixelPerfect: () => Ms, focus: () => Is, getElement: () => _s, getInteraction: () => ua, getTextFormatter: () => Va, globalAdapter: () => Xi, is: () => Di, isArray: () => it, isColor: () => cn, isElement: () => ks, isNaN: () => M, isNumber: () => tt, isObject: () => et, isPercent: () => F, isString: () => Q, iter: () => d, join: () => yi, keyboard: () => $s, math: () => h, max: () => gi, min: () => ci, net: () => b, nextFrame: () => De, number: () => f, object: () => u, options: () => ls, or: () => Ni, outerHTML: () => Ds, path: () => x, percent: () => V, readFrame: () => ke, ready: () => Rs, registry: () => Ii, removeClass: () => ws, reverse: () => Hi, string: () => c, system: () => Qa, time: () => v, triggerIdle: () => Ve, type: () => l, unuseAllThemes: () => zl, unuseTheme: () => Yl, useTheme: () => Xl, utils: () => y, viewPortHandler: () => El, whenIdle: () => Ae, writeFrame: () => Te });
  146. var P = {};
  147. a.r(P), a.d(P, { Axis: () => oh, AxisBreak: () => rh, AxisBullet: () => gh, AxisDataItem: () => ah, AxisFill: () => hh, AxisFillCircular: () => Bh, AxisLabel: () => uh, AxisLabelCircular: () => Nh, AxisLine: () => lh, AxisRenderer: () => fh, AxisRendererCircular: () => Wh, AxisRendererRadial: () => Xh, AxisRendererX: () => wh, AxisRendererX3D: () => Ap, AxisRendererY: () => yh, AxisRendererY3D: () => Vp, AxisTick: () => ch, Bullet: () => ql, Candlestick: () => Bp, CandlestickSeries: () => Np, CandlestickSeriesDataItem: () => Hp, CategoryAxis: () => Sh, CategoryAxisBreak: () => Ch, CategoryAxisDataItem: () => Oh, Chart: () => Zl, ChartDataItem: () => Kl, ChordDiagram: () => wp, ChordDiagramDataItem: () => Pp, ChordLink: () => _p, ChordNode: () => bp, CircleBullet: () => uu, ClockHand: () => Uh, Column: () => Cp, Column3D: () => Fp, ColumnSeries: () => Sp, ColumnSeries3D: () => Lp, ColumnSeries3DDataItem: () => Mp, ColumnSeriesDataItem: () => Op, ConeColumn: () => su, ConeSeries: () => ou, ConeSeriesDataItem: () => au, Cursor: () => gu, CurvedColumn: () => lu, CurvedColumnSeries: () => pu, CurvedColumnSeriesDataItem: () => hu, DateAxis: () => Ph, DateAxisBreak: () => xh, DateAxisDataItem: () => _h, DurationAxis: () => Mh, DurationAxisDataItem: () => Fh, ErrorBullet: () => du, FlowDiagram: () => cp, FlowDiagramDataItem: () => dp, FlowDiagramLink: () => up, FlowDiagramNode: () => pp, FunnelSeries: () => tu, FunnelSeriesDataItem: () => Qp, FunnelSlice: () => $p, GaugeChart: () => Kh, GaugeChartDataItem: () => Gh, Grid: () => ph, GridCircular: () => Hh, HeatLegend: () => Rp, LabelBullet: () => fp, Legend: () => Ql, LegendDataItem: () => $l, LegendSettings: () => Jl, LineSeries: () => jh, LineSeriesDataItem: () => Lh, LineSeriesSegment: () => Vh, NavigationBar: () => fu, NavigationBarDataItem: () => cu, OHLC: () => Wp, OHLCSeries: () => Yp, OHLCSeriesDataItem: () => Xp, PictorialStackedSeries: () => ru, PictorialStackedSeriesDataItem: () => nu, PieChart: () => np, PieChart3D: () => op, PieChart3DDataItem: () => ap, PieChartDataItem: () => ip, PieSeries: () => ep, PieSeries3D: () => sp, PieSeries3DDataItem: () => rp, PieSeriesDataItem: () => tp, PieTick: () => Qh, PyramidSeries: () => iu, PyramidSeriesDataItem: () => eu, RadarChart: () => zh, RadarChartDataItem: () => Yh, RadarColumn: () => Kp, RadarColumnSeries: () => qp, RadarColumnSeriesDataItem: () => Zp, RadarCursor: () => mu, RadarSeries: () => Rh, RadarSeriesDataItem: () => Eh, SankeyDiagram: () => vp, SankeyDiagramDataItem: () => mp, SankeyLink: () => yp, SankeyNode: () => gp, SerialChart: () => nh, SerialChartDataItem: () => ih, Series: () => eh, SeriesDataItem: () => th, SlicedChart: () => hp, SlicedChartDataItem: () => lp, StepLineSeries: () => Gp, StepLineSeriesDataItem: () => Up, Tick: () => dh, TreeMap: () => Tp, TreeMapDataItem: () => kp, TreeMapSeries: () => Dp, TreeMapSeriesDataItem: () => Ip, ValueAxis: () => bh, ValueAxisBreak: () => mh, ValueAxisDataItem: () => vh, XYChart: () => Ah, XYChart3D: () => Ep, XYChart3DDataItem: () => jp, XYChartDataItem: () => Th, XYChartScrollbar: () => kh, XYCursor: () => yu, XYSeries: () => Dh, XYSeriesDataItem: () => Ih });
  148. var w = function(t2, e3) {
  149. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e4) {
  150. t3.__proto__ = e4;
  151. } || function(t3, e4) {
  152. for (var i3 in e4)
  153. Object.prototype.hasOwnProperty.call(e4, i3) && (t3[i3] = e4[i3]);
  154. }, w(t2, e3);
  155. };
  156. function C(t2, e3) {
  157. if ("function" != typeof e3 && null !== e3)
  158. throw new TypeError("Class extends value " + String(e3) + " is not a constructor or null");
  159. function i3() {
  160. this.constructor = t2;
  161. }
  162. w(t2, e3), t2.prototype = null === e3 ? Object.create(e3) : (i3.prototype = e3.prototype, new i3());
  163. }
  164. var O = function() {
  165. return O = Object.assign || function(t2) {
  166. for (var e3, i3 = 1, n3 = arguments.length; i3 < n3; i3++)
  167. for (var r3 in e3 = arguments[i3])
  168. Object.prototype.hasOwnProperty.call(e3, r3) && (t2[r3] = e3[r3]);
  169. return t2;
  170. }, O.apply(this, arguments);
  171. };
  172. function S(t2, e3, i3, n3) {
  173. return new (i3 || (i3 = Promise))(function(r3, s2) {
  174. function a2(t3) {
  175. try {
  176. l2(n3.next(t3));
  177. } catch (t4) {
  178. s2(t4);
  179. }
  180. }
  181. function o3(t3) {
  182. try {
  183. l2(n3.throw(t3));
  184. } catch (t4) {
  185. s2(t4);
  186. }
  187. }
  188. function l2(t3) {
  189. var e4;
  190. t3.done ? r3(t3.value) : (e4 = t3.value, e4 instanceof i3 ? e4 : new i3(function(t4) {
  191. t4(e4);
  192. })).then(a2, o3);
  193. }
  194. l2((n3 = n3.apply(t2, e3 || [])).next());
  195. });
  196. }
  197. function I(t2, e3) {
  198. var i3, n3, r3, s2, a2 = { label: 0, sent: function() {
  199. if (1 & r3[0])
  200. throw r3[1];
  201. return r3[1];
  202. }, trys: [], ops: [] };
  203. return s2 = { next: o3(0), throw: o3(1), return: o3(2) }, "function" == typeof Symbol && (s2[Symbol.iterator] = function() {
  204. return this;
  205. }), s2;
  206. function o3(s3) {
  207. return function(o4) {
  208. return function(s4) {
  209. if (i3)
  210. throw new TypeError("Generator is already executing.");
  211. for (; a2; )
  212. try {
  213. if (i3 = 1, n3 && (r3 = 2 & s4[0] ? n3.return : s4[0] ? n3.throw || ((r3 = n3.return) && r3.call(n3), 0) : n3.next) && !(r3 = r3.call(n3, s4[1])).done)
  214. return r3;
  215. switch (n3 = 0, r3 && (s4 = [2 & s4[0], r3.value]), s4[0]) {
  216. case 0:
  217. case 1:
  218. r3 = s4;
  219. break;
  220. case 4:
  221. return a2.label++, { value: s4[1], done: false };
  222. case 5:
  223. a2.label++, n3 = s4[1], s4 = [0];
  224. continue;
  225. case 7:
  226. s4 = a2.ops.pop(), a2.trys.pop();
  227. continue;
  228. default:
  229. if (!((r3 = (r3 = a2.trys).length > 0 && r3[r3.length - 1]) || 6 !== s4[0] && 2 !== s4[0])) {
  230. a2 = 0;
  231. continue;
  232. }
  233. if (3 === s4[0] && (!r3 || s4[1] > r3[0] && s4[1] < r3[3])) {
  234. a2.label = s4[1];
  235. break;
  236. }
  237. if (6 === s4[0] && a2.label < r3[1]) {
  238. a2.label = r3[1], r3 = s4;
  239. break;
  240. }
  241. if (r3 && a2.label < r3[2]) {
  242. a2.label = r3[2], a2.ops.push(s4);
  243. break;
  244. }
  245. r3[2] && a2.ops.pop(), a2.trys.pop();
  246. continue;
  247. }
  248. s4 = e3.call(t2, a2);
  249. } catch (t3) {
  250. s4 = [6, t3], n3 = 0;
  251. } finally {
  252. i3 = r3 = 0;
  253. }
  254. if (5 & s4[0])
  255. throw s4[1];
  256. return { value: s4[0] ? s4[1] : void 0, done: true };
  257. }([s3, o4]);
  258. };
  259. }
  260. }
  261. function D(t2) {
  262. var e3 = "function" == typeof Symbol && Symbol.iterator, i3 = e3 && t2[e3], n3 = 0;
  263. if (i3)
  264. return i3.call(t2);
  265. if (t2 && "number" == typeof t2.length)
  266. return { next: function() {
  267. return t2 && n3 >= t2.length && (t2 = void 0), { value: t2 && t2[n3++], done: !t2 };
  268. } };
  269. throw new TypeError(e3 ? "Object is not iterable." : "Symbol.iterator is not defined.");
  270. }
  271. function k(t2, e3) {
  272. var i3 = "function" == typeof Symbol && t2[Symbol.iterator];
  273. if (!i3)
  274. return t2;
  275. var n3, r3, s2 = i3.call(t2), a2 = [];
  276. try {
  277. for (; (void 0 === e3 || e3-- > 0) && !(n3 = s2.next()).done; )
  278. a2.push(n3.value);
  279. } catch (t3) {
  280. r3 = { error: t3 };
  281. } finally {
  282. try {
  283. n3 && !n3.done && (i3 = s2.return) && i3.call(s2);
  284. } finally {
  285. if (r3)
  286. throw r3.error;
  287. }
  288. }
  289. return a2;
  290. }
  291. function T() {
  292. for (var t2 = [], e3 = 0; e3 < arguments.length; e3++)
  293. t2 = t2.concat(k(arguments[e3]));
  294. return t2;
  295. }
  296. var A = function() {
  297. function t2(t3) {
  298. this._value = t3;
  299. }
  300. return Object.defineProperty(t2.prototype, "value", { get: function() {
  301. return this._value / 100;
  302. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "percent", { get: function() {
  303. return this._value;
  304. }, enumerable: true, configurable: true }), t2.prototype.toString = function() {
  305. return this._value + "%";
  306. }, t2;
  307. }();
  308. function V(t2) {
  309. return new A(t2);
  310. }
  311. function F(t2) {
  312. return t2 instanceof A;
  313. }
  314. function M(t2) {
  315. return Number(t2) !== t2;
  316. }
  317. function L(t2) {
  318. return {}.toString.call(t2);
  319. }
  320. function j(t2, e3) {
  321. return t2 || e3;
  322. }
  323. function E(t2) {
  324. if ("string" == typeof t2)
  325. return true;
  326. throw new Error("Expected a string but got " + L(t2));
  327. }
  328. function R(t2) {
  329. if ("boolean" == typeof t2)
  330. return true;
  331. throw new Error("Expected a boolean but got " + L(t2));
  332. }
  333. function B(t2) {
  334. if ("number" != typeof t2)
  335. throw new Error("Expected a number but got " + L(t2));
  336. if (M(t2))
  337. throw new Error("Expected a number but got NaN");
  338. return true;
  339. }
  340. function H(t2) {
  341. var e3 = L(t2);
  342. if ("[object Object]" === e3)
  343. return true;
  344. throw new Error("Expected an object but got " + e3);
  345. }
  346. function N(t2) {
  347. if (Array.isArray(t2))
  348. return true;
  349. throw new Error("Expected an array but got " + L(t2));
  350. }
  351. function W(t2) {
  352. var e3 = L(t2);
  353. if ("[object Date]" === e3)
  354. return true;
  355. throw new Error("Expected a date but got " + e3);
  356. }
  357. function X(t2) {
  358. if ("string" == typeof t2)
  359. return t2;
  360. if ("number" == typeof t2)
  361. return "" + t2;
  362. throw new Error("Expected a string or number but got " + L(t2));
  363. }
  364. function Y(t2) {
  365. if ("string" == typeof t2) {
  366. var e3 = +t2;
  367. if (M(e3))
  368. throw new Error("Cannot cast string " + JSON.stringify(t2) + " to a number");
  369. return e3;
  370. }
  371. if ("number" == typeof t2) {
  372. if (M(t2))
  373. throw new Error("Expected a number but got NaN");
  374. return t2;
  375. }
  376. var i3 = L(t2);
  377. if ("[object Date]" === i3)
  378. return t2.getTime();
  379. throw new Error("Expected a string, number, or date but got " + i3);
  380. }
  381. function z(t2) {
  382. return !!t2;
  383. }
  384. function U(t2) {
  385. if (Z(t2) && !tt(t2)) {
  386. var e3 = Number(t2);
  387. return M(e3) && Q(t2) && "" != t2 ? U(t2.replace(/[^0-9.\-]+/g, "")) : e3;
  388. }
  389. return t2;
  390. }
  391. function G(t2) {
  392. if (Z(t2) && !Q(t2)) {
  393. if (tt(t2))
  394. return X(t2);
  395. if (et(t2))
  396. return t2.toString();
  397. }
  398. return t2;
  399. }
  400. function K(t2) {
  401. return !Z(t2) || tt(t2) || F(t2) ? t2 : Q(t2) && -1 != t2.indexOf("%") ? V(U(t2)) : U(t2);
  402. }
  403. function Z(t2) {
  404. return null != t2;
  405. }
  406. function q(t2) {
  407. if (Z(t2))
  408. return t2;
  409. throw new Error("Value doesn't exist");
  410. }
  411. function $(t2, e3) {
  412. return Z(t2) ? t2 : e3;
  413. }
  414. function J(t2) {
  415. return "[object Date]" === L(t2);
  416. }
  417. function Q(t2) {
  418. return "string" == typeof t2;
  419. }
  420. function tt(t2) {
  421. return "number" == typeof t2 && Number(t2) == t2;
  422. }
  423. function et(t2) {
  424. return "object" == typeof t2 && null != t2;
  425. }
  426. function it(t2) {
  427. return Array.isArray(t2);
  428. }
  429. var nt = Math.PI, rt = nt / 2, st = nt / 180, at = 180 / nt;
  430. function ot(t2, e3, i3) {
  431. return Z(t2) ? ut(t2 = U(t2), e3, i3) : t2;
  432. }
  433. function lt(t2, e3, i3) {
  434. if (!tt(e3) || e3 <= 0) {
  435. var n3 = Math.round(t2);
  436. return i3 && n3 - t2 == 0.5 && n3--, n3;
  437. }
  438. var r3 = Math.pow(10, e3);
  439. return Math.round(t2 * r3) / r3;
  440. }
  441. function ht(t2, e3) {
  442. if (!tt(e3) || e3 <= 0)
  443. return Math.ceil(t2);
  444. var i3 = Math.pow(10, e3);
  445. return Math.ceil(t2 * i3) / i3;
  446. }
  447. function pt(t2, e3, i3) {
  448. return t2 * (i3 - e3) + e3;
  449. }
  450. function ut(t2, e3, i3) {
  451. if (tt(e3)) {
  452. if (tt(i3) && i3 < e3) {
  453. var n3 = i3;
  454. i3 = e3, e3 = n3;
  455. }
  456. t2 < e3 && (t2 = e3);
  457. }
  458. return tt(i3) && t2 > i3 && (t2 = i3), t2;
  459. }
  460. function dt(t2) {
  461. return lt(Math.sin(st * t2), 10);
  462. }
  463. function ct(t2) {
  464. return lt(Math.tan(st * t2), 10);
  465. }
  466. function ft(t2) {
  467. return lt(Math.cos(st * t2), 10);
  468. }
  469. function gt(t2, e3) {
  470. return tt(t2) ? tt(e3) && e3 > t2 ? e3 : t2 : tt(e3) ? e3 : null;
  471. }
  472. function yt(t2, e3) {
  473. return tt(t2) ? tt(e3) && e3 < t2 ? e3 : t2 : tt(e3) ? e3 : null;
  474. }
  475. function mt(t2, e3) {
  476. return t2.reduce(function(t3, i3) {
  477. return Math.abs(i3 - e3) < Math.abs(t3 - e3) ? i3 : t3;
  478. });
  479. }
  480. function vt(t2, e3) {
  481. var i3 = q(t2.start), n3 = q(e3.start), r3 = q(t2.end), s2 = q(e3.end);
  482. return Math.max(i3, n3) <= Math.min(r3, s2);
  483. }
  484. function bt(t2) {
  485. var e3 = q(t2.start);
  486. return { start: 1 - q(t2.end), end: 1 - e3 };
  487. }
  488. function xt(t2, e3) {
  489. var i3 = q(t2.start), n3 = q(e3.start), r3 = q(t2.end), s2 = q(e3.end), a2 = Math.max(i3, n3), o3 = Math.min(r3, s2);
  490. return o3 < a2 ? void 0 : { start: a2, end: o3 };
  491. }
  492. function _t(t2, e3) {
  493. return t2 ? (e3 || (e3 = { x: 0, y: 0 }), Math.sqrt(Math.pow(Math.abs(t2.x - e3.x), 2) + Math.pow(Math.abs(t2.y - e3.y), 2))) : 0;
  494. }
  495. function Pt(t2, e3) {
  496. return t2 ? (e3 || (e3 = { x: 0, y: 0 }), Math.abs(t2.x - e3.x)) : 0;
  497. }
  498. function wt(t2, e3) {
  499. return t2 ? (e3 || (e3 = { x: 0, y: 0 }), Math.abs(t2.y - e3.y)) : 0;
  500. }
  501. function Ct(t2, e3, i3, n3, r3) {
  502. if (!t2)
  503. return 0;
  504. e3 || (e3 = { x: 0, y: 0 });
  505. var s2 = 0, a2 = t2;
  506. if (r3 > 0)
  507. for (var o3 = 0; o3 <= r3; o3++) {
  508. var l2 = Ft(t2, e3, i3, n3, o3 / r3);
  509. s2 += _t(a2, l2), a2 = l2;
  510. }
  511. return s2;
  512. }
  513. function Ot(t2, e3, i3, n3) {
  514. var r3 = _t(e3, n3), s2 = _t(t2, i3);
  515. return Math.abs(s2 / r3);
  516. }
  517. function St(t2, e3, i3) {
  518. return tt(i3) || (i3 = 0.5), { x: t2.x + (e3.x - t2.x) * i3, y: t2.y + (e3.y - t2.y) * i3 };
  519. }
  520. function It(t2, e3, i3, n3) {
  521. var r3 = Dt(e3, n3) - Dt(t2, i3);
  522. return r3 < 0 && (r3 += 360), r3;
  523. }
  524. function Dt(t2, e3) {
  525. e3 || (e3 = { x: 2 * t2.x, y: 2 * t2.y });
  526. var i3 = e3.x - t2.x, n3 = e3.y - t2.y, r3 = Math.atan2(n3, i3) * at;
  527. return r3 < 0 && (r3 += 360), Et(r3);
  528. }
  529. function kt(t2, e3, i3, n3, r3) {
  530. var s2 = It(e3, i3, n3, r3) - 90;
  531. s2 < 0 && (s2 += 360);
  532. var a2 = _t(e3, n3), o3 = Math.cos(s2) / a2 + e3.x, l2 = Math.cos(s2) / a2 + e3.y;
  533. return { x: o3 - t2.x, y: l2 - t2.y };
  534. }
  535. function Tt(t2) {
  536. if (t2) {
  537. var e3 = t2.length;
  538. if (0 !== e3) {
  539. for (var i3, n3 = void 0, r3 = void 0, s2 = void 0, a2 = 0; a2 < e3; a2++) {
  540. var o3 = t2[a2];
  541. (!tt(r3) || o3.x > r3) && (r3 = o3.x), (!tt(n3) || o3.x < n3) && (n3 = o3.x), (!tt(i3) || o3.y < i3) && (i3 = o3.y), (!tt(s2) || o3.y > s2) && (s2 = o3.y);
  542. }
  543. return { x: n3, y: i3, width: r3 - n3, height: s2 - i3 };
  544. }
  545. }
  546. return { x: 0, y: 0, width: 0, height: 0 };
  547. }
  548. function At(t2) {
  549. var e3 = t2.length;
  550. if (0 !== e3) {
  551. for (var i3 = void 0, n3 = void 0, r3 = void 0, s2 = void 0, a2 = 0; a2 < e3; a2++) {
  552. var o3 = t2[a2];
  553. i3 = yt(o3.x, i3), n3 = yt(o3.y, n3), r3 = gt(o3.x + o3.width, r3), s2 = gt(o3.y + o3.height, s2);
  554. }
  555. return { x: i3, y: n3, width: r3 - i3, height: s2 - n3 };
  556. }
  557. }
  558. function Vt(t2, e3, i3, n3) {
  559. return { x: (1 - n3) * (1 - n3) * t2.x + 2 * (1 - n3) * n3 * i3.x + n3 * n3 * e3.x, y: (1 - n3) * (1 - n3) * t2.y + 2 * (1 - n3) * n3 * i3.y + n3 * n3 * e3.y };
  560. }
  561. function Ft(t2, e3, i3, n3, r3) {
  562. var s2 = { x: 0, y: 0 }, a2 = 1 - r3, o3 = a2 * a2, l2 = o3 * a2;
  563. return s2.x = t2.x * l2 + 3 * i3.x * o3 * r3 + 3 * n3.x * a2 * r3 * r3 + e3.x * r3 * r3 * r3, s2.y = t2.y * l2 + 3 * i3.y * o3 * r3 + 3 * n3.y * a2 * r3 * r3 + e3.y * r3 * r3 * r3, s2;
  564. }
  565. function Mt(t2, e3, i3, n3, r3, s2) {
  566. return r3 = jt(r3), s2 = jt(s2), { x: (-t2.x + e3.x / r3 + i3.x) * r3, y: (-t2.y + e3.y / s2 + i3.y) * s2 };
  567. }
  568. function Lt(t2, e3, i3, n3, r3, s2) {
  569. return r3 = jt(r3), s2 = jt(s2), { x: (e3.x + i3.x / r3 - n3.x) * r3, y: (e3.y + i3.y / s2 - n3.y) * s2 };
  570. }
  571. function jt(t2) {
  572. return 1 - t2 + 1e-5;
  573. }
  574. function Et(t2) {
  575. return 360 == t2 ? 360 : t2 % 360;
  576. }
  577. function Rt(t2, e3, i3) {
  578. if (e3 > i3) {
  579. var n3 = e3;
  580. e3 = i3, i3 = n3;
  581. }
  582. t2 = Et(t2);
  583. var r3 = (e3 - Et(e3)) / 360;
  584. return t2 < e3 && (t2 += 360 * (r3 + 1)), t2 > i3 && (t2 - 360 > e3 ? t2 -= 360 : t2 = t2 < e3 + (i3 - e3) / 2 + 180 ? i3 : e3), t2 < e3 && (t2 = t2 > e3 + (i3 - e3) / 2 - 180 ? e3 : i3), t2;
  585. }
  586. function Bt(t2, e3, i3) {
  587. var n3 = Number.MAX_VALUE, r3 = Number.MAX_VALUE, s2 = -Number.MAX_VALUE, a2 = -Number.MAX_VALUE, o3 = [];
  588. tt(i3) || (i3 = 1), o3.push(Ht(i3, t2)), o3.push(Ht(i3, e3));
  589. for (var l2 = Math.min(90 * Math.floor(t2 / 90), 90 * Math.floor(e3 / 90)), h2 = Math.max(90 * Math.ceil(t2 / 90), 90 * Math.ceil(e3 / 90)), p2 = l2; p2 <= h2; p2 += 90)
  590. p2 >= t2 && p2 <= e3 && o3.push(Ht(i3, p2));
  591. for (var u2 = 0; u2 < o3.length; u2++) {
  592. var d2 = o3[u2];
  593. d2.x < n3 && (n3 = d2.x), d2.y < r3 && (r3 = d2.y), d2.x > s2 && (s2 = d2.x), d2.y > a2 && (a2 = d2.y);
  594. }
  595. return { x: n3, y: r3, width: s2 - n3, height: a2 - r3 };
  596. }
  597. function Ht(t2, e3) {
  598. return { x: t2 * ft(e3), y: t2 * dt(e3) };
  599. }
  600. function Nt(t2, e3) {
  601. return t2.x >= e3.x && t2.x <= e3.x + e3.width && t2.y >= e3.y && t2.y <= e3.y + e3.height;
  602. }
  603. function Wt(t2, e3, i3, n3) {
  604. return { x: ((t2.x * e3.y - e3.x * t2.y) * (i3.x - n3.x) - (t2.x - e3.x) * (i3.x * n3.y - i3.y * n3.x)) / ((t2.x - e3.x) * (i3.y - n3.y) - (t2.y - e3.y) * (i3.x - n3.x)), y: ((t2.x * e3.y - e3.x * t2.y) * (i3.y - n3.y) - (t2.y - e3.y) * (i3.x * n3.y - i3.y * n3.x)) / ((t2.x - e3.x) * (i3.y - n3.y) - (t2.y - e3.y) * (i3.x - n3.x)) };
  605. }
  606. function Xt(t2, e3) {
  607. for (var i3 = t2.length, n3 = 0; n3 < i3; ++n3)
  608. if (t2[n3] === e3)
  609. return n3;
  610. return -1;
  611. }
  612. function Yt(t2, e3) {
  613. for (var i3 = t2.length, n3 = 0; n3 < i3; ++n3)
  614. if (e3(t2[n3]))
  615. return true;
  616. return false;
  617. }
  618. function zt(t2, e3) {
  619. for (var i3 = t2.length, n3 = new Array(i3), r3 = 0; r3 < i3; ++r3)
  620. n3[r3] = e3(t2[r3], r3);
  621. return n3;
  622. }
  623. function Ut(t2, e3) {
  624. for (var i3 = t2.length, n3 = 0; n3 < i3; ++n3)
  625. e3(t2[n3], n3);
  626. }
  627. function Gt(t2, e3) {
  628. for (var i3 = t2.length; i3--; )
  629. e3(t2[i3], i3);
  630. }
  631. function Kt(t2, e3) {
  632. for (var i3 = t2.length, n3 = 0; n3 < i3 && e3(t2[n3], n3); ++n3)
  633. ;
  634. }
  635. function Zt(t2, e3) {
  636. for (var i3 = t2.length, n3 = e3; n3 < i3; ++n3)
  637. t2[n3 - e3] = t2[n3];
  638. t2.length = i3 - e3;
  639. }
  640. function qt(t2) {
  641. var e3 = t2.length;
  642. return e3 ? t2[e3 - 1] : void 0;
  643. }
  644. function $t(t2) {
  645. return t2[0];
  646. }
  647. function Jt(t2, e3, i3) {
  648. i3 = ut(i3, 0, t2.length), t2.splice(i3, 0, e3);
  649. }
  650. function Qt(t2, e3, i3) {
  651. ee(t2, e3), Jt(t2, e3, i3);
  652. }
  653. function te(t2, e3) {
  654. for (var i3 = e3.length, n3 = 0; n3 < i3; ++n3)
  655. t2.push(e3[n3]);
  656. }
  657. function ee(t2, e3) {
  658. var i3 = false, n3 = t2.indexOf(e3);
  659. if (-1 !== n3) {
  660. i3 = true, t2.splice(n3, 1);
  661. for (var r3 = t2.length; n3 < r3; )
  662. t2[n3] === e3 ? (t2.splice(n3, 1), --r3) : ++n3;
  663. }
  664. return i3;
  665. }
  666. function ie(t2, e3, i3) {
  667. var n3 = Xt(t2, e3);
  668. -1 !== n3 && pe(t2, n3), null == i3 ? t2.push(e3) : he(t2, i3, e3);
  669. }
  670. function ne(t2, e3, i3) {
  671. tt(i3) ? 0 === i3 ? t2.unshift(e3) : t2.splice(i3, 0, e3) : t2.push(e3);
  672. }
  673. function re(t2, e3, i3) {
  674. var n3 = t2.indexOf(e3);
  675. -1 !== n3 && t2.splice(n3, 1), tt(i3) ? t2.splice(i3, 0, e3) : t2.push(e3);
  676. }
  677. function se(t2) {
  678. return Array.isArray(t2) ? t2 : [t2];
  679. }
  680. function ae(t2, e3) {
  681. return -1 !== Xt(t2, e3);
  682. }
  683. function oe(t2) {
  684. for (var e3 = t2.length, i3 = new Array(e3), n3 = 0; n3 < e3; ++n3)
  685. i3[n3] = t2[n3];
  686. return i3;
  687. }
  688. function le(t2, e3, i3) {
  689. void 0 === i3 && (i3 = t2.length);
  690. for (var n3 = new Array(i3 - e3), r3 = e3; r3 < i3; ++r3)
  691. n3[r3 - e3] = t2[r3];
  692. return n3;
  693. }
  694. function he(t2, e3, i3) {
  695. t2.splice(e3, 0, i3);
  696. }
  697. function pe(t2, e3) {
  698. t2.splice(e3, 1);
  699. }
  700. function ue(t2, e3, i3) {
  701. for (var n3 = 0, r3 = t2.length, s2 = false; n3 < r3; ) {
  702. var a2 = n3 + r3 >> 1, o3 = e3(i3, t2[a2]);
  703. o3 < 0 ? r3 = a2 : 0 === o3 ? (s2 = true, n3 = a2 + 1) : n3 = a2 + 1;
  704. }
  705. return { found: s2, index: s2 ? n3 - 1 : n3 };
  706. }
  707. function de(t2, e3) {
  708. for (var i3 = t2.length, n3 = 0; n3 < i3; ++n3)
  709. if (e3(t2[n3], n3))
  710. return n3;
  711. return -1;
  712. }
  713. function ce(t2, e3) {
  714. var i3 = de(t2, e3);
  715. if (-1 !== i3)
  716. return t2[i3];
  717. }
  718. function fe(t2) {
  719. for (var e3, i3, n3 = t2.length; 0 !== n3; )
  720. i3 = Math.floor(Math.random() * n3), e3 = t2[n3 -= 1], t2[n3] = t2[i3], t2[i3] = e3;
  721. }
  722. function ge(t2, e3) {
  723. for (var i3 = t2.length, n3 = 0; n3 < i3; )
  724. e3(t2[n3]) ? ++n3 : (t2.splice(n3, 1), --i3);
  725. }
  726. var ye = function() {
  727. function t2(t3) {
  728. this._disposed = false, this._dispose = t3;
  729. }
  730. return t2.prototype.isDisposed = function() {
  731. return this._disposed;
  732. }, t2.prototype.dispose = function() {
  733. this._disposed || (this._disposed = true, this._dispose());
  734. }, t2;
  735. }(), me = function(t2) {
  736. function e3(e4) {
  737. return t2.call(this, function() {
  738. Ut(e4, function(t3) {
  739. t3.dispose();
  740. });
  741. }) || this;
  742. }
  743. return C(e3, t2), e3;
  744. }(ye), ve = function(t2) {
  745. function e3() {
  746. var e4 = t2.call(this, function() {
  747. Z(e4._disposer) && (e4._disposer.dispose(), e4._disposer = void 0);
  748. }) || this;
  749. return e4;
  750. }
  751. return C(e3, t2), e3.prototype.get = function() {
  752. return this._value;
  753. }, e3.prototype.set = function(t3, e4) {
  754. Z(this._disposer) && this._disposer.dispose(), this._disposer = e4, this._value = t3;
  755. }, e3.prototype.reset = function() {
  756. this.set(void 0, void 0);
  757. }, e3;
  758. }(ye), be = function(t2) {
  759. function e3() {
  760. var e4 = null !== t2 && t2.apply(this, arguments) || this;
  761. return e4._counter = 0, e4;
  762. }
  763. return C(e3, t2), e3.prototype.increment = function() {
  764. var t3 = this;
  765. return ++this._counter, new ye(function() {
  766. --t3._counter, 0 === t3._counter && t3.dispose();
  767. });
  768. }, e3;
  769. }(ye), xe = false, _e = [], Pe = [], we = [], Ce = [], Oe = "function" == typeof requestAnimationFrame ? function(t2) {
  770. requestAnimationFrame(t2);
  771. } : function(t2) {
  772. setTimeout(t2, 16.666666666666668);
  773. };
  774. function Se() {
  775. for (var t2 = Date.now(), e3 = _e.length, i3 = 0; i3 < e3; ++i3)
  776. _e[i3](t2);
  777. for (Zt(_e, e3), i3 = 0; i3 < Pe.length; ++i3)
  778. Pe[i3](t2);
  779. for (Pe.length = 0, i3 = 0; i3 < we.length; ++i3)
  780. we[i3](t2);
  781. we.length = 0, 0 === _e.length && 0 === Pe.length ? xe = false : Oe(Se);
  782. }
  783. function Ie() {
  784. xe || (xe = true, Oe(Se));
  785. }
  786. function De(t2) {
  787. _e.push(t2), Ie();
  788. }
  789. function ke(t2) {
  790. Pe.push(t2), Ie();
  791. }
  792. function Te(t2) {
  793. we.push(t2), Ie();
  794. }
  795. function Ae(t2) {
  796. Ce.push(t2);
  797. }
  798. function Ve() {
  799. for (var t2 = Date.now(), e3 = Ce.length, i3 = 0; i3 < e3; ++i3)
  800. Ce.shift()(t2);
  801. }
  802. var Fe = function() {
  803. function t2() {
  804. this._listeners = [], this._killed = [], this._disabled = {}, this._iterating = 0, this._enabled = true, this._disposed = false;
  805. }
  806. return t2.prototype.isDisposed = function() {
  807. return this._disposed;
  808. }, t2.prototype.dispose = function() {
  809. if (!this._disposed) {
  810. this._disposed = true;
  811. var t3 = this._listeners;
  812. this._iterating = 1, this._listeners = null, this._disabled = null;
  813. try {
  814. Ut(t3, function(t4) {
  815. t4.disposer.dispose();
  816. });
  817. } finally {
  818. this._killed = null, this._iterating = null;
  819. }
  820. }
  821. }, t2.prototype.hasListeners = function() {
  822. return 0 !== this._listeners.length;
  823. }, t2.prototype.hasListenersByType = function(t3) {
  824. return Yt(this._listeners, function(e3) {
  825. return (null === e3.type || e3.type === t3) && !e3.killed;
  826. });
  827. }, t2.prototype.enable = function() {
  828. this._enabled = true;
  829. }, t2.prototype.disable = function() {
  830. this._enabled = false;
  831. }, t2.prototype.enableType = function(t3) {
  832. delete this._disabled[t3];
  833. }, t2.prototype.disableType = function(t3, e3) {
  834. void 0 === e3 && (e3 = 1 / 0), this._disabled[t3] = e3;
  835. }, t2.prototype._removeListener = function(t3) {
  836. if (0 === this._iterating) {
  837. var e3 = this._listeners.indexOf(t3);
  838. if (-1 === e3)
  839. throw new Error("Invalid state: could not remove listener");
  840. this._listeners.splice(e3, 1);
  841. } else
  842. this._killed.push(t3);
  843. }, t2.prototype._removeExistingListener = function(t3, e3, i3, n3) {
  844. if (this._disposed)
  845. throw new Error("EventDispatcher is disposed");
  846. this._eachListener(function(r3) {
  847. r3.once !== t3 || r3.type !== e3 || null != i3 && r3.callback !== i3 || r3.context !== n3 || r3.disposer.dispose();
  848. });
  849. }, t2.prototype.isEnabled = function(t3) {
  850. if (this._disposed)
  851. throw new Error("EventDispatcher is disposed");
  852. return this._enabled && this._listeners.length > 0 && this.hasListenersByType(t3) && null == this._disabled[t3];
  853. }, t2.prototype.has = function(t3, e3, i3) {
  854. return -1 !== de(this._listeners, function(n3) {
  855. return true !== n3.once && n3.type === t3 && (null == e3 || n3.callback === e3) && n3.context === i3;
  856. });
  857. }, t2.prototype._shouldDispatch = function(t3) {
  858. if (this._disposed)
  859. throw new Error("EventDispatcher is disposed");
  860. var e3 = this._disabled[t3];
  861. return tt(e3) ? (e3 <= 1 ? delete this._disabled[t3] : --this._disabled[t3], false) : this._enabled;
  862. }, t2.prototype._eachListener = function(t3) {
  863. var e3 = this;
  864. ++this._iterating;
  865. try {
  866. Ut(this._listeners, t3);
  867. } finally {
  868. --this._iterating, 0 === this._iterating && 0 !== this._killed.length && (Ut(this._killed, function(t4) {
  869. e3._removeListener(t4);
  870. }), this._killed.length = 0);
  871. }
  872. }, t2.prototype.dispatchImmediately = function(t3, e3) {
  873. this._shouldDispatch(t3) && this._eachListener(function(i3) {
  874. i3.killed || null !== i3.type && i3.type !== t3 || i3.dispatch(t3, e3);
  875. });
  876. }, t2.prototype.dispatch = function(t3, e3) {
  877. this._shouldDispatch(t3) && this._eachListener(function(i3) {
  878. i3.killed || null !== i3.type && i3.type !== t3 || Ae(function() {
  879. i3.killed || i3.dispatch(t3, e3);
  880. });
  881. });
  882. }, t2.prototype._on = function(t3, e3, i3, n3, r3, s2) {
  883. var a2 = this;
  884. if (this._disposed)
  885. throw new Error("EventDispatcher is disposed");
  886. this._removeExistingListener(t3, e3, i3, n3);
  887. var o3 = { type: e3, callback: i3, context: n3, shouldClone: r3, dispatch: s2, killed: false, once: t3, disposer: new ye(function() {
  888. o3.killed = true, a2._removeListener(o3);
  889. }) };
  890. return this._listeners.push(o3), o3;
  891. }, t2.prototype.onAll = function(t3, e3, i3) {
  892. return void 0 === i3 && (i3 = true), this._on(false, null, t3, e3, i3, function(i4, n3) {
  893. return t3.call(e3, i4, n3);
  894. }).disposer;
  895. }, t2.prototype.on = function(t3, e3, i3, n3) {
  896. return void 0 === n3 && (n3 = true), this._on(false, t3, e3, i3, n3, function(t4, n4) {
  897. return e3.call(i3, n4);
  898. }).disposer;
  899. }, t2.prototype.once = function(t3, e3, i3, n3) {
  900. void 0 === n3 && (n3 = true);
  901. var r3 = this._on(true, t3, e3, i3, n3, function(t4, n4) {
  902. r3.disposer.dispose(), e3.call(i3, n4);
  903. });
  904. return r3.disposer;
  905. }, t2.prototype.off = function(t3, e3, i3) {
  906. this._removeExistingListener(false, t3, e3, i3);
  907. }, t2.prototype.copyFrom = function(t3) {
  908. var e3 = this;
  909. if (this._disposed)
  910. throw new Error("EventDispatcher is disposed");
  911. if (t3 === this)
  912. throw new Error("Cannot copyFrom the same TargetedEventDispatcher");
  913. Ut(t3._listeners, function(t4) {
  914. !t4.killed && t4.shouldClone && (null === t4.type ? e3.onAll(t4.callback, t4.context) : t4.once ? e3.once(t4.type, t4.callback, t4.context) : e3.on(t4.type, t4.callback, t4.context));
  915. });
  916. }, t2;
  917. }(), Me = function(t2) {
  918. function e3(e4) {
  919. var i3 = t2.call(this) || this;
  920. return i3.target = e4, i3;
  921. }
  922. return C(e3, t2), e3.prototype.copyFrom = function(t3) {
  923. var e4 = this;
  924. if (this._disposed)
  925. throw new Error("EventDispatcher is disposed");
  926. if (t3 === this)
  927. throw new Error("Cannot copyFrom the same TargetedEventDispatcher");
  928. Ut(t3._listeners, function(i3) {
  929. i3.context !== t3.target && !i3.killed && i3.shouldClone && (null === i3.type ? e4.onAll(i3.callback, i3.context) : i3.once ? e4.once(i3.type, i3.callback, i3.context) : e4.on(i3.type, i3.callback, i3.context));
  930. });
  931. }, e3;
  932. }(Fe);
  933. function Le(t2) {
  934. return function(e3) {
  935. for (var i3 in t2)
  936. if (Re(t2, i3) && !e3([i3, t2[i3]]))
  937. break;
  938. };
  939. }
  940. function je(t2) {
  941. var e3 = [];
  942. for (var i3 in t2)
  943. Re(t2, i3) && e3.push(i3);
  944. return e3;
  945. }
  946. function Ee(t2, e3) {
  947. return je(t2).sort(e3);
  948. }
  949. function Re(t2, e3) {
  950. return {}.hasOwnProperty.call(t2, e3);
  951. }
  952. function Be(t2, e3) {
  953. return t2[e3];
  954. }
  955. function He(t2, e3) {
  956. for (var i3 in t2)
  957. if (Re(t2, i3) && !e3(i3, t2[i3]))
  958. break;
  959. }
  960. function Ne(t2, e3) {
  961. He(t2, function(t3, i3) {
  962. return e3(t3, i3), true;
  963. });
  964. }
  965. function We(t2, e3, i3) {
  966. Ut(Ee(t2, i3), function(i4) {
  967. e3(i4, t2[i4]);
  968. });
  969. }
  970. function Xe(t2) {
  971. return Object.assign({}, t2);
  972. }
  973. function Ye(t2, e3) {
  974. return Object.assign({}, t2, e3);
  975. }
  976. function ze(t2) {
  977. return JSON.parse(JSON.stringify(t2));
  978. }
  979. function Ue(t2, e3, i3) {
  980. Ut(i3, function(i4) {
  981. Z(t2[i4]) && (e3[i4] = t2[i4]);
  982. });
  983. }
  984. function Ge(t2, e3, i3) {
  985. Ut(i3, function(i4) {
  986. Z(t2[i4]) && !Z(e3[i4]) && (e3[i4] = t2[i4]);
  987. });
  988. }
  989. function Ke(t2, e3, i3) {
  990. Ut(i3, function(i4) {
  991. e3[i4] = t2[i4];
  992. });
  993. }
  994. function Ze(t2, e3) {
  995. Ue(t2, e3, je(t2));
  996. }
  997. function qe(t2) {
  998. return function(e3) {
  999. for (var i3 = t2.length, n3 = 0; n3 < i3 && e3(t2[n3]); ++n3)
  1000. ;
  1001. };
  1002. }
  1003. function $e(t2) {
  1004. var e3 = 0;
  1005. return t2(function(t3) {
  1006. return ++e3, true;
  1007. }), e3;
  1008. }
  1009. function Je(t2) {
  1010. var e3 = [];
  1011. return t2(function(t3) {
  1012. return e3.push(t3), true;
  1013. }), e3;
  1014. }
  1015. function Qe(t2, e3) {
  1016. t2(e3);
  1017. }
  1018. function ti(t2, e3) {
  1019. t2(function(t3) {
  1020. return e3(t3), true;
  1021. });
  1022. }
  1023. function ei(t2, e3) {
  1024. return qe(Je(t2).sort(e3));
  1025. }
  1026. function ii(t2, e3) {
  1027. return function(i3) {
  1028. return t2(function(t3) {
  1029. return i3(e3(t3));
  1030. });
  1031. };
  1032. }
  1033. function ni(t2, e3) {
  1034. return function(i3) {
  1035. return t2(function(t3) {
  1036. return !e3(t3) || i3(t3);
  1037. });
  1038. };
  1039. }
  1040. function ri() {
  1041. for (var t2 = [], e3 = 0; e3 < arguments.length; e3++)
  1042. t2[e3] = arguments[e3];
  1043. return function(e4) {
  1044. for (var i3 = true, n3 = function(t3) {
  1045. return i3 = e4(t3);
  1046. }, r3 = t2.length, s2 = 0; s2 < r3 && (t2[s2](n3), i3); ++s2)
  1047. ;
  1048. };
  1049. }
  1050. function si(t2) {
  1051. return function(e3) {
  1052. var i3 = true, n3 = function(t3) {
  1053. return i3 = e3(t3);
  1054. };
  1055. t2(function(t3) {
  1056. return t3(n3), i3;
  1057. });
  1058. };
  1059. }
  1060. function ai(t2) {
  1061. return function(e3) {
  1062. var i3 = 0;
  1063. t2(function(t3) {
  1064. return e3([i3++, t3]);
  1065. });
  1066. };
  1067. }
  1068. function oi(t2, e3) {
  1069. var i3 = false, n3 = 0;
  1070. return t2(function(t3) {
  1071. return e3(t3) ? (i3 = true, false) : (++n3, true);
  1072. }), i3 ? n3 : -1;
  1073. }
  1074. function li(t2, e3) {
  1075. var i3;
  1076. return t2(function(t3) {
  1077. return !e3(t3) || (i3 = t3, false);
  1078. }), i3;
  1079. }
  1080. function hi(t2, e3) {
  1081. var i3;
  1082. return t2(function(t3) {
  1083. var n3 = e3(t3);
  1084. return null === n3 || (i3 = n3, false);
  1085. }), i3;
  1086. }
  1087. function pi(t2, e3) {
  1088. var i3 = false;
  1089. return t2(function(t3) {
  1090. return !e3(t3) || (i3 = true, false);
  1091. }), i3;
  1092. }
  1093. function ui(t2, e3, i3) {
  1094. return t2(function(t3) {
  1095. return e3 = i3(e3, t3), true;
  1096. }), e3;
  1097. }
  1098. function di(t2, e3) {
  1099. return null == t2 || e3 < t2 ? e3 : t2;
  1100. }
  1101. function ci(t2) {
  1102. return ui(t2, null, di);
  1103. }
  1104. function fi(t2, e3) {
  1105. return null == t2 || e3 > t2 ? e3 : t2;
  1106. }
  1107. function gi(t2) {
  1108. return ui(t2, null, fi);
  1109. }
  1110. function yi(t2, e3) {
  1111. void 0 === e3 && (e3 = "");
  1112. var i3 = true, n3 = "";
  1113. return t2(function(t3) {
  1114. return i3 ? i3 = false : n3 += e3, n3 += t3, true;
  1115. }), n3;
  1116. }
  1117. var mi = function() {
  1118. function t2(t3, e3) {
  1119. this.createNewItems = false, this.list = t3, this._create = e3, this.reset();
  1120. }
  1121. return t2.prototype.reset = function() {
  1122. this._listCopy = Je(this.list.iterator());
  1123. }, t2.prototype.clear = function() {
  1124. this._listCopy.length = 0;
  1125. }, t2.prototype.getFirst = function() {
  1126. return this.returnItem(0);
  1127. }, t2.prototype.getLast = function() {
  1128. return this.returnItem(this._listCopy.length - 1);
  1129. }, t2.prototype.find = function(t3) {
  1130. var e3 = de(this._listCopy, t3);
  1131. if (-1 !== e3) {
  1132. var i3 = this._listCopy[e3];
  1133. return ee(this._listCopy, i3), i3;
  1134. }
  1135. return this.getLast();
  1136. }, t2.prototype.removeItem = function(t3) {
  1137. return ee(this._listCopy, t3);
  1138. }, t2.prototype.returnItem = function(t3) {
  1139. if (t3 >= 0 && t3 < this._listCopy.length) {
  1140. var e3 = this._listCopy[t3];
  1141. return ee(this._listCopy, e3), e3;
  1142. }
  1143. if (this.createNewItems)
  1144. return this._create();
  1145. }, t2.prototype.iterator = function() {
  1146. return qe(this._listCopy);
  1147. }, t2;
  1148. }();
  1149. function vi(t2, e3) {
  1150. return t2 === e3 ? 0 : t2 < e3 ? -1 : 1;
  1151. }
  1152. function bi(t2, e3) {
  1153. return new Array(e3 + 1).join(t2);
  1154. }
  1155. function xi(t2) {
  1156. for (var e3 = "", i3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", n3 = 0; n3 < t2; n3++)
  1157. e3 += i3.charAt(Math.floor(Math.random() * i3.length));
  1158. return e3;
  1159. }
  1160. var _i = function(t2) {
  1161. function e3(e4) {
  1162. var i3 = e4.events.on("removed", function(t3) {
  1163. t3.oldValue.dispose();
  1164. }, void 0, false);
  1165. return t2.call(this, function() {
  1166. i3.dispose(), ti(e4.iterator(), function(t3) {
  1167. t3[1].dispose();
  1168. });
  1169. }) || this;
  1170. }
  1171. return C(e3, t2), e3;
  1172. }(ye), Pi = function() {
  1173. function t2() {
  1174. this.events = new Fe(), this._dictionary = {};
  1175. }
  1176. return t2.prototype.hasKey = function(t3) {
  1177. return Re(this._dictionary, t3);
  1178. }, t2.prototype.getKey = function(t3) {
  1179. return this._dictionary[t3];
  1180. }, t2.prototype.insertKey = function(t3, e3) {
  1181. if (Re(this._dictionary, t3))
  1182. throw new Error("Key " + t3 + " already exists in dictionary");
  1183. this._dictionary[t3] = e3, this.events.isEnabled("insertKey") && this.events.dispatchImmediately("insertKey", { type: "insertKey", target: this, key: t3, newValue: e3 });
  1184. }, t2.prototype.setKey = function(t3, e3) {
  1185. if (Re(this._dictionary, t3)) {
  1186. var i3 = this._dictionary[t3];
  1187. i3 !== e3 && (this._dictionary[t3] = e3, this.events.isEnabled("setKey") && this.events.dispatchImmediately("setKey", { type: "setKey", target: this, key: t3, oldValue: i3, newValue: e3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: i3 }));
  1188. } else
  1189. this._dictionary[t3] = e3, this.events.isEnabled("insertKey") && this.events.dispatchImmediately("insertKey", { type: "insertKey", target: this, key: t3, newValue: e3 });
  1190. }, t2.prototype.updateKey = function(t3, e3) {
  1191. if (!Re(this._dictionary, t3))
  1192. throw new Error("Key " + t3 + " doesn't exist in dictionary");
  1193. var i3 = this._dictionary[t3], n3 = e3(i3);
  1194. i3 !== n3 && (this._dictionary[t3] = n3, this.events.isEnabled("setKey") && this.events.dispatchImmediately("setKey", { type: "setKey", target: this, key: t3, oldValue: i3, newValue: n3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: i3 }));
  1195. }, t2.prototype.removeKey = function(t3) {
  1196. if (Re(this._dictionary, t3)) {
  1197. var e3 = this._dictionary[t3];
  1198. delete this._dictionary[t3], this.events.isEnabled("removeKey") && this.events.dispatchImmediately("removeKey", { type: "removeKey", target: this, key: t3, oldValue: e3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: e3 });
  1199. }
  1200. }, t2.prototype.insertKeyIfEmpty = function(t3, e3) {
  1201. return this.hasKey(t3) || this.insertKey(t3, e3()), this.getKey(t3);
  1202. }, t2.prototype.clear = function() {
  1203. var t3 = this;
  1204. this.events.isEnabled("removed") && Ne(this._dictionary, function(e3, i3) {
  1205. t3.events.dispatchImmediately("removed", { type: "removed", target: t3, oldValue: i3 });
  1206. }), this._dictionary = {}, this.events.isEnabled("cleared") && this.events.dispatchImmediately("cleared", { type: "cleared", target: this });
  1207. }, t2.prototype.copyFrom = function(t3) {
  1208. var e3 = this;
  1209. ti(t3.iterator(), function(t4) {
  1210. e3.setKey(t4[0], t4[1]);
  1211. });
  1212. }, t2.prototype.iterator = function() {
  1213. return Le(this._dictionary);
  1214. }, t2.prototype[Symbol.iterator] = function() {
  1215. var t3, e3, i3, n3;
  1216. return I(this, function(r3) {
  1217. switch (r3.label) {
  1218. case 0:
  1219. for (e3 in t3 = [], this._dictionary)
  1220. t3.push(e3);
  1221. i3 = 0, r3.label = 1;
  1222. case 1:
  1223. return i3 < t3.length ? (n3 = t3[i3], Re(this._dictionary, n3) ? [4, [n3, this._dictionary[n3]]] : [3, 3]) : [3, 4];
  1224. case 2:
  1225. r3.sent(), r3.label = 3;
  1226. case 3:
  1227. return i3++, [3, 1];
  1228. case 4:
  1229. return [2];
  1230. }
  1231. });
  1232. }, t2.prototype.each = function(t3) {
  1233. ti(this.iterator(), function(e3) {
  1234. var i3 = k(e3, 2), n3 = i3[0], r3 = i3[1];
  1235. return t3(n3, r3);
  1236. });
  1237. }, t2.prototype.sortedIterator = function() {
  1238. return ei(this.iterator(), function(t3, e3) {
  1239. return vi(t3[0], e3[0]);
  1240. });
  1241. }, t2;
  1242. }(), wi = function(t2) {
  1243. function e3(e4) {
  1244. var i3 = t2.call(this) || this;
  1245. return i3.template = e4, i3;
  1246. }
  1247. return C(e3, t2), Object.defineProperty(e3.prototype, "template", { get: function() {
  1248. return this._template;
  1249. }, set: function(t3) {
  1250. t3.isTemplate = true, this._template = t3;
  1251. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(t3) {
  1252. var e4 = this;
  1253. ti(t3.iterator(), function(t4) {
  1254. e4.setKey(t4[0], t4[1].clone());
  1255. });
  1256. }, e3.prototype.create = function(t3) {
  1257. var e4 = this;
  1258. return this.insertKeyIfEmpty(t3, function() {
  1259. return e4.template.clone();
  1260. });
  1261. }, e3;
  1262. }(Pi), Ci = function() {
  1263. function t2() {
  1264. this._storage = new Pi(), this.ttl = 1e3;
  1265. }
  1266. return t2.prototype.set = function(t3, e3, i3, n3) {
  1267. var r3 = this._storage.insertKeyIfEmpty(t3, function() {
  1268. return new Pi();
  1269. }), s2 = { touched: new Date().getTime(), ttl: tt(n3) ? n3 : this.ttl, value: i3 };
  1270. r3.setKey(e3, s2);
  1271. }, t2.prototype.get = function(t3, e3, i3) {
  1272. if (void 0 === i3 && (i3 = void 0), this._storage.hasKey(t3)) {
  1273. var n3 = this._storage.getKey(t3);
  1274. if (n3.hasKey(e3)) {
  1275. var r3 = n3.getKey(e3);
  1276. return r3.ttl && r3.touched + r3.ttl < new Date().getTime() && (r3.expired = true), r3.expired ? (n3.removeKey(e3), i3) : r3.value;
  1277. }
  1278. return i3;
  1279. }
  1280. return i3;
  1281. }, t2.prototype.clear = function(t3) {
  1282. t3 ? this._storage.removeKey(t3) : this._storage.clear();
  1283. }, t2;
  1284. }(), Oi = new Ci(), Si = function() {
  1285. function t2() {
  1286. var t3 = this;
  1287. this.events = new Fe(), this.themes = [], this.loadedThemes = {}, this._uidCount = 0, this.registeredClasses = {}, this._placeholders = {}, this.invalidSprites = {}, this.invalidDatas = {}, this.invalidRawDatas = [], this.invalidDataItems = [], this.invalidDataRange = [], this.invalidPositions = {}, this.invalidLayouts = {}, this.baseSprites = [], this.baseSpritesByUid = {}, this.queue = [], this.deferred = [], this.uid = this.getUniqueId(), this.invalidSprites.noBase = [], this.invalidDatas.noBase = [], this.invalidLayouts.noBase = [], this.invalidPositions.noBase = [], "undefined" != typeof addEventListener && (addEventListener("beforeprint", function() {
  1288. Ut(t3.baseSprites, function(t4) {
  1289. var e3 = t4.paper.svg;
  1290. e3.setAttribute("viewBox", "0 0 " + e3.clientWidth + " " + e3.clientHeight);
  1291. });
  1292. }), addEventListener("afterprint", function() {
  1293. Ut(t3.baseSprites, function(t4) {
  1294. t4.paper.svg.removeAttribute("viewBox");
  1295. });
  1296. }));
  1297. }
  1298. return t2.prototype.getUniqueId = function() {
  1299. var t3 = this._uidCount;
  1300. return this._uidCount += 1, "id-" + t3;
  1301. }, Object.defineProperty(t2.prototype, "map", { get: function() {
  1302. return this._map || (this._map = new Pi()), this._map;
  1303. }, enumerable: true, configurable: true }), t2.prototype.setCache = function(t3, e3, i3) {
  1304. Oi.set(this.uid, t3, e3, i3);
  1305. }, t2.prototype.getCache = function(t3, e3) {
  1306. return void 0 === e3 && (e3 = void 0), Oi.get(this.uid, t3, e3);
  1307. }, t2.prototype.dispatch = function(t3, e3) {
  1308. this.events.isEnabled(t3) && (e3 ? (e3.type = t3, e3.target = e3.target || this, this.events.dispatch(t3, { type: t3, target: this })) : this.events.dispatch(t3, { type: t3, target: this }));
  1309. }, t2.prototype.dispatchImmediately = function(t3, e3) {
  1310. this.events.isEnabled(t3) && (e3 ? (e3.type = t3, e3.target = e3.target || this, this.events.dispatchImmediately(t3, e3)) : this.events.dispatchImmediately(t3, { type: t3, target: this }));
  1311. }, t2.prototype.getPlaceholder = function(t3) {
  1312. return Z(this._placeholders[t3]) || (this._placeholders[t3] = "__amcharts_" + t3 + "_" + xi(8) + "__"), this._placeholders[t3];
  1313. }, t2.prototype.addToInvalidComponents = function(t3) {
  1314. t3.baseId ? ie(this.invalidDatas[t3.baseId], t3) : ie(this.invalidDatas.noBase, t3);
  1315. }, t2.prototype.removeFromInvalidComponents = function(t3) {
  1316. t3.baseId && ee(this.invalidDatas[t3.baseId], t3), ee(this.invalidDatas.noBase, t3);
  1317. }, t2.prototype.addToInvalidSprites = function(t3) {
  1318. t3.baseId ? ne(this.invalidSprites[t3.baseId], t3) : ne(this.invalidSprites.noBase, t3);
  1319. }, t2.prototype.removeFromInvalidSprites = function(t3) {
  1320. t3.baseId && ee(this.invalidSprites[t3.baseId], t3), ee(this.invalidSprites.noBase, t3);
  1321. }, t2.prototype.addToInvalidPositions = function(t3) {
  1322. t3.baseId ? ne(this.invalidPositions[t3.baseId], t3) : ne(this.invalidPositions.noBase, t3);
  1323. }, t2.prototype.removeFromInvalidPositions = function(t3) {
  1324. t3.baseId && ee(this.invalidPositions[t3.baseId], t3), ee(this.invalidPositions.noBase, t3);
  1325. }, t2.prototype.addToInvalidLayouts = function(t3) {
  1326. t3.baseId ? ne(this.invalidLayouts[t3.baseId], t3) : ne(this.invalidLayouts.noBase, t3);
  1327. }, t2.prototype.removeFromInvalidLayouts = function(t3) {
  1328. t3.baseId && ee(this.invalidLayouts[t3.baseId], t3), ee(this.invalidLayouts.noBase, t3);
  1329. }, t2;
  1330. }(), Ii = new Si();
  1331. function Di(t2, e3) {
  1332. var i3 = Ii.registeredClasses[e3];
  1333. return null != i3 && t2 instanceof i3;
  1334. }
  1335. var ki = function() {
  1336. function t2(t3, e3, i3) {
  1337. this._array = t3, this._start = e3, this._end = i3;
  1338. }
  1339. return t2.prototype.iterator = function() {
  1340. var t3 = this;
  1341. return function(e3) {
  1342. if (t3._start !== t3._end)
  1343. if (t3._start < t3._end)
  1344. for (var i3 = t3._start; i3 < t3._end && e3(t3._array[i3]); ++i3)
  1345. ;
  1346. else
  1347. for (i3 = t3._start - 1; i3 >= t3._end && e3(t3._array[i3]); --i3)
  1348. ;
  1349. };
  1350. }, t2.prototype.backwards = function() {
  1351. return new t2(this._array, this._end, this._start);
  1352. }, t2.prototype.range = function(e3, i3) {
  1353. if (e3 <= i3) {
  1354. if (this._start === this._end)
  1355. return this;
  1356. if (this._start < this._end) {
  1357. var n3 = i3 - e3;
  1358. return e3 = Math.max(this._start + e3, this._start), i3 = Math.min(e3 + n3, this._end), new t2(this._array, e3, i3);
  1359. }
  1360. return n3 = i3 - e3, e3 = Math.max(this._start - e3, this._end), i3 = Math.max(e3 - n3, this._end), new t2(this._array, e3, i3);
  1361. }
  1362. throw new Error("Start index must be lower than end index");
  1363. }, t2;
  1364. }(), Ti = function(t2) {
  1365. function e3(e4, i3, n3) {
  1366. var r3 = t2.call(this, [e4.events.on("inserted", function(t3) {
  1367. var i4 = t3.newValue, n4 = r3._getKey(i4), s2 = 0;
  1368. Qe(e4.iterator(), function(t4) {
  1369. return t4 !== i4 && (r3._getKey(t4) === n4 && ++s2, true);
  1370. }), r3._insert(i4, n4, s2);
  1371. }, void 0, false), e4.events.on("removed", function(t3) {
  1372. r3._remove(t3.oldValue);
  1373. }, void 0, false)]) || this;
  1374. return r3._keys = [], r3._groups = {}, r3._getKey = i3, r3._sort = n3, ti(e4.iterator(), function(t3) {
  1375. r3._insert(t3, i3(t3));
  1376. }), r3;
  1377. }
  1378. return C(e3, t2), e3.prototype._insert = function(t3, e4, i3) {
  1379. if (null == this._groups[e4]) {
  1380. this._groups[e4] = [];
  1381. var n3 = ue(this._keys, this._sort, e4), r3 = n3.found, s2 = n3.index;
  1382. if (r3)
  1383. throw new Error("Key already exists: " + e4);
  1384. he(this._keys, s2, e4);
  1385. }
  1386. null == i3 ? this._groups[e4].push(t3) : he(this._groups[e4], i3, t3);
  1387. }, e3.prototype._remove = function(t3) {
  1388. var e4 = this._getKey(t3), i3 = this._groups[e4];
  1389. if (null != i3 && (ee(i3, t3), 0 === i3.length)) {
  1390. delete this._groups[e4];
  1391. var n3 = ue(this._keys, this._sort, e4), r3 = n3.found, s2 = n3.index;
  1392. if (!r3)
  1393. throw new Error("Key doesn't exist: " + e4);
  1394. pe(this._keys, s2);
  1395. }
  1396. }, e3.prototype.iterator = function() {
  1397. var t3 = this;
  1398. return si(ii(qe(this._keys), function(e4) {
  1399. return qe(t3._groups[e4]);
  1400. }));
  1401. }, e3;
  1402. }(me), Ai = function(t2) {
  1403. function e3(e4, i3) {
  1404. void 0 === i3 && (i3 = true);
  1405. var n3 = this;
  1406. if (i3) {
  1407. var r3 = e4.events.on("removed", function(t3) {
  1408. t3.oldValue.dispose();
  1409. }, void 0, false);
  1410. n3 = t2.call(this, function() {
  1411. r3.dispose(), ti(e4.iterator(), function(t3) {
  1412. t3.dispose();
  1413. });
  1414. }) || this;
  1415. } else
  1416. n3 = t2.call(this, function() {
  1417. ti(e4.iterator(), function(t3) {
  1418. t3.dispose();
  1419. });
  1420. }) || this;
  1421. return n3;
  1422. }
  1423. return C(e3, t2), e3;
  1424. }(ye);
  1425. function Vi(t2, e3) {
  1426. if (!(t2 >= 0 && t2 < e3))
  1427. throw new Error("Index out of bounds: " + t2);
  1428. }
  1429. var Fi = function() {
  1430. function t2(t3) {
  1431. void 0 === t3 && (t3 = []), this.events = new Fe(), this._values = t3;
  1432. }
  1433. return Object.defineProperty(t2.prototype, "values", { get: function() {
  1434. return this._values;
  1435. }, enumerable: true, configurable: true }), t2.prototype.contains = function(t3) {
  1436. return -1 !== this._values.indexOf(t3);
  1437. }, t2.prototype.removeValue = function(t3) {
  1438. for (var e3 = 0, i3 = this._values.length; e3 < i3; )
  1439. this._values[e3] === t3 ? (this.removeIndex(e3), --i3) : ++e3;
  1440. }, t2.prototype.indexOf = function(t3) {
  1441. return Xt(this._values, t3);
  1442. }, Object.defineProperty(t2.prototype, "length", { get: function() {
  1443. return this._values.length;
  1444. }, enumerable: true, configurable: true }), t2.prototype.hasIndex = function(t3) {
  1445. return t3 >= 0 && t3 < this._values.length;
  1446. }, t2.prototype.getIndex = function(t3) {
  1447. return this._values[t3];
  1448. }, t2.prototype.setIndex = function(t3, e3) {
  1449. Vi(t3, this._values.length);
  1450. var i3 = this._values[t3];
  1451. return i3 !== e3 && (this._values[t3] = e3, this.events.isEnabled("setIndex") && this.events.dispatchImmediately("setIndex", { type: "setIndex", target: this, index: t3, oldValue: i3, newValue: e3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: i3 }), this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, newValue: e3 })), i3;
  1452. }, t2.prototype.insertIndex = function(t3, e3) {
  1453. Vi(t3, this._values.length + 1), he(this._values, t3, e3), this.events.isEnabled("insertIndex") && this.events.dispatchImmediately("insertIndex", { type: "insertIndex", target: this, index: t3, newValue: e3 }), this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, newValue: e3 });
  1454. }, t2.prototype._sortQuicksort = function(t3, e3, i3) {
  1455. if (t3 < e3) {
  1456. var n3 = this._sortPartition(t3, e3, i3);
  1457. this._sortQuicksort(t3, n3, i3), this._sortQuicksort(n3 + 1, e3, i3);
  1458. }
  1459. }, t2.prototype._sortPartition = function(t3, e3, i3) {
  1460. for (var n3 = this._values, r3 = n3[t3], s2 = t3 - 1, a2 = e3 + 1; ; ) {
  1461. do {
  1462. ++s2;
  1463. } while (i3(n3[s2], r3) < 0);
  1464. do {
  1465. --a2;
  1466. } while (i3(n3[a2], r3) > 0);
  1467. if (s2 >= a2)
  1468. return a2;
  1469. this.swap(s2, a2);
  1470. }
  1471. }, t2.prototype.sort = function(t3) {
  1472. this._sortQuicksort(0, this._values.length - 1, t3);
  1473. }, t2.prototype.swap = function(t3, e3) {
  1474. var i3 = this._values.length;
  1475. if (Vi(t3, i3), Vi(e3, i3), t3 !== e3) {
  1476. var n3 = this._values[t3], r3 = this._values[e3];
  1477. this._values[t3] = r3, this.events.isEnabled("setIndex") && this.events.dispatchImmediately("setIndex", { type: "setIndex", target: this, index: t3, oldValue: n3, newValue: r3 }), this._values[e3] = n3, this.events.isEnabled("setIndex") && this.events.dispatchImmediately("setIndex", { type: "setIndex", target: this, index: e3, oldValue: r3, newValue: n3 });
  1478. }
  1479. }, t2.prototype.removeIndex = function(t3) {
  1480. Vi(t3, this._values.length);
  1481. var e3 = this._values[t3];
  1482. return pe(this._values, t3), this.events.isEnabled("removeIndex") && this.events.dispatchImmediately("removeIndex", { type: "removeIndex", target: this, index: t3, oldValue: e3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: e3 }), e3;
  1483. }, t2.prototype.moveValue = function(t3, e3) {
  1484. var i3 = this.indexOf(t3);
  1485. if (-1 !== i3) {
  1486. var n3 = this._values[i3];
  1487. pe(this._values, i3), this.events.isEnabled("removeIndex") && this.events.dispatchImmediately("removeIndex", { type: "removeIndex", target: this, index: i3, oldValue: n3 });
  1488. }
  1489. null == e3 ? (e3 = this._values.length, this._values.push(t3)) : he(this._values, e3, t3), this.events.isEnabled("insertIndex") && this.events.dispatchImmediately("insertIndex", { type: "insertIndex", target: this, index: e3, newValue: t3 }), -1 === i3 && this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, newValue: t3 });
  1490. }, t2.prototype.push = function(t3) {
  1491. var e3 = this._values.push(t3) - 1;
  1492. return this.events.isEnabled("insertIndex") && this.events.dispatchImmediately("insertIndex", { type: "insertIndex", target: this, index: e3, newValue: t3 }), this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, newValue: t3 }), t3;
  1493. }, t2.prototype.unshift = function(t3) {
  1494. this.insertIndex(0, t3);
  1495. }, t2.prototype.pushAll = function(t3) {
  1496. var e3 = this;
  1497. Ut(t3, function(t4) {
  1498. e3.push(t4);
  1499. });
  1500. }, t2.prototype.copyFrom = function(t3) {
  1501. this.pushAll(t3._values);
  1502. }, t2.prototype.pop = function() {
  1503. return this._values.length - 1 < 0 ? void 0 : this.removeIndex(this._values.length - 1);
  1504. }, t2.prototype.shift = function() {
  1505. return this._values.length ? this.removeIndex(0) : void 0;
  1506. }, t2.prototype.setAll = function(t3) {
  1507. var e3 = this, i3 = oe(this._values);
  1508. this._values.length = 0, Ut(t3, function(t4) {
  1509. e3._values.push(t4);
  1510. }), this.events.isEnabled("setAll") && this.events.dispatchImmediately("setAll", { type: "setAll", target: this, oldArray: i3, newArray: this._values }), this.events.isEnabled("removed") && Ut(i3, function(t4) {
  1511. e3.events.dispatchImmediately("removed", { type: "removed", target: e3, oldValue: t4 });
  1512. }), this.events.isEnabled("inserted") && Ut(this._values, function(t4) {
  1513. e3.events.dispatchImmediately("inserted", { type: "inserted", target: e3, newValue: t4 });
  1514. });
  1515. }, t2.prototype.clear = function() {
  1516. this.setAll([]);
  1517. }, t2.prototype.iterator = function() {
  1518. return qe(this._values);
  1519. }, t2.prototype[Symbol.iterator] = function() {
  1520. var t3, e3;
  1521. return I(this, function(i3) {
  1522. switch (i3.label) {
  1523. case 0:
  1524. t3 = this._values.length, e3 = 0, i3.label = 1;
  1525. case 1:
  1526. return e3 < t3 ? [4, this._values[e3]] : [3, 4];
  1527. case 2:
  1528. i3.sent(), i3.label = 3;
  1529. case 3:
  1530. return ++e3, [3, 1];
  1531. case 4:
  1532. return [2];
  1533. }
  1534. });
  1535. }, t2.prototype.each = function(t3) {
  1536. Ut(this._values, t3);
  1537. }, t2.prototype.range = function(t3, e3) {
  1538. if (t3 <= e3) {
  1539. var i3 = e3 - t3;
  1540. return t3 = Math.max(t3, 0), e3 = Math.min(t3 + i3, this._values.length), new ki(this._values, t3, e3);
  1541. }
  1542. throw new Error("Start index must be lower than end index");
  1543. }, t2.prototype.backwards = function() {
  1544. return new ki(this._values, this._values.length, 0);
  1545. }, t2;
  1546. }(), Mi = function(t2) {
  1547. function e3(e4) {
  1548. var i3 = t2.call(this) || this;
  1549. return i3.template = e4, i3;
  1550. }
  1551. return C(e3, t2), Object.defineProperty(e3.prototype, "template", { get: function() {
  1552. return this._template;
  1553. }, set: function(t3) {
  1554. t3.isTemplate = true, this._template = t3;
  1555. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(t3) {
  1556. var e4 = this;
  1557. ti(t3.iterator(), function(t4) {
  1558. e4.push(t4.clone());
  1559. });
  1560. }, e3.prototype.create = function(t3) {
  1561. var e4 = null != t3 ? new t3() : this.template.clone();
  1562. return this.push(e4), e4;
  1563. }, e3.prototype.clone = function() {
  1564. for (var t3 = new e3(this.template), i3 = this.values, n3 = i3.length, r3 = 0; r3 < n3; ++r3)
  1565. t3.push(i3[r3].clone());
  1566. return t3;
  1567. }, e3;
  1568. }(Fi), Li = function() {
  1569. function t2(t3) {
  1570. this._values = [], this.events = new Fe(), null != t3 && this.setAll(t3);
  1571. }
  1572. return Object.defineProperty(t2.prototype, "values", { get: function() {
  1573. return this._values;
  1574. }, enumerable: true, configurable: true }), t2.prototype._insert = function(t3) {
  1575. return this._values.push(t3), this._values.length - 1;
  1576. }, Object.defineProperty(t2.prototype, "length", { get: function() {
  1577. return this._values.length;
  1578. }, enumerable: true, configurable: true }), t2.prototype.indexOf = function(t3) {
  1579. return Xt(this._values, t3);
  1580. }, t2.prototype.contains = function(t3) {
  1581. return -1 !== this.indexOf(t3);
  1582. }, t2.prototype.getIndex = function(t3) {
  1583. return this._values[t3];
  1584. }, Object.defineProperty(t2.prototype, "first", { get: function() {
  1585. return this._values[0];
  1586. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "last", { get: function() {
  1587. return this._values[this._values.length - 1];
  1588. }, enumerable: true, configurable: true }), t2.prototype.insert = function(t3) {
  1589. var e3 = this._insert(t3);
  1590. this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, index: e3, newValue: t3 });
  1591. }, t2.prototype.remove = function(t3) {
  1592. var e3 = this.indexOf(t3);
  1593. if (-1 !== e3) {
  1594. var i3 = this._values[e3];
  1595. pe(this._values, e3), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, index: e3, oldValue: i3 });
  1596. }
  1597. }, t2.prototype.setAll = function(t3) {
  1598. var e3 = this;
  1599. Gt(this._values, function(t4, i3) {
  1600. e3._values.pop(), e3.events.isEnabled("removed") && e3.events.dispatchImmediately("removed", { type: "removed", target: e3, index: i3, oldValue: t4 });
  1601. }), Ut(t3, function(t4) {
  1602. e3.insert(t4);
  1603. });
  1604. }, t2.prototype.clear = function() {
  1605. this.setAll([]);
  1606. }, t2.prototype.slice = function(e3, i3) {
  1607. var n3 = new t2();
  1608. return n3._values = this._values.slice(e3, i3), n3;
  1609. }, t2.prototype.findClosestIndex = function(t3, e3, i3) {
  1610. void 0 === i3 && (i3 = "any");
  1611. var n3, r3, s2 = -1, a2 = 0;
  1612. return Qe(this.iterator(), function(o3) {
  1613. var l2 = e3(o3);
  1614. if ("any" === i3) {
  1615. if (l2 === t3)
  1616. return s2 = a2, false;
  1617. var h2 = Math.abs(t3 - l2);
  1618. (!Z(r3) || r3 > h2) && (s2 = a2, n3 = l2, r3 = h2);
  1619. } else
  1620. "left" === i3 && l2 < t3 ? (!Z(n3) || n3 < l2) && (s2 = a2, n3 = l2) : "right" === i3 && l2 >= t3 && (!Z(n3) || n3 >= l2) && (s2 = a2, n3 = l2);
  1621. return ++a2, true;
  1622. }), -1 === s2 && ("left" === i3 ? s2 = 0 : "right" === i3 && (s2 = this.length - 1)), s2;
  1623. }, t2.prototype.iterator = function() {
  1624. return qe(this._values);
  1625. }, t2.prototype[Symbol.iterator] = function() {
  1626. var t3, e3;
  1627. return I(this, function(i3) {
  1628. switch (i3.label) {
  1629. case 0:
  1630. t3 = this._values.length, e3 = 0, i3.label = 1;
  1631. case 1:
  1632. return e3 < t3 ? [4, this._values[e3]] : [3, 4];
  1633. case 2:
  1634. i3.sent(), i3.label = 3;
  1635. case 3:
  1636. return ++e3, [3, 1];
  1637. case 4:
  1638. return [2];
  1639. }
  1640. });
  1641. }, t2.prototype.each = function(t3) {
  1642. Ut(this._values, t3);
  1643. }, t2;
  1644. }(), ji = function(t2) {
  1645. function e3(e4) {
  1646. var i3 = t2.call(this) || this;
  1647. return i3._ordering = e4, i3;
  1648. }
  1649. return C(e3, t2), e3.prototype._insert = function(t3) {
  1650. var e4 = ue(this._values, this._ordering, t3).index;
  1651. return he(this._values, e4, t3), e4;
  1652. }, e3.prototype.indexOf = function(t3) {
  1653. var e4 = ue(this._values, this._ordering, t3), i3 = e4.found, n3 = e4.index;
  1654. return i3 ? n3 : -1;
  1655. }, e3.prototype.update = function(t3) {
  1656. var e4 = Xt(this._values, t3);
  1657. if (-1 !== e4) {
  1658. var i3 = this._values.length - 1;
  1659. (0 === e4 || this._ordering(this._values[e4 - 1], t3) < 0) && (e4 === i3 || this._ordering(t3, this._values[e4 + 1]) < 0) || (pe(this._values, e4), this._insert(t3));
  1660. }
  1661. }, e3;
  1662. }(Li), Ei = function(t2) {
  1663. function e3(e4) {
  1664. var i3 = t2.call(this) || this;
  1665. return i3.template = e4, i3;
  1666. }
  1667. return C(e3, t2), Object.defineProperty(e3.prototype, "template", { get: function() {
  1668. return this._template;
  1669. }, set: function(t3) {
  1670. t3.isTemplate = true, this._template = t3;
  1671. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(t3) {
  1672. var e4 = this;
  1673. ti(t3.iterator(), function(t4) {
  1674. e4.insert(t4.clone());
  1675. });
  1676. }, e3.prototype.slice = function(t3, i3) {
  1677. var n3 = new e3(this.template);
  1678. return n3._values = this._values.slice(t3, i3), n3;
  1679. }, e3.prototype.create = function(t3) {
  1680. var e4 = null != t3 ? new t3() : this.template.clone();
  1681. return this.insert(e4), e4;
  1682. }, e3;
  1683. }(Li), Ri = function(t2) {
  1684. function e3(e4, i3) {
  1685. var n3 = t2.call(this, i3) || this;
  1686. return n3.template = e4, n3;
  1687. }
  1688. return C(e3, t2), Object.defineProperty(e3.prototype, "template", { get: function() {
  1689. return this._template;
  1690. }, set: function(t3) {
  1691. t3.isTemplate = true, this._template = t3;
  1692. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(t3) {
  1693. var e4 = this;
  1694. ti(t3.iterator(), function(t4) {
  1695. e4.insert(t4.clone());
  1696. });
  1697. }, e3.prototype.create = function(t3) {
  1698. var e4 = null != t3 ? new t3() : this.template.clone();
  1699. return this.insert(e4), e4;
  1700. }, e3;
  1701. }(ji);
  1702. function Bi(t2, e3) {
  1703. return t2 === e3 ? 0 : t2 < e3 ? -1 : 1;
  1704. }
  1705. function Hi(t2) {
  1706. switch (t2) {
  1707. case 0:
  1708. return 0;
  1709. case -1:
  1710. return 1;
  1711. case 1:
  1712. return -1;
  1713. }
  1714. }
  1715. function Ni(t2, e3) {
  1716. return 0 === t2 ? e3 : t2;
  1717. }
  1718. var Wi = function() {
  1719. function t2() {
  1720. this._callbackId = 0, this._callbacks = new ji(function(t3, e3) {
  1721. return Ni(Bi(t3.priority, e3.priority), Bi(t3.id, e3.id));
  1722. });
  1723. }
  1724. return t2.prototype.addAll = function(t3, e3, i3, n3, r3) {
  1725. void 0 === n3 && (n3 = 0), this._callbacks.insert({ id: ++this._callbackId, key: e3, callback: i3, priority: n3, scope: r3, type: t3 });
  1726. }, t2.prototype.isEnabled = function(t3, e3) {
  1727. return Yt(this._callbacks.values, function(i3) {
  1728. return i3.key === e3 && t3 instanceof i3.type;
  1729. });
  1730. }, t2.prototype.applyAll = function(t3, e3, i3) {
  1731. var n3 = this._callbacks.values, r3 = n3.length;
  1732. if (0 == r3)
  1733. return i3;
  1734. for (var s2 = 0; s2 < r3; ++s2) {
  1735. var a2 = n3[s2];
  1736. a2.key === e3 && t3 instanceof a2.type && (i3 = a2.callback.call(a2.scope, i3, t3, e3));
  1737. }
  1738. return i3;
  1739. }, t2;
  1740. }(), Xi = new Wi(), Yi = function() {
  1741. function t2(t3) {
  1742. this._callbackId = 0, this._callbacks = new ji(function(t4, e3) {
  1743. return Ni(Bi(t4.priority, e3.priority), Bi(t4.id, e3.id));
  1744. }), this._disabled = {}, this.object = t3, this.events = this._callbacks.events;
  1745. }
  1746. return t2.prototype.add = function(t3, e3, i3, n3) {
  1747. void 0 === i3 && (i3 = 0), this._callbacks.insert({ id: ++this._callbackId, key: t3, callback: e3, priority: i3, scope: n3 });
  1748. }, t2.prototype.has = function(t3, e3, i3, n3) {
  1749. return void 0 === i3 && (i3 = 0), pi(this._callbacks.iterator(), function(r3) {
  1750. return r3.key === t3 && r3.callback === e3 && r3.priority === i3 && r3.scope === n3;
  1751. });
  1752. }, t2.prototype.remove = function(t3, e3) {
  1753. var i3 = this;
  1754. Ut(Je(this._callbacks.iterator()), function(n3) {
  1755. n3.key !== t3 || tt(e3) && e3 !== n3.priority || i3._callbacks.remove(n3);
  1756. });
  1757. }, t2.prototype.enableKey = function(t3) {
  1758. delete this._disabled[t3];
  1759. }, t2.prototype.disableKey = function(t3, e3) {
  1760. void 0 === e3 && (e3 = 1 / 0), this._disabled[t3] = e3;
  1761. }, t2.prototype._hasListenersByType = function(t3) {
  1762. return Yt(this._callbacks.values, function(e3) {
  1763. return e3.key === t3;
  1764. });
  1765. }, t2.prototype.isEnabled = function(t3) {
  1766. return null == this._disabled[t3] && (this._hasListenersByType(t3) || Xi.isEnabled(this.object, t3));
  1767. }, t2.prototype._shouldDispatch = function(t3) {
  1768. var e3 = this._disabled[t3];
  1769. return !tt(e3) || (e3 <= 1 ? delete this._disabled[t3] : --this._disabled[t3], false);
  1770. }, t2.prototype.apply = function(t3, e3) {
  1771. if (this._shouldDispatch(t3)) {
  1772. var i3 = this._callbacks.values, n3 = i3.length;
  1773. if (n3 > 0)
  1774. for (var r3 = 0; r3 < n3; ++r3) {
  1775. var s2 = i3[r3];
  1776. s2.key === t3 && (e3 = s2.callback.call(s2.scope, e3, this.object, t3));
  1777. }
  1778. return Xi.applyAll(this.object, t3, e3);
  1779. }
  1780. return e3;
  1781. }, t2.prototype.keys = function() {
  1782. return Je(ii(this._callbacks.iterator(), function(t3) {
  1783. return t3.key;
  1784. }));
  1785. }, t2.prototype.copyFrom = function(t3) {
  1786. var e3 = this;
  1787. ti(t3._callbacks.iterator(), function(t4) {
  1788. e3.add(t4.key, t4.callback, t4.priority, t4.scope);
  1789. }), Ne(t3._disabled, function(t4, i3) {
  1790. e3._disabled[t4] = i3;
  1791. });
  1792. }, t2.prototype.clear = function() {
  1793. this._callbacks.clear();
  1794. }, t2;
  1795. }(), zi = { aliceblue: { r: 240, g: 248, b: 255 }, antiquewhite: { r: 250, g: 235, b: 215 }, aqua: { r: 0, g: 255, b: 255 }, aquamarine: { r: 127, g: 255, b: 212 }, azure: { r: 240, g: 255, b: 255 }, beige: { r: 245, g: 245, b: 220 }, bisque: { r: 255, g: 228, b: 196 }, black: { r: 0, g: 0, b: 0 }, blanchedalmond: { r: 255, g: 235, b: 205 }, blue: { r: 0, g: 0, b: 255 }, blueviolet: { r: 138, g: 43, b: 226 }, brown: { r: 165, g: 42, b: 42 }, burlywood: { r: 222, g: 184, b: 135 }, cadetblue: { r: 95, g: 158, b: 160 }, chartreuse: { r: 127, g: 255, b: 0 }, chocolate: { r: 210, g: 105, b: 30 }, coral: { r: 255, g: 127, b: 80 }, cornflowerblue: { r: 100, g: 149, b: 237 }, cornsilk: { r: 255, g: 248, b: 220 }, crimson: { r: 220, g: 20, b: 60 }, cyan: { r: 0, g: 255, b: 255 }, darkblue: { r: 0, g: 0, b: 139 }, darkcyan: { r: 0, g: 139, b: 139 }, darkgoldenrod: { r: 184, g: 134, b: 11 }, darkgray: { r: 169, g: 169, b: 169 }, darkgrey: { r: 169, g: 169, b: 169 }, darkgreen: { r: 0, g: 100, b: 0 }, darkkhaki: { r: 189, g: 183, b: 107 }, darkmagenta: { r: 139, g: 0, b: 139 }, darkolivegreen: { r: 85, g: 107, b: 47 }, darkorange: { r: 255, g: 140, b: 0 }, darkorchid: { r: 153, g: 50, b: 204 }, darkred: { r: 139, g: 0, b: 0 }, darksalmon: { r: 233, g: 150, b: 122 }, darkseagreen: { r: 143, g: 188, b: 143 }, darkslateblue: { r: 72, g: 61, b: 139 }, darkslategray: { r: 47, g: 79, b: 79 }, darkslategrey: { r: 47, g: 79, b: 79 }, darkturquoise: { r: 0, g: 206, b: 209 }, darkviolet: { r: 148, g: 0, b: 211 }, deeppink: { r: 255, g: 20, b: 147 }, deepskyblue: { r: 0, g: 191, b: 255 }, dimgray: { r: 105, g: 105, b: 105 }, dimgrey: { r: 105, g: 105, b: 105 }, dodgerblue: { r: 30, g: 144, b: 255 }, firebrick: { r: 178, g: 34, b: 34 }, floralwhite: { r: 255, g: 250, b: 240 }, forestgreen: { r: 34, g: 139, b: 34 }, fuchsia: { r: 255, g: 0, b: 255 }, gainsboro: { r: 220, g: 220, b: 220 }, ghostwhite: { r: 248, g: 248, b: 255 }, gold: { r: 255, g: 215, b: 0 }, goldenrod: { r: 218, g: 165, b: 32 }, gray: { r: 128, g: 128, b: 128 }, grey: { r: 128, g: 128, b: 128 }, green: { r: 0, g: 128, b: 0 }, greenyellow: { r: 173, g: 255, b: 47 }, honeydew: { r: 240, g: 255, b: 240 }, hotpink: { r: 255, g: 105, b: 180 }, indianred: { r: 205, g: 92, b: 92 }, indigo: { r: 75, g: 0, b: 130 }, ivory: { r: 255, g: 255, b: 240 }, khaki: { r: 240, g: 230, b: 140 }, lavender: { r: 230, g: 230, b: 250 }, lavenderblush: { r: 255, g: 240, b: 245 }, lawngreen: { r: 124, g: 252, b: 0 }, lemonchiffon: { r: 255, g: 250, b: 205 }, lightblue: { r: 173, g: 216, b: 230 }, lightcoral: { r: 240, g: 128, b: 128 }, lightcyan: { r: 224, g: 255, b: 255 }, lightgoldenrodyellow: { r: 250, g: 250, b: 210 }, lightgray: { r: 211, g: 211, b: 211 }, lightgrey: { r: 211, g: 211, b: 211 }, lightgreen: { r: 144, g: 238, b: 144 }, lightpink: { r: 255, g: 182, b: 193 }, lightsalmon: { r: 255, g: 160, b: 122 }, lightseagreen: { r: 32, g: 178, b: 170 }, lightskyblue: { r: 135, g: 206, b: 250 }, lightslategray: { r: 119, g: 136, b: 153 }, lightslategrey: { r: 119, g: 136, b: 153 }, lightsteelblue: { r: 176, g: 196, b: 222 }, lightyellow: { r: 255, g: 255, b: 224 }, lime: { r: 0, g: 255, b: 0 }, limegreen: { r: 50, g: 205, b: 50 }, linen: { r: 250, g: 240, b: 230 }, magenta: { r: 255, g: 0, b: 255 }, maroon: { r: 128, g: 0, b: 0 }, mediumaquamarine: { r: 102, g: 205, b: 170 }, mediumblue: { r: 0, g: 0, b: 205 }, mediumorchid: { r: 186, g: 85, b: 211 }, mediumpurple: { r: 147, g: 112, b: 219 }, mediumseagreen: { r: 60, g: 179, b: 113 }, mediumslateblue: { r: 123, g: 104, b: 238 }, mediumspringgreen: { r: 0, g: 250, b: 154 }, mediumturquoise: { r: 72, g: 209, b: 204 }, mediumvioletred: { r: 199, g: 21, b: 133 }, midnightblue: { r: 25, g: 25, b: 112 }, mintcream: { r: 245, g: 255, b: 250 }, mistyrose: { r: 255, g: 228, b: 225 }, moccasin: { r: 255, g: 228, b: 181 }, navajowhite: { r: 255, g: 222, b: 173 }, navy: { r: 0, g: 0, b: 128 }, oldlace: { r: 253, g: 245, b: 230 }, olive: { r: 128, g: 128, b: 0 }, olivedrab: { r: 107, g: 142, b: 35 }, orange: { r: 255, g: 165, b: 0 }, orangered: { r: 255, g: 69, b: 0 }, orchid: { r: 218, g: 112, b: 214 }, palegoldenrod: { r: 238, g: 232, b: 170 }, palegreen: { r: 152, g: 251, b: 152 }, paleturquoise: { r: 175, g: 238, b: 238 }, palevioletred: { r: 219, g: 112, b: 147 }, papayawhip: { r: 255, g: 239, b: 213 }, peachpuff: { r: 255, g: 218, b: 185 }, peru: { r: 205, g: 133, b: 63 }, pink: { r: 255, g: 192, b: 203 }, plum: { r: 221, g: 160, b: 221 }, powderblue: { r: 176, g: 224, b: 230 }, purple: { r: 128, g: 0, b: 128 }, rebeccapurple: { r: 102, g: 51, b: 153 }, red: { r: 255, g: 0, b: 0 }, rosybrown: { r: 188, g: 143, b: 143 }, royalblue: { r: 65, g: 105, b: 225 }, saddlebrown: { r: 139, g: 69, b: 19 }, salmon: { r: 250, g: 128, b: 114 }, sandybrown: { r: 244, g: 164, b: 96 }, seagreen: { r: 46, g: 139, b: 87 }, seashell: { r: 255, g: 245, b: 238 }, sienna: { r: 160, g: 82, b: 45 }, silver: { r: 192, g: 192, b: 192 }, skyblue: { r: 135, g: 206, b: 235 }, slateblue: { r: 106, g: 90, b: 205 }, slategray: { r: 112, g: 128, b: 144 }, slategrey: { r: 112, g: 128, b: 144 }, snow: { r: 255, g: 250, b: 250 }, springgreen: { r: 0, g: 255, b: 127 }, steelblue: { r: 70, g: 130, b: 180 }, tan: { r: 210, g: 180, b: 140 }, teal: { r: 0, g: 128, b: 128 }, thistle: { r: 216, g: 191, b: 216 }, tomato: { r: 255, g: 99, b: 71 }, turquoise: { r: 64, g: 224, b: 208 }, violet: { r: 238, g: 130, b: 238 }, wheat: { r: 245, g: 222, b: 179 }, white: { r: 255, g: 255, b: 255 }, whitesmoke: { r: 245, g: 245, b: 245 }, yellow: { r: 255, g: 255, b: 0 }, yellowgreen: { r: 154, g: 205, b: 50 } };
  1796. function Ui(t2, e3) {
  1797. var i3;
  1798. return zi[t2] ? i3 = zi[t2] : "#" === t2.charAt(0) ? i3 = Gi(t2) : t2.match(/^rgba?\(/) && (i3 = Zi(t2)), i3 || (i3 = { r: 0, g: 0, b: 0, a: 1 }), Z(e3) && (i3.a = e3), i3;
  1799. }
  1800. function Gi(t2) {
  1801. t2 = t2.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, function(t3, e4, i3, n3) {
  1802. return e4 + e4 + i3 + i3 + n3 + n3;
  1803. });
  1804. var e3 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t2);
  1805. return e3 ? { r: parseInt(e3[1], 16), g: parseInt(e3[2], 16), b: parseInt(e3[3], 16) } : Ki(t2);
  1806. }
  1807. function Ki(t2) {
  1808. t2 = t2.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])$/i, function(t3, e4, i3, n3, r3) {
  1809. return e4 + e4 + i3 + i3 + n3 + n3 + r3 + r3;
  1810. });
  1811. var e3 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t2);
  1812. return e3 ? { r: parseInt(e3[1], 16), g: parseInt(e3[2], 16), b: parseInt(e3[3], 16), a: parseInt(e3[4], 16) / 256 } : void 0;
  1813. }
  1814. function Zi(t2) {
  1815. var e3 = (t2 = t2.replace(/[ ]/g, "")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);
  1816. if (e3)
  1817. e3.push("1");
  1818. else if (!(e3 = t2.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i)))
  1819. return;
  1820. return { r: parseInt(e3[1]), g: parseInt(e3[2]), b: parseInt(e3[3]), a: parseFloat(e3[4]) };
  1821. }
  1822. function qi(t2) {
  1823. return "#" + Ji(t2.r.toString(16)) + Ji(t2.g.toString(16)) + Ji(t2.b.toString(16));
  1824. }
  1825. function $i(t2) {
  1826. return Z(t2.a) && 1 !== t2.a ? "rgba(" + t2.r + "," + t2.g + "," + t2.b + "," + t2.a + ")" : "rgb(" + t2.r + "," + t2.g + "," + t2.b + ")";
  1827. }
  1828. function Ji(t2) {
  1829. return 1 == t2.length ? "0" + t2 : "" + t2;
  1830. }
  1831. function Qi(t2, e3, i3) {
  1832. return i3 = ut(i3, 0, 1), t2 ? e3 ? { r: t2.r + Math.round((e3.r - t2.r) * i3), g: t2.g + Math.round((e3.g - t2.g) * i3), b: t2.b + Math.round((e3.b - t2.b) * i3), a: (t2.a || 1) + Math.round(((e3.a || 1) - (t2.a || 1)) * i3) } : t2 : e3 || t2;
  1833. }
  1834. function tn(t2, e3) {
  1835. return t2 ? { r: Math.max(0, Math.min(255, t2.r + en(t2.r, e3))), g: Math.max(0, Math.min(255, t2.g + en(t2.g, e3))), b: Math.max(0, Math.min(255, t2.b + en(t2.b, e3))), a: t2.a } : t2;
  1836. }
  1837. function en(t2, e3) {
  1838. var i3 = e3 > 0 ? 255 - t2 : t2;
  1839. return Math.round(i3 * e3);
  1840. }
  1841. function nn(t2, e3) {
  1842. if (t2) {
  1843. var i3 = en(Math.min(Math.max(t2.r, t2.g, t2.b), 230), e3);
  1844. return { r: Math.max(0, Math.min(255, Math.round(t2.r + i3))), g: Math.max(0, Math.min(255, Math.round(t2.g + i3))), b: Math.max(0, Math.min(255, Math.round(t2.b + i3))), a: t2.a };
  1845. }
  1846. return t2;
  1847. }
  1848. function rn(t2, e3) {
  1849. return Math.round(255 * e3);
  1850. }
  1851. function sn(t2, e3) {
  1852. if (null == t2 || 1 == e3)
  1853. return t2;
  1854. var i3 = on(t2);
  1855. return i3.s = e3, an(i3);
  1856. }
  1857. function an(t2) {
  1858. var e3, i3, n3, r3 = t2.h, s2 = t2.s, a2 = t2.l;
  1859. if (0 == s2)
  1860. e3 = i3 = n3 = a2;
  1861. else {
  1862. var o3 = function(t3, e4, i4) {
  1863. return i4 < 0 && (i4 += 1), i4 > 1 && (i4 -= 1), i4 < 1 / 6 ? t3 + 6 * (e4 - t3) * i4 : i4 < 0.5 ? e4 : i4 < 2 / 3 ? t3 + (e4 - t3) * (2 / 3 - i4) * 6 : t3;
  1864. }, l2 = a2 < 0.5 ? a2 * (1 + s2) : a2 + s2 - a2 * s2, h2 = 2 * a2 - l2;
  1865. e3 = o3(h2, l2, r3 + 1 / 3), i3 = o3(h2, l2, r3), n3 = o3(h2, l2, r3 - 1 / 3);
  1866. }
  1867. return { r: Math.round(255 * e3), g: Math.round(255 * i3), b: Math.round(255 * n3) };
  1868. }
  1869. function on(t2) {
  1870. var e3 = t2.r / 255, i3 = t2.g / 255, n3 = t2.b / 255, r3 = Math.max(e3, i3, n3), s2 = Math.min(e3, i3, n3), a2 = 0, o3 = 0, l2 = (r3 + s2) / 2;
  1871. if (r3 === s2)
  1872. a2 = o3 = 0;
  1873. else {
  1874. var h2 = r3 - s2;
  1875. switch (o3 = l2 > 0.5 ? h2 / (2 - r3 - s2) : h2 / (r3 + s2), r3) {
  1876. case e3:
  1877. a2 = (i3 - n3) / h2 + (i3 < n3 ? 6 : 0);
  1878. break;
  1879. case i3:
  1880. a2 = (n3 - e3) / h2 + 2;
  1881. break;
  1882. case n3:
  1883. a2 = (e3 - i3) / h2 + 4;
  1884. }
  1885. a2 /= 6;
  1886. }
  1887. return { h: a2, s: o3, l: l2 };
  1888. }
  1889. function ln(t2) {
  1890. var e3, i3 = t2.r / 255, n3 = t2.g / 255, r3 = t2.b / 255, s2 = Math.max(i3, n3, r3), a2 = Math.min(i3, n3, r3), o3 = 0, l2 = s2, h2 = s2 - a2;
  1891. if (e3 = 0 == s2 ? 0 : h2 / s2, s2 == a2)
  1892. o3 = 0;
  1893. else {
  1894. switch (s2) {
  1895. case i3:
  1896. o3 = (n3 - r3) / h2 + (n3 < r3 ? 6 : 0);
  1897. break;
  1898. case n3:
  1899. o3 = (r3 - i3) / h2 + 2;
  1900. break;
  1901. case r3:
  1902. o3 = (i3 - n3) / h2 + 4;
  1903. }
  1904. o3 /= 6;
  1905. }
  1906. return { h: o3, s: e3, v: l2 };
  1907. }
  1908. function hn(t2) {
  1909. var e3 = 0, i3 = 0, n3 = 0, r3 = t2.h, s2 = t2.s, a2 = t2.v, o3 = Math.floor(6 * r3), l2 = 6 * r3 - o3, h2 = a2 * (1 - s2), p2 = a2 * (1 - l2 * s2), u2 = a2 * (1 - (1 - l2) * s2);
  1910. switch (o3 % 6) {
  1911. case 0:
  1912. e3 = a2, i3 = u2, n3 = h2;
  1913. break;
  1914. case 1:
  1915. e3 = p2, i3 = a2, n3 = h2;
  1916. break;
  1917. case 2:
  1918. e3 = h2, i3 = a2, n3 = u2;
  1919. break;
  1920. case 3:
  1921. e3 = h2, i3 = p2, n3 = a2;
  1922. break;
  1923. case 4:
  1924. e3 = u2, i3 = h2, n3 = a2;
  1925. break;
  1926. case 5:
  1927. e3 = a2, i3 = h2, n3 = p2;
  1928. }
  1929. return { r: Math.round(255 * e3), g: Math.round(255 * i3), b: Math.round(255 * n3) };
  1930. }
  1931. function pn(t2) {
  1932. return (299 * t2.r + 587 * t2.g + 114 * t2.b) / 1e3 >= 128;
  1933. }
  1934. var un = function() {
  1935. function t2(t3) {
  1936. this._value = t3;
  1937. }
  1938. return Object.defineProperty(t2.prototype, "rgb", { get: function() {
  1939. return this._value;
  1940. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "hex", { get: function() {
  1941. return this._value ? qi(this._value) : "none";
  1942. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "rgba", { get: function() {
  1943. return this._value ? $i(this._value) : "none";
  1944. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "alpha", { get: function() {
  1945. return null != this._value && null != this._value.a ? this._value.a : 1;
  1946. }, set: function(t3) {
  1947. this._value && (this._value.a = t3);
  1948. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "lightColor", { get: function() {
  1949. return this._lightColor || (this._lightColor = new t2({ r: 255, g: 255, b: 255 })), this._lightColor;
  1950. }, set: function(t3) {
  1951. this._lightColor = t3;
  1952. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "darkColor", { get: function() {
  1953. return this._darkColor || (this._darkColor = new t2({ r: 0, g: 0, b: 0 })), this._darkColor;
  1954. }, set: function(t3) {
  1955. this._darkColor = t3;
  1956. }, enumerable: true, configurable: true }), t2.prototype.toString = function() {
  1957. return this.alpha < 1 ? this.rgba : this.hex;
  1958. }, t2.prototype.lighten = function(e3) {
  1959. return new t2(tn(this.rgb, e3));
  1960. }, t2.prototype.brighten = function(e3) {
  1961. return new t2(nn(this.rgb, e3));
  1962. }, t2.prototype.saturate = function(e3) {
  1963. return new t2(sn(this.rgb, e3));
  1964. }, Object.defineProperty(t2.prototype, "alternative", { get: function() {
  1965. if (null != this.rgb)
  1966. return pn(this.rgb) ? this.darkColor : this.lightColor;
  1967. throw new Error("Color does not exist");
  1968. }, enumerable: true, configurable: true }), t2;
  1969. }();
  1970. function dn(t2, e3) {
  1971. if (!Z(t2))
  1972. return new un(void 0);
  1973. if ("string" == typeof t2) {
  1974. var i3 = "_color_" + t2 + "_" + (e3 || "1"), n3 = Ii.getCache(i3);
  1975. if (n3)
  1976. return new un({ r: n3.r, g: n3.g, b: n3.b, a: n3.a });
  1977. var r3 = Ui(t2, e3);
  1978. return Ii.setCache(i3, r3), new un(r3);
  1979. }
  1980. return t2 instanceof un ? (Z(e3) && (t2.alpha = e3), t2) : new un(t2);
  1981. }
  1982. function cn(t2) {
  1983. return t2 instanceof un;
  1984. }
  1985. function fn(t2) {
  1986. return dn(t2);
  1987. }
  1988. function gn(t2) {
  1989. return Z(t2) && !cn(t2) ? fn(t2) : t2;
  1990. }
  1991. var yn = function() {
  1992. function t2() {
  1993. this._disposed = false, this._disposers = [], this.className = "BaseObject";
  1994. }
  1995. return t2.prototype.debug = function() {
  1996. }, Object.defineProperty(t2.prototype, "uid", { get: function() {
  1997. return this._uid || (this._uid = Ii.getUniqueId(), Ii.map.setKey(this._uid, this)), this._uid;
  1998. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "id", { get: function() {
  1999. return this._id;
  2000. }, set: function(t3) {
  2001. this._id = t3;
  2002. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "map", { get: function() {
  2003. return this._map || (this._map = new Pi()), this._map;
  2004. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "delayedMap", { get: function() {
  2005. return this._delayedMap || (this._delayedMap = new Pi()), this._delayedMap;
  2006. }, enumerable: true, configurable: true }), t2.prototype.addDelayedMap = function(t3, e3) {
  2007. var i3 = this.delayedMap;
  2008. i3.hasKey(e3) || i3.setKey(e3, []), i3.getKey(e3).push({ property: t3, target: this });
  2009. }, t2.prototype.processDelayedMap = function() {
  2010. var t3 = this;
  2011. this.delayedMap.each(function(e3, i3) {
  2012. if (t3.map.hasKey(e3)) {
  2013. var n3 = t3.map.getKey(e3);
  2014. Ut(i3, function(t4) {
  2015. t4.target[t4.property] = n3;
  2016. }), t3.delayedMap.removeKey(e3);
  2017. }
  2018. });
  2019. }, t2.prototype.applyTheme = function() {
  2020. var t3 = this;
  2021. if (Ii) {
  2022. var e3 = this.getCurrentThemes();
  2023. e3 && Ut(e3, function(e4, i3) {
  2024. e4(t3);
  2025. });
  2026. }
  2027. }, Object.defineProperty(t2.prototype, "themes", { get: function() {
  2028. return this._themes;
  2029. }, set: function(t3) {
  2030. this._themes = t3;
  2031. }, enumerable: true, configurable: true }), t2.prototype.getCurrentThemes = function() {
  2032. return this.themes || Ii.themes;
  2033. }, t2.prototype.isDisposed = function() {
  2034. return this._disposed;
  2035. }, t2.prototype.dispose = function() {
  2036. if (!this._disposed) {
  2037. this._disposed = true;
  2038. var t3 = this._disposers;
  2039. for (this._disposers = null; 0 !== t3.length; )
  2040. t3.shift().dispose();
  2041. this.clearCache(), this.clonedFrom && this.clonedFrom.clones.removeValue(this);
  2042. var e3 = this._uid;
  2043. null != e3 && Ii.map.removeKey(e3);
  2044. }
  2045. }, t2.prototype.addDisposer = function(t3) {
  2046. this._disposers.push(t3);
  2047. }, t2.prototype.removeDispose = function(t3) {
  2048. if (!this._disposed) {
  2049. var e3 = Xt(this._disposers, t3);
  2050. e3 > -1 && this._disposers.splice(e3, 1);
  2051. }
  2052. t3.dispose();
  2053. }, t2.prototype.clone = function(t3) {
  2054. t3 || (t3 = "clone-" + Ii.getUniqueId());
  2055. var e3 = new this.constructor();
  2056. return e3.cloneId = t3, e3.copyFrom(this), e3;
  2057. }, Object.defineProperty(t2.prototype, "clones", { get: function() {
  2058. return this._clones || (this._clones = new Fi()), this._clones;
  2059. }, enumerable: true, configurable: true }), t2.prototype.copyFrom = function(t3) {
  2060. t3.clones.push(this), this.clonedFrom = t3;
  2061. }, Object.defineProperty(t2.prototype, "className", { get: function() {
  2062. return this._className;
  2063. }, set: function(t3) {
  2064. this._className = t3;
  2065. }, enumerable: true, configurable: true }), t2.prototype.setCache = function(t3, e3, i3) {
  2066. Oi.set(this.uid, t3, e3, i3);
  2067. }, t2.prototype.getCache = function(t3, e3) {
  2068. return void 0 === e3 && (e3 = void 0), Oi.get(this.uid, t3, e3);
  2069. }, t2.prototype.clearCache = function() {
  2070. Oi.clear(this.uid);
  2071. }, t2.prototype.setTimeout = function(t3, e3) {
  2072. var i3 = this, n3 = setTimeout(function() {
  2073. i3.removeDispose(r3), t3();
  2074. }, e3), r3 = new ye(function() {
  2075. clearTimeout(n3);
  2076. });
  2077. return this._disposers.push(r3), r3;
  2078. }, t2.prototype.setInterval = function(t3, e3) {
  2079. var i3 = this, n3 = setInterval(function() {
  2080. i3.removeDispose(r3), t3();
  2081. }, e3), r3 = new ye(function() {
  2082. clearTimeout(n3);
  2083. });
  2084. return this._disposers.push(r3), r3;
  2085. }, Object.defineProperty(t2.prototype, "config", { set: function(t3) {
  2086. try {
  2087. this.processConfig(t3);
  2088. } catch (t4) {
  2089. this.raiseCriticalError(t4);
  2090. }
  2091. }, enumerable: true, configurable: true }), t2.prototype.processConfig = function(e3) {
  2092. var i3 = this;
  2093. if (e3) {
  2094. var n3 = this;
  2095. if (We(e3, function(e4, r4) {
  2096. var s2, a2 = r4;
  2097. if ("callback" == e4 && "function" == typeof r4 && r4.call(n3), i3.hasProperty(e4))
  2098. if (!et(a2) || !Z(a2.type) || et(n3[e4]) && Z(n3[e4].className) && !a2.forceCreate && n3[e4].className == a2.type || i3.asIs(e4) ? s2 = n3[e4] : (s2 = i3.createClassInstance(a2.type)) ? n3[e4] = s2 : s2 = n3[e4], s2 instanceof Yi)
  2099. i3.processAdapters(s2, a2);
  2100. else if (s2 instanceof Fe)
  2101. i3.processEvents(s2, a2);
  2102. else if ("locale" == e4 && Q(a2))
  2103. window["am4lang_" + a2] && (n3[e4] = window["am4lang_" + a2]);
  2104. else if ("parent" == e4 && Q(a2)) {
  2105. var o3 = i3.map.getKey(a2);
  2106. o3 ? n3[e4] = o3 : i3.addDelayedMap("parent", a2);
  2107. } else if (i3.asIs(e4))
  2108. n3[e4] = a2;
  2109. else if (i3.asFunction(e4) && Q(a2)) {
  2110. if (!Z(Ii.registeredClasses[a2]))
  2111. throw Error("Invalid easing function: " + a2);
  2112. n3[e4] = Ii.registeredClasses[a2];
  2113. } else if (a2 instanceof t2)
  2114. n3[e4] = a2;
  2115. else if (s2 instanceof t2)
  2116. s2.config = a2;
  2117. else if (s2 instanceof Mi || s2 instanceof Ei || s2 instanceof Ri) {
  2118. if (it(a2))
  2119. s2 instanceof Mi ? i3.processListTemplate(a2, s2) : i3.processOrderedTemplate(a2, s2);
  2120. else if (et(a2))
  2121. if (a2 instanceof t2)
  2122. s2.template = a2;
  2123. else {
  2124. var l2;
  2125. l2 = Z(a2.template) ? a2.template : a2, s2.template instanceof t2 ? s2.template.config = l2 : Ne(l2, function(e5, n4) {
  2126. var r5 = s2.template[e5];
  2127. r5 instanceof Yi ? i3.processAdapters(r5, n4) : r5 instanceof Fe ? i3.processEvents(r5, n4) : r5 instanceof wi ? i3.processDictionaryTemplate(r5, n4) : s2.template[e5] instanceof t2 ? s2.template[e5].config = n4 : et(n4) && Z(n4.type) ? (r5 = i3.createClassInstance(n4.type)) ? (r5 instanceof t2 && (r5.config = n4), s2.template[e5] = r5) : s2.template[e5] = n4 : r5 instanceof Fi ? i3.processList(n4, r5) : s2.template[e5] = i3.maybeColorOrPercent(n4);
  2128. }), Z(a2.values) && (s2 instanceof Mi ? i3.processListTemplate(a2.values, s2) : i3.processOrderedTemplate(a2.values, s2));
  2129. }
  2130. } else
  2131. s2 instanceof Fi ? "children" == e4 ? i3.processList(a2, s2, i3) : i3.processList(a2, s2) : s2 instanceof wi ? i3.processDictionaryTemplate(s2, a2) : s2 instanceof Pi ? i3.processDictionary(s2, a2) : s2 instanceof un || s2 instanceof A ? n3[e4] = i3.maybeColorOrPercent(a2) : et(s2) && et(a2) ? Ze(a2, s2) : (a2 = i3.maybeColorOrPercent(a2), n3[e4] = a2);
  2132. else
  2133. i3.isReserved(e4) || (n3[e4] = a2);
  2134. }, this.configOrder), this.processingErrors.length) {
  2135. var r3 = this.processingErrors.join("\n");
  2136. throw this._processingErrors = [], Error(r3);
  2137. }
  2138. }
  2139. }, t2.prototype.maybeColorOrPercent = function(t3) {
  2140. if (Q(t3)) {
  2141. if (t3.match(/^[\-]?[0-9.]+\%$/))
  2142. return V(U(t3));
  2143. if (t3.match(/^\#[0-9abcdef]{3,}$/i))
  2144. return dn(t3);
  2145. }
  2146. return t3;
  2147. }, t2.prototype.processAdapters = function(t3, e3) {
  2148. var i3 = this;
  2149. it(e3) ? Ut(e3, function(e4, n3) {
  2150. t3.add(e4.key, e4.callback, e4.priority || 0, i3);
  2151. }) : et(e3) && Ne(e3, function(e4, i4) {
  2152. t3.has(e4, i4) || t3.add(e4, i4);
  2153. });
  2154. }, t2.prototype.processEvents = function(t3, e3) {
  2155. var i3 = this;
  2156. it(e3) ? Ut(e3, function(e4, n3) {
  2157. t3.on(e4.type, e4.callback, i3);
  2158. }) : et(e3) && Ne(e3, function(e4, i4) {
  2159. t3.has(e4, i4) || t3.on(e4, i4);
  2160. });
  2161. }, t2.prototype.processDictionaryTemplate = function(e3, i3) {
  2162. et(i3) && Ne(i3, function(i4, n3) {
  2163. var r3;
  2164. (r3 = "template" == i4 ? e3.template : e3.hasKey(i4) ? e3.getKey(i4) : e3.create(i4)) instanceof t2 ? r3.config = n3 : et(r3) && et(n3) ? Ze(n3, r3) : r3.setKey(i4, n3);
  2165. });
  2166. }, t2.prototype.processDictionary = function(t3, e3) {
  2167. et(e3) && Ne(e3, function(e4, i3) {
  2168. t3.setKey(e4, i3);
  2169. });
  2170. }, t2.prototype.processListTemplate = function(e3, i3) {
  2171. var n3 = this;
  2172. for (Ut(e3, function(e4, r3) {
  2173. var s2, a2 = n3.getConfigEntryType(e4);
  2174. if (i3.hasIndex(r3) && !e4.forceCreate)
  2175. s2 = i3.getIndex(r3);
  2176. else {
  2177. if (e4 instanceof t2)
  2178. return void i3.push(e4);
  2179. s2 = a2 ? i3.create(a2) : i3.create();
  2180. }
  2181. e4 === s2 || et(e4) && (s2 instanceof t2 ? s2.config = e4 : et(s2) && et(e4) ? Ze(e4, s2) : i3.setIndex(i3.indexOf(s2), e4));
  2182. }); e3.length > i3.length; )
  2183. i3.pop();
  2184. }, t2.prototype.processOrderedTemplate = function(e3, i3) {
  2185. var n3 = this;
  2186. Ut(e3, function(e4, r3) {
  2187. var s2, a2 = n3.getConfigEntryType(e4);
  2188. s2 = a2 ? i3.create(a2) : i3.create(), et(e4) && (s2 instanceof t2 ? s2.config = e4 : et(s2) && et(e4) ? Ze(e4, s2) : i3.insert(e4));
  2189. });
  2190. }, t2.prototype.processList = function(e3, i3, n3) {
  2191. var r3 = this;
  2192. it(e3) || (e3 = [e3]);
  2193. var s2 = i3.length, a2 = 0;
  2194. for (Ut(e3, function(e4, o3) {
  2195. if (et(e4)) {
  2196. var l2 = void 0;
  2197. if (o3 < s2 && !e4.forceCreate)
  2198. l2 = i3.getIndex(o3);
  2199. else {
  2200. if (e4 instanceof t2)
  2201. return void i3.push(e4);
  2202. a2++, l2 = r3.createEntryInstance(e4), n3 ? l2.parent = n3 : i3.push(l2);
  2203. }
  2204. l2 instanceof t2 ? l2.config = e4 : et(l2) && et(e4) && Ze(e4, l2);
  2205. } else
  2206. i3.hasIndex(o3) ? i3.setIndex(o3, e4) : i3.push(e4);
  2207. }); !n3 && e3.length + a2 < i3.length; )
  2208. i3.pop();
  2209. }, t2.prototype.configOrder = function(t3, e3) {
  2210. return t3 == e3 ? 0 : "language" == t3 ? -1 : "language" == e3 ? 1 : 0;
  2211. }, t2.prototype.asIs = function(t3) {
  2212. return -1 != Xt(["locale"], t3);
  2213. }, t2.prototype.asFunction = function(t3) {
  2214. return false;
  2215. }, t2.prototype.createClassInstance = function(t3) {
  2216. if (Z(Ii.registeredClasses[t3]))
  2217. return new Ii.registeredClasses[t3]();
  2218. throw Error('Invalid type: "' + t3 + '".');
  2219. }, t2.prototype.createEntryInstance = function(t3) {
  2220. var e3;
  2221. return Z(t3.type) && (e3 = this.createClassInstance(t3.type)), e3 || t3;
  2222. }, t2.prototype.getConfigEntryType = function(t3) {
  2223. if (Z(t3.type)) {
  2224. if (Z(Ii.registeredClasses[t3.type]))
  2225. return Ii.registeredClasses[t3.type];
  2226. throw Error('Invalid type: "' + t3.type + '".');
  2227. }
  2228. }, t2.prototype.hasProperty = function(t3) {
  2229. return t3 in this;
  2230. }, t2.prototype.isReserved = function(t3) {
  2231. return -1 !== ["type", "forceCreate"].indexOf(t3);
  2232. }, Object.defineProperty(t2.prototype, "processingErrors", { get: function() {
  2233. return this._processingErrors || (this._processingErrors = []), this._processingErrors;
  2234. }, enumerable: true, configurable: true }), t2;
  2235. }(), mn = function(t2) {
  2236. function e3() {
  2237. var e4 = t2.call(this) || this;
  2238. return e4.className = "BaseObjectEvents", e4;
  2239. }
  2240. return C(e3, t2), Object.defineProperty(e3.prototype, "events", { get: function() {
  2241. return this._eventDispatcher || (this._eventDispatcher = new Fe(), this._disposers.push(this._eventDispatcher)), this._eventDispatcher;
  2242. }, enumerable: true, configurable: true }), e3.prototype.dispatch = function(t3, e4) {
  2243. this._eventDispatcher && this.events.isEnabled(t3) && (e4 ? (e4.type = t3, e4.target = e4.target || this, this.events.dispatch(t3, { type: t3, target: this })) : this.events.dispatch(t3, { type: t3, target: this }));
  2244. }, e3.prototype.dispatchImmediately = function(t3, e4) {
  2245. this._eventDispatcher && this.events.isEnabled(t3) && (e4 ? (e4.type = t3, e4.target = e4.target || this, this.events.dispatchImmediately(t3, e4)) : this.events.dispatchImmediately(t3, { type: t3, target: this }));
  2246. }, e3.prototype.copyFrom = function(e4) {
  2247. t2.prototype.copyFrom.call(this, e4), e4._eventDispatcher && this.events.copyFrom(e4._eventDispatcher);
  2248. }, e3;
  2249. }(yn), vn = "px", bn = "string", xn = "number", _n = "date", Pn = "duration", wn = "__\xA7\xA7\xA7__", Cn = "__\xA7\xA7\xA7\xA7__";
  2250. function On(t2) {
  2251. }
  2252. function Sn(t2, e3) {
  2253. return Ne(t2, function(t3, i3) {
  2254. Z(i3) && (e3[t3] = i3);
  2255. }), e3;
  2256. }
  2257. function In(t2) {
  2258. return /^[^#]*/.exec(t2)[0];
  2259. }
  2260. function Dn() {
  2261. var t2 = "#";
  2262. if (/apple/i.test(navigator.vendor)) {
  2263. var e3 = document.baseURI;
  2264. if (e3) {
  2265. e3 = In(e3);
  2266. var i3 = In(location.href);
  2267. e3 !== i3 && (t2 = i3 + t2);
  2268. }
  2269. }
  2270. return t2;
  2271. }
  2272. function kn(t2, e3) {
  2273. return Ne(t2, function(t3, i3) {
  2274. Z(i3) && !Z(e3[t3]) && (e3[t3] = i3);
  2275. }), e3;
  2276. }
  2277. function Tn(t2, e3) {
  2278. return Ne(t2, function(t3, i3) {
  2279. e3[t3] = i3;
  2280. }), e3;
  2281. }
  2282. function An(t2) {
  2283. return Z(t2) && "" !== t2.toString();
  2284. }
  2285. function Vn(t2, e3) {
  2286. return tt(t2) ? t2 : null != t2 && tt(t2.value) && tt(e3) ? e3 * t2.value : 0;
  2287. }
  2288. function Fn(t2, e3, i3) {
  2289. var n3;
  2290. return tt(t2) ? (n3 = t2) < 0 && (n3 = i3 ? e3 + n3 : e3 - n3) : null != t2 && tt(t2.value) && (n3 = e3 * t2.value), n3;
  2291. }
  2292. function Mn(t2, e3) {
  2293. return t2 instanceof A ? t2.value : t2 / e3;
  2294. }
  2295. function Ln() {
  2296. return window.devicePixelRatio || 1;
  2297. }
  2298. function jn(t2) {
  2299. return t2.replace(/\W+/g, "-").replace(/([a-z\d])([A-Z])/g, "$1-$2").toLowerCase();
  2300. }
  2301. function En(t2) {
  2302. var e3 = t2.split("");
  2303. return e3[0] = e3[0].toUpperCase(), e3.join("");
  2304. }
  2305. function Rn(t2) {
  2306. return JSON.stringify(t2);
  2307. }
  2308. function Bn(t2) {
  2309. return t2.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
  2310. }
  2311. function Hn(t2, e3, i3, n3, r3) {
  2312. if (t2.length <= e3)
  2313. return [t2];
  2314. var s2 = [];
  2315. if (i3) {
  2316. for (var a2 = -1, o3 = t2.replace(/([,;:!?\\\/]+|[\s])/g, wn + "$1" + wn).split(wn), l2 = 1; l2 < o3.length; l2++)
  2317. "." != (h2 = o3[l2]) && "," != h2 || !o3[l2 - 1].match(/[\w]+$/) || (o3[l2 - 1] += h2, o3[l2] = "");
  2318. for (l2 = 0; l2 < o3.length; l2++) {
  2319. var h2, p2 = (h2 = o3[l2]).length;
  2320. if (0 !== p2) {
  2321. if (p2 > e3 && (true !== i3 || 0 != r3)) {
  2322. if (n3 && (h2 = zn(h2)), d2 = h2.match(new RegExp(".{1," + e3 + "}", "g"))) {
  2323. if (n3)
  2324. for (var u2 = 0; u2 < d2.length; u2++)
  2325. d2[u2] = zn(d2[u2]);
  2326. s2 = s2.concat(d2);
  2327. }
  2328. } else
  2329. -1 === a2 && (s2.push(""), a2 = 0), s2[a2].length + p2 + 1 > e3 && "" !== s2[a2] && (s2.push(""), a2++), s2[a2] += h2;
  2330. a2 = s2.length - 1;
  2331. }
  2332. }
  2333. } else {
  2334. var d2;
  2335. if (d2 = t2.match(new RegExp(".{1," + e3 + "}", "g"))) {
  2336. if (n3)
  2337. for (u2 = 0; u2 < d2.length; u2++)
  2338. d2[u2] = zn(d2[u2]);
  2339. s2 = d2;
  2340. }
  2341. }
  2342. return 1 == s2.length && i3 && r3 && s2[0].length > e3 && (s2 = []), s2;
  2343. }
  2344. function Nn(t2, e3, i3, n3, r3) {
  2345. return t2.length <= e3 ? t2 : ((e3 -= i3.length) < 1 && (e3 = 1), (Hn(t2, e3, n3, r3)[0] || "") + i3);
  2346. }
  2347. function Wn(t2) {
  2348. return t2.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  2349. }
  2350. function Xn(t2) {
  2351. return t2.replace(/[\s\uFEFF\xA0]+$/g, "");
  2352. }
  2353. function Yn(t2) {
  2354. return t2.replace(/^[\s\uFEFF\xA0]+/g, "");
  2355. }
  2356. function zn(t2) {
  2357. return t2.split("").reverse().join("");
  2358. }
  2359. function Un(t2) {
  2360. var e3 = t2.trim();
  2361. return (e3 = t2.replace(/^'(.*)'$/, "$1")) == t2 && (e3 = t2.replace(/^"(.*)"$/, "$1")), e3;
  2362. }
  2363. function Gn(t2, e3, i3) {
  2364. return void 0 === e3 && (e3 = 0), void 0 === i3 && (i3 = "0"), "string" != typeof t2 && (t2 = t2.toString()), e3 > t2.length ? Array(e3 - t2.length + 1).join(i3) + t2 : t2;
  2365. }
  2366. function Kn(t2) {
  2367. if (void 0 === t2)
  2368. return bn;
  2369. var e3 = (t2 = (t2 = (t2 = t2.toLowerCase().replace(/^\[[^\]]*\]/, "")).replace(/\[[^\]]+\]/, "")).trim()).match(/\/(date|number|duration)$/);
  2370. return e3 ? e3[1] : t2 === xn ? xn : t2 === _n ? _n : t2 === Pn ? Pn : t2.match(/[#0]/) ? xn : t2.match(/[ymwdhnsqaxkzgtei]/) ? _n : bn;
  2371. }
  2372. function Zn(t2) {
  2373. return t2.replace(/\/(date|number|duration)$/i, "");
  2374. }
  2375. function qn(t2) {
  2376. return t2 ? t2.replace(/<[^>]*>/g, "") : t2;
  2377. }
  2378. function $n(t2) {
  2379. return t2 ? qn(("" + t2).replace(/[\n\r]+/g, ". ")) : t2;
  2380. }
  2381. function Jn(t2) {
  2382. if (M(t2))
  2383. return "NaN";
  2384. if (t2 === 1 / 0)
  2385. return "Infinity";
  2386. if (t2 === -1 / 0)
  2387. return "-Infinity";
  2388. if (0 === t2 && 1 / t2 == -1 / 0)
  2389. return "-0";
  2390. var e3 = t2 < 0;
  2391. t2 = Math.abs(t2);
  2392. var i3, n3 = q(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec("" + t2)), r3 = n3[1], s2 = n3[2] || "";
  2393. if (null == n3[3])
  2394. i3 = "" === s2 ? r3 : r3 + "." + s2;
  2395. else {
  2396. var a2, o3 = +n3[3];
  2397. i3 = t2 < 1 ? "0." + bi("0", a2 = o3 - 1) + r3 + s2 : 0 == (a2 = o3 - s2.length) ? r3 + s2 : a2 < 0 ? r3 + s2.slice(0, a2) + "." + s2.slice(a2) : r3 + s2 + bi("0", a2);
  2398. }
  2399. return e3 ? "-" + i3 : i3;
  2400. }
  2401. function Qn(t2) {
  2402. if (J(t2)) {
  2403. var e3 = new Date(t2);
  2404. return e3.setMilliseconds(t2.getMilliseconds()), e3;
  2405. }
  2406. if (tt(t2))
  2407. return new Date(t2);
  2408. var i3 = Number(t2);
  2409. return tt(i3) ? new Date(i3) : new Date(t2);
  2410. }
  2411. function tr(t2) {
  2412. if (J(t2))
  2413. return t2.getTime();
  2414. if (tt(t2))
  2415. return t2;
  2416. if (Q(t2)) {
  2417. var e3 = Number(t2);
  2418. return tt(e3) ? e3 : void 0;
  2419. }
  2420. }
  2421. function er(t2, e3) {
  2422. var i3 = new Date(t2.getFullYear(), 0, 0), n3 = t2.getTime() - i3.getTime() + 60 * (i3.getTimezoneOffset() - t2.getTimezoneOffset()) * 1e3;
  2423. return Math.floor(n3 / 864e5);
  2424. }
  2425. function ir(t2, e3) {
  2426. var i3 = new Date(Date.UTC(t2.getFullYear(), t2.getMonth(), t2.getDate())), n3 = i3.getUTCDay() || 7;
  2427. i3.setUTCDate(i3.getUTCDate() + 4 - n3);
  2428. var r3 = new Date(Date.UTC(i3.getUTCFullYear(), 0, 1));
  2429. return Math.ceil(((i3.getTime() - r3.getTime()) / 864e5 + 1) / 7);
  2430. }
  2431. function nr(t2, e3) {
  2432. var i3 = ir(new Date(t2.getFullYear(), t2.getMonth(), 1)), n3 = ir(t2);
  2433. return 1 == n3 && (n3 = 53), n3 - i3 + 1;
  2434. }
  2435. function rr(t2, e3, i3, n3) {
  2436. void 0 === i3 && (i3 = 1), void 0 === n3 && (n3 = false);
  2437. var r3 = new Date(e3, 0, 4, 0, 0, 0, 0);
  2438. return n3 && r3.setUTCFullYear(e3), 7 * t2 + i3 - ((r3.getDay() || 7) + 3);
  2439. }
  2440. function sr(t2, e3) {
  2441. return t2 > 12 ? t2 -= 12 : 0 === t2 && (t2 = 12), Z(e3) ? t2 + (e3 - 1) : t2;
  2442. }
  2443. function ar(t2, e3, i3, n3) {
  2444. if (void 0 === e3 && (e3 = false), void 0 === i3 && (i3 = false), void 0 === n3 && (n3 = false), n3)
  2445. return e3 ? "Coordinated Universal Time" : "UTC";
  2446. var r3 = t2.toLocaleString("UTC"), s2 = t2.toLocaleString("UTC", { timeZoneName: e3 ? "long" : "short" }).substr(r3.length);
  2447. return false === i3 && (s2 = s2.replace(/ (standard|daylight|summer|winter) /i, " ")), s2;
  2448. }
  2449. function or(t2, e3) {
  2450. return Math.floor(Math.random() * (e3 - t2)) + t2;
  2451. }
  2452. function lr(t2, e3, i3) {
  2453. return t2 > i3 ? i3 : t2 < e3 ? e3 : t2;
  2454. }
  2455. function hr(t2, e3, i3) {
  2456. var n3 = i3 - e3;
  2457. return (t2 > i3 || t2 < e3) && (t2 = e3 + (t2 - n3 * Math.floor(t2 / n3))), t2;
  2458. }
  2459. function pr(t2, e3) {
  2460. var i3 = t2.x, n3 = t2.y, r3 = [];
  2461. if (e3) {
  2462. for (; Z(e3.parent); )
  2463. r3.push(e3), e3 = e3.parent;
  2464. r3.reverse();
  2465. for (var s2 = 0; s2 < r3.length; s2++) {
  2466. var a2 = r3[s2], o3 = a2.rotation, l2 = i3 - a2.pixelX - a2.ex, h2 = n3 - a2.pixelY - a2.ey;
  2467. a2.dx && (i3 -= a2.dx), a2.dy && (n3 -= a2.dy);
  2468. var p2 = a2.scale;
  2469. a2.group && (p2 = a2.group.scale), i3 = (ft(-o3) * l2 - dt(-o3) * h2) / p2 - a2.pixelPaddingLeft, n3 = (ft(-o3) * h2 + dt(-o3) * l2) / p2 - a2.pixelPaddingTop;
  2470. }
  2471. }
  2472. return { x: i3, y: n3 };
  2473. }
  2474. function ur(t2, e3) {
  2475. var i3 = t2.x, n3 = t2.y;
  2476. if (e3)
  2477. for (; Z(e3.parent); ) {
  2478. var r3 = e3.rotation;
  2479. i3 += e3.pixelPaddingLeft + e3.ex, n3 += e3.pixelPaddingTop + e3.ey;
  2480. var s2 = e3.scale;
  2481. e3.group && (s2 = e3.group.scale);
  2482. var a2 = e3.pixelX + (i3 * ft(r3) - n3 * dt(r3)) * s2, o3 = e3.pixelY + (i3 * dt(r3) + n3 * ft(r3)) * s2;
  2483. e3.dx && (a2 += e3.dx), e3.dy && (o3 += e3.dy), i3 = a2, n3 = o3, e3 = e3.parent;
  2484. }
  2485. return { x: i3, y: n3 };
  2486. }
  2487. function dr(t2, e3, i3) {
  2488. return pr(ur(t2, e3), i3);
  2489. }
  2490. function cr(t2, e3) {
  2491. var i3 = pr(t2, e3), n3 = pr({ x: t2.x + t2.width, y: t2.y + t2.height }, e3);
  2492. return { x: i3.x, y: i3.y, width: n3.x - i3.x, height: n3.y - i3.y };
  2493. }
  2494. function fr(t2, e3) {
  2495. var i3 = ur(t2, e3), n3 = ur({ x: t2.x + t2.width, y: t2.y + t2.height }, e3);
  2496. return { x: i3.x, y: i3.y, width: n3.x - i3.x, height: n3.y - i3.y };
  2497. }
  2498. function gr(t2, e3, i3) {
  2499. try {
  2500. var n3 = e3.getBoundingClientRect();
  2501. return tt(i3) || (i3 = 1), { x: (t2.x - n3.left) / i3, y: (t2.y - n3.top) / i3 };
  2502. } catch (e4) {
  2503. return t2;
  2504. }
  2505. }
  2506. function yr(t2, e3) {
  2507. try {
  2508. var i3 = e3.getBoundingClientRect();
  2509. return { x: t2.x + i3.left, y: t2.y + i3.top };
  2510. } catch (e4) {
  2511. return t2;
  2512. }
  2513. }
  2514. function mr(t2, e3) {
  2515. return e3 && e3.htmlContainer ? pr(gr(t2, q(e3.htmlContainer), e3.svgContainer.cssScale), e3) : t2;
  2516. }
  2517. function vr(t2, e3) {
  2518. return e3 && e3.htmlContainer ? yr(ur(t2, e3), q(e3.htmlContainer)) : t2;
  2519. }
  2520. function br(t2) {
  2521. var e3 = getComputedStyle(t2), i3 = parseFloat(e3.paddingLeft) + parseFloat(e3.paddingRight), n3 = parseFloat(e3.borderLeftWidth) + parseFloat(e3.borderRightWidth);
  2522. return t2.clientWidth - i3 - n3;
  2523. }
  2524. function xr(t2) {
  2525. var e3 = getComputedStyle(t2), i3 = parseFloat(e3.paddingTop) + parseFloat(e3.paddingBottom), n3 = parseFloat(e3.borderTopWidth) + parseFloat(e3.borderBottomWidth);
  2526. return t2.clientHeight - i3 - n3;
  2527. }
  2528. function _r(t2) {
  2529. var e3 = ("" + t2).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
  2530. return e3 ? Math.max(0, (e3[1] ? e3[1].length : 0) - (e3[2] ? +e3[2] : 0)) : 0;
  2531. }
  2532. var Pr = /^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;
  2533. function wr(t2) {
  2534. var e3 = Pr.exec(t2);
  2535. return { protocol: e3 && e3[1] || "", separator: e3 && e3[2] || "", authority: e3 && e3[3] || "", domain: e3 && e3[4] || "", port: e3 && e3[5] || "", path: e3 && e3[6] || "", query: e3 && e3[7] || "", hash: e3 && e3[8] || "" };
  2536. }
  2537. function Cr(t2) {
  2538. return t2.protocol + t2.separator + t2.authority + t2.domain + t2.port + t2.path + t2.query + t2.hash;
  2539. }
  2540. function Or(t2) {
  2541. return "" === t2.protocol && "" === t2.separator && "" === t2.authority && "" === t2.domain && "" === t2.port;
  2542. }
  2543. function Sr(t2, e3) {
  2544. var i3 = wr(t2), n3 = wr(e3);
  2545. if (Or(i3))
  2546. throw new Error("Left URL is not absolute");
  2547. if (Or(n3)) {
  2548. if ("" !== n3.path)
  2549. if ("/" === n3.path[0])
  2550. i3.path = n3.path;
  2551. else {
  2552. var r3 = i3.path.split(/\//), s2 = n3.path.split(/\//);
  2553. if (0 === r3.length ? 0 !== s2.length && r3.push("") : r3.length > 1 && r3.pop(), te(r3, s2), i3.path = r3.join("/"), "" !== i3.path && "/" !== i3.path[0])
  2554. throw new Error("URL path must start with /");
  2555. }
  2556. return i3.query = n3.query, i3.hash = n3.hash, Cr(i3);
  2557. }
  2558. return Cr(n3);
  2559. }
  2560. function Ir() {
  2561. return !!window.MSInputMethodContext && !!document.documentMode;
  2562. }
  2563. function Dr(t2) {
  2564. return +t2;
  2565. }
  2566. function kr(t2) {
  2567. return t2 * t2;
  2568. }
  2569. function Tr(t2) {
  2570. return t2 * (2 - t2);
  2571. }
  2572. function Ar(t2) {
  2573. return ((t2 *= 2) <= 1 ? t2 * t2 : --t2 * (2 - t2) + 1) / 2;
  2574. }
  2575. function Vr(t2, e3) {
  2576. return Math.pow(t2, e3);
  2577. }
  2578. function Fr(t2, e3) {
  2579. return 1 - Math.pow(1 - t2, e3);
  2580. }
  2581. function Mr(t2, e3) {
  2582. return ((t2 *= 2) <= 1 ? Math.pow(t2, e3) : 2 - Math.pow(2 - t2, e3)) / 2;
  2583. }
  2584. function Lr(t2) {
  2585. return Vr(t2, 3);
  2586. }
  2587. function jr(t2) {
  2588. return Fr(t2, 3);
  2589. }
  2590. function Er(t2) {
  2591. return Mr(t2, 3);
  2592. }
  2593. function Rr(t2) {
  2594. return Math.pow(2, 10 * t2 - 10);
  2595. }
  2596. function Br(t2) {
  2597. return 1 - Math.pow(2, -10 * t2);
  2598. }
  2599. function Hr(t2) {
  2600. return ((t2 *= 2) <= 1 ? Math.pow(2, 10 * t2 - 10) : 2 - Math.pow(2, 10 - 10 * t2)) / 2;
  2601. }
  2602. function Nr(t2) {
  2603. return 1 - Math.cos(t2 * rt);
  2604. }
  2605. function Wr(t2) {
  2606. return Math.sin(t2 * rt);
  2607. }
  2608. function Xr(t2) {
  2609. return (1 - Math.cos(nt * t2)) / 2;
  2610. }
  2611. function Yr(t2) {
  2612. return t2 * t2 * t2;
  2613. }
  2614. function zr(t2) {
  2615. return --t2 * t2 * t2 + 1;
  2616. }
  2617. function Ur(t2) {
  2618. return ((t2 *= 2) <= 1 ? t2 * t2 * t2 : (t2 -= 2) * t2 * t2 + 2) / 2;
  2619. }
  2620. function Gr(t2) {
  2621. return 1 - Math.sqrt(1 - t2 * t2);
  2622. }
  2623. function Kr(t2) {
  2624. return Math.sqrt(1 - --t2 * t2);
  2625. }
  2626. function Zr(t2) {
  2627. return ((t2 *= 2) <= 1 ? 1 - Math.sqrt(1 - t2 * t2) : Math.sqrt(1 - (t2 -= 2) * t2) + 1) / 2;
  2628. }
  2629. Ii.registeredClasses["ease.linear"] = Dr, Ii.registeredClasses["ease.quadIn"] = kr, Ii.registeredClasses["ease.quadOut"] = Tr, Ii.registeredClasses["ease.quadInOut"] = Ar, Ii.registeredClasses["ease.polyIn"] = Vr, Ii.registeredClasses["ease.polyOut"] = Fr, Ii.registeredClasses["ease.polyInOut"] = Mr, Ii.registeredClasses["ease.polyIn3"] = Lr, Ii.registeredClasses["ease.polyOut3"] = jr, Ii.registeredClasses["ease.polyInOut3"] = Er, Ii.registeredClasses["ease.expIn"] = Rr, Ii.registeredClasses["ease.expOut"] = Br, Ii.registeredClasses["ease.expInOut"] = Hr, Ii.registeredClasses["ease.sinIn"] = Nr, Ii.registeredClasses["ease.sinOut"] = Wr, Ii.registeredClasses["ease.sinInOut"] = Xr, Ii.registeredClasses["ease.cubicIn"] = Yr, Ii.registeredClasses["ease.cubicOut"] = zr, Ii.registeredClasses["ease.cubicInOut"] = Ur, Ii.registeredClasses["ease.circleIn"] = Gr, Ii.registeredClasses["ease.circleOut"] = Kr, Ii.registeredClasses["ease.circleInOut"] = Zr;
  2630. var qr = 7.5625;
  2631. function $r(t2) {
  2632. return 1 - Jr(1 - t2);
  2633. }
  2634. function Jr(t2) {
  2635. return (t2 = +t2) < 0.36363636363636365 ? qr * t2 * t2 : t2 < 0.7272727272727273 ? qr * (t2 -= 0.5454545454545454) * t2 + 0.75 : t2 < 0.9090909090909091 ? qr * (t2 -= 0.8181818181818182) * t2 + 0.9375 : qr * (t2 -= 0.9545454545454546) * t2 + 0.984375;
  2636. }
  2637. function Qr(t2) {
  2638. return ((t2 *= 2) <= 1 ? 1 - Jr(1 - t2) : Jr(t2 - 1) + 1) / 2;
  2639. }
  2640. Ii.registeredClasses["ease.bounceIn"] = $r, Ii.registeredClasses["ease.bounceOut"] = Jr, Ii.registeredClasses["ease.bounceInOut"] = Qr;
  2641. var ts = 0.3 / (2 * Math.PI), es = Math.asin(1) * ts;
  2642. function is(t2) {
  2643. return 1 * Math.pow(2, 10 * --t2) * Math.sin((es - t2) / ts);
  2644. }
  2645. function ns(t2) {
  2646. return 1 - 1 * Math.pow(2, -10 * (t2 = +t2)) * Math.sin((t2 + es) / ts);
  2647. }
  2648. function rs(t2) {
  2649. return ((t2 = 2 * t2 - 1) < 0 ? 1 * Math.pow(2, 10 * t2) * Math.sin((es - t2) / ts) : 2 - 1 * Math.pow(2, -10 * t2) * Math.sin((es + t2) / ts)) / 2;
  2650. }
  2651. Ii.registeredClasses["ease.elasticIn"] = is, Ii.registeredClasses["ease.elasticOut"] = ns, Ii.registeredClasses["ease.elasticInOut"] = rs;
  2652. var ss = function(t2) {
  2653. function e3() {
  2654. var e4 = t2.call(this) || this;
  2655. return e4.transitionDuration = 0, e4.transitionEasing = zr, e4.properties = {}, e4.propertyFields = {}, e4.filters = new Fi(), e4.isTemplate = false, e4.className = "SpriteState", e4._disposers.push(new Ai(e4.filters)), e4.applyTheme(), e4;
  2656. }
  2657. return C(e3, t2), Object.defineProperty(e3.prototype, "adapter", { get: function() {
  2658. var t3 = this;
  2659. return this._adapterO || (this._adapterO = new Yi(this), this._adapterO.events.on("inserted", function(e4) {
  2660. t3[e4.newValue.key] = t3[e4.newValue.key];
  2661. }, void 0, false), this._adapterO.events.on("removed", function(e4) {
  2662. t3[e4.newValue.key] = t3[e4.newValue.key];
  2663. }, void 0, false)), this._adapterO;
  2664. }, enumerable: true, configurable: true }), e3.prototype.getPropertyValue = function(t3) {
  2665. var e4 = this.properties[t3], i3 = this.sprite;
  2666. if (i3) {
  2667. var n3 = this.propertyFields[t3];
  2668. if (Z(n3) && (i3.dataItem && (e4 = i3.dataItem.dataContext[n3]), null == e4 && (e4 = "__unset")), Z(e4))
  2669. this._adapterO && (e4 = this._adapterO.apply(t3, e4));
  2670. else {
  2671. var r3 = i3.getPropertyValue(t3);
  2672. (e4 = this._adapterO ? this._adapterO.apply(t3, r3) : r3) == r3 && (e4 = void 0);
  2673. }
  2674. }
  2675. return e4;
  2676. }, e3.prototype.copyFrom = function(t3) {
  2677. t3 && t3 != this && (this.transitionDuration = t3.transitionDuration, this.transitionEasing = t3.transitionEasing, Sn(t3.properties, this.properties), Sn(t3.propertyFields, this.propertyFields), this.filters.copyFrom(t3.filters), t3._adapterO && this.adapter.copyFrom(t3._adapterO));
  2678. }, Object.defineProperty(e3.prototype, "allValues", { get: function() {
  2679. var t3 = this, e4 = {};
  2680. return Ne(this.properties, function(i3, n3) {
  2681. e4[i3] = t3.getPropertyValue(i3);
  2682. }), this._adapterO && Ne(this._adapterO.keys(), function(i3, n3) {
  2683. var r3 = t3.getPropertyValue(n3);
  2684. e4[n3] = r3;
  2685. }), Ne(this.propertyFields, function(i3) {
  2686. var n3 = t3.getPropertyValue(i3);
  2687. e4[i3] = n3;
  2688. }), e4;
  2689. }, enumerable: true, configurable: true }), e3.prototype.reset = function() {
  2690. this.properties = {}, this.filters.clear();
  2691. }, e3.prototype.processConfig = function(e4) {
  2692. Z(e4) && Z(e4.properties) && Ne(e4.properties, function(t3, i3) {
  2693. Q(i3) && (i3.match(/^[0-9.\-]+\%$/) ? e4.properties[t3] = V(U(i3)) : i3.match(/^\#[0-9abcdef]{3,}$/i) && (e4.properties[t3] = gn(i3)));
  2694. }), t2.prototype.processConfig.call(this, e4);
  2695. }, e3.prototype.asFunction = function(e4) {
  2696. return "transitionEasing" == e4 || t2.prototype.asIs.call(this, e4);
  2697. }, e3;
  2698. }(yn);
  2699. Ii.registeredClasses.SpriteState = ss;
  2700. var as = function(t2) {
  2701. function e3() {
  2702. var e4 = null !== t2 && t2.apply(this, arguments) || this;
  2703. return e4._interactionEvents = new Pi(), e4;
  2704. }
  2705. return C(e3, t2), e3.prototype._dispatchSpriteEvent = function(t3) {
  2706. if (!this.target.disabled && !this.target.isTemplate && this.target.events.isEnabled(t3.type)) {
  2707. var e4 = Ye(t3, { target: this.target });
  2708. this.target.events.dispatchImmediately(e4.type, e4);
  2709. }
  2710. }, e3.prototype._dispatchSpritePointEvent = function(t3) {
  2711. if (!this.target.disabled && !this.target.isTemplate && this.target.events.isEnabled(t3.type)) {
  2712. var e4 = Ye(t3, { target: this.target, spritePoint: t3.point ? mr(t3.point, this.target) : void 0, svgPoint: this.target.getSvgPoint(t3.point) });
  2713. this.target.events.dispatchImmediately(e4.type, e4);
  2714. }
  2715. }, e3.prototype._addInteractionObjectEvent = function(t3, e4, i3, n3) {
  2716. var r3 = this, s2 = n3 + "-" + t3;
  2717. return this._interactionEvents.insertKeyIfEmpty(s2, function() {
  2718. var a2 = r3.target.interactions.events.on(t3, e4, i3, n3);
  2719. return new be(function() {
  2720. r3._interactionEvents.removeKey(s2), a2.dispose();
  2721. });
  2722. }).increment();
  2723. }, e3.prototype._on = function(e4, i3, n3, r3, s2, a2) {
  2724. var o3 = t2.prototype._on.call(this, e4, i3, n3, r3, s2, a2), l2 = [o3.disposer];
  2725. switch (i3) {
  2726. case "hit":
  2727. case "track":
  2728. case "doublehit":
  2729. case "wheel":
  2730. case "wheelup":
  2731. case "wheeldown":
  2732. case "wheelleft":
  2733. case "wheelright":
  2734. l2.push(this._addInteractionObjectEvent(i3, this._dispatchSpritePointEvent, this, s2));
  2735. break;
  2736. case "rightclick":
  2737. case "down":
  2738. case "up":
  2739. case "drag":
  2740. case "dragged":
  2741. case "dragstart":
  2742. case "dragstop":
  2743. case "over":
  2744. case "out":
  2745. case "swipe":
  2746. case "swipeleft":
  2747. case "swiperight":
  2748. case "resize":
  2749. case "focus":
  2750. case "blur":
  2751. case "toggled":
  2752. l2.push(this._addInteractionObjectEvent(i3, this._dispatchSpriteEvent, this, s2));
  2753. }
  2754. switch (i3) {
  2755. case "hit":
  2756. case "doublehit":
  2757. case "rightclick":
  2758. case "down":
  2759. case "up":
  2760. this.target.clickable = true;
  2761. break;
  2762. case "toggled":
  2763. this.target.togglable = true;
  2764. break;
  2765. case "drag":
  2766. case "dragstart":
  2767. case "dragstop":
  2768. this.target.draggable = true;
  2769. break;
  2770. case "track":
  2771. this.target.trackable = true;
  2772. break;
  2773. case "resize":
  2774. this.target.resizable = true;
  2775. break;
  2776. case "swipe":
  2777. case "swipeleft":
  2778. case "swiperight":
  2779. this.target.swipeable = true;
  2780. break;
  2781. case "wheel":
  2782. case "wheelup":
  2783. case "wheeldown":
  2784. case "wheelleft":
  2785. case "wheelright":
  2786. this.target.wheelable = true;
  2787. break;
  2788. case "over":
  2789. this.target.hoverable = true;
  2790. case "out":
  2791. this.target.hoverable = true;
  2792. break;
  2793. case "focus":
  2794. case "blur":
  2795. this.target.focusable = true;
  2796. }
  2797. return o3.disposer = new me(l2), o3;
  2798. }, e3;
  2799. }(Me), os = function() {
  2800. function t2() {
  2801. }
  2802. return t2.opacity = 1, t2.strokeOpacity = 1, t2.strokeWidth = 1, t2.fillOpacity = 1, t2.fill = dn("#000000"), t2.stroke = dn("#000000"), t2.focusable = void 0, t2.tabindex = 0, t2;
  2803. }(), ls = { verbose: true, commercialLicense: false, classNamePrefix: "amcharts-", autoSetClassName: false, minPolylineStep: 0.5, onlyShowOnViewport: false, queue: false, autoDispose: false, licenses: [], suppressErrors: false, suppressWarnings: false, animationsEnabled: true, nonce: "", deferredDelay: 100, disableHoverOnTransform: "never", pixelPerfectPrecision: 0 };
  2804. function hs(t2, e3) {
  2805. var i3 = false, n3 = Date.now();
  2806. return De(function r3(s2) {
  2807. if (!i3) {
  2808. var a2 = s2 - n3;
  2809. a2 >= t2 ? e3(1) : (De(r3), e3(a2 / t2));
  2810. }
  2811. }), new ye(function() {
  2812. i3 = true;
  2813. });
  2814. }
  2815. function ps(t2, e3, i3) {
  2816. return e3 + (i3 - e3) * t2;
  2817. }
  2818. function us(t2, e3, i3) {
  2819. return new A(ps(t2, e3.percent, i3.percent));
  2820. }
  2821. function ds(t2, e3, i3) {
  2822. var n3 = new un(Qi(e3.rgb, i3.rgb, t2));
  2823. return e3.alpha != i3.alpha && (n3.alpha = e3.alpha + (i3.alpha - e3.alpha) * t2), n3;
  2824. }
  2825. function cs(t2, e3) {
  2826. return e3 + t2.charAt(0).toUpperCase() + t2.substr(1);
  2827. }
  2828. var fs, gs = function() {
  2829. function t2(t3) {
  2830. this._disposer = new ye(function() {
  2831. for (; 0 !== t3.length; )
  2832. t3[0].dispose();
  2833. });
  2834. }
  2835. return t2.prototype.isDisposed = function() {
  2836. return this._disposer.isDisposed();
  2837. }, t2.prototype.dispose = function() {
  2838. this._disposer.dispose();
  2839. }, t2;
  2840. }(), ys = function(t2) {
  2841. function e3(e4, i3, n3, r3) {
  2842. var s2 = t2.call(this) || this;
  2843. return s2.duration = 0, s2.easing = Dr, s2.progress = 0, s2._loop = 0, s2._pause = false, s2._delayTimeout = null, s2._time = 0, s2._isFinished = false, s2.className = "Animation", false === ls.animationsEnabled && (n3 = 0), s2.object = e4, s2.animationOptions = se(i3), s2.duration = n3, r3 && (s2.easing = r3), s2.applyTheme(), s2;
  2844. }
  2845. return C(e3, t2), e3.prototype.debug = function() {
  2846. }, e3.prototype.dispose = function() {
  2847. t2.prototype.dispose.call(this), this.pause();
  2848. }, e3.prototype.delay = function(t3) {
  2849. var e4 = this;
  2850. if (t3 > 0) {
  2851. this.pause(), ie(this.object.animations, this);
  2852. var i3 = setTimeout(function() {
  2853. e4._delayTimeout = null, e4.start();
  2854. }, t3);
  2855. this._delayTimeout = new ye(function() {
  2856. clearTimeout(i3);
  2857. });
  2858. }
  2859. return this;
  2860. }, e3.prototype._start = function() {
  2861. this._isFinished = false, this._delayTimeout && (this.removeDispose(this._delayTimeout), this._delayTimeout = null), this.stopSameAnimations(), this._pause = false, ie(Qa.animations, this), ie(this.object.animations, this), Qa.requestFrame();
  2862. }, e3.prototype.start = function() {
  2863. this._start(), this._startTime = Date.now(), this._time = 0, this.staticOptions = [];
  2864. for (var t3 = this.animationOptions.length - 1; t3 >= 0; t3--) {
  2865. var e4 = this.animationOptions[t3];
  2866. if (Z(e4.from) || (e4.childObject ? e4.from = e4.childObject[e4.property] : (e4.from = this.object[e4.property], Z(e4.from) || (e4.from = os[e4.property]))), e4.from == e4.to)
  2867. ee(this.animationOptions, e4);
  2868. else if (!Z(e4.from) || !(e4.from instanceof A) && e4.to instanceof A || e4.from instanceof A && !(e4.to instanceof A))
  2869. this.staticOptions.push(e4), ee(this.animationOptions, e4);
  2870. else if (tt(e4.to))
  2871. if (e4.updateMethod = ps, e4.from instanceof A) {
  2872. var i3 = this.object[cs(e4.property, "pixel")];
  2873. isNaN(i3) ? (this.staticOptions.push(e4), ee(this.animationOptions, e4)) : e4.from = i3;
  2874. } else
  2875. isNaN(e4.from) && (this.staticOptions.push(e4), ee(this.animationOptions, e4));
  2876. else
  2877. e4.to instanceof un ? e4.from ? e4.updateMethod = ds : (this.staticOptions.push(e4), ee(this.animationOptions, e4)) : e4.to instanceof A ? (e4.updateMethod = us, isNaN(e4.from) || (i3 = this.object[cs(e4.property, "relative")], isNaN(i3) || (e4.from = V(100 * i3)))) : (this.staticOptions.push(e4), ee(this.animationOptions, e4));
  2878. }
  2879. if (this.applyStaticOptions(), this.events.isEnabled("animationstarted")) {
  2880. var n3 = { type: "animationstarted", target: this, progress: this.progress };
  2881. this.events.dispatchImmediately("animationstarted", n3);
  2882. }
  2883. return this.update(), 0 === this.duration && this.end(), this;
  2884. }, e3.prototype.loop = function(t3) {
  2885. return tt(t3) || (t3 = 1 / 0), this._loop = t3, this;
  2886. }, e3.prototype.pause = function() {
  2887. return this._pause = true, this._delayTimeout && (this.removeDispose(this._delayTimeout), this._delayTimeout = null), ee(Qa.animations, this), ee(this.object.animations, this), this;
  2888. }, e3.prototype.resume = function() {
  2889. return this._start(), this._startTime = Date.now() - this._time, this;
  2890. }, e3.prototype.end = function() {
  2891. if (0 == this._loop && this.pause(), this.setProgress(1), this.applyStaticOptions(), this.events.isEnabled("animationended")) {
  2892. var t3 = { type: "animationended", target: this, progress: this.progress };
  2893. this.events.dispatchImmediately("animationended", t3);
  2894. }
  2895. return this._loop > 0 ? (this._loop--, this.start()) : (this.stop(), this._isFinished = true), this;
  2896. }, e3.prototype.kill = function() {
  2897. this.pause(), this._isFinished = true;
  2898. }, e3.prototype.isFinished = function() {
  2899. return this._isFinished;
  2900. }, e3.prototype.applyStaticOptions = function() {
  2901. var t3 = this;
  2902. Ut(this.staticOptions, function(e4) {
  2903. e4.childObject ? e4.childObject[e4.property] = 1 == t3.progress ? e4.to : e4.from : t3.object[e4.property] = 1 == t3.progress ? e4.to : e4.from;
  2904. });
  2905. }, e3.prototype.stop = function(t3) {
  2906. if (this.pause(), !t3 && this.events.isEnabled("animationstopped")) {
  2907. var e4 = { type: "animationstopped", target: this, progress: this.progress };
  2908. this.events.dispatchImmediately("animationstopped", e4);
  2909. }
  2910. return this;
  2911. }, e3.prototype.setProgress = function(t3) {
  2912. var e4 = this;
  2913. if (this._time = this.duration * t3, Ut(this.animationOptions, function(i4) {
  2914. if (i4.updateMethod && Z(i4.from)) {
  2915. var n3 = i4.updateMethod(t3, i4.from, i4.to);
  2916. i4.childObject ? i4.childObject[i4.property] = n3 : e4.object[i4.property] = n3;
  2917. }
  2918. }), this.progress = t3, this.events.isEnabled("animationprogress")) {
  2919. var i3 = { type: "animationprogress", target: this, progress: this.progress };
  2920. this.events.dispatchImmediately("animationprogress", i3);
  2921. }
  2922. Qa.requestFrame();
  2923. }, e3.prototype.update = function() {
  2924. if (!this._pause) {
  2925. var t3 = void 0;
  2926. this._time = ut(Date.now() - this._startTime, 0, this.duration);
  2927. var e4 = this._time / this.duration;
  2928. t3 = this.easing(e4), (0 == this.duration || !tt(t3) || e4 >= 1) && (t3 = 1), this.setProgress(t3), 1 == lt(this._time / this.duration, 6) && this.end();
  2929. }
  2930. return this;
  2931. }, Object.defineProperty(e3.prototype, "delayed", { get: function() {
  2932. return !!this._delayTimeout;
  2933. }, enumerable: true, configurable: true }), e3.prototype.stopSameAnimations = function() {
  2934. var t3 = this;
  2935. Ut(oe(this.object.animations), function(e4) {
  2936. if (e4 !== t3 && !e4.delayed) {
  2937. var i3 = [];
  2938. Ut(t3.animationOptions, function(t4) {
  2939. Ut(e4.animationOptions, function(n3) {
  2940. t4.property == n3.property && t4.childObject == n3.childObject && (i3.push(n3), 0 == e4.animationOptions.length && e4.kill());
  2941. });
  2942. }), Ut(i3, function(t4) {
  2943. ee(e4.animationOptions, t4);
  2944. });
  2945. }
  2946. });
  2947. }, e3.prototype.asFunction = function(e4) {
  2948. return "easing" == e4 || t2.prototype.asIs.call(this, e4);
  2949. }, e3;
  2950. }(mn), ms = "http://www.w3.org/2000/svg", vs = "http://www.w3.org/2000/xmlns/", bs = "http://www.w3.org/1999/xlink";
  2951. function xs(t2, e3, i3, n3) {
  2952. return t2.addEventListener(e3, i3, n3 || false), new ye(function() {
  2953. t2.removeEventListener(e3, i3, n3 || false);
  2954. });
  2955. }
  2956. function _s(t2) {
  2957. if (Q(t2)) {
  2958. var e3 = document.getElementById(t2);
  2959. if (null == e3 && (e3 = document.getElementsByClassName(t2)[0]), e3 instanceof HTMLElement)
  2960. return e3;
  2961. } else if (t2 instanceof HTMLElement)
  2962. return t2;
  2963. }
  2964. function Ps(t2, e3) {
  2965. if (t2)
  2966. if (t2.classList)
  2967. Ut(e3.split(" "), function(e4) {
  2968. t2.classList.add(e4);
  2969. });
  2970. else {
  2971. var i3 = t2.getAttribute("class");
  2972. i3 ? t2.setAttribute("class", i3.split(" ").filter(function(t3) {
  2973. return t3 !== e3;
  2974. }).join(" ") + " " + e3) : t2.setAttribute("class", e3);
  2975. }
  2976. }
  2977. function ws(t2, e3) {
  2978. if (t2)
  2979. if (t2.classList)
  2980. t2.classList.remove(e3);
  2981. else {
  2982. var i3 = t2.getAttribute("class");
  2983. i3 && t2.setAttribute("class", i3.split(" ").filter(function(t3) {
  2984. return t3 !== e3;
  2985. }).join(" "));
  2986. }
  2987. }
  2988. function Cs(t2, e3, i3) {
  2989. t2.style[e3] = i3;
  2990. }
  2991. function Os(t2, e3) {
  2992. return t2.currentStyle ? t2.currentStyle[e3] : document.defaultView.getComputedStyle(t2, null).getPropertyValue(e3);
  2993. }
  2994. function Ss() {
  2995. if (document.activeElement && document.activeElement != document.body)
  2996. if (document.activeElement.blur)
  2997. document.activeElement.blur();
  2998. else {
  2999. var t2 = document.createElement("button");
  3000. t2.style.position = "fixed", t2.style.top = "0px", t2.style.left = "-10000px", document.body.appendChild(t2), t2.focus(), t2.blur(), document.body.removeChild(t2);
  3001. }
  3002. }
  3003. function Is(t2) {
  3004. if (t2 instanceof HTMLElement)
  3005. t2.focus();
  3006. else {
  3007. var e3 = document.createElement("input"), i3 = document.createElementNS(ms, "foreignObject");
  3008. i3.appendChild(e3), t2.appendChild(i3), e3.focus(), e3.disabled = true, i3.remove();
  3009. }
  3010. }
  3011. function Ds(t2) {
  3012. if (t2.outerHTML)
  3013. return t2.outerHTML;
  3014. var e3 = document.createElement("div"), i3 = t2.cloneNode(true);
  3015. return e3.appendChild(i3), e3.innerHTML;
  3016. }
  3017. function ks(t2) {
  3018. return t2 instanceof Object && t2 && 1 === t2.nodeType;
  3019. }
  3020. function Ts(t2, e3) {
  3021. for (var i3 = e3; ; ) {
  3022. if (t2 === i3)
  3023. return true;
  3024. if (null == i3.parentNode) {
  3025. if (null == i3.host)
  3026. return false;
  3027. i3 = i3.host;
  3028. } else
  3029. i3 = i3.parentNode;
  3030. }
  3031. }
  3032. function As(t2) {
  3033. for (var e3 = t2; ; ) {
  3034. if (null == e3.parentNode)
  3035. return null != e3.host ? e3 : null;
  3036. e3 = e3.parentNode;
  3037. }
  3038. }
  3039. function Vs(t2) {
  3040. for (var e3 = t2.ownerDocument, i3 = t2; ; ) {
  3041. if (null == i3.parentNode)
  3042. return i3 === e3 || null != i3.host ? i3 : null;
  3043. i3 = i3.parentNode;
  3044. }
  3045. }
  3046. function Fs(t2, e3) {
  3047. Ut(t2.attributes, function(t3) {
  3048. null != t3.value && e3.setAttribute(t3.name, t3.value);
  3049. });
  3050. }
  3051. function Ms(t2) {
  3052. ke(function() {
  3053. try {
  3054. var e3 = t2.getBoundingClientRect(), i3 = e3.left - Math.round(e3.left), n3 = e3.top - Math.round(e3.top);
  3055. 0 !== i3 && Te(function() {
  3056. t2.style.left = i3 + "px";
  3057. }), 0 !== n3 && Te(function() {
  3058. t2.style.top = n3 + "px";
  3059. });
  3060. } catch (t3) {
  3061. }
  3062. });
  3063. }
  3064. var Ls = function(t2) {
  3065. function e3(e4, i3, n3) {
  3066. var r3 = this, s2 = function(t3) {
  3067. return null == t3 ? (Z(fs) || ((e5 = document.createElement("style")).type = "text/css", "" != ls.nonce && e5.setAttribute("nonce", ls.nonce), document.head.appendChild(e5), fs = e5.sheet), fs) : ((e5 = document.createElement("style")).type = "text/css", "" != ls.nonce && e5.setAttribute("nonce", ls.nonce), t3.appendChild(e5), e5.sheet);
  3068. var e5;
  3069. }(e4);
  3070. return (r3 = t2.call(this, function() {
  3071. var t3 = Xt(s2.cssRules, r3._rule);
  3072. if (-1 === t3)
  3073. throw new Error("Could not dispose StyleRule");
  3074. s2.deleteRule(t3);
  3075. }) || this)._rule = function(t3, e5) {
  3076. var i4 = t3.cssRules.length;
  3077. return t3.insertRule(e5 + "{}", i4), t3.cssRules[i4];
  3078. }(s2, i3), Ne(n3, function(t3, e5) {
  3079. r3.setStyle(t3, e5);
  3080. }), r3;
  3081. }
  3082. return C(e3, t2), Object.defineProperty(e3.prototype, "selector", { get: function() {
  3083. return this._rule.selectorText;
  3084. }, set: function(t3) {
  3085. this._rule.selectorText = t3;
  3086. }, enumerable: true, configurable: true }), e3.prototype._setVendorPrefixName = function(t3, e4) {
  3087. var i3 = this._rule.style;
  3088. i3.setProperty("-webkit-" + t3, e4, ""), i3.setProperty("-moz-" + t3, e4, ""), i3.setProperty("-ms-" + t3, e4, ""), i3.setProperty("-o-" + t3, e4, ""), i3.setProperty(t3, e4, "");
  3089. }, e3.prototype.setStyle = function(t3, e4) {
  3090. "transition" === t3 ? this._setVendorPrefixName(t3, e4) : this._rule.style.setProperty(t3, e4, "");
  3091. }, e3;
  3092. }(ye), js = 0, Es = function(t2) {
  3093. function e3(e4, i3, n3) {
  3094. var r3 = this, s2 = Z(n3) ? n3 : "__style_" + ++js + "__";
  3095. return (r3 = t2.call(this, e4, "." + s2, i3) || this)._className = s2, r3;
  3096. }
  3097. return C(e3, t2), Object.defineProperty(e3.prototype, "className", { get: function() {
  3098. return this._className;
  3099. }, set: function(t3) {
  3100. this._className = t3, this.selector = "." + t3;
  3101. }, enumerable: true, configurable: true }), e3.prototype.toString = function() {
  3102. return this._className;
  3103. }, e3;
  3104. }(Ls);
  3105. function Rs(t2) {
  3106. if ("loading" !== document.readyState)
  3107. t2();
  3108. else {
  3109. var e3 = function() {
  3110. "loading" !== document.readyState && (document.removeEventListener("readystatechange", e3), t2());
  3111. };
  3112. document.addEventListener("readystatechange", e3);
  3113. }
  3114. }
  3115. function Bs(t2) {
  3116. var e3 = Os(t2, "font-family");
  3117. if (e3)
  3118. return e3;
  3119. var i3 = t2.parentElement || t2.parentNode;
  3120. return i3 ? Bs(i3) : void 0;
  3121. }
  3122. function Hs(t2) {
  3123. var e3 = Os(t2, "font-size");
  3124. if (e3)
  3125. return e3;
  3126. var i3 = t2.parentElement || t2.parentNode;
  3127. return i3 ? Hs(i3) : void 0;
  3128. }
  3129. function Ns(t2, e3) {
  3130. var i3 = t2.getBoundingClientRect(), n3 = it(e3) ? e3 : e3 ? [e3] : [];
  3131. if (n3.length) {
  3132. for (var r3 = 0; r3 < n3.length; r3++) {
  3133. var s2 = n3[r3];
  3134. if (!Ns(s2))
  3135. return false;
  3136. var a2 = s2.getBoundingClientRect();
  3137. if (i3.top >= 0 && i3.left >= 0 && i3.top <= a2.top + a2.height && i3.left <= a2.left + a2.width)
  3138. return true;
  3139. }
  3140. return false;
  3141. }
  3142. return i3.top >= 0 && i3.left >= 0 && i3.top <= (window.innerHeight || document.documentElement.clientHeight) && i3.left <= (window.innerWidth || document.documentElement.clientWidth);
  3143. }
  3144. var Ws = function() {
  3145. function t2(t3) {
  3146. this._isDisposed = false, this._x = 0, this._y = 0, this._rotationY = 0, this._rotationX = 0, this._rotation = 0, this._scale = 1, this.node = "string" == typeof t3 ? document.createElementNS(ms, t3) : t3;
  3147. }
  3148. return t2.prototype.removeNode = function() {
  3149. this.node && this.node.parentNode && this.node.parentNode.removeChild(this.node);
  3150. }, Object.defineProperty(t2.prototype, "transformString", { get: function() {
  3151. if (this.node)
  3152. return this._transformString;
  3153. }, enumerable: true, configurable: true }), t2.prototype.transform = function() {
  3154. var t3 = "translate(" + this._x + "," + this._y + ")";
  3155. if (1 != this._scale && (t3 += (t3 ? " " : "") + "scale(" + this._scale + ")"), 0 != this._rotation) {
  3156. var e3 = "rotate(" + this._rotation + ")";
  3157. this._rotationX && this._rotationY && (e3 = "rotate(" + this._rotation + " " + this._rotationX + " " + this._rotationY + ")"), t3 += (t3 ? " " : "") + e3;
  3158. }
  3159. this._transformString = t3, this.node.setAttribute("transform", t3);
  3160. }, t2.prototype.getBBox = function() {
  3161. var t3 = { width: 0, height: 0, x: 0, y: 0 };
  3162. if (this.node && this.node.parentNode)
  3163. try {
  3164. var e3 = this.node.getBBox();
  3165. t3.x = e3.x, t3.y = e3.y, t3.width = e3.width, t3.height = e3.height;
  3166. } catch (t4) {
  3167. }
  3168. return t3;
  3169. }, t2.prototype.moveTo = function(t3) {
  3170. if (t3) {
  3171. var e3 = t3.x, i3 = t3.y;
  3172. this._x == e3 && this._y == i3 || (this._x = e3, this._y = i3, this.transform());
  3173. }
  3174. }, Object.defineProperty(t2.prototype, "content", { get: function() {
  3175. return this.node.innerHTML || "";
  3176. }, set: function(t3) {
  3177. this.node.innerHTML = t3;
  3178. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "textContent", { get: function() {
  3179. return this.node.textContent || "";
  3180. }, set: function(t3) {
  3181. this.node.textContent = t3;
  3182. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "x", { get: function() {
  3183. return this._x;
  3184. }, set: function(t3) {
  3185. this._x != t3 && (this._x = t3, this.transform());
  3186. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "y", { get: function() {
  3187. return this._y;
  3188. }, set: function(t3) {
  3189. this._y != t3 && (this._y = t3, this.transform());
  3190. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "rotation", { get: function() {
  3191. return this._rotation;
  3192. }, set: function(t3) {
  3193. this._rotation != t3 && (this._rotation = t3, this.transform());
  3194. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "rotationX", { get: function() {
  3195. return this._rotationX;
  3196. }, set: function(t3) {
  3197. this._rotationX != t3 && (this._rotationX = t3, this.transform());
  3198. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "rotationY", { get: function() {
  3199. return this._rotationY;
  3200. }, set: function(t3) {
  3201. this._rotationY != t3 && (this._rotationY = t3, this.transform());
  3202. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "scale", { get: function() {
  3203. return this._scale;
  3204. }, set: function(t3) {
  3205. this._scale != t3 && (this._scale = t3, this.transform());
  3206. }, enumerable: true, configurable: true }), t2.prototype.removeAttr = function(t3) {
  3207. this.node.removeAttribute(t3);
  3208. }, t2.prototype.attr = function(t3) {
  3209. var e3 = this;
  3210. return Ne(t3, function(t4, i3) {
  3211. Z(i3) ? e3.node.setAttribute(t4, i3) : e3.node.removeAttribute(t4);
  3212. }), this;
  3213. }, t2.prototype.getAttr = function(t3) {
  3214. return this.node.getAttribute(t3);
  3215. }, t2.prototype.attrNS = function(t3, e3, i3) {
  3216. return this.node.setAttributeNS(t3, e3, i3), this;
  3217. }, t2.prototype.getAttrNS = function(t3, e3) {
  3218. return this.node.getAttributeNS(t3, e3);
  3219. }, t2.prototype.removeStyle = function(t3) {
  3220. this.node.style[t3] = null, delete this.node.style[t3];
  3221. }, t2.prototype.getStyle = function(t3) {
  3222. return this.node.style[t3];
  3223. }, t2.prototype.addStyle = function(t3) {
  3224. var e3 = this;
  3225. return Ne(t3, function(t4, i3) {
  3226. Z(i3) ? e3.node.style[t4] = i3 : e3.removeStyle(t4);
  3227. }), this;
  3228. }, t2.prototype.addClass = function(t3) {
  3229. Ps(this.node, t3);
  3230. }, t2.prototype.removeClass = function(t3) {
  3231. ws(this.node, t3);
  3232. }, t2.prototype.setClass = function(t3) {
  3233. this.node.setAttribute("class", t3);
  3234. }, t2.prototype.removeChildNodes = function() {
  3235. for (; this.node.childNodes.length > 0; )
  3236. this.node.removeChild(this.node.firstChild);
  3237. }, t2.prototype.isDisposed = function() {
  3238. return this._isDisposed;
  3239. }, t2.prototype.dispose = function() {
  3240. this.removeNode();
  3241. }, t2;
  3242. }(), Xs = function(t2) {
  3243. function e3(e4) {
  3244. return t2.call(this, e4) || this;
  3245. }
  3246. return C(e3, t2), e3.prototype.add = function(t3) {
  3247. t3 && this.node.appendChild(t3.node);
  3248. }, e3.prototype.addToBack = function(t3) {
  3249. if (t3) {
  3250. var e4 = this.node.childNodes[0];
  3251. e4 ? e4 != t3.node && this.node.insertBefore(t3.node, e4) : this.node.appendChild(t3.node);
  3252. }
  3253. }, e3.prototype.removeElement = function(t3) {
  3254. if (t3)
  3255. try {
  3256. t3.node && t3.node.parentNode == this.node && this.node.removeChild(t3.node);
  3257. } catch (t4) {
  3258. }
  3259. }, e3.prototype.hasChild = function(t3) {
  3260. for (var e4 = 0; e4 < this.node.childNodes.length; e4++)
  3261. if (this.node.childNodes[e4] == t3.node)
  3262. return true;
  3263. return false;
  3264. }, Object.defineProperty(e3.prototype, "content", { get: function() {
  3265. return this.node.innerHTML;
  3266. }, set: function(t3) {
  3267. this.node.innerHTML = t3;
  3268. }, enumerable: true, configurable: true }), e3.prototype.removeChildren = function() {
  3269. if (this.node.childNodes)
  3270. for (; this.node.childNodes.length > 0; ) {
  3271. var t3 = this.node.firstChild;
  3272. t3 && t3.parentNode && t3.parentNode.removeChild(t3);
  3273. }
  3274. }, e3.prototype.removeChildrenByTag = function(t3) {
  3275. if (this.node.childNodes)
  3276. for (var e4 = this.node.getElementsByTagName(t3), i3 = 0; i3 < e4.length; i3++)
  3277. this.node.removeChild(e4[i3]);
  3278. }, e3;
  3279. }(Ws), Ys = function(t2) {
  3280. function e3() {
  3281. var e4 = t2.call(this) || this;
  3282. return e4._purposes = { stroke: dn("#e5e5e5"), fill: dn("#f3f3f3"), primaryButton: dn("#6794dc"), primaryButtonHover: dn("#6771dc"), primaryButtonDown: dn("#68dc75"), primaryButtonActive: dn("#68dc75"), primaryButtonText: dn("#FFFFFF"), primaryButtonStroke: dn("#FFFFFF"), secondaryButton: dn("#d9d9d9"), secondaryButtonHover: dn("#d9d9d9").brighten(-0.25), secondaryButtonDown: dn("#d9d9d9").brighten(-0.35), secondaryButtonActive: dn("#d9d9d9").brighten(0.35), secondaryButtonText: dn("#000000"), secondaryButtonStroke: dn("#FFFFFF"), grid: dn("#000000"), background: dn("#ffffff"), alternativeBackground: dn("#000000"), text: dn("#000000"), alternativeText: dn("#FFFFFF"), disabledBackground: dn("#999999"), positive: dn("#67dc75"), negative: dn("#dc6788") }, e4.className = "InterfaceColorSet", e4.applyTheme(), e4;
  3283. }
  3284. return C(e3, t2), e3.prototype.debug = function() {
  3285. }, e3.prototype.getFor = function(t3) {
  3286. return this._purposes[t3];
  3287. }, e3.prototype.setFor = function(t3, e4) {
  3288. this._purposes[t3] = e4;
  3289. }, e3;
  3290. }(yn);
  3291. Ii.registeredClasses.InterfaceColorSet = Ys;
  3292. var zs = new Pi(), Us = function(t2) {
  3293. function e3() {
  3294. var e4 = null !== t2 && t2.apply(this, arguments) || this;
  3295. return e4._domEvents = {}, e4;
  3296. }
  3297. return C(e3, t2), e3.prototype._addDOMEvent = function(t3, e4, i3, n3) {
  3298. var r3 = this;
  3299. if (!this._domEvents[t3]) {
  3300. var s2 = function(t4) {
  3301. i3.call(n3, e4, t4);
  3302. };
  3303. this.target.element.addEventListener(t3, s2, false), this._domEvents[t3] = new be(function() {
  3304. delete r3._domEvents[t3], r3.target.element.removeEventListener(t3, s2, false);
  3305. });
  3306. }
  3307. return this._domEvents[t3].increment();
  3308. }, e3.prototype._dispatchKeyboardEvent = function(t3, e4) {
  3309. this.target.events.isEnabled(t3) && this.target.events.dispatchImmediately(t3, { type: t3, target: this.target, event: e4 });
  3310. }, e3.prototype._on = function(e4, i3, n3, r3, s2, a2) {
  3311. var o3 = t2.prototype._on.call(this, e4, i3, n3, r3, s2, a2), l2 = [o3.disposer];
  3312. switch (i3) {
  3313. case "hit":
  3314. case "doublehit":
  3315. case "rightclick":
  3316. case "down":
  3317. case "up":
  3318. this.target.clickable = true;
  3319. break;
  3320. case "drag":
  3321. case "dragstart":
  3322. case "dragstop":
  3323. this.target.draggable = true;
  3324. break;
  3325. case "track":
  3326. this.target.trackable = true;
  3327. break;
  3328. case "resize":
  3329. this.target.resizable = true;
  3330. break;
  3331. case "swipe":
  3332. case "swipeleft":
  3333. case "swiperight":
  3334. this.target.swipeable = true;
  3335. break;
  3336. case "wheel":
  3337. case "wheelup":
  3338. case "wheeldown":
  3339. case "wheelleft":
  3340. case "wheelright":
  3341. this.target.wheelable = true;
  3342. break;
  3343. case "over":
  3344. case "out":
  3345. this.target.hoverable = true;
  3346. break;
  3347. case "focus":
  3348. case "blur":
  3349. case "focusin":
  3350. case "focusout":
  3351. this.target.focusable = true;
  3352. break;
  3353. case "keydown":
  3354. case "keyup":
  3355. case "keypress":
  3356. case "input":
  3357. l2.push(this._addDOMEvent(i3, i3, this._dispatchKeyboardEvent, this));
  3358. }
  3359. return o3.disposer = new me(l2), o3;
  3360. }, e3;
  3361. }(Me), Gs = function(t2) {
  3362. function e3(e4) {
  3363. var i3 = t2.call(this) || this;
  3364. return i3._eventDispatcher = new Us(i3), i3.eventDisposers = new Pi(), i3.replacedStyles = new Pi(), i3._clickable = false, i3._contextMenuDisabled = false, i3._hoverable = false, i3._trackable = false, i3._draggable = false, i3._swipeable = false, i3._resizable = false, i3._wheelable = false, i3._inert = false, i3._isHover = false, i3.isRealHover = false, i3._isHoverByTouch = false, i3._isDown = false, i3._isFocused = false, i3._isTouchProtected = false, i3._inertiaOptions = new Pi(), i3.inertias = new Pi(), i3._hitOptions = {}, i3._hoverOptions = {}, i3._swipeOptions = {}, i3._keyboardOptions = {}, i3._mouseOptions = {}, i3._cursorOptions = { defaultStyle: [{ property: "cursor", value: "default" }] }, i3._disposers.push(i3._eventDispatcher), i3._element = e4, i3.className = "InteractionObject", i3._disposers.push(new _i(i3.inertias)), i3._disposers.push(new _i(i3.eventDisposers)), i3.applyTheme(), i3;
  3365. }
  3366. return C(e3, t2), Object.defineProperty(e3.prototype, "events", { get: function() {
  3367. return this._eventDispatcher;
  3368. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isHover", { get: function() {
  3369. return this._isHover;
  3370. }, set: function(t3) {
  3371. this.isHover != t3 && (this._isHover = t3, t3 ? ua().overObjects.moveValue(this) : (this.isRealHover = false, ua().overObjects.removeValue(this)));
  3372. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isHoverByTouch", { get: function() {
  3373. return this._isHoverByTouch;
  3374. }, set: function(t3) {
  3375. this.isHoverByTouch != t3 && (this._isHoverByTouch = t3);
  3376. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "overPointers", { get: function() {
  3377. return this._overPointers || (this._overPointers = new Fi()), this._overPointers;
  3378. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isDown", { get: function() {
  3379. return this._isDown;
  3380. }, set: function(t3) {
  3381. this.isDown != t3 && (this._isDown = t3, t3 ? ua().downObjects.moveValue(this) : ua().downObjects.removeValue(this));
  3382. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "downPointers", { get: function() {
  3383. return this._downPointers || (this._downPointers = new Fi()), this._downPointers;
  3384. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isFocused", { get: function() {
  3385. return this._isFocused;
  3386. }, set: function(t3) {
  3387. this.isFocused != t3 && (this._isFocused = t3, ua().focusedObject = t3 ? this : void 0);
  3388. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isTouchProtected", { get: function() {
  3389. return this._isTouchProtected;
  3390. }, set: function(t3) {
  3391. this._isTouchProtected != t3 && (this._isTouchProtected = t3, t3 ? ua().unprepElement(this) : (this.draggable || this.swipeable || this.trackable || this.resizable) && ua().prepElement(this));
  3392. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "clickable", { get: function() {
  3393. return this._clickable;
  3394. }, set: function(t3) {
  3395. this._clickable !== t3 && (this._clickable = t3, ua().processClickable(this));
  3396. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "contextMenuDisabled", { get: function() {
  3397. return this._contextMenuDisabled;
  3398. }, set: function(t3) {
  3399. this._contextMenuDisabled !== t3 && (this._contextMenuDisabled = t3, ua().processContextMenu(this));
  3400. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverable", { get: function() {
  3401. return this._hoverable;
  3402. }, set: function(t3) {
  3403. this._hoverable !== t3 && (this._hoverable = t3, ua().processHoverable(this));
  3404. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "trackable", { get: function() {
  3405. return this._trackable;
  3406. }, set: function(t3) {
  3407. this._trackable !== t3 && (this._trackable = t3, ua().processTrackable(this));
  3408. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "draggable", { get: function() {
  3409. return this._draggable;
  3410. }, set: function(t3) {
  3411. this._draggable !== t3 && (this._draggable = t3, ua().processDraggable(this));
  3412. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "swipeable", { get: function() {
  3413. return this._swipeable;
  3414. }, set: function(t3) {
  3415. this._swipeable !== t3 && (this._swipeable = t3, ua().processSwipeable(this));
  3416. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "resizable", { get: function() {
  3417. return this._resizable;
  3418. }, set: function(t3) {
  3419. this._resizable !== t3 && (this._resizable = t3, ua().processResizable(this));
  3420. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wheelable", { get: function() {
  3421. return this._wheelable;
  3422. }, set: function(t3) {
  3423. this._wheelable !== t3 && (this._wheelable = t3, ua().processWheelable(this));
  3424. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inert", { get: function() {
  3425. return this._inert;
  3426. }, set: function(t3) {
  3427. this._inert !== t3 && (this._inert = t3);
  3428. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "focusable", { get: function() {
  3429. return this._focusable;
  3430. }, set: function(t3) {
  3431. this._focusable !== t3 && (this._focusable = t3, this._focusable && -1 == this.tabindex && (this._tabindex = 1), ua().processFocusable(this));
  3432. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tabindex", { get: function() {
  3433. return $(this._tabindex, -1);
  3434. }, set: function(t3) {
  3435. this._tabindex !== t3 && (this._tabindex = t3, t3 > -1 && (this.focusable = true), ua().processFocusable(this));
  3436. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "element", { get: function() {
  3437. return this._element;
  3438. }, set: function(t3) {
  3439. this._element = t3;
  3440. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "originalPosition", { get: function() {
  3441. return this._originalPosition || { x: 0, y: 0 };
  3442. }, set: function(t3) {
  3443. this._originalPosition = t3;
  3444. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "originalScale", { get: function() {
  3445. return $(this._originalScale, 1);
  3446. }, set: function(t3) {
  3447. this._originalScale !== t3 && (this._originalScale = t3);
  3448. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "originalAngle", { get: function() {
  3449. return $(this._originalAngle, 0);
  3450. }, set: function(t3) {
  3451. this._originalAngle !== t3 && (this._originalAngle = t3);
  3452. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inertiaOptions", { get: function() {
  3453. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("inertiaOptions", this._inertiaOptions) : this._inertiaOptions;
  3454. }, set: function(t3) {
  3455. this._inertiaOptions = t3;
  3456. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hitOptions", { get: function() {
  3457. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("hitOptions", this._hitOptions) : this._hitOptions;
  3458. }, set: function(t3) {
  3459. this._hitOptions = t3;
  3460. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverOptions", { get: function() {
  3461. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("hoverOptions", this._hoverOptions) : this._hoverOptions;
  3462. }, set: function(t3) {
  3463. this._hoverOptions = t3;
  3464. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "swipeOptions", { get: function() {
  3465. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("swipeOptions", this._swipeOptions) : this._swipeOptions;
  3466. }, set: function(t3) {
  3467. this._swipeOptions = t3;
  3468. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keyboardOptions", { get: function() {
  3469. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("keyboardOptions", this._keyboardOptions) : this._keyboardOptions;
  3470. }, set: function(t3) {
  3471. this._keyboardOptions = t3;
  3472. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mouseOptions", { get: function() {
  3473. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("mouseOptions", this._mouseOptions) : this._mouseOptions;
  3474. }, set: function(t3) {
  3475. this._mouseOptions = t3;
  3476. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorOptions", { get: function() {
  3477. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("cursorOptions", this._cursorOptions) : this._cursorOptions;
  3478. }, set: function(t3) {
  3479. this._cursorOptions = t3;
  3480. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  3481. t2.prototype.copyFrom.call(this, e4), this.inertiaOptions = e4.inertiaOptions, this.hitOptions = e4.hitOptions, this.hoverOptions = e4.hoverOptions, this.swipeOptions = e4.swipeOptions, this.keyboardOptions = e4.keyboardOptions, this.cursorOptions = e4.cursorOptions, this.contextMenuDisabled = e4.contextMenuDisabled, ua().applyCursorOverStyle(this);
  3482. }, e3.prototype.setEventDisposer = function(t3, e4, i3) {
  3483. var n3 = this.eventDisposers.getKey(t3);
  3484. e4 ? null == n3 && this.eventDisposers.setKey(t3, i3()) : null != n3 && (n3.dispose(), this.eventDisposers.removeKey(t3));
  3485. }, e3.prototype.dispose = function() {
  3486. t2.prototype.dispose.call(this);
  3487. var e4 = ua();
  3488. e4.overObjects.removeValue(this), e4.downObjects.removeValue(this), e4.trackedObjects.removeValue(this), e4.transformedObjects.removeValue(this), this.isHover && this.wheelable && e4.unlockWheel(), e4.focusedObject === this && (e4.focusedObject = void 0);
  3489. }, e3;
  3490. }(mn), Ks = function() {
  3491. function t2(t3, e3) {
  3492. this._disposed = false, this.directionX = 0, this.directionY = 0, this.interaction = t3, this.keyboardEvent = e3, this._startedOn = new Date().getTime(), ua().processDragStart(t3), Qa.animations.push(this), this.update();
  3493. }
  3494. return t2.prototype.update = function() {
  3495. var t3 = this.interaction, e3 = ua().getKeyboardOption(t3, "speed"), i3 = ua().getKeyboardOption(t3, "accelleration"), n3 = ua().getKeyboardOption(t3, "accellerationDelay"), r3 = { x: 0, y: 0 };
  3496. this.keyboardEvent.shiftKey ? (e3 *= 0.5, i3 = 1) : this.keyboardEvent.ctrlKey && (e3 *= 2);
  3497. var s2 = new Date().getTime() - this._startedOn, a2 = s2 - n3;
  3498. if (i3 > 0 && a2 > 0) {
  3499. var o3 = s2 / n3;
  3500. s2 = n3, r3.x += this.directionX * (e3 * i3 * o3 * a2), r3.y += this.directionY * (e3 * i3 * o3 * a2);
  3501. }
  3502. r3.x += this.directionX * (e3 * s2), r3.y += this.directionY * (e3 * s2), ua().handleTransformMove(t3, r3, { x: 0, y: 0 }, this.keyboardEvent, true, false);
  3503. }, t2.prototype.isDisposed = function() {
  3504. return this._disposed;
  3505. }, t2.prototype.dispose = function() {
  3506. this._disposed || (ua().processDragStop(this.interaction), ee(Qa.animations, this));
  3507. }, t2;
  3508. }(), Zs = function(t2) {
  3509. function e3(e4, i3, n3, r3) {
  3510. var s2 = t2.call(this) || this;
  3511. return s2.animations = [], s2.className = "Inertia", s2.interaction = e4, s2.type = i3, s2.point = n3, s2.startPoint = r3, s2._disposers.push(new gs(s2.animations)), s2;
  3512. }
  3513. return C(e3, t2), Object.defineProperty(e3.prototype, "x", { get: function() {
  3514. return this.point.x;
  3515. }, set: function(t3) {
  3516. tt(t3) && (this.point.x = t3, this.handleMove());
  3517. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y", { get: function() {
  3518. return this.point.y;
  3519. }, set: function(t3) {
  3520. tt(t3) && (this.point.y = t3, this.handleMove());
  3521. }, enumerable: true, configurable: true }), e3.prototype.handleMove = function() {
  3522. if (this.interaction.events.isEnabled("drag")) {
  3523. var t3 = { type: "drag", target: this.interaction, shift: { x: this.x - this.startPoint.x, y: this.y - this.startPoint.y }, startPoint: this.startPoint, point: { x: this.x, y: this.y }, touch: false };
  3524. this.interaction.events.dispatchImmediately("drag", t3);
  3525. }
  3526. }, e3.prototype.done = function() {
  3527. this.interaction.inertias.removeKey(this.type), "move" === this.type && ua().processDragStop(this.interaction), this.dispose();
  3528. }, e3;
  3529. }(yn), qs = function() {
  3530. function t2() {
  3531. }
  3532. return t2.prototype.getEventKey = function(t3) {
  3533. var e3;
  3534. switch (t3.keyCode || t3.which) {
  3535. case 38:
  3536. e3 = "up";
  3537. break;
  3538. case 40:
  3539. e3 = "down";
  3540. break;
  3541. case 37:
  3542. e3 = "left";
  3543. break;
  3544. case 39:
  3545. e3 = "right";
  3546. break;
  3547. case 13:
  3548. e3 = "enter";
  3549. break;
  3550. case 27:
  3551. e3 = "esc";
  3552. break;
  3553. case 36:
  3554. case 36:
  3555. e3 = "home";
  3556. break;
  3557. case 35:
  3558. case 35:
  3559. e3 = "end";
  3560. break;
  3561. case 9:
  3562. e3 = "tab";
  3563. break;
  3564. case 17:
  3565. e3 = "ctrl";
  3566. break;
  3567. case 18:
  3568. e3 = "alt";
  3569. break;
  3570. case 16:
  3571. e3 = "shift";
  3572. break;
  3573. case 32:
  3574. e3 = "space";
  3575. break;
  3576. case 33:
  3577. e3 = "pgup";
  3578. break;
  3579. case 34:
  3580. e3 = "pgdn";
  3581. break;
  3582. case 45:
  3583. e3 = "ins";
  3584. break;
  3585. case 46:
  3586. e3 = "del";
  3587. break;
  3588. case 107:
  3589. e3 = "plus";
  3590. break;
  3591. case 109:
  3592. e3 = "minus";
  3593. break;
  3594. default:
  3595. e3 = "other";
  3596. }
  3597. return e3;
  3598. }, t2.prototype.isKey = function(t3, e3) {
  3599. var i3 = this.getEventKey(t3);
  3600. return Q(e3) && (e3 = [e3]), -1 !== e3.indexOf(i3);
  3601. }, t2.prototype.shiftKey = function(t3) {
  3602. return t3.shiftKey;
  3603. }, t2.prototype.ctrlKey = function(t3) {
  3604. return t3.ctrlKey;
  3605. }, t2.prototype.altKey = function(t3) {
  3606. return t3.altKey;
  3607. }, t2.prototype.metaKey = function(t3) {
  3608. return t3.metaKey;
  3609. }, t2;
  3610. }(), $s = new qs(), Js = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5, month: 2592e6, year: 31536e6 };
  3611. function Qs(t2) {
  3612. switch (t2) {
  3613. case "year":
  3614. return;
  3615. case "month":
  3616. return "year";
  3617. case "week":
  3618. case "day":
  3619. return "month";
  3620. case "hour":
  3621. return "day";
  3622. case "minute":
  3623. return "hour";
  3624. case "second":
  3625. return "minute";
  3626. case "millisecond":
  3627. return "second";
  3628. }
  3629. }
  3630. function ta(t2, e3) {
  3631. return Z(e3) || (e3 = 1), Js[t2] * e3;
  3632. }
  3633. function ea() {
  3634. return new Date();
  3635. }
  3636. function ia() {
  3637. return ea().getTime();
  3638. }
  3639. function na(t2) {
  3640. return new Date(t2.getTime());
  3641. }
  3642. function ra(t2, e3, i3, n3) {
  3643. t2 = new Date(t2.getTime()), e3 = new Date(e3.getTime());
  3644. var r3 = 0, s2 = 0;
  3645. n3 || "millisecond" == i3 || (r3 = t2.getTimezoneOffset(), t2.setUTCMinutes(t2.getUTCMinutes() - r3), s2 = e3.getTimezoneOffset(), e3.setUTCMinutes(e3.getUTCMinutes() - s2));
  3646. var a2 = false;
  3647. switch (i3) {
  3648. case "year":
  3649. t2.getUTCFullYear() != e3.getUTCFullYear() && (a2 = true);
  3650. break;
  3651. case "month":
  3652. (t2.getUTCFullYear() != e3.getUTCFullYear() || t2.getUTCMonth() != e3.getUTCMonth()) && (a2 = true);
  3653. break;
  3654. case "day":
  3655. (t2.getUTCMonth() != e3.getUTCMonth() || t2.getUTCDate() != e3.getUTCDate()) && (a2 = true);
  3656. break;
  3657. case "hour":
  3658. t2.getUTCHours() != e3.getUTCHours() && (a2 = true);
  3659. break;
  3660. case "minute":
  3661. t2.getUTCMinutes() != e3.getUTCMinutes() && (a2 = true);
  3662. break;
  3663. case "second":
  3664. t2.getUTCSeconds() != e3.getUTCSeconds() && (a2 = true);
  3665. break;
  3666. case "millisecond":
  3667. t2.getTime() != e3.getTime() && (a2 = true);
  3668. }
  3669. if (a2)
  3670. return true;
  3671. var o3 = Qs(i3);
  3672. return !!o3 && (t2.setUTCMinutes(t2.getUTCMinutes() + r3), e3.setUTCMinutes(e3.getUTCMinutes() + s2), ra(t2, e3, o3, n3));
  3673. }
  3674. function sa(t2, e3, i3, n3) {
  3675. var r3 = 0;
  3676. switch (n3 || "millisecond" == e3 || (r3 = t2.getTimezoneOffset(), t2.setUTCMinutes(t2.getUTCMinutes() - r3)), e3) {
  3677. case "day":
  3678. var s2 = t2.getUTCDate();
  3679. t2.setUTCDate(s2 + i3);
  3680. break;
  3681. case "second":
  3682. var a2 = t2.getUTCSeconds();
  3683. t2.setUTCSeconds(a2 + i3);
  3684. break;
  3685. case "millisecond":
  3686. var o3 = t2.getUTCMilliseconds();
  3687. t2.setUTCMilliseconds(o3 + i3);
  3688. break;
  3689. case "hour":
  3690. var l2 = t2.getUTCHours();
  3691. t2.setUTCHours(l2 + i3);
  3692. break;
  3693. case "minute":
  3694. var h2 = t2.getUTCMinutes();
  3695. t2.setUTCMinutes(h2 + i3);
  3696. break;
  3697. case "year":
  3698. var p2 = t2.getUTCFullYear();
  3699. t2.setUTCFullYear(p2 + i3);
  3700. break;
  3701. case "month":
  3702. var u2 = t2.getUTCMonth();
  3703. t2.setUTCMonth(u2 + i3);
  3704. break;
  3705. case "week":
  3706. var d2 = t2.getUTCDate();
  3707. t2.setUTCDate(d2 + 7 * i3);
  3708. }
  3709. if (!n3 && "millisecond" != e3 && (t2.setUTCMinutes(t2.getUTCMinutes() + r3), "day" == e3 || "week" == e3 || "month" == e3 || "year" == e3)) {
  3710. var c2 = t2.getTimezoneOffset();
  3711. if (c2 != r3) {
  3712. var f2 = c2 - r3;
  3713. t2.setUTCMinutes(t2.getUTCMinutes() + f2), t2.getTimezoneOffset() != c2 && t2.setUTCMinutes(t2.getUTCMinutes() - f2);
  3714. }
  3715. }
  3716. return t2;
  3717. }
  3718. function aa(t2, e3, i3, n3, r3, s2, a2, o3) {
  3719. void 0 === a2 && (a2 = 0), tt(i3) || (i3 = 1);
  3720. var l2 = 0;
  3721. switch (o3 && -1 != ["day", "month", "week", "year"].indexOf(e3) && (t2 = oa(t2, o3)), r3 || "millisecond" == e3 || (l2 = t2.getTimezoneOffset(), t2.setUTCMinutes(t2.getUTCMinutes() - l2)), e3) {
  3722. case "day":
  3723. var h2 = t2.getUTCDate();
  3724. if (i3 > 1) {
  3725. if (s2) {
  3726. s2 = aa(s2, "day", 1);
  3727. var p2 = t2.getTime() - s2.getTime(), u2 = Math.floor(p2 / ta("day") / i3), d2 = ta("day", u2 * i3);
  3728. t2.setTime(s2.getTime() + d2 - l2 * ta("minute"));
  3729. }
  3730. } else
  3731. t2.setUTCDate(h2);
  3732. t2.setUTCHours(0, 0, 0, 0);
  3733. break;
  3734. case "second":
  3735. var c2 = t2.getUTCSeconds();
  3736. i3 > 1 && (c2 = Math.floor(c2 / i3) * i3), t2.setUTCSeconds(c2, 0);
  3737. break;
  3738. case "millisecond":
  3739. if (1 == i3)
  3740. return t2;
  3741. var f2 = t2.getUTCMilliseconds();
  3742. f2 = Math.floor(f2 / i3) * i3, t2.setUTCMilliseconds(f2);
  3743. break;
  3744. case "hour":
  3745. var g2 = t2.getUTCHours();
  3746. i3 > 1 && (g2 = Math.floor(g2 / i3) * i3), t2.setUTCHours(g2, a2, 0, 0);
  3747. break;
  3748. case "minute":
  3749. var y2 = t2.getUTCMinutes();
  3750. f2 = t2.getUTCMilliseconds(), i3 > 1 && (y2 = Math.floor(y2 / i3) * i3), t2.setUTCMinutes(y2, 0, 0);
  3751. break;
  3752. case "month":
  3753. var m2 = t2.getUTCMonth();
  3754. i3 > 1 && (m2 = Math.floor(m2 / i3) * i3), t2.setUTCMonth(m2, 1), t2.setUTCHours(0, a2, 0, 0);
  3755. break;
  3756. case "year":
  3757. var v2 = t2.getUTCFullYear();
  3758. i3 > 1 && (v2 = Math.floor(v2 / i3) * i3), t2.setUTCFullYear(v2, 0, 1), t2.setUTCHours(0, a2, 0, 0);
  3759. break;
  3760. case "week":
  3761. var b2 = t2.getUTCDate(), x2 = t2.getUTCDay();
  3762. tt(n3) || (n3 = 1), b2 = x2 >= n3 ? b2 - x2 + n3 : b2 - (7 + x2) + n3, t2.setUTCDate(b2), t2.setUTCHours(0, a2, 0, 0);
  3763. }
  3764. if (!r3 && "millisecond" != e3 && (t2.setUTCMinutes(t2.getUTCMinutes() + l2), "day" == e3 || "week" == e3 || "month" == e3 || "year" == e3)) {
  3765. var _2 = t2.getTimezoneOffset();
  3766. if (_2 != l2) {
  3767. var P2 = _2 - l2;
  3768. t2.setUTCMinutes(t2.getUTCMinutes() + P2);
  3769. }
  3770. }
  3771. return t2;
  3772. }
  3773. function oa(t2, e3) {
  3774. return new Date(t2.toLocaleString("en-US", { timeZone: e3 }));
  3775. }
  3776. function la(t2) {
  3777. var e3 = new Date();
  3778. return e3.setHours(0, 0, 0, 0), oa(e3, t2).getMinutes();
  3779. }
  3780. var ha = function(t2) {
  3781. function e3() {
  3782. var i3 = t2.call(this) || this;
  3783. return i3._globalEventsAdded = false, i3._pointerEvents = { pointerdown: "mousedown", pointerup: "mouseup", pointermove: "mousemove", pointercancel: "mouseup", pointerover: "mouseover", pointerout: "mouseout", wheel: "wheel" }, i3._usePointerEventsOnly = false, i3._useTouchEventsOnly = false, i3._addHoverEvents = true, i3._passiveSupported = false, i3._delayedEvents = { out: [] }, i3.overObjects = new Fi(), i3.downObjects = new Fi(), i3.trackedObjects = new Fi(), i3.transformedObjects = new Fi(), i3.pointers = new Pi(), i3.inertiaOptions = new Pi(), i3.hitOptions = { doubleHitTime: 300, hitTolerance: 10, noFocus: true }, i3.hoverOptions = { touchOutBehavior: "leave", touchOutDelay: 1e3 }, i3.swipeOptions = { time: 500, verticalThreshold: 75, horizontalThreshold: 30 }, i3.keyboardOptions = { speed: 0.1, accelleration: 1.2, accellerationDelay: 2e3 }, i3.mouseOptions = { sensitivity: 1 }, i3.className = "Interaction", i3.body = i3.getInteraction(document.body), i3._disposers.push(i3.body), window.hasOwnProperty("PointerEvent") ? (i3._pointerEvents.pointerdown = "pointerdown", i3._pointerEvents.pointerup = "pointerup", i3._pointerEvents.pointermove = "pointermove", i3._pointerEvents.pointercancel = "pointercancel", i3._pointerEvents.pointerover = "pointerover", i3._pointerEvents.pointerout = "pointerout") : window.hasOwnProperty("MSPointerEvent") ? (i3._pointerEvents.pointerdown = "MSPointerDown", i3._pointerEvents.pointerup = "MSPointerUp", i3._pointerEvents.pointermove = "MSPointerMove", i3._pointerEvents.pointercancel = "MSPointerUp", i3._pointerEvents.pointerover = "MSPointerOver", i3._pointerEvents.pointerout = "MSPointerOut") : "undefined" != typeof matchMedia && matchMedia("(pointer:fine)").matches ? "ontouchstart" in window && (i3._addHoverEvents = false, i3._useTouchEventsOnly = true) : window.navigator.userAgent.match(/MSIE /) || i3.fullFF() ? i3._usePointerEventsOnly = true : i3._useTouchEventsOnly = true, "onwheel" in document.createElement("div") ? i3._pointerEvents.wheel = "wheel" : Z(document.onmousewheel) && (i3._pointerEvents.wheel = "mousewheel"), i3.inertiaOptions.setKey("move", { time: 100, duration: 500, factor: 1, easing: jr }), i3.inertiaOptions.setKey("resize", { time: 100, duration: 500, factor: 1, easing: jr }), i3._passiveSupported = e3.passiveSupported, i3.applyTheme(), i3;
  3784. }
  3785. return C(e3, t2), e3.prototype.fullFF = function() {
  3786. return window.navigator.userAgent.match(/Firefox/) && !window.navigator.userAgent.match(/Android/);
  3787. }, e3.prototype.debug = function() {
  3788. }, e3.prototype.addGlobalEvents = function() {
  3789. var t3 = this;
  3790. this._globalEventsAdded || (this._useTouchEventsOnly || (this._disposers.push(xs(document, this._pointerEvents.pointerdown, function(e4) {
  3791. t3.handleGlobalPointerDown(e4);
  3792. })), this._disposers.push(xs(document, this._pointerEvents.pointermove, function(e4) {
  3793. t3.handleGlobalPointerMove(e4);
  3794. })), this._disposers.push(xs(document, this._pointerEvents.pointerup, function(e4) {
  3795. t3.handleGlobalPointerUp(e4);
  3796. })), this._disposers.push(xs(document, this._pointerEvents.pointercancel, function(e4) {
  3797. t3.handleGlobalPointerUp(e4, true);
  3798. })), this._disposers.push(xs(document, "mouseenter", function(e4) {
  3799. Z(e4.relatedTarget) || 0 != e4.buttons && 0 != e4.which || t3.handleDocumentLeave(e4);
  3800. }))), this._usePointerEventsOnly || (this._disposers.push(xs(document, "touchstart", function(e4) {
  3801. t3.handleGlobalTouchStart(e4);
  3802. })), this._disposers.push(xs(document, "touchmove", function(e4) {
  3803. t3.handleGlobalTouchMove(e4);
  3804. })), this._disposers.push(xs(document, "touchend", function(e4) {
  3805. t3.handleGlobalTouchEnd(e4);
  3806. }))), this._disposers.push(xs(document, "keydown", function(e4) {
  3807. t3.handleGlobalKeyDown(e4);
  3808. })), this._disposers.push(xs(document, "keyup", function(e4) {
  3809. t3.handleGlobalKeyUp(e4);
  3810. })), this._globalEventsAdded = true);
  3811. }, e3.prototype.processClickable = function(t3) {
  3812. this.processTouchable(t3);
  3813. }, e3.prototype.processContextMenu = function(t3) {
  3814. t3.contextMenuDisabled ? t3.eventDisposers.hasKey("contextMenuDisabled") || t3.eventDisposers.setKey("contextMenuDisabled", xs(t3.element, "contextmenu", function(t4) {
  3815. t4.preventDefault();
  3816. })) : t3.eventDisposers.hasKey("contextMenuDisabled") && t3.eventDisposers.getKey("contextMenuDisabled").dispose();
  3817. }, e3.prototype.processHoverable = function(t3) {
  3818. var e4 = this;
  3819. if (t3.hoverable || t3.trackable)
  3820. this.addGlobalEvents(), this.applyCursorOverStyle(t3), !t3.eventDisposers.hasKey("hoverable") && this._addHoverEvents && t3.eventDisposers.setKey("hoverable", new me([xs(t3.element, this._pointerEvents.pointerout, function(i4) {
  3821. return e4.handlePointerOut(t3, i4);
  3822. }), xs(t3.element, this._pointerEvents.pointerover, function(i4) {
  3823. return e4.handlePointerOver(t3, i4);
  3824. })])), t3.trackable;
  3825. else {
  3826. var i3 = t3.eventDisposers.getKey("hoverable");
  3827. null != i3 && (i3.dispose(), t3.eventDisposers.removeKey("hoverable"));
  3828. }
  3829. this.processTouchable(t3);
  3830. }, e3.prototype.processMovable = function(t3) {
  3831. (t3.draggable || t3.swipeable || t3.trackable || t3.resizable) && (this.isGlobalElement(t3) || t3.isTouchProtected || this.prepElement(t3), this.applyCursorOverStyle(t3)), this.processTouchable(t3);
  3832. }, e3.prototype.processTrackable = function(t3) {
  3833. this.processHoverable(t3), this.processMovable(t3), t3.trackable ? this.trackedObjects.moveValue(t3) : this.trackedObjects.removeValue(t3);
  3834. }, e3.prototype.processDraggable = function(t3) {
  3835. this.processMovable(t3);
  3836. }, e3.prototype.processSwipeable = function(t3) {
  3837. this.processMovable(t3);
  3838. }, e3.prototype.processResizable = function(t3) {
  3839. this.processMovable(t3);
  3840. }, e3.prototype.processWheelable = function(t3) {
  3841. var e4 = this;
  3842. if (t3.wheelable)
  3843. t3.eventDisposers.hasKey("wheelable") || t3.eventDisposers.setKey("wheelable", new me([xs(t3.element, this._pointerEvents.wheel, function(i4) {
  3844. return e4.handleMouseWheel(t3, i4);
  3845. }, !!this._passiveSupported && { passive: false }), t3.events.on("out", function(i4) {
  3846. t3.wheelable && e4.unlockWheel();
  3847. }), t3.events.on("over", function(i4) {
  3848. t3.wheelable && e4.lockWheel();
  3849. })]));
  3850. else {
  3851. var i3 = t3.eventDisposers.getKey("wheelable");
  3852. null != i3 && (i3.dispose(), t3.eventDisposers.removeKey("wheelable"));
  3853. }
  3854. }, e3.prototype.processFocusable = function(t3) {
  3855. var e4 = this;
  3856. if (true === t3.focusable && t3.tabindex > -1 && !this._useTouchEventsOnly)
  3857. t3.eventDisposers.hasKey("focusable") || t3.eventDisposers.setKey("focusable", new me([xs(t3.element, "focus", function(i4) {
  3858. return e4.handleFocus(t3, i4);
  3859. }), xs(t3.element, "blur", function(i4) {
  3860. return e4.handleBlur(t3, i4);
  3861. }), xs(t3.element, this._pointerEvents.pointerdown, function(i4) {
  3862. return e4.handleFocusBlur(t3, i4);
  3863. }), xs(t3.element, "touchstart", function(i4) {
  3864. return e4.handleFocusBlur(t3, i4);
  3865. }, !!this._passiveSupported && { passive: false })]));
  3866. else {
  3867. var i3 = t3.eventDisposers.getKey("focusable");
  3868. null != i3 && (i3.dispose(), t3.eventDisposers.removeKey("focusable"));
  3869. }
  3870. }, e3.prototype.processTouchable = function(t3) {
  3871. var e4 = this;
  3872. if (t3.clickable || t3.hoverable || t3.trackable || t3.draggable || t3.swipeable || t3.resizable)
  3873. this.addGlobalEvents(), t3.eventDisposers.hasKey("touchable") || (this._useTouchEventsOnly || this._usePointerEventsOnly ? this._useTouchEventsOnly ? this._usePointerEventsOnly || t3.eventDisposers.setKey("touchable", xs(t3.element, "touchstart", function(i4) {
  3874. return e4.handleTouchDown(t3, i4);
  3875. }, !!this._passiveSupported && { passive: false })) : t3.eventDisposers.setKey("touchable", xs(t3.element, this._pointerEvents.pointerdown, function(i4) {
  3876. return e4.handlePointerDown(t3, i4);
  3877. })) : t3.eventDisposers.setKey("touchable", new me([xs(t3.element, this._pointerEvents.pointerdown, function(i4) {
  3878. return e4.handlePointerDown(t3, i4);
  3879. }), xs(t3.element, "touchstart", function(i4) {
  3880. return e4.handleTouchDown(t3, i4);
  3881. }, !!this._passiveSupported && { passive: false })])));
  3882. else {
  3883. var i3 = t3.eventDisposers.getKey("touchable");
  3884. null != i3 && (i3.dispose(), t3.eventDisposers.removeKey("touchable"));
  3885. }
  3886. }, e3.prototype.handleFocus = function(t3, e4) {
  3887. if (t3.focusable) {
  3888. if (t3.isFocused = true, t3.events.isEnabled("focus") && !Qa.isPaused) {
  3889. var i3 = { type: "focus", target: t3, event: e4 };
  3890. t3.events.dispatchImmediately("focus", i3);
  3891. }
  3892. } else
  3893. e4.preventDefault();
  3894. }, e3.prototype.handleFocusBlur = function(t3, e4) {
  3895. false !== t3.focusable && this.getHitOption(t3, "noFocus") && t3.events.once("focus", function() {
  3896. t3.events.disableType("blur"), Ss(), t3.sprite && t3.sprite.handleBlur(), t3.events.enableType("blur");
  3897. });
  3898. }, e3.prototype.handleBlur = function(t3, e4) {
  3899. if (t3.focusable) {
  3900. if (t3.isFocused = false, t3.events.isEnabled("blur") && !Qa.isPaused) {
  3901. var i3 = { type: "blur", target: t3, event: e4 };
  3902. t3.events.dispatchImmediately("blur", i3);
  3903. }
  3904. } else
  3905. e4.preventDefault();
  3906. }, e3.prototype.handleGlobalKeyDown = function(t3) {
  3907. if (this.focusedObject) {
  3908. if ($s.isKey(t3, "esc"))
  3909. Ss();
  3910. else if (this.focusedObject.draggable && $s.isKey(t3, ["up", "down", "left", "right"])) {
  3911. t3.preventDefault();
  3912. var e4 = this.focusedObject, i3 = "interactionKeyboardObject";
  3913. if (e4.eventDisposers.hasKey(i3))
  3914. return;
  3915. var n3 = new Ks(e4, t3);
  3916. switch (e4.eventDisposers.setKey(i3, n3), $s.getEventKey(t3)) {
  3917. case "up":
  3918. n3.directionY = -1;
  3919. break;
  3920. case "down":
  3921. n3.directionY = 1;
  3922. break;
  3923. case "left":
  3924. n3.directionX = -1;
  3925. break;
  3926. case "right":
  3927. n3.directionX = 1;
  3928. }
  3929. }
  3930. }
  3931. }, e3.prototype.handleGlobalKeyUp = function(t3) {
  3932. var e4 = "interactionKeyboardObject";
  3933. if (this.focusedObject) {
  3934. var i3 = this.focusedObject.eventDisposers.getKey(e4);
  3935. null != i3 && (t3.preventDefault(), i3.dispose(), this.focusedObject.eventDisposers.removeKey(e4));
  3936. var n3 = this.focusedObject.sprite;
  3937. $s.isKey(t3, "enter") && n3 && (n3.events.isEnabled("hit") || n3.events.isEnabled("toggled") ? this.focusedObject.dispatchImmediately("hit") : "hit" == n3.showTooltipOn && this.focusedObject.dispatchImmediately("up"));
  3938. }
  3939. }, e3.prototype.handleGlobalPointerMove = function(t3) {
  3940. var e4 = this.getPointer(t3);
  3941. if (e4.point = this.getPointerPoint(t3), this.events.isEnabled("track") && !Qa.isPaused) {
  3942. var i3 = { type: "track", target: this, event: t3, pointer: e4, touch: e4.touch };
  3943. this.events.dispatchImmediately("track", i3);
  3944. }
  3945. this.addBreadCrumb(e4, e4.point), this.handleGlobalMove(e4, t3);
  3946. }, e3.prototype.handleGlobalPointerDown = function(t3) {
  3947. this.processDelayed();
  3948. var e4 = this.getPointer(t3);
  3949. if (this.events.isEnabled("down") && !Qa.isPaused) {
  3950. var i3 = { type: "down", target: this, event: t3, pointer: e4, touch: e4.touch };
  3951. this.events.dispatchImmediately("down", i3);
  3952. }
  3953. }, e3.prototype.preventTouchAction = function(t3) {
  3954. t3.defaultPrevented || t3.preventDefault();
  3955. }, e3.prototype.handleGlobalPointerUp = function(t3, e4) {
  3956. void 0 === e4 && (e4 = false);
  3957. var i3 = this.getPointer(t3);
  3958. if (this.events.isEnabled("up") && !Qa.isPaused) {
  3959. var n3 = { type: "up", target: this, event: t3, pointer: i3, touch: i3.touch };
  3960. this.events.dispatchImmediately("up", n3);
  3961. }
  3962. this.handleGlobalUp(i3, t3, e4);
  3963. }, e3.prototype.handleGlobalTouchMove = function(t3) {
  3964. for (var e4 = 0; e4 < t3.changedTouches.length; e4++) {
  3965. var i3 = this.getPointer(t3.changedTouches[e4]);
  3966. if (i3.point = this.getPointerPoint(t3.changedTouches[e4]), this.events.isEnabled("track") && !Qa.isPaused) {
  3967. var n3 = { type: "track", target: this, event: t3, pointer: i3, touch: i3.touch };
  3968. this.events.dispatchImmediately("track", n3);
  3969. }
  3970. this.addBreadCrumb(i3, i3.point), this.handleGlobalMove(i3, t3);
  3971. }
  3972. }, e3.prototype.handleGlobalTouchStart = function(t3) {
  3973. this.processDelayed();
  3974. for (var e4 = 0; e4 < t3.changedTouches.length; e4++) {
  3975. var i3 = this.getPointer(t3.changedTouches[e4]);
  3976. if (!this._usePointerEventsOnly && this.events.isEnabled("down") && !Qa.isPaused) {
  3977. var n3 = { type: "down", target: this, event: t3, pointer: i3, touch: i3.touch };
  3978. this.events.dispatchImmediately("down", n3);
  3979. }
  3980. }
  3981. }, e3.prototype.handleGlobalTouchEnd = function(t3) {
  3982. for (var e4 = 0; e4 < t3.changedTouches.length; e4++) {
  3983. var i3 = this.getPointer(t3.changedTouches[e4]);
  3984. if (this.events.isEnabled("up") && !Qa.isPaused) {
  3985. var n3 = { type: "up", target: this, event: t3, pointer: i3, touch: i3.touch };
  3986. this.events.dispatchImmediately("up", n3);
  3987. }
  3988. this.handleGlobalUp(i3, t3);
  3989. }
  3990. }, e3.prototype.handlePointerDown = function(t3, e4) {
  3991. var i3 = this.getPointer(e4);
  3992. (i3.touch || 1 == e4.which || 3 == e4.which) && (i3.button = e4.which, this.resetPointer(i3, e4), this.handleDown(t3, i3, e4));
  3993. }, e3.prototype.handlePointerOver = function(t3, e4) {
  3994. var i3 = this.getPointer(e4);
  3995. this.handleOver(t3, i3, e4);
  3996. }, e3.prototype.handlePointerOut = function(t3, e4) {
  3997. var i3 = this.getPointer(e4);
  3998. this.handleOut(t3, i3, e4);
  3999. }, e3.prototype.handleMouseWheel = function(t3, e4) {
  4000. var i3 = this.getPointer(e4);
  4001. i3.point = this.getPointerPoint(e4);
  4002. var n3, r3, s2 = 1;
  4003. if (1 == e4.deltaMode && (s2 = 50), s2 *= this.getMouseOption(t3, "sensitivity"), !(e4 instanceof WheelEvent))
  4004. throw new Error("Invalid event type");
  4005. n3 = Math.round(-1 * e4.wheelDeltaX || e4.deltaX * s2), r3 = Math.round(-1 * e4.wheelDeltaY || e4.deltaY * s2), this.handleWheel(t3, i3, n3, r3, e4);
  4006. }, e3.prototype.handleTouchDown = function(t3, e4) {
  4007. for (var i3 = 0; i3 < e4.changedTouches.length; i3++) {
  4008. var n3 = this.getPointer(e4.changedTouches[i3]);
  4009. this.maybePreventDefault(t3, e4, n3), this.resetPointer(n3, e4.changedTouches[i3]), this.handleDown(t3, n3, e4);
  4010. }
  4011. }, e3.prototype.handleHit = function(t3, e4, i3) {
  4012. var n3 = ia();
  4013. if (t3.lastHit && t3.lastHit >= n3 - this.getHitOption(t3, "doubleHitTime")) {
  4014. if (n3 - t3.lastHit < 100)
  4015. return;
  4016. if (t3.lastHit = void 0, t3.lastHitPointer = void 0, t3.events.isEnabled("doublehit") && !Qa.isPaused) {
  4017. var r3 = { type: "doublehit", target: t3, point: e4.point, event: i3, touch: e4.touch };
  4018. t3.events.dispatchImmediately("doublehit", r3);
  4019. }
  4020. } else
  4021. t3.lastHit = n3, t3.lastHitPointer = e4, 3 === e4.button ? t3.events.isEnabled("rightclick") && !Qa.isPaused && (r3 = { type: "rightclick", target: t3, event: i3 }, t3.events.dispatchImmediately("rightclick", r3)) : t3.events.isEnabled("hit") && !Qa.isPaused && (r3 = { type: "hit", target: t3, event: i3, point: e4.point, touch: e4.touch }, t3.events.dispatchImmediately("hit", r3));
  4022. }, e3.prototype.handleOver = function(t3, e4, i3, n3) {
  4023. if (t3.hoverable) {
  4024. var r3 = false;
  4025. if (this.shouldCancelHovers(e4) && this.areTransformed() && this.moved(e4, this.getHitOption(t3, "hitTolerance")) && (r3 = true, this.cancelAllHovers(i3)), this.processDelayed(), t3.overPointers.moveValue(e4), !t3.isRealHover && (r3 || (t3.isHover = true, t3.isRealHover = true, this.overObjects.moveValue(t3)), this.handleTrack(this.body, e4, i3, true), t3.events.isEnabled("over") && !Qa.isPaused && !r3)) {
  4026. var s2 = { type: "over", target: t3, event: i3, pointer: e4, touch: e4.touch };
  4027. t3.events.dispatchImmediately("over", s2);
  4028. }
  4029. }
  4030. }, e3.prototype.handleOut = function(t3, e4, i3, n3, r3) {
  4031. var s2 = this;
  4032. if (void 0 === n3 && (n3 = false), void 0 === r3 && (r3 = false), t3.hoverable && (t3.overPointers.removeValue(e4), t3.isHover && (!t3.hasDelayedOut || r3))) {
  4033. if (n3 && t3.overPointers.length)
  4034. return;
  4035. if (e4 && e4.touch && !r3 && !this.old(e4)) {
  4036. var a2 = this.getHoverOption(t3, "touchOutBehavior");
  4037. if ("leave" == a2)
  4038. return this._delayedEvents.out.push({ type: "out", io: t3, pointer: e4, event: i3, keepUntil: ia() + 500 }), void (t3.hasDelayedOut = true);
  4039. if ("delay" == a2 && this.getHoverOption(t3, "touchOutDelay"))
  4040. return void this._delayedEvents.out.push({ type: "out", io: t3, pointer: e4, event: i3, keepUntil: ia() + 500, timeout: this.setTimeout(function() {
  4041. s2.handleOut(t3, e4, i3, true);
  4042. }, this.getHoverOption(t3, "touchOutDelay")) });
  4043. }
  4044. if (t3.isHover = false, this.overObjects.removeValue(t3), !t3.isDisposed() && t3.events.isEnabled("out") && !Qa.isPaused) {
  4045. var o3 = { type: "out", target: t3, event: i3, pointer: e4, touch: e4.touch };
  4046. t3.events.dispatchImmediately("out", o3);
  4047. }
  4048. t3.overPointers.clear(), t3.hasDelayedOut = false;
  4049. }
  4050. }, e3.prototype.processDelayed = function() {
  4051. for (var t3; t3 = this._delayedEvents.out.pop(); )
  4052. t3.timeout && t3.timeout.dispose(), this.handleOut(t3.io, t3.pointer, t3.event, false, true);
  4053. }, e3.prototype.handleDown = function(t3, e4, i3) {
  4054. if (this.maybePreventDefault(t3, i3, e4), t3.inert && this.stopInertia(t3), this.handleOver(t3, e4, i3, true), t3.downPointers.moveValue(e4), this.applyCursorDownStyle(t3, e4), t3.isDown || (false !== t3.focusable && this.getHitOption(t3, "noFocus") && this.focusedObject && Ss(), t3.isDown = true, this.downObjects.moveValue(t3), t3.draggable && this.processDragStart(t3, e4, i3), t3.resizable && this.processResizeStart(t3, e4, i3)), t3.events.isEnabled("down") && !Qa.isPaused) {
  4055. var n3 = { type: "down", target: t3, event: i3, pointer: e4, touch: e4.touch };
  4056. t3.events.dispatchImmediately("down", n3);
  4057. }
  4058. }, e3.prototype.handleGlobalUp = function(t3, e4, i3) {
  4059. var n3 = this;
  4060. void 0 === i3 && (i3 = false);
  4061. var r3 = this.downObjects.values.slice();
  4062. r3.sort(function(t4, e5) {
  4063. if (t4 && e5) {
  4064. var i4 = t4.element.compareDocumentPosition(e5.element);
  4065. return i4 & Node.DOCUMENT_POSITION_CONTAINED_BY ? 1 : i4 & Node.DOCUMENT_POSITION_CONTAINS ? -1 : 0;
  4066. }
  4067. return 0;
  4068. }), Ut(r3, function(r4) {
  4069. r4 && r4.downPointers.contains(t3) && n3.handleUp(r4, t3, e4, i3);
  4070. });
  4071. }, e3.prototype.handleDocumentLeave = function(t3) {
  4072. var e4 = this;
  4073. ti(this.downObjects.backwards().iterator(), function(i3) {
  4074. i3.downPointers.each(function(n3) {
  4075. e4.handleUp(i3, n3, t3);
  4076. });
  4077. });
  4078. }, e3.prototype.handleUp = function(t3, e4, i3, n3) {
  4079. if (void 0 === n3 && (n3 = false), this.restoreCursorDownStyle(t3, e4), t3.downPointers.removeValue(e4), (e4.touch || this._useTouchEventsOnly) && this.handleOut(t3, e4, i3, true), t3.isDown) {
  4080. if (0 == t3.downPointers.length && (t3.isDown = false, this.downObjects.removeValue(t3)), t3.events.isEnabled("up") && !Qa.isPaused) {
  4081. var r3 = { type: "up", target: t3, event: i3, pointer: e4, touch: e4.touch };
  4082. t3.events.dispatchImmediately("up", r3);
  4083. }
  4084. n3 || (t3.swipeable && this.swiped(t3, e4) ? this.handleSwipe(t3, e4, i3) : (t3.clickable && !this.moved(e4, this.getHitOption(t3, "hitTolerance")) && this.handleHit(t3, e4, i3), t3.inert && this.moved(e4, this.getHitOption(t3, "hitTolerance")) ? this.handleInertia(t3, e4) : t3.draggable && this.processDragStop(t3, e4, i3), t3.resizable && this.processResizeStop(t3, e4, i3)));
  4085. }
  4086. }, e3.prototype.maybePreventDefault = function(t3, e4, i3) {
  4087. !Z(e4) || !(t3.draggable || t3.swipeable || t3.trackable || t3.resizable) || this.isGlobalElement(t3) || false === e4.cancelable || t3.isTouchProtected && i3 && i3.touch || e4.preventDefault();
  4088. }, e3.prototype.cancelAllHovers = function(t3) {
  4089. var e4 = this;
  4090. ti(this.overObjects.backwards().iterator(), function(i3) {
  4091. if (i3) {
  4092. var n3 = i3.overPointers.getIndex(0);
  4093. e4.handleOut(i3, n3, t3, true, true);
  4094. }
  4095. });
  4096. }, e3.prototype.shouldCancelHovers = function(t3) {
  4097. return "always" == ls.disableHoverOnTransform || "touch" == ls.disableHoverOnTransform && t3.touch;
  4098. }, e3.prototype.handleGlobalMove = function(t3, e4) {
  4099. var i3, n3 = this;
  4100. if (!t3.touch) {
  4101. var r3 = "function" == typeof (i3 = t3.lastEvent).composedPath ? i3.composedPath()[0] : i3.target;
  4102. ti(this.overObjects.backwards().iterator(), function(i4) {
  4103. if (i4 && i4.overPointers.contains(t3) && i4.hoverable) {
  4104. var s2 = false;
  4105. i4.element && t3.lastEvent && Ts(i4.element, r3) || (s2 = true), s2 && n3.handleOut(i4, t3, e4, true);
  4106. }
  4107. });
  4108. }
  4109. ti(this.transformedObjects.backwards().iterator(), function(i4) {
  4110. !i4.downPointers.contains(t3) || i4.swipeable && n3.swiping(i4, t3) || !i4.draggable && !i4.resizable || n3.handleTransform(i4, e4);
  4111. }), ti(this.trackedObjects.backwards().iterator(), function(i4) {
  4112. i4.overPointers.contains(t3) || n3.handleTrack(i4, t3, e4);
  4113. });
  4114. }, e3.prototype.handleTrack = function(t3, e4, i3, n3) {
  4115. if (void 0 === n3 && (n3 = false), (n3 || this.moved(e4, 0)) && t3.events.isEnabled("track") && !Qa.isPaused) {
  4116. var r3 = { type: "track", target: t3, event: i3, point: e4.point, pointer: e4, touch: e4.touch };
  4117. t3.events.dispatchImmediately("track", r3);
  4118. }
  4119. }, e3.prototype.handleSwipe = function(t3, e4, i3) {
  4120. if (t3.events.isEnabled("swipe") && !Qa.isPaused) {
  4121. var n3 = { type: "swipe", target: t3, event: i3, touch: e4.touch };
  4122. t3.events.dispatchImmediately("swipe", n3);
  4123. }
  4124. e4.startPoint.x < e4.point.x ? t3.events.isEnabled("swiperight") && !Qa.isPaused && (n3 = { type: "swiperight", target: t3, event: i3, touch: e4.touch }, t3.events.dispatchImmediately("swiperight", n3)) : t3.events.isEnabled("swipeleft") && !Qa.isPaused && (n3 = { type: "swipeleft", target: t3, event: i3, touch: e4.touch }, t3.events.dispatchImmediately("swipeleft", n3));
  4125. }, e3.prototype.handleWheel = function(t3, e4, i3, n3, r3) {
  4126. var s2 = { x: i3, y: n3 };
  4127. t3.events.isEnabled("wheel") && !Qa.isPaused && t3.events.dispatchImmediately("wheel", { type: "wheel", target: t3, event: r3, point: e4.point, shift: s2 }), i3 < 0 ? t3.events.isEnabled("wheelleft") && !Qa.isPaused && t3.events.dispatchImmediately("wheelleft", { type: "wheelleft", target: t3, event: r3, point: e4.point, shift: s2 }) : i3 > 0 ? t3.events.isEnabled("swiperight") && !Qa.isPaused && t3.events.dispatchImmediately("wheelright", { type: "wheelright", target: t3, event: r3, point: e4.point, shift: s2 }) : n3 < 0 ? t3.events.isEnabled("wheelup") && !Qa.isPaused && t3.events.dispatchImmediately("wheelup", { type: "wheelup", target: t3, event: r3, point: e4.point, shift: s2 }) : n3 > 0 && t3.events.isEnabled("wheeldown") && !Qa.isPaused && t3.events.dispatchImmediately("wheeldown", { type: "wheeldown", target: t3, event: r3, point: e4.point, shift: s2 });
  4128. }, e3.prototype.handleInertia = function(t3, e4) {
  4129. t3.draggable && 0 === t3.downPointers.length && this.handleMoveInertia(t3, e4), t3.resizable && t3.downPointers.length > 1 && this.handleResizeInertia(t3, e4);
  4130. }, e3.prototype.handleMoveInertia = function(t3, e4) {
  4131. var i3 = t3, n3 = { x: e4.point.x, y: e4.point.y }, r3 = { x: e4.startPoint.x, y: e4.startPoint.y }, s2 = new Zs(i3, "move", n3, r3), a2 = this.getTrailPoint(e4, ia() - this.getInertiaOption(t3, "move", "time"));
  4132. if (void 0 !== a2) {
  4133. var o3 = this.getInertiaOption(t3, "move", "factor"), l2 = [{ to: e4.point.x + (e4.point.x - a2.point.x) * o3, property: "x" }, { to: e4.point.y + (e4.point.y - a2.point.y) * o3, property: "y" }], h2 = new ys(s2, l2, this.getInertiaOption(t3, "move", "duration"), this.getInertiaOption(t3, "move", "easing")).start();
  4134. this._disposers.push(h2.events.on("animationended", function(t4) {
  4135. s2.done();
  4136. })), t3.inertias.setKey("move", s2);
  4137. } else
  4138. this.processDragStop(t3, e4, e4.lastUpEvent);
  4139. }, e3.prototype.handleResizeInertia = function(t3, e4) {
  4140. }, e3.prototype.handleTransform = function(t3, e4) {
  4141. var i3, n3, r3, s2 = t3.downPointers.getIndex(0), a2 = null, o3 = null;
  4142. s2 && (a2 = s2.point, o3 = s2.startPoint), r3 = n3 = { x: t3.originalPosition.x, y: t3.originalPosition.y };
  4143. for (var l2 = true, h2 = 1; h2 < t3.downPointers.length; h2++) {
  4144. var p2 = t3.downPointers.getIndex(h2);
  4145. if (o3.x != p2.startPoint.x && o3.y != p2.startPoint.y) {
  4146. l2 = false, n3 = (i3 = p2).point, r3 = i3.startPoint;
  4147. break;
  4148. }
  4149. }
  4150. var u2 = s2 && this.moved(s2, 0);
  4151. if (t3.draggable && s2 && s2.dragStartEvents && s2.dragStartEvents.length && u2 && t3.events.isEnabled("dragstart") && !Qa.isPaused && t3.events.dispatchImmediately("dragstart", s2.dragStartEvents.shift()), l2 && t3.draggable)
  4152. this.handleTransformMove(t3, a2, o3, e4, u2, s2.touch), this.shouldCancelHovers(s2) && this.moved(s2, this.getHitOption(t3, "hitTolerance")) && this.cancelAllHovers(e4);
  4153. else {
  4154. var d2 = i3 && this.moved(i3, 0);
  4155. (this.shouldCancelHovers(s2) && this.moved(s2, this.getHitOption(t3, "hitTolerance")) || this.shouldCancelHovers(i3) && this.moved(i3, this.getHitOption(t3, "hitTolerance"))) && this.cancelAllHovers(e4), t3.draggable && t3.resizable ? (this.handleTransformMove(t3, a2, o3, e4, u2 && d2, s2.touch), this.handleTransformResize(t3, a2, o3, n3, r3, e4, u2 && d2, s2.touch)) : (t3.draggable && this.handleTransformMove(t3, a2, o3, e4, u2, s2.touch), !t3.resizable || l2 && !e4.ctrlKey || this.handleTransformResize(t3, a2, o3, n3, r3, e4, u2 && d2, s2.touch));
  4156. }
  4157. }, e3.prototype.handleTransformMove = function(t3, e4, i3, n3, r3, s2) {
  4158. if (r3 && t3.events.isEnabled("drag") && !Qa.isPaused && (!t3.isTouchProtected || !s2)) {
  4159. var a2 = { type: "drag", target: t3, event: n3, shift: { x: e4.x - i3.x, y: e4.y - i3.y }, startPoint: i3, point: e4, touch: s2 };
  4160. t3.events.dispatchImmediately("drag", a2);
  4161. }
  4162. }, e3.prototype.handleTransformResize = function(t3, e4, i3, n3, r3, s2, a2, o3) {
  4163. if (t3.events.isEnabled("resize") && !Qa.isPaused && (!t3.isTouchProtected || !o3)) {
  4164. var l2 = { type: "resize", target: t3, event: s2, scale: Ot(e4, i3, n3, r3), startPoint1: i3, point1: e4, startPoint2: r3, point2: n3, touch: o3 };
  4165. t3.events.dispatchImmediately("resize", l2);
  4166. }
  4167. }, e3.prototype.processDragStart = function(t3, e4, i3) {
  4168. this.transformedObjects.moveValue(t3), this.shouldCancelHovers(e4) && this.cancelAllHovers(i3);
  4169. var n3 = { type: "dragstart", target: t3, event: i3, touch: !!e4 && e4.touch };
  4170. e4 && (e4.dragTarget = t3), e4 && e4.dragStartEvents ? e4.dragStartEvents.push(n3) : Qa.isPaused || t3.dispatchImmediately("dragstart", n3);
  4171. }, e3.prototype.processDragStop = function(t3, e4, i3) {
  4172. if (e4 || (e4 = this.getDragPointer(t3)), e4 && (e4.dragTarget = void 0), this.transformedObjects.removeValue(t3), (!e4 || this.moved(e4, 0)) && t3.events.isEnabled("dragstop") && !Qa.isPaused) {
  4173. var n3 = { type: "dragstop", target: t3, touch: !!e4 && e4.touch };
  4174. t3.events.dispatchImmediately("dragstop", n3);
  4175. }
  4176. }, e3.prototype.processResizeStart = function(t3, e4, i3) {
  4177. this.transformedObjects.moveValue(t3);
  4178. }, e3.prototype.processResizeStop = function(t3, e4, i3) {
  4179. this.transformedObjects.removeValue(t3);
  4180. }, e3.prototype.dragStart = function(t3, e4) {
  4181. e4 || (e4 = this.getDragPointer(t3)), e4 && this.handleDown(t3, e4, e4.lastDownEvent);
  4182. }, e3.prototype.dragStop = function(t3, e4, i3) {
  4183. e4 || (e4 = this.getDragPointer(t3)), e4 && !i3 && this.handleGlobalUp(e4, e4.lastUpEvent, i3);
  4184. }, e3.prototype.getDragPointer = function(t3) {
  4185. return t3 ? t3.downPointers.getIndex(0) : this.transformedObjects.length ? this.getDragPointer(this.transformedObjects.getIndex(0)) : void 0;
  4186. }, e3.prototype.getPointerId = function(t3) {
  4187. return (Z(t3.identifier) ? "" + t3.identifier : Z(t3.pointerId) ? "" + t3.pointerId : "m").replace("-", "");
  4188. }, e3.prototype.getPointerPoint = function(t3) {
  4189. return { x: t3.clientX, y: t3.clientY };
  4190. }, e3.prototype.getPointer = function(t3) {
  4191. var e4, i3 = this.getPointerId(t3), n3 = this.getPointerPoint(t3);
  4192. return this.pointers.hasKey(i3) ? (e4 = this.pointers.getKey(i3)).touch = this.isPointerTouch(t3) : (e4 = { id: i3, touch: this.isPointerTouch(t3), startPoint: n3, startTime: ia(), point: n3, track: [], swipeCanceled: false, dragStartEvents: [] }, this.addBreadCrumb(e4, n3), this.pointers.setKey(i3, e4)), e4.lastEvent = t3, this.lastPointer = e4, e4;
  4193. }, e3.prototype.isPointerTouch = function(t3) {
  4194. if ("undefined" != typeof Touch && t3 instanceof Touch)
  4195. return true;
  4196. if ("undefined" != typeof PointerEvent && t3 instanceof PointerEvent && Z(t3.pointerType))
  4197. switch (t3.pointerType) {
  4198. case "touch":
  4199. case "pen":
  4200. case 2:
  4201. return true;
  4202. case "mouse":
  4203. case 4:
  4204. return false;
  4205. default:
  4206. return !(t3 instanceof MouseEvent);
  4207. }
  4208. else if (Z(t3.type) && t3.type.match(/^mouse/))
  4209. return false;
  4210. return true;
  4211. }, e3.prototype.resetPointer = function(t3, e4) {
  4212. var i3 = this.getPointerPoint(e4);
  4213. t3.startTime = ia(), t3.startPoint = { x: i3.x, y: i3.y }, t3.point = { x: i3.x, y: i3.y }, t3.track = [], t3.swipeCanceled = false;
  4214. }, e3.prototype.addBreadCrumb = function(t3, e4) {
  4215. t3.track.push({ timestamp: ia(), point: e4 });
  4216. }, e3.prototype.lockDocument = function() {
  4217. this.prepElement(this.body);
  4218. }, e3.prototype.unlockDocument = function() {
  4219. 0 == this.transformedObjects.length && this.restoreAllStyles(this.body);
  4220. }, e3.prototype.lockElement = function(t3) {
  4221. this.prepElement(t3);
  4222. }, e3.prototype.unlockElement = function(t3) {
  4223. this.restoreAllStyles(t3);
  4224. }, e3.prototype.lockWheel = function() {
  4225. window.addEventListener(this._pointerEvents.wheel, this.wheelLockEvent, !!this._passiveSupported && { passive: false });
  4226. }, e3.prototype.unlockWheel = function() {
  4227. window.removeEventListener(this._pointerEvents.wheel, this.wheelLockEvent);
  4228. }, e3.prototype.isLocalElement = function(t3, e4, i3) {
  4229. var n3 = this.getCache("local_pointer_" + t3.id);
  4230. if (Z(n3))
  4231. return n3;
  4232. var r3 = Vs(e4) || document;
  4233. if (r3.elementFromPoint) {
  4234. var s2 = r3.elementFromPoint(t3.point.x, t3.point.y), a2 = s2 && Ts(e4, s2);
  4235. return this.setCache("local_pointer_" + t3.id + "_" + i3, a2, 100), a2;
  4236. }
  4237. return false;
  4238. }, e3.prototype.wheelLockEvent = function(t3) {
  4239. return t3.preventDefault(), false;
  4240. }, e3.prototype.prepElement = function(t3) {
  4241. var e4 = t3.element;
  4242. if (e4) {
  4243. for (var i3 = ["touchAction", "webkitTouchAction", "MozTouchAction", "MSTouchAction", "msTouchAction", "oTouchAction", "userSelect", "webkitUserSelect", "MozUserSelect", "MSUserSelect", "msUserSelect", "oUserSelect", "touchSelect", "webkitTouchSelect", "MozTouchSelect", "MSTouchSelect", "msTouchSelect", "oTouchSelect", "touchCallout", "webkitTouchCallout", "MozTouchCallout", "MSTouchCallout", "msTouchCallout", "oTouchCallout", "contentZooming", "webkitContentZooming", "MozContentZooming", "MSContentZooming", "msContentZooming", "oContentZooming", "userDrag", "webkitUserDrag", "MozUserDrag", "MSUserDrag", "msUserDrag", "oUserDrag"], n3 = 0; n3 < i3.length; n3++)
  4244. i3[n3] in e4.style && this.setTemporaryStyle(t3, i3[n3], "none");
  4245. this.setTemporaryStyle(t3, "tapHighlightColor", "rgba(0, 0, 0, 0)");
  4246. }
  4247. }, e3.prototype.unprepElement = function(t3) {
  4248. var e4 = t3.element;
  4249. if (e4) {
  4250. for (var i3 = ["touchAction", "webkitTouchAction", "MozTouchAction", "MSTouchAction", "msTouchAction", "oTouchAction", "userSelect", "webkitUserSelect", "MozUserSelect", "MSUserSelect", "msUserSelect", "oUserSelect", "touchSelect", "webkitTouchSelect", "MozTouchSelect", "MSTouchSelect", "msTouchSelect", "oTouchSelect", "touchCallout", "webkitTouchCallout", "MozTouchCallout", "MSTouchCallout", "msTouchCallout", "oTouchCallout", "contentZooming", "webkitContentZooming", "MozContentZooming", "MSContentZooming", "msContentZooming", "oContentZooming", "userDrag", "webkitUserDrag", "MozUserDrag", "MSUserDrag", "msUserDrag", "oUserDrag"], n3 = 0; n3 < i3.length; n3++)
  4251. i3[n3] in e4.style && this.restoreStyle(t3, i3[n3]);
  4252. this.restoreStyle(t3, "tapHighlightColor");
  4253. }
  4254. }, e3.prototype.getHitOption = function(t3, e4) {
  4255. var i3 = t3.hitOptions[e4];
  4256. return void 0 === i3 && (i3 = this.hitOptions[e4]), i3;
  4257. }, e3.prototype.getHoverOption = function(t3, e4) {
  4258. var i3 = t3.hoverOptions[e4];
  4259. return void 0 === i3 && (i3 = this.hoverOptions[e4]), i3;
  4260. }, e3.prototype.getSwipeOption = function(t3, e4) {
  4261. var i3 = t3.swipeOptions[e4];
  4262. return void 0 === i3 && (i3 = this.swipeOptions[e4]), i3;
  4263. }, e3.prototype.getKeyboardOption = function(t3, e4) {
  4264. var i3 = t3.keyboardOptions[e4];
  4265. return void 0 === i3 && (i3 = this.keyboardOptions[e4]), i3;
  4266. }, e3.prototype.getMouseOption = function(t3, e4) {
  4267. var i3 = t3.mouseOptions[e4];
  4268. return void 0 === i3 && (i3 = this.mouseOptions[e4]), i3;
  4269. }, e3.prototype.getInertiaOption = function(t3, e4, i3) {
  4270. var n3 = t3.inertiaOptions.getKey(e4);
  4271. return n3 && Z(n3[i3]) ? n3[i3] : this.inertiaOptions.getKey(e4)[i3];
  4272. }, e3.prototype.stopInertia = function(t3) {
  4273. for (var e4, i3 = ["move", "resize"], n3 = 0; n3 < i3.length; n3++)
  4274. if (e4 = i3[n3], t3.inertias.hasKey(e4)) {
  4275. var r3 = t3.inertias.getKey(e4);
  4276. if (r3) {
  4277. r3.dispose();
  4278. continue;
  4279. }
  4280. }
  4281. }, e3.prototype.swiping = function(t3, e4) {
  4282. var i3 = ia();
  4283. return !(e4.swipeCanceled || !t3.swipeable) && Math.abs(e4.startPoint.y - e4.point.y) < this.getSwipeOption(t3, "verticalThreshold") && e4.startTime > i3 - this.getSwipeOption(t3, "time");
  4284. }, e3.prototype.swiped = function(t3, e4) {
  4285. var i3 = ia();
  4286. return !e4.swipeCanceled && Math.abs(e4.startPoint.x - e4.point.x) > this.getSwipeOption(t3, "horizontalThreshold") && Math.abs(e4.startPoint.y - e4.point.y) < this.getSwipeOption(t3, "verticalThreshold") && e4.startTime > i3 - this.getSwipeOption(t3, "time");
  4287. }, e3.prototype.applyCursorOverStyle = function(t3) {
  4288. var e4 = t3.cursorOptions;
  4289. if (Z(e4.overStyle))
  4290. for (var i3 = 0; i3 < e4.overStyle.length; i3++)
  4291. Cs(t3.element, e4.overStyle[i3].property, e4.overStyle[i3].value);
  4292. }, e3.prototype.applyCursorDownStyle = function(t3, e4) {
  4293. if (!e4 || !e4.touch) {
  4294. var i3 = t3.cursorOptions.downStyle;
  4295. if (t3.downPointers.contains(e4) && Z(i3))
  4296. for (var n3 = 0; n3 < i3.length; n3++)
  4297. this.setTemporaryStyle(this.body, i3[n3].property, i3[n3].value), this.setTemporaryStyle(t3, i3[n3].property, i3[n3].value);
  4298. }
  4299. }, e3.prototype.restoreCursorDownStyle = function(t3, e4) {
  4300. if (!e4 || !e4.touch) {
  4301. var i3 = t3.cursorOptions.downStyle;
  4302. if (t3.downPointers.contains(e4) && Z(i3))
  4303. for (var n3 = 0; n3 < i3.length; n3++)
  4304. this.restoreStyle(this.body, i3[n3].property), this.restoreStyle(t3, i3[n3].property);
  4305. }
  4306. }, e3.prototype.setGlobalStyle = function(t3) {
  4307. for (var e4 = ua().body, i3 = it(t3) ? t3 : [t3], n3 = 0; n3 < i3.length; n3++)
  4308. this.setTemporaryStyle(e4, i3[n3].property, i3[n3].value);
  4309. }, e3.prototype.restoreGlobalStyle = function(t3) {
  4310. for (var e4 = ua().body, i3 = it(t3) ? t3 : [t3], n3 = 0; n3 < i3.length; n3++)
  4311. this.restoreStyle(e4, i3[n3].property);
  4312. }, e3.prototype.isGlobalElement = function(t3) {
  4313. return document.body === t3.element;
  4314. }, e3.prototype.moved = function(t3, e4, i3) {
  4315. var n3 = this.getShift(t3);
  4316. return Math.abs(n3.x) > e4 || Math.abs(n3.y) > e4;
  4317. }, e3.prototype.old = function(t3, e4) {
  4318. return void 0 === e4 && (e4 = 300), ia() - t3.startTime > e4;
  4319. }, e3.prototype.getShift = function(t3) {
  4320. return { x: t3.startPoint.x - t3.point.x, y: t3.startPoint.y - t3.point.y };
  4321. }, e3.prototype.getTrailPoint = function(t3, e4) {
  4322. for (var i3, n3 = 0; n3 < t3.track.length; n3++)
  4323. if (t3.track[n3].timestamp >= e4) {
  4324. i3 = t3.track[n3];
  4325. break;
  4326. }
  4327. return i3;
  4328. }, e3.prototype.pointerExists = function(t3, e4) {
  4329. var i3 = false;
  4330. return t3.each(function(t4) {
  4331. t4 != e4 && (i3 = t4.point.x == e4.point.x && t4.point.y == e4.point.y);
  4332. }), i3;
  4333. }, e3.prototype.getInteraction = function(t3) {
  4334. return new Gs(t3);
  4335. }, e3.prototype.setTemporaryStyle = function(t3, e4, i3) {
  4336. var n3 = t3.element;
  4337. Z(n3.style[e4]) && !t3.replacedStyles.hasKey(e4) && t3.replacedStyles.setKey(e4, n3.style[e4]), Cs(n3, e4, i3);
  4338. }, e3.prototype.restoreStyle = function(t3, e4) {
  4339. t3.replacedStyles.hasKey(e4) ? (t3.element.style[e4] = t3.replacedStyles.getKey(e4), t3.replacedStyles.removeKey(e4)) : delete t3.element.style[e4];
  4340. }, e3.prototype.restoreAllStyles = function(t3) {
  4341. ti(t3.replacedStyles.iterator(), function(e4) {
  4342. var i3 = e4[0], n3 = e4[1];
  4343. t3.element.style[i3] = n3, t3.replacedStyles.removeKey(i3);
  4344. });
  4345. }, e3.prototype.dispose = function() {
  4346. this.isDisposed() || (t2.prototype.dispose.call(this), this.restoreAllStyles(this.body), this.unlockWheel());
  4347. }, e3.prototype.log = function(t3, e4, i3) {
  4348. if (e4.changedTouches)
  4349. for (var n3 = 0; n3 < e4.changedTouches.length; n3++)
  4350. this.logTouch(t3, e4.type, e4.changedTouches[n3]);
  4351. else {
  4352. var r3, s2 = "";
  4353. if (e4.pointerType)
  4354. switch (e4.pointerType) {
  4355. case 2:
  4356. s2 = "touch";
  4357. break;
  4358. case 4:
  4359. s2 = "mouse";
  4360. break;
  4361. default:
  4362. s2 = e4.pointerType;
  4363. }
  4364. else
  4365. s2 = "undefined" != typeof TouchEvent && e4 instanceof TouchEvent ? "touch" : e4.type.match(/^mouse/) ? "mouse" : "???";
  4366. r3 = Z(e4.identifier) ? e4.identifier : Z(e4.pointerId) ? e4.pointerId : "???", i3 ? console.log(t3 + " (" + i3.uid + ") " + e4.type + " " + s2 + " " + r3) : console.log(t3 + " " + e4.type + " " + s2 + " " + r3);
  4367. }
  4368. }, e3.prototype.areTransformed = function(t3) {
  4369. var e4 = this.transformedObjects.length;
  4370. if (t3)
  4371. for (var i3 = it(t3) ? t3 : [t3], n3 = 0; n3 < i3.length; n3++)
  4372. this.transformedObjects.contains(i3[n3]) && e4--;
  4373. return e4 > 0;
  4374. }, e3.prototype.logTouch = function(t3, e4, i3) {
  4375. console.log(t3 + " " + e4 + " touch " + i3.identifier);
  4376. }, Object.defineProperty(e3, "passiveSupported", { get: function() {
  4377. var t3 = this;
  4378. if (null == this._passiveSupported)
  4379. try {
  4380. var e4 = Object.defineProperty({}, "passive", { get: function() {
  4381. t3._passiveSupported = true;
  4382. } });
  4383. window.addEventListener("test", e4, e4), window.removeEventListener("test", e4, e4);
  4384. } catch (t4) {
  4385. this._passiveSupported = false;
  4386. }
  4387. return this._passiveSupported;
  4388. }, enumerable: true, configurable: true }), e3;
  4389. }(mn), pa = null;
  4390. function ua() {
  4391. return null == pa && (pa = new ha()), pa;
  4392. }
  4393. var da = function(t2) {
  4394. function e3() {
  4395. var e4 = t2.call(this) || this;
  4396. return e4.adapter = new Yi(e4), e4._elements = {}, e4._IOs = {}, e4._content = "", e4._title = "", e4._classPrefix = "ampopup", e4._defaultStyles = true, e4._showCurtain = false, e4._draggable = true, e4._align = "center", e4._dynamicResize = true, e4._verticalAlign = "middle", e4._shift = { x: 0, y: 0 }, e4._tempShift = { x: 0, y: 0 }, e4._readerTitle = "", e4._closable = true, e4._cssLoaded = false, e4._fitTo = "window", e4.isTemplate = false, e4._sized = false, e4.className = "Popup", e4;
  4397. }
  4398. return C(e3, t2), e3.prototype.open = function() {
  4399. this.container && (this._elements.wrapper && this.container.appendChild(this._elements.wrapper), this._elements.curtain && (this.container.appendChild(this._elements.curtain), this.showCurtain = this.showCurtain), this.positionElement(), this.dispatchImmediately("opened"));
  4400. }, e3.prototype.close = function() {
  4401. this._elements.wrapper && this._elements.wrapper.parentElement && this._elements.wrapper.parentElement.removeChild(this._elements.wrapper), this._elements.curtain && this._elements.curtain.parentElement && this._elements.curtain.parentElement.removeChild(this._elements.curtain), this.dispatchImmediately("closed"), this.releasePointers();
  4402. }, e3.prototype.dispose = function() {
  4403. this.close(), t2.prototype.dispose.call(this);
  4404. }, e3.prototype.positionElement = function(t3) {
  4405. var e4 = this;
  4406. void 0 === t3 && (t3 = true), this._elements.wrapper && setTimeout(function() {
  4407. if (e4._elements.wrapper) {
  4408. if (t3 || !e4._sized) {
  4409. e4._elements.wrapper.style.opacity = "0.01", e4._elements.wrapper.style.left = "0", e4._elements.wrapper.style.top = "0", e4._elements.wrapper.style.margin = "0 0 0 0", e4._elements.wrapper.style.width = "", e4._elements.wrapper.style.height = "";
  4410. var i3 = e4._elements.wrapper.getBoundingClientRect();
  4411. e4._elements.wrapper.style.width = i3.width + "px", e4._elements.wrapper.style.height = i3.height + "px", e4._sized = true;
  4412. }
  4413. if (e4.dynamicResize)
  4414. for (var n3 = e4._elements.wrapper.getElementsByTagName("img"), r3 = 0; r3 < n3.length; r3++) {
  4415. var s2 = n3[r3];
  4416. if (!s2.complete) {
  4417. s2.addEventListener("load", function() {
  4418. e4.positionElement(true);
  4419. });
  4420. break;
  4421. }
  4422. }
  4423. setTimeout(function() {
  4424. if (e4._elements.wrapper) {
  4425. var i4;
  4426. switch (!t3 && e4._sized || !e4._bbox ? (i4 = e4._elements.wrapper.getBoundingClientRect(), e4._elements.wrapper.style.opacity = "") : i4 = e4._bbox, e4.align) {
  4427. case "left":
  4428. e4._elements.wrapper.style.left = "0", e4._elements.wrapper.style.right = "auto", e4._elements.wrapper.style.marginLeft = e4.toStyle(e4._shift.x + e4._tempShift.x);
  4429. break;
  4430. case "center":
  4431. e4._elements.wrapper.style.left = "50%", e4._elements.wrapper.style.right = "auto", e4._elements.wrapper.style.marginLeft = e4.toStyle(Math.round(-i4.width / 2) + (e4._shift.x + e4._tempShift.x));
  4432. break;
  4433. case "right":
  4434. e4._elements.wrapper.style.left = "auto", e4._elements.wrapper.style.right = "0", e4._elements.wrapper.style.marginLeft = e4.toStyle(e4._shift.x + e4._tempShift.x);
  4435. break;
  4436. default:
  4437. e4._elements.wrapper.style.left = e4.toStyle(e4.left) || "auto", e4._elements.wrapper.style.right = e4.toStyle(e4.right) || "auto", e4._elements.wrapper.style.marginLeft = e4.toStyle(e4._shift.x + e4._tempShift.x);
  4438. }
  4439. switch (e4.verticalAlign) {
  4440. case "top":
  4441. e4._elements.wrapper.style.top = "0", e4._elements.wrapper.style.bottom = "auto", e4._elements.wrapper.style.marginTop = e4.toStyle(e4._shift.y + e4._tempShift.y);
  4442. break;
  4443. case "middle":
  4444. e4._elements.wrapper.style.top = "50%", e4._elements.wrapper.style.bottom = "auto", e4._elements.wrapper.style.marginTop = e4.toStyle(Math.round(-i4.height / 2) + (e4._shift.y + e4._tempShift.y));
  4445. break;
  4446. case "bottom":
  4447. e4._elements.wrapper.style.top = "auto", e4._elements.wrapper.style.bottom = "0", e4._elements.wrapper.style.marginTop = e4.toStyle(e4._shift.y + e4._tempShift.y);
  4448. break;
  4449. default:
  4450. e4._elements.wrapper.style.top = e4.toStyle(e4.top) || "auto", e4._elements.wrapper.style.bottom = e4.toStyle(e4.bottom) || "auto", e4._elements.wrapper.style.marginTop = e4.toStyle(e4._shift.y + e4._tempShift.y);
  4451. }
  4452. }
  4453. }, 1);
  4454. }
  4455. }, 1);
  4456. }, e3.prototype.setupDragging = function() {
  4457. var t3 = this;
  4458. this.draggable ? (this._IOs.header.events.has("drag") || this._IOs.header.events.on("drag", function(e4) {
  4459. t3._tempShift.x = e4.shift.x, t3._tempShift.y = e4.shift.y, t3.positionElement(false);
  4460. }), this._IOs.header.events.has("dragstop") || this._IOs.header.events.on("dragstop", function(e4) {
  4461. t3._shift.x += t3._tempShift.x, t3._shift.y += t3._tempShift.y, t3._tempShift.x = 0, t3._tempShift.y = 0, t3.positionElement(false);
  4462. })) : this._IOs.header && (ua().unprepElement(this._IOs.header), this._IOs.header.events.has("drag") && this._IOs.header.events.off("drag"), this._IOs.header.events.has("dragstop") && this._IOs.header.events.off("dragstop"));
  4463. }, e3.prototype.toStyle = function(t3) {
  4464. return Z(t3) ? tt(t3) ? t3 + "px" : t3.toString() : null;
  4465. }, Object.defineProperty(e3.prototype, "classPrefix", { get: function() {
  4466. return this.adapter.apply("classPrefix", this._classPrefix);
  4467. }, set: function(t3) {
  4468. this._classPrefix = t3;
  4469. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "classPrefixRaw", { get: function() {
  4470. return this._classPrefix;
  4471. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "content", { get: function() {
  4472. return this.adapter.apply("content", this._content);
  4473. }, set: function(t3) {
  4474. this._content != t3 && (this._content = t3, this._elements.content || this.createContentElement(), this._elements.content.innerHTML = t3, this.positionElement());
  4475. }, enumerable: true, configurable: true }), e3.prototype.getClassNames = function() {
  4476. return this.adapter.apply("classNames", { wrapperClass: this.classPrefix + "", headerClass: this.classPrefix + "-header", titleClass: this.classPrefix + "-title", contentClass: this.classPrefix + "-content", insideClass: this.classPrefix + "-inside", curtainClass: this.classPrefix + "-curtain", closeClass: this.classPrefix + "-close" });
  4477. }, e3.prototype.createContentElement = function() {
  4478. if (!this._elements.wrapper) {
  4479. var t3 = this.getClassNames(), e4 = document.createElement("div");
  4480. e4.className = t3.contentClass, e4.style.opacity = "0.01";
  4481. var i3 = document.createElement("a");
  4482. i3.className = t3.closeClass;
  4483. var n3 = document.createElement("div");
  4484. n3.className = t3.headerClass;
  4485. var r3 = document.createElement("div");
  4486. r3.innerHTML = this.title, r3.className = t3.titleClass, this.title || (r3.style.display = "none");
  4487. var s2 = document.createElement("div");
  4488. s2.className = t3.insideClass, s2.innerHTML = this.content, this._IOs.wrapper = ua().getInteraction(e4), this._IOs.header = ua().getInteraction(n3), this._disposers.push(this._IOs.wrapper), this._IOs.wrapper.events.on("over", this.disablePointers, this), this._IOs.wrapper.events.on("out", this.releasePointers, this), this._IOs.close = ua().getInteraction(i3), this._disposers.push(this._IOs.close), i3.style.visibility = "hidden", e4.setAttribute("role", "dialog"), n3.appendChild(i3), n3.appendChild(r3), e4.appendChild(n3), e4.appendChild(s2), this.container.appendChild(e4), this._elements.wrapper = e4, this._elements.header = n3, this._elements.content = s2, this._elements.title = r3, this._elements.close = i3, this.defaultStyles && this.loadDefaultCSS(), this.createCurtainElement(), this.applyEvents(), this.applyReaderSettings(), this.setupDragging();
  4489. }
  4490. }, Object.defineProperty(e3.prototype, "title", { get: function() {
  4491. return this.adapter.apply("title", this._title);
  4492. }, set: function(t3) {
  4493. this._title != t3 && (this._title = t3, this._elements.content || this.createContentElement(), this._elements.title.innerHTML = t3, this.positionElement(), this.applyReaderSettings());
  4494. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerTitle", { get: function() {
  4495. return this.adapter.apply("readerTitle", "" != this._readerTitle ? this._readerTitle : this.title);
  4496. }, set: function(t3) {
  4497. this._readerTitle != t3 && (this._readerTitle = t3, this.applyReaderSettings());
  4498. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "closable", { get: function() {
  4499. return this.adapter.apply("closable", this._closable);
  4500. }, set: function(t3) {
  4501. t3 !== this._closable && (this._closable = t3, this.applyEvents());
  4502. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fitTo", { get: function() {
  4503. return this.adapter.apply("fitTo", this._fitTo);
  4504. }, set: function(t3) {
  4505. t3 != this._fitTo && (this._fitTo = t3, this.positionElement());
  4506. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "defaultStyles", { get: function() {
  4507. return this.adapter.apply("defaultStyles", this._defaultStyles);
  4508. }, set: function(t3) {
  4509. this._defaultStyles != t3 && (this._defaultStyles = t3);
  4510. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showCurtain", { get: function() {
  4511. return this.adapter.apply("showCurtain", this._showCurtain);
  4512. }, set: function(t3) {
  4513. this._showCurtain != t3 && (this._showCurtain = t3, this._elements.curtain && (this._elements.curtain.style.display = t3 ? "block" : "none"));
  4514. }, enumerable: true, configurable: true }), e3.prototype.createCurtainElement = function() {
  4515. var t3 = this.getClassNames(), e4 = document.createElement("div");
  4516. e4.className = t3.curtainClass, this.container.appendChild(e4), this._IOs.curtain = ua().getInteraction(e4), this._disposers.push(this._IOs.curtain), this._IOs.curtain.events.on("over", this.disablePointers, this), this._IOs.curtain.events.on("out", this.releasePointers, this), e4.style.display = this.showCurtain ? "block" : "none", this._elements.curtain = e4;
  4517. }, Object.defineProperty(e3.prototype, "draggable", { get: function() {
  4518. return this.adapter.apply("draggable", this._draggable);
  4519. }, set: function(t3) {
  4520. this._draggable != t3 && (this._draggable = t3, this.setupDragging());
  4521. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dynamicResize", { get: function() {
  4522. return this.adapter.apply("dynamicResize", this._dynamicResize);
  4523. }, set: function(t3) {
  4524. this._dynamicResize != t3 && (this._dynamicResize = t3, this.positionElement(true));
  4525. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "align", { get: function() {
  4526. return this.adapter.apply("align", this._align);
  4527. }, set: function(t3) {
  4528. this._align != t3 && (this._align = t3, this.positionElement());
  4529. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalAlign", { get: function() {
  4530. return this.adapter.apply("verticalAlign", this._verticalAlign);
  4531. }, set: function(t3) {
  4532. this._verticalAlign != t3 && (this._verticalAlign = t3, this.positionElement());
  4533. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "left", { get: function() {
  4534. return this.adapter.apply("left", this._left);
  4535. }, set: function(t3) {
  4536. this.left != t3 && (this._left = t3, this._align = "none", this.positionElement());
  4537. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "right", { get: function() {
  4538. return this.adapter.apply("right", this._right);
  4539. }, set: function(t3) {
  4540. this.right != t3 && (this._right = t3, this._align = "none", this.positionElement());
  4541. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "top", { get: function() {
  4542. return this.adapter.apply("top", this._top);
  4543. }, set: function(t3) {
  4544. this.top != t3 && (this._top = t3, this._verticalAlign = "none", this.positionElement());
  4545. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bottom", { get: function() {
  4546. return this.adapter.apply("bottom", this._bottom);
  4547. }, set: function(t3) {
  4548. this.bottom != t3 && (this._bottom = t3, this._verticalAlign = "none", this.positionElement());
  4549. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "elements", { get: function() {
  4550. return this._elements;
  4551. }, enumerable: true, configurable: true }), e3.prototype.loadDefaultCSS = function() {
  4552. this._cssLoaded || (this._disposers.push(function(t3, e4) {
  4553. e4 || (e4 = "ampopup");
  4554. var i3 = new Ys(), n3 = i3.getFor("text"), r3 = i3.getFor("background");
  4555. r3.alpha = 0.8;
  4556. var s2 = i3.getFor("alternativeBackground");
  4557. return s2.alpha = 0.05, zs.insertKeyIfEmpty(e4, function() {
  4558. var i4 = new me([new Ls(t3, "." + e4, { overflow: "visible", position: "absolute", top: "0", left: "0", "z-index": "2000" }), new Ls(t3, "." + e4 + "-curtain", { width: "100%", height: "100%", position: "absolute", top: "0", left: "0", "z-index": "2001", "background-color": r3.hex, opacity: "0.5" }), new Ls(t3, "." + e4 + "-header", { display: "block", width: "100%", "min-height": "1.8em", background: s2.rgba }), new Ls(t3, "." + e4 + "-title", { "font-weight": "bold", "font-size": "110%", padding: "0.5em 1.2em 0.5em 1em" }), new Ls(t3, "." + e4 + "-content", { background: r3.hex, "background-color": r3.rgba, color: n3.hex, display: "inline-block", position: "absolute", top: "0", left: "0", "max-width": "90%", "max-height": "90%", overflow: "auto", "z-index": "2002" }), new Ls(t3, "." + e4 + "-inside", { padding: "1em" }), new Ls(t3, "." + e4 + "-close", { display: "block", position: "absolute", top: "0.3em", right: "0.3em", "background-color": "rgb(100, 100, 100)", background: "rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center", "background-size": "80%", width: "1.2em", height: "1.2em", cursor: "pointer" })]);
  4559. return new be(function() {
  4560. zs.removeKey(e4), i4.dispose();
  4561. });
  4562. }).increment();
  4563. }(As(this.container), this.classPrefix)), Ne(this._elements, function(t3, e4) {
  4564. e4.style.display = "";
  4565. }), this._cssLoaded = true);
  4566. }, e3.prototype.applyEvents = function() {
  4567. var t3 = this;
  4568. if (this._IOs.close)
  4569. if (this.closable) {
  4570. this._IOs.close.element.style.visibility = "visible";
  4571. var e4 = [ua().body.events.on("keyup", function(e5) {
  4572. $s.isKey(e5.event, "esc") && t3.closable && t3.close();
  4573. }), this._IOs.close.events.on("hit", function(e5) {
  4574. t3.close();
  4575. })];
  4576. e4.push(this._IOs.curtain.events.on("hit", function(e5) {
  4577. t3.showCurtain && t3.closable && t3.close();
  4578. })), this._disposers.push(new me(e4));
  4579. } else
  4580. this._IOs.close.element.style.visibility = "hidden";
  4581. }, e3.prototype.disablePointers = function() {
  4582. this.sprite && (this._spriteInteractionsEnabled = this.sprite.interactionsEnabled, this.sprite.interactionsEnabled = false);
  4583. }, e3.prototype.releasePointers = function() {
  4584. Z(this._spriteInteractionsEnabled) && (this.sprite.interactionsEnabled = this._spriteInteractionsEnabled, this._spriteInteractionsEnabled = void 0);
  4585. }, e3.prototype.applyReaderSettings = function() {
  4586. this.elements.wrapper.setAttribute("aria-label", this.readerTitle);
  4587. }, e3.prototype.copyFrom = function(e4) {
  4588. t2.prototype.copyFrom.call(this, e4), this.container = e4.container, this.sprite = e4.sprite, this.classPrefix = e4.classPrefixRaw, this.content = e4.content, this.title = e4.title, this.readerTitle = e4.readerTitle, this.defaultStyles = e4.defaultStyles, this.showCurtain = e4.showCurtain, this.align = e4.align, this.verticalAlign = e4.verticalAlign, this.left = e4.left, this.right = e4.right, this.top = e4.top, this.bottom = e4.bottom, this.adapter.copyFrom(e4.adapter);
  4589. }, e3;
  4590. }(mn), ca = function(t2) {
  4591. function e3() {
  4592. var e4 = t2.call(this) || this;
  4593. return e4.adapter = new Yi(e4), e4.className = "Modal", e4.showCurtain = true, e4.draggable = false, e4;
  4594. }
  4595. return C(e3, t2), e3;
  4596. }(da);
  4597. function fa() {
  4598. for (var t2 = [], e3 = 0; e3 < arguments.length; e3++)
  4599. t2[e3] = arguments[e3];
  4600. ls.suppressWarnings || console && console.warn.apply(console, T(t2));
  4601. }
  4602. var ga = function() {
  4603. function t2() {
  4604. var t3 = this;
  4605. this._targets = [], this._observer = new ResizeObserver(function(e3) {
  4606. Ut(e3, function(e4) {
  4607. Ut(t3._targets, function(t4) {
  4608. t4.target === e4.target && t4.callback();
  4609. });
  4610. });
  4611. });
  4612. }
  4613. return t2.prototype.addTarget = function(t3, e3) {
  4614. this._observer.observe(t3, { box: "content-box" }), this._targets.push({ target: t3, callback: e3 });
  4615. }, t2.prototype.removeTarget = function(t3) {
  4616. this._observer.unobserve(t3), ge(this._targets, function(e3) {
  4617. return e3.target !== t3;
  4618. });
  4619. }, t2;
  4620. }(), ya = function() {
  4621. function t2() {
  4622. this._targets = [];
  4623. }
  4624. return t2.prototype.addTarget = function(e3, i3) {
  4625. var n3 = this;
  4626. if (0 === this._targets.length) {
  4627. var r3 = null, s2 = function() {
  4628. var e4 = Date.now();
  4629. (null === r3 || e4 > r3 + t2.delay) && (r3 = e4, Ut(n3._targets, function(t3) {
  4630. var e5 = t3.target.getBoundingClientRect();
  4631. e5.width === t3.size.width && e5.height === t3.size.height || (t3.size = e5, t3.callback());
  4632. })), n3._timer = requestAnimationFrame(s2);
  4633. };
  4634. this._timer = requestAnimationFrame(s2);
  4635. }
  4636. var a2 = e3.getBoundingClientRect();
  4637. this._targets.push({ target: e3, callback: i3, size: a2 });
  4638. }, t2.prototype.removeTarget = function(t3) {
  4639. ge(this._targets, function(e3) {
  4640. return e3.target !== t3;
  4641. }), 0 === this._targets.length && cancelAnimationFrame(this._timer);
  4642. }, t2.delay = 200, t2;
  4643. }(), ma = null, va = function() {
  4644. function t2(t3, e3) {
  4645. this._disposed = false, this._sensor = (null === ma && (ma = "undefined" != typeof ResizeObserver ? new ga() : new ya()), ma), this._element = t3, this._sensor.addTarget(t3, e3);
  4646. }
  4647. return t2.prototype.isDisposed = function() {
  4648. return this._disposed;
  4649. }, t2.prototype.dispose = function() {
  4650. this._disposed || (this._disposed = true, this._sensor.removeTarget(this._element));
  4651. }, Object.defineProperty(t2.prototype, "sensor", { get: function() {
  4652. return this._sensor;
  4653. }, enumerable: true, configurable: true }), t2.prototype.reset = function() {
  4654. fa("resizeSensor.reset() is no longer needed and can be removed");
  4655. }, t2;
  4656. }(), ba = [], xa = function() {
  4657. function t2(t3, e3) {
  4658. var i3 = this;
  4659. this._disposed = false, this.autoResize = true, this.nonExportableSprites = [], this._disposers = [], this.cssScale = 1, this._printing = false, this.htmlElement = t3, e3 || (this._printing = false, this.initSensor(), this._disposers.push(xs(window, "beforeprint", function() {
  4660. i3._printing = true;
  4661. })), this._disposers.push(xs(window, "afterprint", function() {
  4662. i3._printing = false;
  4663. }))), ba.push(this);
  4664. var n3 = document.createElement("div"), r3 = n3.style;
  4665. r3.width = "100%", r3.height = "100%", r3.position = "relative", t3.appendChild(n3), this.SVGContainer = n3;
  4666. }
  4667. return t2.prototype.initSensor = function() {
  4668. var t3 = this;
  4669. this.resizeSensor && this.resizeSensor.dispose(), this.resizeSensor = new va(this.htmlElement, function() {
  4670. t3.autoResize && !t3._printing && t3.measure();
  4671. }), this._disposers.push(this.resizeSensor);
  4672. }, t2.prototype.measure = function() {
  4673. var t3 = br(this.htmlElement), e3 = xr(this.htmlElement), i3 = this.container;
  4674. i3 && (this.width == t3 && this.height == e3 || (this.width = t3, this.height = e3, t3 > 0 && (i3.maxWidth = t3), e3 > 0 && (i3.maxHeight = e3), Ms(this.SVGContainer)), i3.maxWidth || (i3.maxWidth = 0), i3.maxHeight || (i3.maxHeight = 0), this.cssScale = 1, this.checkTransform(this.htmlElement));
  4675. }, Object.defineProperty(t2.prototype, "container", { get: function() {
  4676. return this._container;
  4677. }, set: function(t3) {
  4678. this._container = t3, this.measure();
  4679. }, enumerable: true, configurable: true }), t2.prototype.isDisposed = function() {
  4680. return this._disposed;
  4681. }, t2.prototype.dispose = function() {
  4682. this._disposed || ee(ba, this), Ut(this._disposers, function(t3) {
  4683. t3.dispose();
  4684. });
  4685. }, Object.defineProperty(t2.prototype, "hideOverflow", { set: function(t3) {
  4686. this.SVGContainer.style.overflow = t3 ? "hidden" : "";
  4687. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "modal", { get: function() {
  4688. return Z(this._modal) || (this._modal = new ca(), this._modal.container = this.SVGContainer, this._disposers.push(this._modal)), this._modal;
  4689. }, enumerable: true, configurable: true }), t2.prototype.openModal = function(t3, e3) {
  4690. this.closeModal();
  4691. var i3 = this.modal;
  4692. return i3.content = t3, i3.readerTitle = e3 || "", i3.title = e3 || "", i3.open(), i3;
  4693. }, t2.prototype.closeModal = function() {
  4694. this._modal && this.modal.close();
  4695. }, Object.defineProperty(t2.prototype, "popups", { get: function() {
  4696. if (!Z(this._popups)) {
  4697. var t3 = new da();
  4698. t3.container = this.SVGContainer, this._popups = new Mi(t3), this._disposers.push(new Ai(this._popups)), this._disposers.push(this._popups.template);
  4699. }
  4700. return this._popups;
  4701. }, enumerable: true, configurable: true }), t2.prototype.openPopup = function(t3, e3) {
  4702. var i3 = this.popups.create();
  4703. return i3.content = t3, Z(e3) && (i3.title = e3), i3.open(), i3;
  4704. }, t2.prototype.closeAllPopups = function() {
  4705. this.popups.each(function(t3) {
  4706. t3.close();
  4707. });
  4708. }, Object.defineProperty(t2.prototype, "readerAlertElement", { get: function() {
  4709. if (!Z(this._readerAlertElement)) {
  4710. var t3 = document.createElement("div");
  4711. t3.setAttribute("role", "alert"), t3.style.zIndex = "-100000", t3.style.opacity = "0", t3.style.position = "absolute", t3.style.top = "0", this.SVGContainer.appendChild(t3), this._readerAlertElement = t3;
  4712. }
  4713. return this._readerAlertElement;
  4714. }, enumerable: true, configurable: true }), t2.prototype.readerAlert = function(t3) {
  4715. this.readerAlertElement.innerHTML = t3;
  4716. }, t2.prototype.checkTransform = function(t3) {
  4717. if (window.getComputedStyle) {
  4718. if (t3 && t3.style) {
  4719. var e3 = window.getComputedStyle(t3, null);
  4720. if (e3) {
  4721. var i3 = e3.getPropertyValue("-webkit-transform") || e3.getPropertyValue("-moz-transform") || e3.getPropertyValue("-ms-transform") || e3.getPropertyValue("-o-transform") || e3.getPropertyValue("transform");
  4722. if (i3 && "none" !== i3) {
  4723. var n3 = i3.split("(")[1].split(")")[0].split(","), r3 = Number(n3[0]), s2 = Number(n3[1]), a2 = Math.sqrt(r3 * r3 + s2 * s2);
  4724. isNaN(a2) || (this.cssScale *= a2);
  4725. }
  4726. }
  4727. }
  4728. t3.parentNode && t3.parentNode instanceof HTMLElement && this.checkTransform(t3.parentNode);
  4729. }
  4730. }, t2;
  4731. }(), _a = function() {
  4732. function t2(t3, e3) {
  4733. this.container = t3, this.id = e3;
  4734. var i3 = document.createElementNS(ms, "svg");
  4735. i3.setAttribute("version", "1.1"), i3.setAttributeNS(vs, "xmlns", ms), i3.setAttributeNS(vs, "xmlns:xlink", bs), i3.setAttribute("role", "group"), this.container.appendChild(i3), this.defs = document.createElementNS(ms, "defs"), i3.appendChild(this.defs), i3.style.width = "100%", i3.style.height = "100%", i3.style.overflow = "visible", this.svg = i3;
  4736. }
  4737. return t2.prototype.add = function(t3) {
  4738. return new Ws(t3);
  4739. }, t2.prototype.addGroup = function(t3) {
  4740. return new Xs(t3);
  4741. }, t2.prototype.append = function(t3) {
  4742. t3 && this.svg.appendChild(t3.node);
  4743. }, t2.prototype.appendDef = function(t3) {
  4744. t3 && this.defs.appendChild(t3.node);
  4745. }, t2.prototype.foreignObject = function() {
  4746. return new Ws("foreignObject");
  4747. }, t2.prototype.supportsForeignObject = function() {
  4748. return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility", "1.1");
  4749. }, t2;
  4750. }(), Pa = null;
  4751. function wa() {
  4752. if (null === Pa) {
  4753. var t2 = document.createElement("div");
  4754. t2.hidden = true, t2.style.width = "1px", t2.style.height = "1px", t2.style.position = "absolute", t2.style.zIndex = "-1000000", document.body.appendChild(t2);
  4755. var e3 = new xa(t2, true);
  4756. Pa = new _a(e3.SVGContainer, "ghost");
  4757. }
  4758. return Pa;
  4759. }
  4760. var Ca = function(t2) {
  4761. function e3() {
  4762. var e4 = t2.call(this) || this;
  4763. e4._elements = new Fi(), e4.properties = {}, e4.className = "Pattern", e4.width = 10, e4.height = 10, e4.x = 0, e4.y = 0, e4.patternUnits = "userSpaceOnUse";
  4764. var i3 = new Ys();
  4765. return e4.backgroundFill = i3.getFor("background"), e4.backgroundOpacity = 0, e4.fillOpacity = 1, e4.fill = i3.getFor("alternativeBackground"), e4.stroke = i3.getFor("alternativeBackground"), e4.strokeOpacity = 1, e4.strokeWidth = 1, e4.shapeRendering = "crispEdges", e4.rotation = 0, e4.element = e4.paper.addGroup("pattern"), e4.id = "pattern-" + Ii.getUniqueId(), e4.element.attr({ id: e4.id }), e4._disposers.push(e4.element), e4._disposers.push(new Ai(e4._elements)), e4.patternUnits = e4.patternUnits, e4.width = e4.width, e4.height = e4.height, e4.applyTheme(), e4;
  4766. }
  4767. return C(e3, t2), e3.prototype.draw = function() {
  4768. var t3 = this, e4 = this.element;
  4769. if (e4) {
  4770. e4.removeChildNodes();
  4771. var i3 = this.paper.add("rect");
  4772. i3.attr({ width: this.width, height: this.height, "shape-rendering": "crispEdges", fill: this.backgroundFill.hex, "fill-opacity": this.backgroundOpacity, stroke: this.backgroundFill.hex, "stroke-opacity": 0 }), e4.add(i3), e4.attr({ x: this.x, y: this.y, width: this.width, height: this.height, stroke: this.stroke.hex, fill: this.fill.hex, "fill-opacity": this.fillOpacity, "stroke-opacity": this.strokeOpacity, "stroke-width": this.strokeWidth, "shape-rendering": this.shapeRendering, patternUnits: this.patternUnits, "stroke-dasharray": this.strokeDasharray }), ti(this._elements.iterator(), function(e5) {
  4773. e5.rotation = t3.rotation, e5.rotationX = t3.properties.rotationX, e5.rotationY = t3.properties.rotationY, t3.element.add(e5);
  4774. });
  4775. }
  4776. }, e3.prototype.animate = function(t3, e4, i3) {
  4777. return new ys(this, t3, e4, i3).start();
  4778. }, e3.prototype.addElement = function(t3) {
  4779. this._elements.push(t3), this._disposers.push(t3);
  4780. }, e3.prototype.removeElement = function(t3) {
  4781. this._elements.removeValue(t3), this.removeDispose(t3);
  4782. }, Object.defineProperty(e3.prototype, "elements", { get: function() {
  4783. return this._elements;
  4784. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fillOpacity", { get: function() {
  4785. return this.properties.fillOpacity;
  4786. }, set: function(t3) {
  4787. this.properties.fillOpacity = t3, this.draw();
  4788. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fill", { get: function() {
  4789. return this.properties.fill;
  4790. }, set: function(t3) {
  4791. this.properties.fill = t3, this.draw();
  4792. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "backgroundFill", { get: function() {
  4793. return this.properties.backgroundFill;
  4794. }, set: function(t3) {
  4795. this.properties.backgroundFill = t3, this.draw();
  4796. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "backgroundOpacity", { get: function() {
  4797. return this.properties.backgroundOpacity;
  4798. }, set: function(t3) {
  4799. this.properties.backgroundOpacity = t3, this.draw();
  4800. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "stroke", { get: function() {
  4801. return this.properties.stroke;
  4802. }, set: function(t3) {
  4803. this.properties.stroke = t3, this.draw();
  4804. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeOpacity", { get: function() {
  4805. return this.properties.strokeOpacity;
  4806. }, set: function(t3) {
  4807. this.properties.strokeOpacity = t3, this.draw();
  4808. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeWidth", { get: function() {
  4809. return this.properties.strokeWidth;
  4810. }, set: function(t3) {
  4811. this.properties.strokeWidth = t3, this.draw();
  4812. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "shapeRendering", { get: function() {
  4813. return this.properties.shapeRendering;
  4814. }, set: function(t3) {
  4815. this.properties.shapeRendering = t3, this.draw();
  4816. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rotation", { get: function() {
  4817. return this.properties.rotation;
  4818. }, set: function(t3) {
  4819. this.properties.rotation = t3, this.draw();
  4820. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "patternUnits", { get: function() {
  4821. return this.properties.patternUnits;
  4822. }, set: function(t3) {
  4823. this.properties.patternUnits = t3, this.draw();
  4824. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "width", { get: function() {
  4825. return this.properties.width;
  4826. }, set: function(t3) {
  4827. this.properties.width = t3, this.draw();
  4828. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "height", { get: function() {
  4829. return this.properties.height;
  4830. }, set: function(t3) {
  4831. this.properties.height = t3, this.draw();
  4832. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "x", { get: function() {
  4833. return this.properties.x;
  4834. }, set: function(t3) {
  4835. this.properties.x = t3, this.draw();
  4836. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y", { get: function() {
  4837. return this.properties.y;
  4838. }, set: function(t3) {
  4839. this.properties.y = t3, this.draw();
  4840. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paper", { get: function() {
  4841. return this._paper ? this._paper : wa();
  4842. }, set: function(t3) {
  4843. this._paper != t3 && (this._paper = t3, this.draw(), t3.appendDef(this.element));
  4844. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  4845. var i3 = this;
  4846. t2.prototype.copyFrom.call(this, e4), Ne(e4.properties, function(t3, e5) {
  4847. i3[t3] = e5;
  4848. });
  4849. }, Object.defineProperty(e3.prototype, "animations", { get: function() {
  4850. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  4851. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeDasharray", { get: function() {
  4852. return this.properties.strokeDashArray;
  4853. }, set: function(t3) {
  4854. this.properties.strokeDashArray = t3, this.draw();
  4855. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  4856. if (e4 && Z(e4.elements) && it(e4.elements))
  4857. for (var i3 = 0, n3 = e4.elements.length; i3 < n3; i3++) {
  4858. var r3 = e4.elements[i3];
  4859. if (Z(r3.type)) {
  4860. var s2 = this.createEntryInstance(r3);
  4861. s2 instanceof yn && (s2.config = r3), this.addElement(Z(r3.typeProperty) ? s2[r3.typeProperty] : s2.element);
  4862. }
  4863. }
  4864. t2.prototype.processConfig.call(this, e4);
  4865. }, e3;
  4866. }(yn);
  4867. Ii.registeredClasses.Pattern = Ca;
  4868. var Oa = function(t2) {
  4869. function e3() {
  4870. var e4 = t2.call(this) || this;
  4871. return e4._stops = new Fi(), e4._rotation = 0, e4.className = "LinearGradient", e4._stops.events.on("setIndex", e4.validate, e4), e4._stops.events.on("inserted", e4.validate, e4), e4.element = e4.paper.addGroup("linearGradient"), e4.id = "gradient-" + Ii.getUniqueId(), e4.element.attr({ id: e4.id }), e4._disposers.push(e4.element), e4.applyTheme(), e4;
  4872. }
  4873. return C(e3, t2), e3.prototype.validate = function() {
  4874. var t3 = this, e4 = (this._rotation + 90) * st, i3 = Math.round(50 + 50 * Math.sin(e4 + Math.PI)) + "%", n3 = Math.round(50 + 50 * Math.cos(e4)) + "%", r3 = Math.round(50 + 50 * Math.sin(e4)) + "%", s2 = Math.round(50 + 50 * Math.cos(e4 + Math.PI)) + "%", a2 = this.element;
  4875. a2.removeChildNodes(), a2.attr({ x1: i3, x2: r3, y1: n3, y2: s2 }), ti(ai(this._stops.iterator()), function(e5) {
  4876. var i4 = e5[0], n4 = e5[1], r4 = n4.offset;
  4877. tt(r4) || (r4 = i4 / (t3._stops.length - 1));
  4878. var s3 = t3.paper.add("stop");
  4879. Z(n4.color) && s3.attr({ "stop-color": n4.color.toString() }), tt(n4.opacity) && s3.attr({ "stop-opacity": n4.opacity }), tt(r4) && s3.attr({ offset: r4 }), a2.add(s3);
  4880. });
  4881. }, e3.prototype.clear = function() {
  4882. this._stops.clear();
  4883. }, e3.prototype.addColor = function(t3, e4, i3) {
  4884. this._stops.push({ color: t3, opacity: e4, offset: i3 });
  4885. }, Object.defineProperty(e3.prototype, "stops", { get: function() {
  4886. return this._stops;
  4887. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paper", { get: function() {
  4888. return this._paper ? this._paper : wa();
  4889. }, set: function(t3) {
  4890. this._paper != t3 && (this._paper = t3, this.validate(), t3.appendDef(this.element));
  4891. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rotation", { get: function() {
  4892. return this._rotation;
  4893. }, set: function(t3) {
  4894. this._rotation = t3, this.validate();
  4895. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  4896. t2.prototype.copyFrom.call(this, e4), this.stops.copyFrom(e4.stops), this._rotation = e4.rotation;
  4897. }, Object.defineProperty(e3.prototype, "gradientUnits", { set: function(t3) {
  4898. this.element.attr({ gradientUnits: t3 });
  4899. }, enumerable: true, configurable: true }), e3;
  4900. }(yn);
  4901. Ii.registeredClasses.LinearGradient = Oa;
  4902. var Sa = function(t2) {
  4903. function e3() {
  4904. var e4 = t2.call(this) || this;
  4905. return e4._stops = new Fi(), e4.element = e4.paper.addGroup("radialGradient"), e4.id = "gradient-" + Ii.getUniqueId(), e4.element.attr({ id: e4.id }), e4._disposers.push(e4.element), e4.applyTheme(), e4;
  4906. }
  4907. return C(e3, t2), e3.prototype.draw = function() {
  4908. var t3, e4 = this, i3 = this.element;
  4909. tt(this.cx) && ((t3 = this.cx) instanceof A && (t3 = t3.percent + "%"), i3.attr({ cx: t3 })), tt(this.cy) && ((t3 = this.cy) instanceof A && (t3 = t3.percent + "%"), i3.attr({ cy: t3 })), this.fx && ((t3 = this.fx) instanceof A && (t3 = t3.percent + "%"), i3.attr({ fx: t3 })), this.fy && ((t3 = this.fy) instanceof A && (t3 = t3.percent + "%"), i3.attr({ fy: t3 })), i3.removeChildNodes(), ti(ai(this._stops.iterator()), function(t4) {
  4910. var n3 = t4[0], r3 = t4[1], s2 = r3.offset;
  4911. tt(s2) || (s2 = n3 / (e4._stops.length - 1));
  4912. var a2 = e4.paper.add("stop");
  4913. Z(r3.color) && a2.attr({ "stop-color": r3.color.toString() }), tt(r3.opacity) && a2.attr({ "stop-opacity": r3.opacity }), tt(s2) && a2.attr({ offset: s2 }), i3.add(a2);
  4914. });
  4915. }, e3.prototype.addColor = function(t3, e4, i3) {
  4916. this._stops.push({ color: t3, opacity: e4, offset: i3 }), this.draw();
  4917. }, Object.defineProperty(e3.prototype, "paper", { get: function() {
  4918. return this._paper ? this._paper : wa();
  4919. }, set: function(t3) {
  4920. this._paper != t3 && (this._paper = t3, this.draw(), t3.appendDef(this.element));
  4921. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cx", { get: function() {
  4922. return this._cx;
  4923. }, set: function(t3) {
  4924. this._cx = t3, this.draw();
  4925. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cy", { get: function() {
  4926. return this._cy;
  4927. }, set: function(t3) {
  4928. this._cy = t3, this.draw();
  4929. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fx", { get: function() {
  4930. return this._fx;
  4931. }, set: function(t3) {
  4932. this._fx = t3, this.draw();
  4933. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fy", { get: function() {
  4934. return this._fy;
  4935. }, set: function(t3) {
  4936. this._fy = t3, this.draw();
  4937. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  4938. t2.prototype.copyFrom.call(this, e4), this.stops.copyFrom(e4.stops), this.cx = e4.cx, this.cy = e4.cy, this.fx = e4.fx, this.fy = e4.fy;
  4939. }, Object.defineProperty(e3.prototype, "stops", { get: function() {
  4940. return this._stops;
  4941. }, enumerable: true, configurable: true }), e3.prototype.clear = function() {
  4942. this._stops.clear();
  4943. }, e3;
  4944. }(yn);
  4945. Ii.registeredClasses.RadialGradient = Sa;
  4946. var Ia = function() {
  4947. function t2() {
  4948. }
  4949. return t2.grab = [{ property: "cursor", value: "move" }, { property: "cursor", value: "grab" }, { property: "cursor", value: "-webkit-grab" }], t2.grabbing = [{ property: "cursor", value: "move" }, { property: "cursor", value: "grabbing" }, { property: "cursor", value: "-webkit-grabbing" }], t2.pointer = [{ property: "cursor", value: "pointer" }], t2.default = [{ property: "cursor", value: "default" }], t2.horizontalResize = [{ property: "cursor", value: "ew-resize" }], t2.verticalResize = [{ property: "cursor", value: "ns-resize" }], t2.notAllowed = [{ property: "cursor", value: "not-allowed" }], t2.text = [{ property: "cursor", value: "text" }], t2;
  4950. }();
  4951. const Da = { _decimalSeparator: ".", _thousandSeparator: ",", _percentPrefix: null, _percentSuffix: "%", _big_number_suffix_3: "k", _big_number_suffix_6: "M", _big_number_suffix_9: "G", _big_number_suffix_12: "T", _big_number_suffix_15: "P", _big_number_suffix_18: "E", _big_number_suffix_21: "Z", _big_number_suffix_24: "Y", _small_number_suffix_3: "m", _small_number_suffix_6: "\u03BC", _small_number_suffix_9: "n", _small_number_suffix_12: "p", _small_number_suffix_15: "f", _small_number_suffix_18: "a", _small_number_suffix_21: "z", _small_number_suffix_24: "y", _byte_suffix_B: "B", _byte_suffix_KB: "KB", _byte_suffix_MB: "MB", _byte_suffix_GB: "GB", _byte_suffix_TB: "TB", _byte_suffix_PB: "PB", _date: "yyyy-MM-dd", _date_millisecond: "mm:ss SSS", _date_second: "HH:mm:ss", _date_minute: "HH:mm", _date_hour: "HH:mm", _date_day: "MMM dd", _date_week: "ww", _date_month: "MMM", _date_year: "yyyy", _duration_millisecond: "SSS", _duration_millisecond_second: "ss.SSS", _duration_millisecond_minute: "mm:ss SSS", _duration_millisecond_hour: "hh:mm:ss SSS", _duration_millisecond_day: "d'd' mm:ss SSS", _duration_millisecond_week: "d'd' mm:ss SSS", _duration_millisecond_month: "M'm' dd'd' mm:ss SSS", _duration_millisecond_year: "y'y' MM'm' dd'd' mm:ss SSS", _duration_second: "ss", _duration_second_minute: "mm:ss", _duration_second_hour: "hh:mm:ss", _duration_second_day: "d'd' hh:mm:ss", _duration_second_week: "d'd' hh:mm:ss", _duration_second_month: "M'm' dd'd' hh:mm:ss", _duration_second_year: "y'y' MM'm' dd'd' hh:mm:ss", _duration_minute: "mm", _duration_minute_hour: "hh:mm", _duration_minute_day: "d'd' hh:mm", _duration_minute_week: "d'd' hh:mm", _duration_minute_month: "M'm' dd'd' hh:mm", _duration_minute_year: "y'y' MM'm' dd'd' hh:mm", _duration_hour: "hh'h'", _duration_hour_day: "d'd' hh'h'", _duration_hour_week: "d'd' hh'h'", _duration_hour_month: "M'm' dd'd' hh'h'", _duration_hour_year: "y'y' MM'm' dd'd' hh'h'", _duration_day: "d'd'", _duration_day_week: "d'd'", _duration_day_month: "M'm' dd'd'", _duration_day_year: "y'y' MM'm' dd'd'", _duration_week: "w'w'", _duration_week_month: "w'w'", _duration_week_year: "w'w'", _duration_month: "M'm'", _duration_month_year: "y'y' MM'm'", _duration_year: "y'y'", _era_ad: "AD", _era_bc: "BC", A: "", P: "", AM: "", PM: "", "A.M.": "", "P.M.": "", January: "", February: "", March: "", April: "", May: "", June: "", July: "", August: "", September: "", October: "", November: "", December: "", Jan: "", Feb: "", Mar: "", Apr: "", "May(short)": "May", Jun: "", Jul: "", Aug: "", Sep: "", Oct: "", Nov: "", Dec: "", Sunday: "", Monday: "", Tuesday: "", Wednesday: "", Thursday: "", Friday: "", Saturday: "", Sun: "", Mon: "", Tue: "", Wed: "", Thu: "", Fri: "", Sat: "", _dateOrd: function(t2) {
  4952. var e3 = "th";
  4953. if (t2 < 11 || t2 > 13)
  4954. switch (t2 % 10) {
  4955. case 1:
  4956. e3 = "st";
  4957. break;
  4958. case 2:
  4959. e3 = "nd";
  4960. break;
  4961. case 3:
  4962. e3 = "rd";
  4963. }
  4964. return e3;
  4965. }, "Zoom Out": "", Play: "", Stop: "", Legend: "", "Click, tap or press ENTER to toggle": "", Loading: "", Home: "", Chart: "", "Serial chart": "", "X/Y chart": "", "Pie chart": "", "Gauge chart": "", "Radar chart": "", "Sankey diagram": "", "Flow diagram": "", "Chord diagram": "", "TreeMap chart": "", "Force directed tree": "", "Sliced chart": "", Series: "", "Candlestick Series": "", "OHLC Series": "", "Column Series": "", "Line Series": "", "Pie Slice Series": "", "Funnel Series": "", "Pyramid Series": "", "X/Y Series": "", Map: "", "Press ENTER to zoom in": "", "Press ENTER to zoom out": "", "Use arrow keys to zoom in and out": "", "Use plus and minus keys on your keyboard to zoom in and out": "", Export: "", Image: "", Data: "", Print: "", "Press ENTER or use arrow keys to navigate": "", "Click, tap or press ENTER to open": "", "Click, tap or press ENTER to print.": "", "Click, tap or press ENTER to export as %1.": "", 'To save the image, right-click this link and choose "Save picture as..."': "", 'To save the image, right-click thumbnail on the left and choose "Save picture as..."': "", "(Press ESC to close this message)": "", "Image Export Complete": "", "Export operation took longer than expected. Something might have gone wrong.": "", "Saved from": "", PNG: "", JPG: "", GIF: "", SVG: "", PDF: "", JSON: "", CSV: "", XLSX: "", "Use TAB to select grip buttons or left and right arrows to change selection": "", "Use left and right arrows to move selection": "", "Use left and right arrows to move left selection": "", "Use left and right arrows to move right selection": "", "Use TAB select grip buttons or up and down arrows to change selection": "", "Use up and down arrows to move selection": "", "Use up and down arrows to move lower selection": "", "Use up and down arrows to move upper selection": "", "From %1 to %2": "", "From %1": "", "To %1": "", "No parser available for file: %1": "", "Error parsing file: %1": "", "Unable to load file: %1": "", "Invalid date": "", Close: "", Minimize: "" };
  4966. var ka, Ta = function(t2) {
  4967. function e3() {
  4968. var e4 = t2.call(this) || this;
  4969. return e4.adapter = new Yi(e4), e4._locale = Da, e4._defaultLocale = Da, e4.className = "Language", Z(ls.defaultLocale) && (e4.locale = ls.defaultLocale), e4.applyTheme(), e4;
  4970. }
  4971. return C(e3, t2), e3.prototype.getLocale = function(t3) {
  4972. return null == t3 && (t3 = this._locale), this.adapter.apply("locale", { locale: t3 }).locale;
  4973. }, e3.prototype.translate = function(t3, e4) {
  4974. for (var i3 = [], n3 = 2; n3 < arguments.length; n3++)
  4975. i3[n3 - 2] = arguments[n3];
  4976. e4 = this.getLocale(e4);
  4977. var r3 = t3, s2 = this.getTranslations(e4)[t3];
  4978. if (null === s2)
  4979. r3 = "";
  4980. else if (Z(s2))
  4981. s2 && (r3 = s2);
  4982. else if (e4 !== this._defaultLocale)
  4983. return this.translate.apply(this, T([t3, this._defaultLocale], i3));
  4984. if (i3.length)
  4985. for (var a2 = i3.length, o3 = 0; o3 < a2; ++o3)
  4986. r3 = r3.split("%" + (o3 + 1)).join(i3[o3]);
  4987. return this.adapter.apply("translate", { translation: r3, locale: e4 }).translation;
  4988. }, e3.prototype.translateAny = function(t3, e4) {
  4989. for (var i3 = [], n3 = 2; n3 < arguments.length; n3++)
  4990. i3[n3 - 2] = arguments[n3];
  4991. return this.translate.apply(this, T([t3, e4], i3));
  4992. }, e3.prototype.setTranslationAny = function(t3, e4, i3) {
  4993. (i3 || this.locale)[t3] = e4;
  4994. }, e3.prototype.translateEmpty = function(t3, e4) {
  4995. for (var i3 = [], n3 = 2; n3 < arguments.length; n3++)
  4996. i3[n3 - 2] = arguments[n3];
  4997. var r3 = this.translate.apply(this, T([t3, e4], i3));
  4998. return r3 == t3 ? "" : r3;
  4999. }, e3.prototype.translateFunc = function(t3, e4) {
  5000. e4 = this.getLocale(e4);
  5001. var i3 = this.getTranslations(e4)[t3];
  5002. return null != i3 ? i3 : e4 !== this._defaultLocale ? this.translateFunc(t3, this._defaultLocale) : function() {
  5003. return "";
  5004. };
  5005. }, e3.prototype.translateAll = function(t3, e4) {
  5006. var i3 = this;
  5007. return this.isDefault() ? t3 : zt(t3, function(t4) {
  5008. return i3.translate(t4, e4);
  5009. });
  5010. }, e3.prototype.isDefault = function() {
  5011. return this._defaultLocale === this._locale;
  5012. }, Object.defineProperty(e3.prototype, "locale", { get: function() {
  5013. return this._locale;
  5014. }, set: function(t3) {
  5015. if (this._locale != t3 && (this._locale = t3, this.events.isEnabled("localechanged"))) {
  5016. var e4 = { type: "localechanged", locale: t3, target: this };
  5017. this.events.dispatchImmediately("localechanged", e4);
  5018. }
  5019. }, enumerable: true, configurable: true }), e3.prototype.getTranslations = function(t3) {
  5020. return this.adapter.apply("translations", { translations: t3, locale: t3 }).translations;
  5021. }, e3;
  5022. }(mn), Aa = function(t2) {
  5023. function e3() {
  5024. var e4 = t2.call(this) || this;
  5025. return e4.adapter = new Yi(e4), e4.className = "TextFormatter", e4.applyTheme(), e4;
  5026. }
  5027. return C(e3, t2), e3.prototype.debug = function() {
  5028. }, e3.prototype.format = function(t3, e4) {
  5029. Z(e4) || (e4 = "svg");
  5030. var i3 = "", n3 = (t3 = this.escape(t3)).match(/\[([^\]]*?)\]/gm);
  5031. if (!n3)
  5032. return this.wrap(t3, "", e4);
  5033. for (var r3 = t3.split(/\[[^\[\]]*\]/), s2 = 0, a2 = r3.length; s2 < a2; s2++) {
  5034. var o3 = r3[s2];
  5035. if ("" !== o3) {
  5036. o3 = this.adapter.apply("chunk", o3);
  5037. var l2 = "";
  5038. s2 > 0 && (l2 = n3[s2 - 1].replace("[", "").replace("]", "")), i3 += this.wrap(o3, l2, e4);
  5039. }
  5040. }
  5041. return i3 = this.unescape(i3), this.cleanUp(i3);
  5042. }, e3.prototype.escape = function(t3) {
  5043. return t3.replace(/\[\[/g, Ii.getPlaceholder("1")).replace(/([^\/\]]{1})\]\]/g, "$1" + Ii.getPlaceholder("2")).replace(/\]\]/g, Ii.getPlaceholder("2")).replace(/\{\{/g, Ii.getPlaceholder("3")).replace(/\}\}/g, Ii.getPlaceholder("4")).replace(/\'\'/g, Ii.getPlaceholder("5"));
  5044. }, e3.prototype.unescape = function(t3) {
  5045. return t3.replace(new RegExp(Ii.getPlaceholder("1"), "g"), "[[").replace(new RegExp(Ii.getPlaceholder("2"), "g"), "]]").replace(new RegExp(Ii.getPlaceholder("3"), "g"), "{{").replace(new RegExp(Ii.getPlaceholder("4"), "g"), "}}").replace(new RegExp(Ii.getPlaceholder("5"), "g"), "''");
  5046. }, e3.prototype.cleanUp = function(t3) {
  5047. return t3.replace(/\[\[/g, "[").replace(/\]\]/g, "]").replace(/\{\{/g, "{").replace(/\}\}/g, "}").replace(/\'\'/g, "'");
  5048. }, e3.prototype.wrap = function(t3, e4, i3) {
  5049. return "" !== e4 && "/" !== e4 || (e4 = ""), "html" === i3 ? this.wrapHtml(t3, this.translateStyleShortcuts(e4)) : this.wrapSvg(t3, this.translateStyleShortcuts(e4));
  5050. }, e3.prototype.wrapSvg = function(t3, e4) {
  5051. return "" === e4 ? "<tspan>" + t3 + "</tspan>" : "<tspan style='" + e4 + "'>" + t3 + "</tspan>";
  5052. }, e3.prototype.getSvgElement = function(t3, e4) {
  5053. var i3 = new Ws("tspan");
  5054. return i3.textContent = t3, e4 && i3.node.setAttribute("style", e4), i3;
  5055. }, e3.prototype.wrapHtml = function(t3, e4) {
  5056. return "" === e4 ? "<span>" + t3 + "</span>" : "<span style='" + this.styleSvgToHtml(e4) + "'>" + t3 + "</span>";
  5057. }, e3.prototype.getHtmlElement = function(t3, e4) {
  5058. var i3 = document.createElement("span");
  5059. return i3.innerHTML = t3, e4 && i3.setAttribute("style", e4), i3;
  5060. }, e3.prototype.styleSvgToHtml = function(t3) {
  5061. return t3.replace(/fill:/, "color:");
  5062. }, e3.prototype.translateStyleShortcuts = function(t3) {
  5063. if ("" == t3 || "[ ]" == t3)
  5064. return "";
  5065. var e4 = Ii.getCache("translateStyleShortcuts_" + t3);
  5066. if (e4)
  5067. return e4;
  5068. var i3 = t3.match(/('[^']*')|("[^"]*")/gi);
  5069. if (i3)
  5070. for (var n3 = 0; n3 < i3.length; n3++)
  5071. t3 = t3.replace(i3[n3], i3[n3].replace(/['"]*/g, "").replace(/[ ]+/g, "+"));
  5072. var r3 = t3.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);
  5073. if (!r3)
  5074. return t3;
  5075. for (n3 = 0; n3 < r3.length; n3++)
  5076. r3[n3].match(/^bold$/i) ? r3[n3] = "font-weight:" + r3[n3] : "/" == r3[n3] ? r3[n3] = "" : r3[n3].match(/:/) ? r3[n3] = r3[n3].replace(/\+/g, " ") : r3[n3] = "fill:" + r3[n3];
  5077. var s2 = r3.join(";");
  5078. return Ii.setCache("translateStyleShortcuts_" + t3, s2), s2;
  5079. }, e3.prototype.chunk = function(t3, e4, i3) {
  5080. void 0 === e4 && (e4 = false), void 0 === i3 && (i3 = false);
  5081. var n3 = [];
  5082. t3 = this.escape(t3);
  5083. for (var r3 = e4 ? t3.split("'") : [t3], s2 = 0; s2 < r3.length; s2++) {
  5084. var a2 = r3[s2];
  5085. if ("" !== a2)
  5086. if (s2 % 2 == 0)
  5087. for (var o3 = (a2 = (a2 = a2.replace(/\]\[/g, "]" + wn + "[")).replace(/\[\]/g, "[ ]")).split(/[\[\]]+/), l2 = 0; l2 < o3.length; l2++)
  5088. (h2 = this.cleanUp(this.unescape(o3[l2]))) !== wn && "" !== h2 && (l2 % 2 == 0 ? n3.push({ type: "value", text: this.adapter.apply("chunk", h2) }) : n3.push({ type: i3 ? "value" : "format", text: "[" + h2 + "]" }));
  5089. else
  5090. for (o3 = a2.split(/[\[\]]+/), l2 = 0; l2 < o3.length; l2++) {
  5091. var h2;
  5092. "" !== (h2 = this.cleanUp(this.unescape(o3[l2]))) && (l2 % 2 == 0 ? n3.push({ type: "text", text: h2 }) : this.isImage(h2) ? n3.push({ type: "image", text: "[" + h2 + "]" }) : n3.push({ type: "format", text: "[" + h2 + "]" }));
  5093. }
  5094. }
  5095. return n3;
  5096. }, e3.prototype.isImage = function(t3) {
  5097. return !!t3.match(/img[ ]?:/);
  5098. }, e3;
  5099. }(yn);
  5100. function Va() {
  5101. return null == ka && (ka = new Aa()), ka;
  5102. }
  5103. Ii.registeredClasses.TextFormatter = Aa;
  5104. var Fa = function(t2) {
  5105. function e3() {
  5106. var e4 = t2.call(this) || this;
  5107. return e4._negativeBase = 0, e4._numberFormat = "#,###.#####", e4._outputFormat = "svg", e4._smallNumberThreshold = 1, e4._forceLTR = false, e4.className = "NumberFormatter", e4.applyTheme(), e4;
  5108. }
  5109. return C(e3, t2), e3.prototype.dispose = function() {
  5110. t2.prototype.dispose.call(this), this.language && this.language.dispose();
  5111. }, Object.defineProperty(e3.prototype, "language", { get: function() {
  5112. return this._language || (this.sprite ? this._language = this.sprite.language : this._language = new Ta()), this._language;
  5113. }, set: function(t3) {
  5114. this._language = t3;
  5115. }, enumerable: true, configurable: true }), e3.prototype.format = function(t3, e4, i3) {
  5116. var n3;
  5117. (void 0 === e4 || Q(e4) && "number" === e4.toLowerCase()) && (e4 = this._numberFormat);
  5118. var r3 = Number(t3);
  5119. if (et(e4))
  5120. try {
  5121. return this.intlLocales ? new Intl.NumberFormat(this.intlLocales, e4).format(r3) : new Intl.NumberFormat(void 0, e4).format(r3);
  5122. } catch (t4) {
  5123. return "Invalid";
  5124. }
  5125. else {
  5126. e4 = Zn(e4);
  5127. var s2 = this.parseFormat(e4, this.language), a2 = void 0;
  5128. a2 = r3 > this._negativeBase ? s2.positive : r3 < this._negativeBase ? s2.negative : s2.zero, Z(i3) && !a2.mod && ((a2 = ze(a2)).decimals.active = 0 == r3 ? 0 : i3), n3 = a2.template.split(wn).join(this.applyFormat(r3, a2));
  5129. }
  5130. return this.forceLTR && (n3 = "\u200E" + n3), n3;
  5131. }, e3.prototype.parseFormat = function(t3, e4) {
  5132. var i3 = this, n3 = this.getCache(t3);
  5133. if (Z(n3))
  5134. return n3;
  5135. var r3 = { positive: { thousands: { active: -1, passive: -1, interval: -1, separator: e4.translateEmpty("_thousandSeparator") }, decimals: { active: -1, passive: -1, separator: e4.translateEmpty("_decimalSeparator") }, template: "", source: "", parsed: false }, negative: { thousands: { active: -1, passive: -1, interval: -1, separator: e4.translateEmpty("_thousandSeparator") }, decimals: { active: -1, passive: -1, separator: e4.translateEmpty("_decimalSeparator") }, template: "", source: "", parsed: false }, zero: { thousands: { active: -1, passive: -1, interval: -1, separator: e4.translateEmpty("_thousandSeparator") }, decimals: { active: -1, passive: -1, separator: e4.translateEmpty("_decimalSeparator") }, template: "", source: "", parsed: false } }, s2 = (t3 = t3.replace("||", Cn)).split("|");
  5136. return r3.positive.source = s2[0], void 0 === s2[2] ? r3.zero = r3.positive : r3.zero.source = s2[2], void 0 === s2[1] ? r3.negative = r3.positive : r3.negative.source = s2[1], Ne(r3, function(t4, e5) {
  5137. if (!e5.parsed)
  5138. if (void 0 === i3.getCache(e5.source)) {
  5139. var n4 = e5.source;
  5140. "number" === n4.toLowerCase() && (n4 = Q(i3._numberFormat) ? i3._numberFormat : "#,###.#####");
  5141. for (var s3 = Va().chunk(n4, true), a2 = 0; a2 < s3.length; a2++) {
  5142. var o3 = s3[a2];
  5143. if (o3.text = o3.text.replace(Cn, "|"), "value" === o3.type) {
  5144. var l2 = o3.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);
  5145. if (l2)
  5146. if (null === l2 || "" === l2[0])
  5147. e5.template += o3.text;
  5148. else {
  5149. var h2 = l2[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);
  5150. h2 && (e5.mod = h2[0].toLowerCase(), e5.modSpacing = !!l2[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));
  5151. var p2 = l2[0].split(".");
  5152. if ("" === p2[0])
  5153. ;
  5154. else {
  5155. e5.thousands.active = (p2[0].match(/0/g) || []).length, e5.thousands.passive = (p2[0].match(/\#/g) || []).length + e5.thousands.active;
  5156. var u2 = p2[0].split(",");
  5157. 1 === u2.length || (e5.thousands.interval = q(u2.pop()).length, 0 === e5.thousands.interval && (e5.thousands.interval = -1));
  5158. }
  5159. void 0 === p2[1] || (e5.decimals.active = (p2[1].match(/0/g) || []).length, e5.decimals.passive = (p2[1].match(/\#/g) || []).length + e5.decimals.active), e5.template += o3.text.split(l2[0]).join(wn);
  5160. }
  5161. } else
  5162. e5.template += o3.text;
  5163. }
  5164. i3.setCache(e5.source, e5), e5.parsed = true;
  5165. } else
  5166. r3[t4] = i3.getCache(e5.source);
  5167. }), this.setCache(t3, r3), r3;
  5168. }, e3.prototype.applyFormat = function(t3, e4) {
  5169. var i3 = t3 < 0;
  5170. t3 = Math.abs(t3);
  5171. var n3, r3 = "", s2 = "", a2 = e4.mod ? e4.mod.split("") : [];
  5172. if (-1 !== a2.indexOf("b")) {
  5173. var o3 = this.applyPrefix(t3, this.bytePrefixes, -1 !== a2.indexOf("!"));
  5174. t3 = o3[0], r3 = o3[1], s2 = o3[2], e4.modSpacing && (s2 = " " + s2);
  5175. } else if (-1 !== a2.indexOf("a")) {
  5176. var l2 = this.applyPrefix(t3, t3 < this.smallNumberThreshold ? this.smallNumberPrefixes : this.bigNumberPrefixes, -1 !== a2.indexOf("!"));
  5177. t3 = l2[0], r3 = l2[1], s2 = l2[2], e4.modSpacing && (s2 = " " + s2);
  5178. } else if (-1 !== a2.indexOf("p")) {
  5179. var h2 = Math.min(t3.toString().length + 2, 21);
  5180. t3 = parseFloat(t3.toPrecision(h2)), r3 = this.language.translate("_percentPrefix") || "", s2 = this.language.translate("_percentSuffix") || "", "" == r3 && "" == s2 && (s2 = "%");
  5181. } else
  5182. -1 !== a2.indexOf("%") ? (h2 = yt(t3.toString().length + 2, 21), t3 *= 100, t3 = parseFloat(t3.toPrecision(h2)), s2 = "%") : -1 !== a2.indexOf("\u2030") && (h2 = yt(t3.toString().length + 3, 21), t3 *= 1e3, t3 = parseFloat(t3.toPrecision(h2)), s2 = "\u2030");
  5183. if (-1 !== a2.indexOf("e"))
  5184. n3 = e4.decimals.passive >= 0 ? t3.toExponential(e4.decimals.passive).split("e") : t3.toExponential().split("e"), t3 = Number(n3[0]), s2 = "e" + n3[1], e4.modSpacing && (s2 = " " + s2);
  5185. else if (0 === e4.decimals.passive)
  5186. t3 = Math.round(t3);
  5187. else if (e4.decimals.passive > 0) {
  5188. var p2 = Math.pow(10, e4.decimals.passive);
  5189. t3 = Math.round(t3 * p2) / p2;
  5190. }
  5191. var u2 = "", d2 = Jn(t3).split("."), c2 = d2[0];
  5192. if (c2.length < e4.thousands.active && (c2 = Array(e4.thousands.active - c2.length + 1).join("0") + c2), e4.thousands.interval > 0) {
  5193. for (var f2 = [], g2 = c2.split("").reverse().join(""), y2 = 0, m2 = c2.length; y2 <= m2; y2 += e4.thousands.interval) {
  5194. var v2 = g2.substr(y2, e4.thousands.interval).split("").reverse().join("");
  5195. "" !== v2 && f2.unshift(v2);
  5196. }
  5197. c2 = f2.join(e4.thousands.separator);
  5198. }
  5199. u2 += c2, 1 === d2.length && d2.push("");
  5200. var b2 = d2[1];
  5201. return b2.length < e4.decimals.active && (b2 += Array(e4.decimals.active - b2.length + 1).join("0")), "" !== b2 && (u2 += e4.decimals.separator + b2), "" === u2 && (u2 = "0"), 0 !== t3 && i3 && -1 === a2.indexOf("s") && (u2 = "-" + u2), r3 && (u2 = r3 + u2), s2 && (u2 += s2), u2;
  5202. }, e3.prototype.applyPrefix = function(t3, e4, i3) {
  5203. void 0 === i3 && (i3 = false);
  5204. for (var n3 = t3, r3 = "", s2 = "", a2 = false, o3 = 1, l2 = 0, h2 = e4.length; l2 < h2; l2++)
  5205. e4[l2].number <= t3 && (0 === e4[l2].number ? n3 = 0 : (n3 = t3 / e4[l2].number, o3 = e4[l2].number), r3 = e4[l2].prefix, s2 = e4[l2].suffix, a2 = true);
  5206. return !a2 && i3 && e4.length && 0 != t3 && (n3 = t3 / e4[0].number, r3 = e4[0].prefix, s2 = e4[0].suffix, a2 = true), a2 && (n3 = parseFloat(n3.toPrecision(yt(o3.toString().length + Math.floor(n3).toString().replace(/[^0-9]*/g, "").length, 21)))), [n3, r3, s2];
  5207. }, e3.prototype.invalidateSprite = function() {
  5208. this.sprite && this.sprite.invalidate();
  5209. }, Object.defineProperty(e3.prototype, "numberFormat", { get: function() {
  5210. return this._numberFormat;
  5211. }, set: function(t3) {
  5212. this._numberFormat = t3;
  5213. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "intlLocales", { get: function() {
  5214. return this._intlLocales;
  5215. }, set: function(t3) {
  5216. this._intlLocales = t3, this.invalidateSprite();
  5217. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "negativeBase", { get: function() {
  5218. return this._negativeBase;
  5219. }, set: function(t3) {
  5220. this._negativeBase = t3;
  5221. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bigNumberPrefixes", { get: function() {
  5222. return Z(this._bigNumberPrefixes) || (this._bigNumberPrefixes = [{ number: 1e3, suffix: this.language.translate("_big_number_suffix_3") }, { number: 1e6, suffix: this.language.translate("_big_number_suffix_6") }, { number: 1e9, suffix: this.language.translate("_big_number_suffix_9") }, { number: 1e12, suffix: this.language.translate("_big_number_suffix_12") }, { number: 1e15, suffix: this.language.translate("_big_number_suffix_15") }, { number: 1e18, suffix: this.language.translate("_big_number_suffix_18") }, { number: 1e21, suffix: this.language.translate("_big_number_suffix_21") }, { number: 1e24, suffix: this.language.translate("_big_number_suffix_24") }]), this._bigNumberPrefixes;
  5223. }, set: function(t3) {
  5224. this._bigNumberPrefixes = t3;
  5225. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "smallNumberPrefixes", { get: function() {
  5226. return Z(this._smallNumberPrefixes) || (this._smallNumberPrefixes = [{ number: 1e-24, suffix: this.language.translate("_small_number_suffix_24") }, { number: 1e-21, suffix: this.language.translate("_small_number_suffix_21") }, { number: 1e-18, suffix: this.language.translate("_small_number_suffix_18") }, { number: 1e-15, suffix: this.language.translate("_small_number_suffix_15") }, { number: 1e-12, suffix: this.language.translate("_small_number_suffix_12") }, { number: 1e-9, suffix: this.language.translate("_small_number_suffix_9") }, { number: 1e-6, suffix: this.language.translate("_small_number_suffix_6") }, { number: 1e-3, suffix: this.language.translate("_small_number_suffix_3") }]), this._smallNumberPrefixes;
  5227. }, set: function(t3) {
  5228. this._smallNumberPrefixes = t3;
  5229. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "smallNumberThreshold", { get: function() {
  5230. return this._smallNumberThreshold;
  5231. }, set: function(t3) {
  5232. this._smallNumberThreshold = t3;
  5233. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bytePrefixes", { get: function() {
  5234. return Z(this._bytePrefixes) || (this._bytePrefixes = [{ number: 1, suffix: this.language.translate("_byte_suffix_B") }, { number: 1024, suffix: this.language.translate("_byte_suffix_KB") }, { number: 1048576, suffix: this.language.translate("_byte_suffix_MB") }, { number: 1073741824, suffix: this.language.translate("_byte_suffix_GB") }, { number: 1099511627776, suffix: this.language.translate("_byte_suffix_TB") }, { number: 1125899906842624, suffix: this.language.translate("_byte_suffix_PB") }]), this._bytePrefixes;
  5235. }, set: function(t3) {
  5236. this._bytePrefixes = t3;
  5237. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outputFormat", { get: function() {
  5238. return this._outputFormat;
  5239. }, set: function(t3) {
  5240. this._outputFormat = t3.toLowerCase(), this.invalidateSprite();
  5241. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "forceLTR", { get: function() {
  5242. return this._forceLTR;
  5243. }, set: function(t3) {
  5244. this._forceLTR = t3, this.invalidateSprite();
  5245. }, enumerable: true, configurable: true }), e3.prototype.escape = function(t3) {
  5246. return t3.replace("||", Cn);
  5247. }, e3.prototype.unescape = function(t3) {
  5248. return t3.replace(Cn, "|");
  5249. }, e3;
  5250. }(yn);
  5251. Ii.registeredClasses.NumberFormatter = Fa;
  5252. var Ma = function(t2) {
  5253. function e3() {
  5254. var e4 = t2.call(this) || this;
  5255. return e4._dateFormat = "yyyy-MM-dd", e4._inputDateFormat = "yyyy-MM-dd", e4._utc = false, e4.timezoneMinutes = 0, e4._firstDayOfWeek = 1, e4.months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], e4.monthsShort = ["Jan", "Feb", "Mar", "Apr", "May(short)", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], e4.weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], e4.weekdaysShort = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], e4._outputFormat = "svg", e4.capitalize = true, e4.className = "DateFormatter", e4.applyTheme(), e4;
  5256. }
  5257. return C(e3, t2), Object.defineProperty(e3.prototype, "language", { get: function() {
  5258. return this._language;
  5259. }, set: function(t3) {
  5260. this._language = t3, this.dateFormat = this._language.translate("_date");
  5261. }, enumerable: true, configurable: true }), e3.prototype.format = function(t3, e4, i3) {
  5262. var n3, r3;
  5263. if (this.language || (this.sprite ? this.language = this.sprite.language : this.language = new Ta()), void 0 !== e4 && "" !== e4 || (e4 = this._dateFormat), r3 = Q(t3) ? this.parse(t3) : Qn(t3), et(e4))
  5264. try {
  5265. return this.intlLocales ? new Intl.DateTimeFormat(this.intlLocales, e4).format(r3) : new Intl.DateTimeFormat(void 0, e4).format(r3);
  5266. } catch (t4) {
  5267. return "Invalid";
  5268. }
  5269. else {
  5270. e4 = Zn(e4);
  5271. var s2 = this.parseFormat(e4);
  5272. if (Z(this.timezoneOffset) ? r3.setMinutes(r3.getMinutes() + r3.getTimezoneOffset() - this.timezoneOffset) : Z(this.timezone) && false !== i3 && (r3 = oa(r3, this.timezone)), !tt(r3.getTime()))
  5273. return this.language.translate("Invalid date");
  5274. n3 = this.applyFormat(r3, s2, this.language), this.capitalize && (n3 = n3.replace(/^.{1}/, n3.substr(0, 1).toUpperCase()));
  5275. }
  5276. return n3;
  5277. }, e3.prototype.parseFormat = function(t3) {
  5278. var e4 = this.getCache(t3);
  5279. if (Z(e4))
  5280. return e4;
  5281. for (var i3 = { template: "", parts: [] }, n3 = Va().chunk(t3, true), r3 = 0; r3 < n3.length; r3++) {
  5282. var s2 = n3[r3];
  5283. if ("value" === s2.type) {
  5284. s2.text.match(/^date$/i) && Q(this._dateFormat) && (s2.text = this._dateFormat);
  5285. var a2 = s2.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);
  5286. if (a2)
  5287. for (var o3 = 0; o3 < a2.length; o3++)
  5288. i3.parts.push(a2[o3]), s2.text = s2.text.replace(a2[o3], wn);
  5289. }
  5290. i3.template += s2.text;
  5291. }
  5292. return this.setCache(t3, i3), i3;
  5293. }, e3.prototype.applyFormat = function(t3, e4, i3) {
  5294. var n3, r3, s2, a2, o3, l2, h2, p2, u2 = e4.template, d2 = t3.getTimezoneOffset(), c2 = t3.getTime();
  5295. this.utc ? (n3 = t3.getUTCFullYear(), r3 = t3.getUTCMonth(), s2 = t3.getUTCDay(), a2 = t3.getUTCDate(), o3 = t3.getUTCHours(), l2 = t3.getUTCMinutes(), h2 = t3.getUTCSeconds(), p2 = t3.getUTCMilliseconds()) : (n3 = t3.getFullYear(), r3 = t3.getMonth(), s2 = t3.getDay(), a2 = t3.getDate(), o3 = t3.getHours(), l2 = t3.getMinutes(), h2 = t3.getSeconds(), p2 = t3.getMilliseconds());
  5296. for (var f2 = 0, g2 = e4.parts.length; f2 < g2; f2++) {
  5297. var y2 = "";
  5298. switch (e4.parts[f2]) {
  5299. case "G":
  5300. y2 = i3.translate(n3 < 0 ? "_era_bc" : "_era_ad");
  5301. break;
  5302. case "yyyy":
  5303. y2 = Math.abs(n3).toString(), n3 < 0 && (y2 += i3.translate("_era_bc"));
  5304. break;
  5305. case "yyy":
  5306. case "yy":
  5307. case "y":
  5308. y2 = Math.abs(n3).toString().substr(-e4.parts[f2].length), n3 < 0 && (y2 += i3.translate("_era_bc"));
  5309. break;
  5310. case "YYYY":
  5311. case "YYY":
  5312. case "YY":
  5313. case "Y":
  5314. var m2 = n3;
  5315. 1 == ir(t3) && s2 > 4 && m2--, y2 = "YYYY" == e4.parts[f2] ? Math.abs(m2).toString() : Math.abs(m2).toString().substr(-e4.parts[f2].length), m2 < 0 && (y2 += i3.translate("_era_bc"));
  5316. break;
  5317. case "u":
  5318. case "F":
  5319. case "g":
  5320. break;
  5321. case "q":
  5322. y2 = "" + Math.ceil((t3.getMonth() + 1) / 3);
  5323. break;
  5324. case "MMMMM":
  5325. y2 = i3.translate(this.months[r3]).substr(0, 1);
  5326. break;
  5327. case "MMMM":
  5328. y2 = i3.translate(this.months[r3]);
  5329. break;
  5330. case "MMM":
  5331. y2 = i3.translate(this.monthsShort[r3]);
  5332. break;
  5333. case "MM":
  5334. y2 = Gn(r3 + 1, 2, "0");
  5335. break;
  5336. case "M":
  5337. y2 = (r3 + 1).toString();
  5338. break;
  5339. case "ww":
  5340. y2 = Gn(ir(t3, this.utc), 2, "0");
  5341. break;
  5342. case "w":
  5343. y2 = ir(t3, this.utc).toString();
  5344. break;
  5345. case "W":
  5346. y2 = nr(t3, this.utc).toString();
  5347. break;
  5348. case "dd":
  5349. y2 = Gn(a2, 2, "0");
  5350. break;
  5351. case "d":
  5352. y2 = a2.toString();
  5353. break;
  5354. case "DD":
  5355. case "DDD":
  5356. y2 = Gn(er(t3, this.utc).toString(), e4.parts[f2].length, "0");
  5357. break;
  5358. case "D":
  5359. y2 = er(t3, this.utc).toString();
  5360. break;
  5361. case "t":
  5362. y2 = i3.translateFunc("_dateOrd").call(this, a2);
  5363. break;
  5364. case "E":
  5365. y2 = (s2 || 7).toString();
  5366. break;
  5367. case "EE":
  5368. y2 = Gn((s2 || 7).toString(), 2, "0");
  5369. break;
  5370. case "EEE":
  5371. case "eee":
  5372. y2 = i3.translate(this.weekdaysShort[s2]);
  5373. break;
  5374. case "EEEE":
  5375. case "eeee":
  5376. y2 = i3.translate(this.weekdays[s2]);
  5377. break;
  5378. case "EEEEE":
  5379. case "eeeee":
  5380. y2 = i3.translate(this.weekdays[s2]).substr(0, 1);
  5381. break;
  5382. case "e":
  5383. case "ee":
  5384. y2 = (s2 - this.firstDayOfWeek + 1).toString(), "ee" == e4.parts[f2] && (y2 = Gn(y2, 2, "0"));
  5385. break;
  5386. case "a":
  5387. y2 = o3 >= 12 ? i3.translate("PM") : i3.translate("AM");
  5388. break;
  5389. case "aa":
  5390. y2 = o3 >= 12 ? i3.translate("P.M.") : i3.translate("A.M.");
  5391. break;
  5392. case "aaa":
  5393. y2 = o3 >= 12 ? i3.translate("P") : i3.translate("A");
  5394. break;
  5395. case "h":
  5396. y2 = sr(o3).toString();
  5397. break;
  5398. case "hh":
  5399. y2 = Gn(sr(o3), 2, "0");
  5400. break;
  5401. case "H":
  5402. y2 = o3.toString();
  5403. break;
  5404. case "HH":
  5405. y2 = Gn(o3, 2, "0");
  5406. break;
  5407. case "K":
  5408. y2 = sr(o3, 0).toString();
  5409. break;
  5410. case "KK":
  5411. y2 = Gn(sr(o3, 0), 2, "0");
  5412. break;
  5413. case "k":
  5414. y2 = (o3 + 1).toString();
  5415. break;
  5416. case "kk":
  5417. y2 = Gn(o3 + 1, 2, "0");
  5418. break;
  5419. case "m":
  5420. y2 = l2.toString();
  5421. break;
  5422. case "mm":
  5423. y2 = Gn(l2, 2, "0");
  5424. break;
  5425. case "s":
  5426. y2 = h2.toString();
  5427. break;
  5428. case "ss":
  5429. y2 = Gn(h2, 2, "0");
  5430. break;
  5431. case "S":
  5432. case "SS":
  5433. case "SSS":
  5434. y2 = Math.round(p2 / 1e3 * Math.pow(10, e4.parts[f2].length)).toString();
  5435. break;
  5436. case "x":
  5437. y2 = c2.toString();
  5438. break;
  5439. case "n":
  5440. case "nn":
  5441. case "nnn":
  5442. y2 = Gn(p2, e4.parts[f2].length, "0");
  5443. break;
  5444. case "z":
  5445. y2 = ar(t3, false, false, this.utc);
  5446. break;
  5447. case "zz":
  5448. y2 = ar(t3, true, false, this.utc);
  5449. break;
  5450. case "zzz":
  5451. y2 = ar(t3, false, true, this.utc);
  5452. break;
  5453. case "zzzz":
  5454. y2 = ar(t3, true, true, this.utc);
  5455. break;
  5456. case "Z":
  5457. case "ZZ":
  5458. var v2 = Math.abs(d2) / 60, b2 = Math.floor(v2), x2 = 60 * v2 - 60 * b2;
  5459. this.utc && (b2 = 0, x2 = 0), "Z" == e4.parts[f2] ? (y2 = "GMT", y2 += d2 > 0 ? "-" : "+", y2 += Gn(b2, 2) + ":" + Gn(x2, 2)) : (y2 = d2 > 0 ? "-" : "+", y2 += Gn(b2, 2) + Gn(x2, 2));
  5460. break;
  5461. case "i":
  5462. y2 = t3.toISOString();
  5463. break;
  5464. case "I":
  5465. y2 = t3.toUTCString();
  5466. }
  5467. u2 = u2.replace(wn, y2);
  5468. }
  5469. return u2;
  5470. }, e3.prototype.parse = function(t3, e4) {
  5471. if (Z(e4) || (e4 = this.inputDateFormat), t3 instanceof Date)
  5472. return t3;
  5473. if ("number" == typeof t3)
  5474. return new Date(t3);
  5475. var i3;
  5476. "string" != typeof t3 && (t3 = t3.toString()), this.language || (this.sprite ? this.language = this.sprite.language : this.language = new Ta());
  5477. var n3 = "";
  5478. e4 = (e4 = Zn(e4)).substr(0, t3.length);
  5479. for (var r3 = this.parseFormat(e4), s2 = { year: -1, year3: -1, year2: -1, year1: -1, month: -1, monthShort: -1, monthLong: -1, weekdayShort: -1, weekdayLong: -1, day: -1, yearDay: -1, week: -1, hourBase0: -1, hour12Base0: -1, hourBase1: -1, hour12Base1: -1, minute: -1, second: -1, millisecond: -1, millisecondDigits: -1, am: -1, zone: -1, timestamp: -1, iso: -1 }, a2 = { year: 1970, month: 0, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0, timestamp: null, offset: 0, utc: this.utc }, o3 = 0, l2 = 0, h2 = 0; h2 < r3.parts.length; h2++) {
  5480. switch (l2 = h2 + o3 + 1, r3.parts[h2]) {
  5481. case "yyyy":
  5482. case "YYYY":
  5483. n3 += "([0-9]{4})", s2.year = l2;
  5484. break;
  5485. case "yyy":
  5486. case "YYY":
  5487. n3 += "([0-9]{3})", s2.year3 = l2;
  5488. break;
  5489. case "yy":
  5490. case "YY":
  5491. n3 += "([0-9]{2})", s2.year2 = l2;
  5492. break;
  5493. case "y":
  5494. case "Y":
  5495. n3 += "([0-9]{1})", s2.year1 = l2;
  5496. break;
  5497. case "MMMM":
  5498. n3 += "(" + this.getStringList(this.months).join("|") + ")", s2.monthLong = l2;
  5499. break;
  5500. case "MMM":
  5501. n3 += "(" + this.getStringList(this.monthsShort).join("|") + ")", s2.monthShort = l2;
  5502. break;
  5503. case "MM":
  5504. case "M":
  5505. n3 += "([0-9]{2}|[0-9]{1})", s2.month = l2;
  5506. break;
  5507. case "ww":
  5508. case "w":
  5509. n3 += "([0-9]{2}|[0-9]{1})", s2.week = l2;
  5510. break;
  5511. case "dd":
  5512. case "d":
  5513. n3 += "([0-9]{2}|[0-9]{1})", s2.day = l2;
  5514. break;
  5515. case "DDD":
  5516. case "DD":
  5517. case "D":
  5518. n3 += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s2.yearDay = l2;
  5519. break;
  5520. case "dddd":
  5521. n3 += "(" + this.getStringList(this.weekdays).join("|") + ")", s2.weekdayLong = l2;
  5522. break;
  5523. case "ddd":
  5524. n3 += "(" + this.getStringList(this.weekdaysShort).join("|") + ")", s2.weekdayShort = l2;
  5525. break;
  5526. case "aaa":
  5527. case "aa":
  5528. case "a":
  5529. n3 += "(" + this.getStringList(["AM", "PM", "A.M.", "P.M.", "A", "P"]).join("|") + ")", s2.am = l2;
  5530. break;
  5531. case "hh":
  5532. case "h":
  5533. n3 += "([0-9]{2}|[0-9]{1})", s2.hour12Base1 = l2;
  5534. break;
  5535. case "HH":
  5536. case "H":
  5537. n3 += "([0-9]{2}|[0-9]{1})", s2.hourBase0 = l2;
  5538. break;
  5539. case "KK":
  5540. case "K":
  5541. n3 += "([0-9]{2}|[0-9]{1})", s2.hour12Base0 = l2;
  5542. break;
  5543. case "kk":
  5544. case "k":
  5545. n3 += "([0-9]{2}|[0-9]{1})", s2.hourBase1 = l2;
  5546. break;
  5547. case "mm":
  5548. case "m":
  5549. n3 += "([0-9]{2}|[0-9]{1})", s2.minute = l2;
  5550. break;
  5551. case "ss":
  5552. case "s":
  5553. n3 += "([0-9]{2}|[0-9]{1})", s2.second = l2;
  5554. break;
  5555. case "SSS":
  5556. case "SS":
  5557. case "S":
  5558. n3 += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s2.millisecond = l2, s2.millisecondDigits = r3.parts[h2].length;
  5559. break;
  5560. case "nnn":
  5561. case "nn":
  5562. case "n":
  5563. n3 += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s2.millisecond = l2;
  5564. break;
  5565. case "x":
  5566. n3 += "([0-9]{1,})", s2.timestamp = l2;
  5567. break;
  5568. case "Z":
  5569. n3 += "GMT([-+]+[0-9]{2}:[0-9]{2})", s2.zone = l2;
  5570. break;
  5571. case "ZZ":
  5572. n3 += "([\\-+]+[0-9]{2}[0-9]{2})", s2.zone = l2;
  5573. break;
  5574. case "i":
  5575. n3 += "([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2}).?([0-9]{0,3})([zZ]|[+-][0-9]{2}:?[0-9]{2}|$)", s2.iso = l2, o3 += 7;
  5576. break;
  5577. case "G":
  5578. case "YYYY":
  5579. case "YYY":
  5580. case "YY":
  5581. case "Y":
  5582. case "MMMMM":
  5583. case "W":
  5584. case "EEEEE":
  5585. case "EEEE":
  5586. case "EEE":
  5587. case "EE":
  5588. case "E":
  5589. case "eeeee":
  5590. case "eeee":
  5591. case "eee":
  5592. case "ee":
  5593. case "e":
  5594. case "zzzz":
  5595. case "zzz":
  5596. case "zz":
  5597. case "z":
  5598. case "t":
  5599. o3--;
  5600. }
  5601. n3 += "[^0-9]*";
  5602. }
  5603. var p2 = new RegExp(n3), u2 = t3.match(p2);
  5604. if (u2) {
  5605. if (s2.year > -1 && (a2.year = parseInt(u2[s2.year])), s2.year3 > -1) {
  5606. var d2 = parseInt(u2[s2.year3]);
  5607. d2 += 1e3, a2.year = d2;
  5608. }
  5609. if (s2.year2 > -1 && (d2 = parseInt(u2[s2.year2]), d2 += d2 > 50 ? 1e3 : 2e3, a2.year = d2), s2.year1 > -1 && (d2 = parseInt(u2[s2.year1]), d2 = 10 * Math.floor(new Date().getFullYear() / 10) + d2, a2.year = d2), s2.monthLong > -1 && (a2.month = this.resolveMonth(u2[s2.monthLong])), s2.monthShort > -1 && (a2.month = this.resolveShortMonth(u2[s2.monthShort])), s2.month > -1 && (a2.month = parseInt(u2[s2.month]) - 1), s2.week > -1 && -1 === s2.day && (a2.month = 0, a2.day = rr(parseInt(u2[s2.week]), a2.year, 1, this.utc)), s2.day > -1 && (a2.day = parseInt(u2[s2.day])), s2.yearDay > -1 && (a2.month = 0, a2.day = parseInt(u2[s2.yearDay])), s2.hourBase0 > -1 && (a2.hour = parseInt(u2[s2.hourBase0])), s2.hourBase1 > -1 && (a2.hour = parseInt(u2[s2.hourBase1]) - 1), s2.hour12Base0 > -1 && (11 == (d2 = parseInt(u2[s2.hour12Base0])) && (d2 = 0), s2.am > -1 && !this.isAm(u2[s2.am]) && (d2 += 12), a2.hour = d2), s2.hour12Base1 > -1 && (12 == (d2 = parseInt(u2[s2.hour12Base1])) && (d2 = 0), s2.am > -1 && !this.isAm(u2[s2.am]) && (d2 += 12), a2.hour = d2), s2.minute > -1 && (a2.minute = parseInt(u2[s2.minute])), s2.second > -1 && (a2.second = parseInt(u2[s2.second])), s2.millisecond > -1 && (d2 = parseInt(u2[s2.millisecond]), 2 == s2.millisecondDigits ? d2 *= 10 : 1 == s2.millisecondDigits && (d2 *= 100), a2.millisecond = d2), s2.timestamp > -1) {
  5610. a2.timestamp = parseInt(u2[s2.timestamp]);
  5611. var c2 = new Date(a2.timestamp);
  5612. a2.year = c2.getUTCFullYear(), a2.month = c2.getUTCMonth(), a2.day = c2.getUTCDate(), a2.hour = c2.getUTCHours(), a2.minute = c2.getUTCMinutes(), a2.second = c2.getUTCSeconds(), a2.millisecond = c2.getUTCMilliseconds();
  5613. }
  5614. s2.zone > -1 && (a2.offset = this.resolveTimezoneOffset(new Date(a2.year, a2.month, a2.day), u2[s2.zone])), s2.iso > -1 && (a2.year = U(u2[s2.iso + 0]), a2.month = U(u2[s2.iso + 1]) - 1, a2.day = U(u2[s2.iso + 2]), a2.hour = U(u2[s2.iso + 3]), a2.minute = U(u2[s2.iso + 4]), a2.second = U(u2[s2.iso + 5]), a2.millisecond = U(u2[s2.iso + 6]), "Z" == u2[s2.iso + 7] || "z" == u2[s2.iso + 7] ? a2.utc = true : "" != u2[s2.iso + 7] && (a2.offset = this.resolveTimezoneOffset(new Date(a2.year, a2.month, a2.day), u2[s2.iso + 7]))), i3 = a2.utc ? new Date(Date.UTC(a2.year, a2.month, a2.day, a2.hour, a2.minute, a2.second, a2.millisecond)) : new Date(a2.year, a2.month, a2.day, a2.hour, a2.minute + a2.offset, a2.second, a2.millisecond);
  5615. } else
  5616. i3 = new Date(t3);
  5617. return i3;
  5618. }, e3.prototype.resolveTimezoneOffset = function(t3, e4) {
  5619. if (e4.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)) {
  5620. var i3 = q(e4.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)), n3 = i3[1], r3 = i3[2], s2 = i3[3], a2 = 60 * parseInt(r3) + parseInt(s2);
  5621. return "+" == n3 && (a2 *= -1), a2 - (t3 || new Date()).getTimezoneOffset();
  5622. }
  5623. return 0;
  5624. }, e3.prototype.resolveMonth = function(t3) {
  5625. var e4 = this.months.indexOf(t3);
  5626. return e4 > -1 || this.language && !this.language.isDefault() && (e4 = this.language.translateAll(this.months).indexOf(t3)) > -1 ? e4 : 0;
  5627. }, e3.prototype.resolveShortMonth = function(t3) {
  5628. var e4 = this.monthsShort.indexOf(t3);
  5629. return e4 > -1 || (e4 = this.months.indexOf(t3)) > -1 || this.language && !this.language.isDefault() && (e4 = this.language.translateAll(this.monthsShort).indexOf(t3)) > -1 ? e4 : 0;
  5630. }, e3.prototype.isAm = function(t3) {
  5631. return this.getStringList(["AM", "A.M.", "A"]).indexOf(t3.toUpperCase()) > -1;
  5632. }, e3.prototype.invalidateSprite = function() {
  5633. this.sprite && this.sprite.invalidate();
  5634. }, e3.prototype.getStringList = function(t3) {
  5635. for (var e4 = [], i3 = 0; i3 < t3.length; i3++)
  5636. this.language ? e4.push(Bn(this.language.translate(t3[i3]))) : e4.push(Bn(t3[i3]));
  5637. return e4;
  5638. }, Object.defineProperty(e3.prototype, "dateFormat", { get: function() {
  5639. return this._dateFormat;
  5640. }, set: function(t3) {
  5641. this._dateFormat = t3, this.invalidateSprite();
  5642. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inputDateFormat", { get: function() {
  5643. return this._inputDateFormat;
  5644. }, set: function(t3) {
  5645. this._inputDateFormat = t3, this.invalidateSprite();
  5646. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "intlLocales", { get: function() {
  5647. return this._intlLocales;
  5648. }, set: function(t3) {
  5649. this._intlLocales = t3, this.invalidateSprite();
  5650. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "utc", { get: function() {
  5651. return this._utc;
  5652. }, set: function(t3) {
  5653. this._utc = t3, this.invalidateSprite();
  5654. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "timezoneOffset", { get: function() {
  5655. return this._timezoneOffset;
  5656. }, set: function(t3) {
  5657. this._timezoneOffset != t3 && (this._timezoneOffset = t3, this.invalidateSprite());
  5658. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "timezone", { get: function() {
  5659. return this._timezone;
  5660. }, set: function(t3) {
  5661. this._timezone != t3 && (this._timezone = t3, this.timezoneMinutes = la(t3), this.invalidateSprite());
  5662. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "firstDayOfWeek", { get: function() {
  5663. return this._firstDayOfWeek;
  5664. }, set: function(t3) {
  5665. this._firstDayOfWeek = t3, this.invalidateSprite();
  5666. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outputFormat", { get: function() {
  5667. return this._outputFormat;
  5668. }, set: function(t3) {
  5669. this._outputFormat = t3.toLowerCase(), this.invalidateSprite();
  5670. }, enumerable: true, configurable: true }), e3;
  5671. }(yn);
  5672. Ii.registeredClasses.DateFormatter = Ma;
  5673. var La = function(t2) {
  5674. function e3() {
  5675. var e4 = t2.call(this) || this;
  5676. return e4._negativeBase = 0, e4._baseUnit = "second", e4._outputFormat = "svg", e4._unitValues = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5, month: 2592e6, year: 31536e6 }, e4._unitAliases = { Y: "y", D: "d", H: "h", K: "h", k: "h", n: "S" }, e4.className = "DurationFormatter", e4.applyTheme(), e4;
  5677. }
  5678. return C(e3, t2), e3.prototype.format = function(t3, e4, i3) {
  5679. this.language || (this.sprite ? this.language = this.sprite.language : this.language = new Ta());
  5680. var n3 = i3 || this._baseUnit;
  5681. void 0 !== e4 && "" !== e4 || (e4 = Z(this.durationFormat) ? this.durationFormat : this.getFormat(U(t3), null, n3)), e4 = Zn(e4);
  5682. var r3, s2 = this.parseFormat(e4, n3), a2 = Number(t3);
  5683. r3 = a2 > this._negativeBase ? s2.positive : a2 < this._negativeBase ? s2.negative : s2.zero;
  5684. var o3 = this.applyFormat(a2, r3);
  5685. return "" !== r3.color && ("svg" === this._outputFormat ? o3 = "<tspan fill='" + r3.color + "'>" + o3 + "</tspan>" : "html" === this._outputFormat && (o3 = "<span style='color: " + r3.color + ";'>" + o3 + "</span>")), o3;
  5686. }, e3.prototype.parseFormat = function(t3, e4) {
  5687. var i3 = this, n3 = this.getCache(t3);
  5688. if (Z(n3))
  5689. return n3;
  5690. var r3 = e4 || this._baseUnit, s2 = { positive: { color: "", template: "", parts: [], source: "", baseUnit: r3, parsed: false, absolute: false }, negative: { color: "", template: "", parts: [], source: "", baseUnit: r3, parsed: false, absolute: false }, zero: { color: "", template: "", parts: [], source: "", baseUnit: r3, parsed: false, absolute: false } }, a2 = (t3 = t3.replace("||", Cn)).split("|");
  5691. return s2.positive.source = a2[0], void 0 === a2[2] ? s2.zero = s2.positive : s2.zero.source = a2[2], void 0 === a2[1] ? s2.negative = s2.positive : s2.negative.source = a2[1], Ne(s2, function(t4, e5) {
  5692. if (!e5.parsed)
  5693. if (void 0 === i3.getCache(e5.source)) {
  5694. var n4, r4 = e5.source;
  5695. (n4 = e5.source.match(/^\[([^\]]*)\]/)) && n4.length && "" !== n4[0] && (r4 = e5.source.substr(n4[0].length), e5.color = n4[1]);
  5696. for (var a3 = Va().chunk(r4, true), o3 = 0; o3 < a3.length; o3++) {
  5697. var l2 = a3[o3];
  5698. if (l2.text = l2.text.replace(Cn, "|"), "value" === l2.type) {
  5699. l2.text.match(/[yYMdDwhHKkmsSn]+a/) && (e5.absolute = true, l2.text = l2.text.replace(/([yYMdDwhHKkmsSn]+)a/, "$1"));
  5700. var h2 = l2.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);
  5701. if (h2)
  5702. for (var p2 = 0; p2 < h2.length; p2++)
  5703. Z(h2[p2]) || (h2[p2] = i3._unitAliases[h2[p2]]), e5.parts.push(h2[p2]), l2.text = l2.text.replace(h2[p2], wn);
  5704. }
  5705. e5.template += l2.text;
  5706. }
  5707. i3.setCache(e5.source, e5), e5.parsed = true;
  5708. } else
  5709. s2[t4] = i3.getCache(e5.source);
  5710. }), this.setCache(t3, s2), s2;
  5711. }, e3.prototype.applyFormat = function(t3, e4) {
  5712. var i3 = !e4.absolute && t3 < this._negativeBase;
  5713. t3 = Math.abs(t3);
  5714. for (var n3 = this.toTimeStamp(t3, e4.baseUnit), r3 = e4.template, s2 = 0, a2 = e4.parts.length; s2 < a2; s2++) {
  5715. var o3 = e4.parts[s2], l2 = this.toTimeUnit(o3.substr(0, 1)), h2 = o3.length, p2 = Math.floor(n3 / this._unitValues[l2]);
  5716. r3 = r3.replace(wn, Gn(p2, h2, "0")), n3 -= p2 * this._unitValues[l2];
  5717. }
  5718. return i3 && (r3 = "-" + r3), r3;
  5719. }, e3.prototype.toTimeStamp = function(t3, e4) {
  5720. return t3 * this._unitValues[e4];
  5721. }, e3.prototype.toTimeUnit = function(t3) {
  5722. switch (t3) {
  5723. case "S":
  5724. return "millisecond";
  5725. case "s":
  5726. return "second";
  5727. case "m":
  5728. return "minute";
  5729. case "h":
  5730. return "hour";
  5731. case "d":
  5732. return "day";
  5733. case "w":
  5734. return "week";
  5735. case "M":
  5736. return "month";
  5737. case "y":
  5738. return "year";
  5739. }
  5740. }, e3.prototype.invalidateSprite = function() {
  5741. this.sprite && this.sprite.invalidate();
  5742. }, Object.defineProperty(e3.prototype, "baseUnit", { get: function() {
  5743. return this._baseUnit;
  5744. }, set: function(t3) {
  5745. this._baseUnit = t3, this.invalidateSprite();
  5746. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outputFormat", { get: function() {
  5747. return this._outputFormat;
  5748. }, set: function(t3) {
  5749. this._outputFormat = t3.toLowerCase(), this.invalidateSprite();
  5750. }, enumerable: true, configurable: true }), e3.prototype.getFormat = function(t3, e4, i3) {
  5751. if (Z(this.durationFormat))
  5752. return this.durationFormat;
  5753. if (i3 || (i3 = this.baseUnit), Z(e4) && t3 != e4) {
  5754. t3 = Math.abs(t3), e4 = Math.abs(e4);
  5755. var n3 = this.getValueUnit(gt(t3, e4), i3);
  5756. return this.durationFormats[i3][n3];
  5757. }
  5758. var r3 = this.getValueUnit(t3, i3);
  5759. return this.durationFormats[i3][r3];
  5760. }, e3.prototype.getValueUnit = function(t3, e4) {
  5761. var i3;
  5762. e4 || (e4 = this.baseUnit);
  5763. var n3 = this.getMilliseconds(t3, e4);
  5764. return He(this._unitValues, function(t4, r3) {
  5765. if (t4 == e4 || i3) {
  5766. if (n3 / r3 <= 1)
  5767. return i3 || (i3 = t4), false;
  5768. i3 = t4;
  5769. }
  5770. return true;
  5771. }), i3;
  5772. }, e3.prototype.getMilliseconds = function(t3, e4) {
  5773. return e4 || (e4 = this.baseUnit), t3 * this._unitValues[e4];
  5774. }, Object.defineProperty(e3.prototype, "durationFormat", { get: function() {
  5775. return this._durationFormat;
  5776. }, set: function(t3) {
  5777. this._durationFormat != t3 && (this._durationFormat = t3, this.invalidateSprite());
  5778. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFormats", { get: function() {
  5779. return this._durationFormats || (this._durationFormats = { millisecond: { millisecond: this.language.translate("_duration_millisecond"), second: this.language.translate("_duration_millisecond_second"), minute: this.language.translate("_duration_millisecond_minute"), hour: this.language.translate("_duration_millisecond_hour"), day: this.language.translate("_duration_millisecond_day"), week: this.language.translate("_duration_millisecond_week"), month: this.language.translate("_duration_millisecond_month"), year: this.language.translate("_duration_millisecond_year") }, second: { second: this.language.translate("_duration_second"), minute: this.language.translate("_duration_second_minute"), hour: this.language.translate("_duration_second_hour"), day: this.language.translate("_duration_second_day"), week: this.language.translate("_duration_second_week"), month: this.language.translate("_duration_second_month"), year: this.language.translate("_duration_second_year") }, minute: { minute: this.language.translate("_duration_minute"), hour: this.language.translate("_duration_minute_hour"), day: this.language.translate("_duration_minute_day"), week: this.language.translate("_duration_minute_week"), month: this.language.translate("_duration_minute_month"), year: this.language.translate("_duration_minute_year") }, hour: { hour: this.language.translate("_duration_hour"), day: this.language.translate("_duration_hour_day"), week: this.language.translate("_duration_hour_week"), month: this.language.translate("_duration_hour_month"), year: this.language.translate("_duration_hour_year") }, day: { day: this.language.translate("_duration_day"), week: this.language.translate("_duration_day_week"), month: this.language.translate("_duration_day_month"), year: this.language.translate("_duration_day_year") }, week: { week: this.language.translate("_duration_week"), month: this.language.translate("_duration_week_month"), year: this.language.translate("_duration_week_year") }, month: { month: this.language.translate("_duration_month"), year: this.language.translate("_duration_month_year") }, year: { year: this.language.translate("_duration_year") } }), this._durationFormats;
  5780. }, set: function(t3) {
  5781. this._durationFormats = t3, this.invalidateSprite();
  5782. }, enumerable: true, configurable: true }), e3;
  5783. }(yn);
  5784. Ii.registeredClasses.DurationFormatter = La;
  5785. var ja, Ea = new Pi(), Ra = function(t2) {
  5786. function e3() {
  5787. var e4 = null !== t2 && t2.apply(this, arguments) || this;
  5788. return e4._validateDisposer = null, e4;
  5789. }
  5790. return C(e3, t2), e3.prototype.invalidate = function() {
  5791. null === this._validateDisposer && (this._validateDisposer = Ii.events.on("exitframe", this.validate, this));
  5792. }, e3.prototype.validate = function() {
  5793. null !== this._validateDisposer && (this._validateDisposer.dispose(), this._validateDisposer = null);
  5794. }, e3.prototype.dispose = function() {
  5795. null !== this._validateDisposer && (this._validateDisposer.dispose(), this._validateDisposer = null), t2.prototype.dispose.call(this);
  5796. }, e3;
  5797. }(mn), Ba = function(t2) {
  5798. function e3() {
  5799. var e4 = t2.call(this) || this;
  5800. return e4.adapter = new Yi(e4), e4.closeDelay = 1e3, e4.closeOnClick = true, e4._language = new ve(), e4._menuTag = "ul", e4._itemTag = "li", e4._labelTag = "a", e4._iconTag = "img", e4._classPrefix = "amexport", e4._defaultStyles = true, e4._align = "right", e4._verticalAlign = "top", e4._tabindex = 0, e4._ignoreNextClose = false, e4._items = [{ label: "...", menu: [{ label: "Image", menu: [{ type: "png", label: "PNG" }, { type: "jpg", label: "JPG" }, { type: "svg", label: "SVG" }, { type: "pdf", label: "PDF" }] }, { label: "Data", menu: [{ type: "json", label: "JSON" }, { type: "csv", label: "CSV" }, { type: "xlsx", label: "XLSX" }, { type: "html", label: "HTML" }, { type: "pdfdata", label: "PDF" }] }, { label: "Print", type: "print" }] }], e4.className = "ExportMenu", e4._disposers.push(e4._language), e4.invalidate(), e4.applyTheme(), e4;
  5801. }
  5802. return C(e3, t2), e3.prototype.validate = function() {
  5803. this.draw(), t2.prototype.validate.call(this);
  5804. }, e3.prototype.draw = function() {
  5805. var t3 = this;
  5806. this._element ? (this._element.innerHTML = "", this._element.className = this.getMenuItemClass(0)) : this._element = this.createMenuElement(0), this.defaultStyles && (this._element.style.display = "none"), q(this._container).appendChild(this._element);
  5807. for (var e4 = this.adapter.apply("items", { items: this._items }).items, i3 = e4.length, n3 = 0; n3 < i3; n3++)
  5808. this.drawBranch(this._element, e4[n3], 0);
  5809. this._element = this.adapter.apply("menuElement", { menuElement: this._element }).menuElement, this._disposers.push(ua().body.events.on("down", function(e5) {
  5810. e5.pointer.touch || (t3._ignoreNextClose = false), t3.close();
  5811. })), this._disposers.push(ua().body.events.on("keydown", function(e5) {
  5812. var i4 = $s.getEventKey(e5.event);
  5813. switch (i4) {
  5814. case "esc":
  5815. t3.close();
  5816. break;
  5817. case "up":
  5818. case "down":
  5819. case "left":
  5820. case "right":
  5821. t3._currentSelection && e5.event.preventDefault(), t3.moveSelection(i4);
  5822. }
  5823. })), this.defaultStyles && this.loadDefaultCSS();
  5824. }, e3.prototype.drawBranch = function(t3, e4, i3) {
  5825. var n3 = this;
  5826. if (true !== (e4 = this.adapter.apply("branch", { branch: e4, level: i3 }).branch).unsupported) {
  5827. e4.ascendants || (e4.ascendants = new Fi());
  5828. var r3, s2 = e4.type, a2 = this.createItemElement(i3, s2);
  5829. e4.icon ? ((r3 = this.createIconElement(i3, s2)).src = e4.icon, (e4.label || e4.title) && (r3.title = e4.title || e4.label)) : e4.svg ? (r3 = this.createSvgElement(i3, s2, e4.svg), (e4.label || e4.title) && (r3.title = e4.title || e4.label)) : ((r3 = this.createLabelElement(i3, s2)).innerHTML = e4.label ? this.language.translate(e4.label) : "", e4.title && (r3.title = e4.title));
  5830. var o3 = this.getReaderLabel(e4, r3.innerHTML);
  5831. r3.setAttribute("aria-label", o3), a2.appendChild(r3), e4.interactions = ua().getInteraction(a2), e4.element = a2, this.typeClickable(s2) && (e4.interactions.events.on("hit", function(t4) {
  5832. if (n3.events.isEnabled("hit") && !n3.isDisposed()) {
  5833. var i4 = { type: "hit", event: t4.event, target: n3, branch: e4 };
  5834. n3.events.dispatchImmediately("hit", i4);
  5835. }
  5836. }), e4.interactions.events.on("keyup", function(t4) {
  5837. if ($s.isKey(t4.event, "enter") && n3.events.isEnabled("enter")) {
  5838. var i4 = { type: "enter", event: t4.event, target: n3, branch: e4 };
  5839. n3.events.dispatchImmediately("enter", i4);
  5840. }
  5841. }));
  5842. var l2 = this.getSubMenu(e4);
  5843. null != l2 && (e4.interactions.events.on("keyup", function(t4) {
  5844. $s.isKey(t4.event, "enter") && (n3.selectBranch(l2[0]), n3.setFocus(l2[0]));
  5845. }), e4.interactions.events.on("hit", function(t4) {
  5846. n3.selectBranch(e4);
  5847. })), e4.interactions.events.on("over", function(t4) {
  5848. if (t4.pointer.touch && (n3._ignoreNextClose = true), n3.selectBranch(e4), n3.events.isEnabled("over")) {
  5849. var i4 = { type: "over", event: t4.event, target: n3, branch: e4 };
  5850. n3.events.dispatchImmediately("over", i4);
  5851. }
  5852. }), e4.interactions.events.on("out", function(t4) {
  5853. if (!n3.isDisposed() && (t4.pointer.touch || n3.delayUnselectBranch(e4), n3.events.isEnabled("out"))) {
  5854. var i4 = { type: "out", event: t4.event, target: n3, branch: e4 };
  5855. n3.events.dispatchImmediately("out", i4);
  5856. }
  5857. }), e4.interactions.events.on("focus", function(t4) {
  5858. n3.selectBranch(e4);
  5859. }), e4.interactions.events.on("blur", function(t4) {
  5860. n3.delayUnselectBranch(e4);
  5861. });
  5862. var h2 = i3 + 1;
  5863. if (e4.menu) {
  5864. var p2 = this.createMenuElement(h2);
  5865. e4.submenuElement = p2;
  5866. for (var u2 = e4.menu.length, d2 = 0; d2 < u2; d2++) {
  5867. var c2 = new Fi();
  5868. e4.menu[d2].ascendants = c2, e4.ascendants.length && c2.copyFrom(e4.ascendants), c2.push(e4), this.drawBranch(p2, e4.menu[d2], h2);
  5869. }
  5870. if ("" == p2.innerHTML)
  5871. return;
  5872. a2.appendChild(p2);
  5873. }
  5874. e4.hidden && this.hideBranch(e4), e4.id && a2.setAttribute("id", e4.id), e4.color && (a2.style.backgroundColor = e4.color.hex), t3.appendChild(a2);
  5875. }
  5876. }, e3.prototype.createMenuElement = function(t3) {
  5877. var e4 = document.createElement(this.menuTag);
  5878. return e4.className = this.getMenuItemClass(t3), 0 === t3 ? e4.setAttribute("role", "menubar") : e4.setAttribute("role", "menu"), e4;
  5879. }, e3.prototype.getMenuItemClass = function(t3) {
  5880. var e4 = this.classPrefix + "-menu " + this.classPrefix + "-menu-level-" + t3;
  5881. return 0 === t3 && (e4 += " " + this.classPrefix + "-menu-root " + this.classPrefix + "-" + this.align + " " + this.classPrefix + "-" + this.verticalAlign), this.adapter.apply("menuClass", { className: e4, level: t3 }).className;
  5882. }, e3.prototype.createItemElement = function(t3, e4) {
  5883. var i3 = document.createElement(this.itemTag), n3 = this.classPrefix + "-item " + this.classPrefix + "-item-level-" + t3 + " " + this.classPrefix + "-item-" + (e4 || "blank");
  5884. return i3.className = this.adapter.apply("itemClass", { className: n3, level: t3, type: e4 }).className, i3.setAttribute("role", "menuitem"), i3.setAttribute("tabindex", this.tabindex.toString()), i3;
  5885. }, e3.prototype.createLabelElement = function(t3, e4) {
  5886. var i3 = document.createElement(this.labelTag), n3 = this.classPrefix + "-label " + this.classPrefix + "-label-level-" + t3 + " " + this.classPrefix + "-item-" + (e4 || "blank");
  5887. return this.typeClickable(e4) && (n3 += " " + this.classPrefix + "-clickable"), i3.className = this.adapter.apply("labelClass", { className: n3, level: t3, type: e4 }).className, i3;
  5888. }, e3.prototype.createIconElement = function(t3, e4) {
  5889. var i3 = document.createElement(this.iconTag), n3 = this.classPrefix + "-icon " + this.classPrefix + "-icon-level-" + t3 + " " + this.classPrefix + "-item-" + (e4 || "blank");
  5890. return this.typeClickable(e4) && (n3 += " " + this.classPrefix + "-clickable"), i3.className = this.adapter.apply("labelClass", { className: n3, level: t3, type: e4 }).className, i3.setAttribute("tabindex", this.tabindex.toString()), i3.setAttribute("role", "menuitem"), i3;
  5891. }, e3.prototype.createSvgElement = function(t3, e4, i3) {
  5892. var n3 = new DOMParser().parseFromString(i3, "image/svg+xml").documentElement, r3 = this.classPrefix + "-icon " + this.classPrefix + "-icon-level-" + t3 + " " + this.classPrefix + "-item-" + (e4 || "blank");
  5893. return this.typeClickable(e4) && (r3 += " " + this.classPrefix + "-clickable"), n3.setAttribute("class", this.adapter.apply("labelClass", { className: r3, level: t3, type: e4 }).className), n3.setAttribute("tabindex", this.tabindex.toString()), n3.setAttribute("role", "menuitem"), n3;
  5894. }, e3.prototype.dispose = function() {
  5895. this._disposed || (t2.prototype.dispose.call(this), this._element && this._element.parentNode && this._element.parentNode.removeChild(this._element));
  5896. }, e3.prototype.typeClickable = function(t3) {
  5897. return Z(t3);
  5898. }, e3.prototype.hasSubMenu = function(t3) {
  5899. return !(!t3.menu || !t3.menu.length);
  5900. }, e3.prototype.getSubMenu = function(t3) {
  5901. if (t3.menu && t3.menu.length)
  5902. return t3.menu;
  5903. }, e3.prototype.getReaderLabel = function(t3, e4) {
  5904. return e4 = qn(e4), 0 == t3.ascendants.length ? (e4 = "..." == e4 ? this.language.translate("Export") : e4, e4 += " [" + this.language.translate("Press ENTER or use arrow keys to navigate") + "]") : this.hasSubMenu(t3) ? e4 += " [" + this.language.translate("Click, tap or press ENTER to open") + "]" : "print" == t3.type ? e4 = this.language.translate("Click, tap or press ENTER to print.") : this.typeClickable(t3.type) && (e4 = this.language.translate("Click, tap or press ENTER to export as %1.", void 0, e4)), this.adapter.apply("rederLabel", { label: e4, branch: t3 }).label;
  5905. }, Object.defineProperty(e3.prototype, "container", { get: function() {
  5906. return this._container;
  5907. }, set: function(t3) {
  5908. this._container = t3, this.invalidate();
  5909. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "items", { get: function() {
  5910. return this._items;
  5911. }, set: function(t3) {
  5912. this._items = t3, this.invalidate();
  5913. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tag", { set: function(t3) {
  5914. this._menuTag = t3, this._itemTag = "ul" == t3 ? "li" : "div", this.invalidate();
  5915. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "menuTag", { get: function() {
  5916. return this.adapter.apply("menuTag", { tag: this._menuTag }).tag;
  5917. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "itemTag", { get: function() {
  5918. return this.adapter.apply("itemTag", { tag: this._itemTag }).tag;
  5919. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "labelTag", { get: function() {
  5920. return this.adapter.apply("labelTag", { tag: this._labelTag }).tag;
  5921. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "iconTag", { get: function() {
  5922. return this.adapter.apply("iconTag", { tag: this._iconTag }).tag;
  5923. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "align", { get: function() {
  5924. return this.adapter.apply("align", { align: this._align }).align;
  5925. }, set: function(t3) {
  5926. this._align = t3, this.invalidate();
  5927. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalAlign", { get: function() {
  5928. return this.adapter.apply("verticalAlign", { verticalAlign: this._verticalAlign }).verticalAlign;
  5929. }, set: function(t3) {
  5930. this._verticalAlign = t3, this.invalidate();
  5931. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "classPrefix", { get: function() {
  5932. return this.adapter.apply("classPrefix", { classPrefix: this._classPrefix }).classPrefix;
  5933. }, set: function(t3) {
  5934. this._classPrefix = t3, this.invalidate();
  5935. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "defaultStyles", { get: function() {
  5936. return this.adapter.apply("defaultStyles", { defaultStyles: this._defaultStyles }).defaultStyles;
  5937. }, set: function(t3) {
  5938. this._defaultStyles != t3 && (this._defaultStyles = t3, t3 && this.loadDefaultCSS()), this.invalidate();
  5939. }, enumerable: true, configurable: true }), e3.prototype.loadDefaultCSS = function() {
  5940. var t3, e4, i3, n3;
  5941. this._disposers.push((t3 = As(this.container), e4 = this.classPrefix, i3 = e4 || "amexport", n3 = new Ys(), Ea.insertKeyIfEmpty(i3, function() {
  5942. var e5 = new me([new Ls(t3, "." + i3 + "-menu *", { "box-sizing": "border-box" }), new Ls(t3, "." + i3 + "-menu-level-0", { position: "absolute", top: "5px", right: "5px" }), new Ls(t3, "." + i3 + "-menu-level-0." + i3 + "-left", { right: "auto", left: "5px" }), new Ls(t3, "." + i3 + "-menu-level-0." + i3 + "-right", { right: "5px", left: "auto" }), new Ls(t3, "." + i3 + "-menu-level-0." + i3 + "-top", { top: "5px", bottom: "auto" }), new Ls(t3, "." + i3 + "-menu-level-0." + i3 + "-bottom", { top: "auto", bottom: "5px" }), new Ls(t3, "." + i3 + "-item." + i3 + "-item-level-0", { opacity: "0.3", width: "30px", "min-height": "30px", transition: "all 100ms ease-in-out" }), new Ls(t3, "div:hover > div > ." + i3 + "-menu ." + i3 + "-item." + i3 + "-item-level-0, ." + i3 + "-item." + i3 + "-item-level-0.active", { opacity: "0.9" }), new Ls(t3, "." + i3 + "-item." + i3 + "-item-level-0 > a", { padding: "0", "text-align": "center", overflow: "hidden" }), new Ls(t3, "." + i3 + "-item." + i3 + "-item-level-0:before", { display: "block" }), new Ls(t3, "." + i3 + "-item", { position: "relative", display: "block", opacity: "0", "z-index": "1", "border-radius": "3px", "background-color": n3.getFor("secondaryButton").hex, padding: "0", margin: "1px 1px 0 0", color: n3.getFor("secondaryButton").alternative.hex, transition: "all 100ms ease-in-out, opacity 0.5s ease 0.5s" }), new Ls(t3, "." + i3 + "-left ." + i3 + "-item", { margin: "1px 0 0 1px" }), new Ls(t3, "." + i3 + "-item:hover, ." + i3 + "-item.active", { background: n3.getFor("secondaryButtonHover").hex, color: n3.getFor("secondaryButtonText").hex }), new Ls(t3, "." + i3 + "-item > ." + i3 + "-menu", { position: "absolute", top: "-1px", right: "0", "margin-right": "100%" }), new Ls(t3, "." + i3 + "-left ." + i3 + "-item > ." + i3 + "-menu", { left: "0", right: "auto", "margin-left": "100%", "margin-right": "auto" }), new Ls(t3, "." + i3 + "-right ." + i3 + "-item > ." + i3 + "-menu", { left: "auto", right: "0", "margin-left": "auto", "margin-right": "100%" }), new Ls(t3, "." + i3 + "-top ." + i3 + "-item > ." + i3 + "-menu", { top: "-1px", bottom: "auto" }), new Ls(t3, "." + i3 + "-bottom ." + i3 + "-item > ." + i3 + "-menu", { top: "auto", bottom: "0" }), new Ls(t3, "." + i3 + "-item > ." + i3 + "-menu", { display: "none" }), new Ls(t3, "." + i3 + "-item:hover > ." + i3 + "-menu, ." + i3 + "-item.active > ." + i3 + "-menu", { display: "block" }), new Ls(t3, "." + i3 + "-item:hover > ." + i3 + "-menu > ." + i3 + "-item, ." + i3 + "-item.active > ." + i3 + "-menu > ." + i3 + "-item", { opacity: "1" }), new Ls(t3, "." + i3 + "-menu", { display: "block", "list-style": "none", margin: "0", padding: "0" }), new Ls(t3, "." + i3 + "-label", { display: "block", cursor: "default", padding: "0.5em 1em" }), new Ls(t3, "." + i3 + "-icon", { display: "block", cursor: "default", padding: "0.2em 0.4em", width: "1.2em", height: "1.2em", "min-width": "32px", "min-height": "32px", margin: "auto auto", "border-radius": "3px" }), new Ls(t3, "." + i3 + "-item-level-0 > ." + i3 + "-icon", { padding: "0.1em 0.2em" }), new Ls(t3, "." + i3 + "-clickable", { cursor: "pointer" })]);
  5943. return new be(function() {
  5944. Ea.removeKey(i3), e5.dispose();
  5945. });
  5946. }).increment())), this._element && (this._element.style.display = "");
  5947. }, Object.defineProperty(e3.prototype, "tabindex", { get: function() {
  5948. return this.adapter.apply("tabindex", { tabindex: this._tabindex }).tabindex;
  5949. }, set: function(t3) {
  5950. this._tabindex = t3, this.invalidate();
  5951. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "language", { get: function() {
  5952. var t3 = this, e4 = this._language.get();
  5953. return null == e4 && (e4 = new Ta(), this._language.set(e4, e4.events.on("localechanged", function(e5) {
  5954. t3.invalidate();
  5955. }))), e4;
  5956. }, set: function(t3) {
  5957. var e4 = this;
  5958. this._language.set(t3, t3.events.on("localechanged", function(t4) {
  5959. e4.invalidate();
  5960. })), this.invalidate();
  5961. }, enumerable: true, configurable: true }), e3.prototype.close = function() {
  5962. var t3 = this;
  5963. if (!this.isDisposed())
  5964. if (this._ignoreNextClose)
  5965. this._ignoreNextClose = false;
  5966. else {
  5967. if (this.closeOnClick && (this._element.style.pointerEvents = "none", setTimeout(function() {
  5968. t3._element.style.pointerEvents = "auto";
  5969. }, 100)), this._currentSelection && (this.setBlur(this._currentSelection), this._currentSelection = void 0), this._element)
  5970. for (var e4 = this._element.getElementsByClassName("active"), i3 = e4.length - 1; i3 >= 0; i3--)
  5971. e4[i3] && ws(e4[i3], "active");
  5972. this.events.dispatchImmediately("closed", { type: "closed", target: this });
  5973. }
  5974. }, e3.prototype.selectBranch = function(t3) {
  5975. var e4 = this;
  5976. if (!this.isDisposed() && (t3.closeTimeout && (this.removeDispose(t3.closeTimeout), t3.closeTimeout = void 0), Ps(t3.element, "active"), t3.submenuElement && t3.submenuElement.setAttribute("aria-expanded", "true"), this._currentSelection && this._currentSelection !== t3 && this._currentSelection.ascendants && ti(ri(qe([this._currentSelection]), this._currentSelection.ascendants.iterator()), function(i4) {
  5977. t3.ascendants.contains(i4) || t3 === i4 || e4.unselectBranch(i4, true);
  5978. }), ti(t3.ascendants.iterator(), function(t4) {
  5979. t4.closeTimeout && (e4.removeDispose(t4.closeTimeout), t4.closeTimeout = void 0), Ps(t4.element, "active");
  5980. }), this._currentSelection = t3, this.events.isEnabled("branchselected"))) {
  5981. var i3 = { type: "branchselected", target: this, branch: t3 };
  5982. this.events.dispatchImmediately("branchselected", i3);
  5983. }
  5984. }, e3.prototype.unselectBranch = function(t3, e4) {
  5985. if (!this.isDisposed() && (ws(t3.element, "active"), t3.submenuElement && t3.submenuElement.removeAttribute("aria-expanded"), this._currentSelection == t3 && (this._currentSelection = void 0), this.events.isEnabled("branchunselected"))) {
  5986. var i3 = { type: "branchunselected", target: this, branch: t3 };
  5987. this.events.dispatchImmediately("branchunselected", i3);
  5988. }
  5989. }, e3.prototype.delayUnselectBranch = function(t3, e4) {
  5990. var i3 = this;
  5991. this.isDisposed() || (t3.closeTimeout && (this.removeDispose(t3.closeTimeout), t3.closeTimeout = void 0), t3.closeTimeout = this.setTimeout(function() {
  5992. i3.unselectBranch(t3, e4);
  5993. }, this.closeDelay), true !== e4 && t3.ascendants && ti(t3.ascendants.iterator(), function(t4) {
  5994. i3.delayUnselectBranch(t4, true);
  5995. }));
  5996. }, e3.prototype.moveSelection = function(t3) {
  5997. if (!this.isDisposed() && this._currentSelection) {
  5998. var e4;
  5999. if ("up" == t3)
  6000. e4 = this.getPrevSibling(this._currentSelection);
  6001. else if ("down" == t3)
  6002. e4 = this.getNextSibling(this._currentSelection);
  6003. else if ("left" == t3 && "right" == this.align || "right" == t3 && "left" == this.align) {
  6004. var i3 = this.getSubMenu(this._currentSelection);
  6005. null != i3 && (e4 = i3[0]);
  6006. } else
  6007. ("right" == t3 && "right" == this.align || "left" == t3 && "left" == this.align) && (e4 = this.getParentItem(this._currentSelection));
  6008. e4 && e4 !== this._currentSelection && (this.selectBranch(e4), this.setFocus(e4), this._currentSelection = e4);
  6009. }
  6010. }, e3.prototype.getSiblings = function(t3) {
  6011. var e4 = this.getParentItem(t3);
  6012. return e4 && e4.menu ? e4.menu : [];
  6013. }, e3.prototype.getParentItem = function(t3) {
  6014. return t3.ascendants && t3.ascendants.length ? t3.ascendants.getIndex(t3.ascendants.length - 1) : void 0;
  6015. }, e3.prototype.getNextSibling = function(t3) {
  6016. var e4 = this.getSiblings(t3);
  6017. if (e4.length > 1) {
  6018. var i3 = e4.indexOf(t3) + 1;
  6019. return e4[i3 = e4.length == i3 ? 0 : i3].unsupported ? this.getNextSibling(e4[i3]) : e4[i3];
  6020. }
  6021. return t3;
  6022. }, e3.prototype.getPrevSibling = function(t3) {
  6023. var e4 = this.getSiblings(t3);
  6024. if (e4.length > 1) {
  6025. var i3 = e4.indexOf(t3) - 1;
  6026. return e4[i3 = -1 == i3 ? e4.length - 1 : i3].unsupported ? this.getPrevSibling(e4[i3]) : e4[i3];
  6027. }
  6028. return t3;
  6029. }, e3.prototype.setFocus = function(t3) {
  6030. if (t3.interactions)
  6031. try {
  6032. t3.interactions.element.focus();
  6033. } catch (t4) {
  6034. }
  6035. }, e3.prototype.setBlur = function(t3) {
  6036. if (t3.interactions)
  6037. try {
  6038. t3.interactions.element.blur();
  6039. } catch (t4) {
  6040. }
  6041. }, e3.prototype.hideBranch = function(t3) {
  6042. t3.element.style.display = "none";
  6043. }, e3.prototype.showBranch = function(t3) {
  6044. t3.element.style.display = "";
  6045. }, Object.defineProperty(e3.prototype, "element", { get: function() {
  6046. return this._element;
  6047. }, enumerable: true, configurable: true }), e3;
  6048. }(Ra);
  6049. function Ha(t2, e3, i3) {
  6050. return new Promise(function(n3, r3) {
  6051. var s2 = Z(i3) && "blob" == i3.responseType, a2 = new XMLHttpRequest();
  6052. if (a2.onload = function() {
  6053. if (200 === a2.status) {
  6054. var t3, i4;
  6055. if (s2)
  6056. return void Na(t3 = a2.response).then(function(i5) {
  6057. var r4 = { xhr: a2, error: false, response: i5, blob: t3, type: a2.getResponseHeader("Content-Type"), target: e3 };
  6058. n3(r4);
  6059. });
  6060. i4 = a2.responseText || a2.response;
  6061. var o4 = { xhr: a2, error: false, response: i4, blob: t3, type: a2.getResponseHeader("Content-Type"), target: e3 };
  6062. n3(o4);
  6063. } else
  6064. r3({ xhr: a2, error: true, type: a2.getResponseHeader("Content-Type"), target: e3 });
  6065. }, a2.onerror = function() {
  6066. r3({ xhr: a2, error: true, type: a2.getResponseHeader("Content-Type"), target: e3 });
  6067. }, a2.open("GET", t2, true), i3 && i3.withCredentials && (a2.withCredentials = true), Z(i3)) {
  6068. if (Z(i3.requestHeaders))
  6069. for (var o3 = 0; o3 < i3.requestHeaders.length; o3++) {
  6070. var l2 = i3.requestHeaders[o3];
  6071. a2.setRequestHeader(l2.key, l2.value);
  6072. }
  6073. Z(i3.responseType) && (a2.responseType = i3.responseType);
  6074. }
  6075. a2.send();
  6076. });
  6077. }
  6078. function Na(t2) {
  6079. return new Promise(function(e3, i3) {
  6080. var n3 = new FileReader();
  6081. n3.onload = function(t3) {
  6082. e3(n3.result);
  6083. }, n3.onerror = function(t3) {
  6084. i3(t3);
  6085. }, n3.readAsText(t2);
  6086. });
  6087. }
  6088. var Wa = /src: ([^;]+);/;
  6089. function Xa(t2) {
  6090. return S(this, void 0, void 0, function() {
  6091. var e3;
  6092. return I(this, function(i3) {
  6093. switch (i3.label) {
  6094. case 0:
  6095. e3 = t2.sheet, i3.label = 1;
  6096. case 1:
  6097. return i3.trys.push([1, 2, , 4]), [2, e3.cssRules];
  6098. case 2:
  6099. return i3.sent(), [4, new Promise(function(i4, n3) {
  6100. t2.addEventListener("load", function() {
  6101. i4(e3.cssRules);
  6102. }, true), t2.addEventListener("error", function(t3) {
  6103. n3(t3);
  6104. }, true), setTimeout(function() {
  6105. n3(new Error("Timeout while waiting for <style> to load"));
  6106. }, 1e4);
  6107. })];
  6108. case 3:
  6109. return [2, i3.sent()];
  6110. case 4:
  6111. return [2];
  6112. }
  6113. });
  6114. });
  6115. }
  6116. function Ya(t2, e3, i3) {
  6117. return S(this, void 0, void 0, function() {
  6118. var n3, r3, s2, a2;
  6119. return I(this, function(o3) {
  6120. switch (o3.label) {
  6121. case 0:
  6122. return o3.trys.push([0, 2, , 3]), [4, Ha(e3)];
  6123. case 1:
  6124. return n3 = o3.sent(), [3, 3];
  6125. case 2:
  6126. return r3 = o3.sent(), console.error("Failed to load stylesheet", e3, r3), [2];
  6127. case 3:
  6128. (s2 = t2.createElement("style")).textContent = n3.response, "" != ls.nonce && s2.setAttribute("nonce", ls.nonce), t2.head.appendChild(s2), o3.label = 4;
  6129. case 4:
  6130. return o3.trys.push([4, , 7, 8]), [4, Xa(s2)];
  6131. case 5:
  6132. return a2 = o3.sent(), [4, za(t2, e3, a2, i3)];
  6133. case 6:
  6134. return o3.sent(), [3, 8];
  6135. case 7:
  6136. return t2.head.removeChild(s2), [7];
  6137. case 8:
  6138. return [2];
  6139. }
  6140. });
  6141. });
  6142. }
  6143. function za(t2, e3, i3, n3) {
  6144. return S(this, void 0, void 0, function() {
  6145. var r3, s2, a2, o3, l2;
  6146. return I(this, function(h2) {
  6147. switch (h2.label) {
  6148. case 0:
  6149. for (r3 = [], s2 = i3.length, a2 = 0; a2 < s2; a2++)
  6150. (o3 = i3[a2]).type === CSSRule.IMPORT_RULE ? (l2 = o3.href) && (l2 = Sr(e3, l2), r3.push(Ya(t2, l2, n3))) : n3(e3, o3);
  6151. return r3.length ? [4, Promise.all(r3)] : [3, 2];
  6152. case 1:
  6153. h2.sent(), h2.label = 2;
  6154. case 2:
  6155. return [2];
  6156. }
  6157. });
  6158. });
  6159. }
  6160. function Ua(t2) {
  6161. return S(this, void 0, void 0, function() {
  6162. var e3, i3;
  6163. return I(this, function(n3) {
  6164. switch (n3.label) {
  6165. case 0:
  6166. (e3 = document.createElement("iframe")).src = "about:blank", e3.setAttribute("title", ""), document.head.appendChild(e3), n3.label = 1;
  6167. case 1:
  6168. return n3.trys.push([1, , 3, 4]), i3 = e3.contentDocument, [4, Promise.all(zt(document.styleSheets, function(e4) {
  6169. var n4 = e4.href;
  6170. return null == n4 ? za(i3, location.href, e4.cssRules, t2) : (n4 = Sr(location.href, n4), Ya(i3, n4, t2));
  6171. }))];
  6172. case 2:
  6173. return n3.sent(), [3, 4];
  6174. case 3:
  6175. return document.head.removeChild(e3), [7];
  6176. case 4:
  6177. return [2];
  6178. }
  6179. });
  6180. });
  6181. }
  6182. var Ga = function(t2) {
  6183. function e3(e4) {
  6184. var i3 = t2.call(this) || this;
  6185. return i3.adapter = new Yi(i3), i3._formatOptions = new Pi(), i3._extraSprites = [], i3._validateSprites = [], i3.dataFieldsOrder = [], i3._dynamicDataFields = true, i3._removedObjects = new Fi(), i3._hiddenObjects = [], i3._objectsAlreadyHidden = false, i3._filePrefix = "amCharts", i3.useWebFonts = true, i3.useRetina = true, i3.useSimplifiedExport = true, i3.timeoutDelay = 2e3, i3._exportRunning = false, i3._prevHasData = false, i3._container = e4, i3.className = "Export", i3._formatOptions.setKey("png", {}), i3._formatOptions.setKey("jpg", { quality: 0.8 }), i3._formatOptions.setKey("gif", {}), i3._formatOptions.setKey("svg", {}), i3._formatOptions.setKey("pdf", { fontSize: 14, imageFormat: "png", align: "left", addURL: true, addColumnNames: true }), i3._formatOptions.setKey("json", { indent: 2, useLocale: true }), i3._formatOptions.setKey("csv", { addColumnNames: true, emptyAs: "", addBOM: true }), i3._formatOptions.setKey("xlsx", { addColumnNames: true, useLocale: true, emptyAs: "" }), i3._formatOptions.setKey("html", { addColumnNames: true, emptyAs: "" }), i3._formatOptions.setKey("pdfdata", { fontSize: 14, imageFormat: "png", addURL: true, addColumnNames: true, emptyAs: "" }), i3._formatOptions.setKey("print", { delay: 500, printMethod: "iframe" }), i3.adapter.add("options", function(t3) {
  6186. var e5 = i3._formatOptions.getKey(t3.type);
  6187. return t3.options ? t3.options = Ye(e5, t3.options) : t3.options = e5, t3;
  6188. }), i3.applyTheme(), i3.dispatchImmediately("inited"), i3;
  6189. }
  6190. return C(e3, t2), Object.defineProperty(e3.prototype, "menu", { get: function() {
  6191. return this._menu;
  6192. }, set: function(t3) {
  6193. var e4 = this;
  6194. this._menu && this.removeDispose(this._menu), this._menu = t3, this._menu.container = this.container, this._menu.language = this._language, this._menu.adapter.add("branch", function(t4) {
  6195. return t4.branch.unsupported = !e4.typeSupported(t4.branch.type), t4;
  6196. }), this._menu.events.on("hit", function(t4) {
  6197. e4.export(t4.branch.type, t4.branch.options), e4.menu.close();
  6198. }), this._menu.events.on("enter", function(t4) {
  6199. e4.export(t4.branch.type, t4.branch.options), e4.menu.close();
  6200. }), this._menu.events.on("over", function(t4) {
  6201. e4._disablePointers();
  6202. }), this._menu.events.on("out", function(t4) {
  6203. setTimeout(function() {
  6204. e4._releasePointers();
  6205. }, 10);
  6206. }), this.dispatchImmediately("menucreated"), this._menu.adapter.add("classPrefix", function(t4) {
  6207. return t4.classPrefix = ls.classNamePrefix + t4.classPrefix, t4;
  6208. }), this._disposers.push(this._menu);
  6209. }, enumerable: true, configurable: true }), e3.prototype.typeSupported = function(t3) {
  6210. var e4 = true, i3 = this.getFormatOptions(t3);
  6211. return Z(i3) && i3.disabled ? e4 = false : "pdf" === t3 || ("xlsx" === t3 ? e4 = !!this._hasData() : ("print" != t3 || window.print) && (-1 === ["json", "csv", "html", "pdfdata"].indexOf(t3) || this._hasData()) || (e4 = false)), this.adapter.apply("supported", { supported: e4, type: t3 }).supported;
  6212. }, e3.prototype._hasData = function() {
  6213. return this.data && this.data.length;
  6214. }, e3.prototype._getFunction = function(t3) {
  6215. switch (t3) {
  6216. case "png":
  6217. case "gif":
  6218. case "jpg":
  6219. return this.getImage;
  6220. case "svg":
  6221. return this.getSVG;
  6222. case "pdf":
  6223. case "pdfdata":
  6224. return this.getPDF;
  6225. case "xlsx":
  6226. return this.getExcel;
  6227. case "csv":
  6228. return this.getCSV;
  6229. case "json":
  6230. return this.getJSON;
  6231. case "html":
  6232. return this.getHTML;
  6233. case "print":
  6234. return this.getPrint;
  6235. default:
  6236. return this.unsupported;
  6237. }
  6238. }, e3.prototype.export = function(t3, e4) {
  6239. return S(this, void 0, void 0, function() {
  6240. var i3, n3, r3, s2, a2, o3 = this;
  6241. return I(this, function(l2) {
  6242. switch (l2.label) {
  6243. case 0:
  6244. return "custom" == t3 ? (this.handleCustom(e4), [2, true]) : (this._exportRunning = true, this.events.isEnabled("exportstarted") && (i3 = { type: "exportstarted", target: this, format: t3, options: e4 }, this.events.dispatchImmediately("exportstarted", i3)), this.showPreloader(), this.timeoutDelay && (this.hideTimeout(), this._timeoutTimeout = this.setTimeout(function() {
  6245. if (o3.events.isEnabled("exporttimedout")) {
  6246. var i4 = { type: "exporttimedout", target: o3, format: t3, options: e4 };
  6247. o3.events.dispatchImmediately("exporttimedout", i4);
  6248. }
  6249. o3.showTimeout();
  6250. }, this.timeoutDelay)), this.hideNonExportableSprites(), n3 = this._getFunction(t3), e4 = this.adapter.apply("options", { options: e4, type: t3 }).options, [4, (n3 = this.adapter.apply("exportFunction", { func: n3, type: t3, options: e4 }).func).call(this, t3, e4)]);
  6251. case 1:
  6252. return r3 = l2.sent(), this._exportRunning = false, this._releasePointers(), this.restoreNonExportableSprites(), r3 ? (this.events.isEnabled("exportfinished") && (s2 = { type: "exportfinished", target: this, format: t3, options: e4 }, this.events.dispatchImmediately("exportfinished", s2)), this.hidePreloader(), this.hideTimeout(), this.menu && this.menu.close(), "print" === t3 ? [2, this.print(r3, e4, this.adapter.apply("title", { title: this.title, options: e4 }).title)] : "pdfdata" == t3 ? [2, this.download(r3, this.filePrefix + ".pdf")] : [2, this.download(r3, this.filePrefix + "." + t3, e4 && e4.addBOM)]) : (this.events.isEnabled("error") && (a2 = { type: "error", target: this, format: t3, options: e4 }, this.events.dispatchImmediately("error", a2)), [2, false]);
  6253. }
  6254. });
  6255. });
  6256. }, e3.prototype.unsupported = function(t3, e4) {
  6257. return S(this, void 0, void 0, function() {
  6258. return I(this, function(t4) {
  6259. return [2, ""];
  6260. });
  6261. });
  6262. }, e3.prototype.handleCustom = function(t3) {
  6263. Z(t3) && Z(t3.callback) && t3.callback.call(t3.callbackTarget || this, t3);
  6264. }, e3.prototype.getPrint = function(t3, e4) {
  6265. return S(this, void 0, void 0, function() {
  6266. return I(this, function(t4) {
  6267. return [2, this.getImage("png", e4)];
  6268. });
  6269. });
  6270. }, e3.prototype.getFontFamilies = function() {
  6271. return S(this, void 0, void 0, function() {
  6272. var t3, e4, i3, n3, r3 = this;
  6273. return I(this, function(s2) {
  6274. switch (s2.label) {
  6275. case 0:
  6276. return t3 = this.getDOMURL(), e4 = [], i3 = [], [4, Ua(function(n4, s3) {
  6277. if (s3.type === CSSRule.FONT_FACE_RULE) {
  6278. var a2 = s3.cssText, o3 = Wa.exec(a2);
  6279. if (null !== o3) {
  6280. var l2 = o3[1].split(/ *, */).map(function(i4) {
  6281. return S(r3, void 0, void 0, function() {
  6282. var r4, s4, a3, o4, l3, h2;
  6283. return I(this, function(p2) {
  6284. switch (p2.label) {
  6285. case 0:
  6286. return null !== (r4 = /^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(i4)) ? [3, 1] : [2, i4];
  6287. case 1:
  6288. if (s4 = r4[2], a3 = Sr(n4, r4[1]), this.webFontFilter && !a3.match(this.webFontFilter))
  6289. return [2, null];
  6290. p2.label = 2;
  6291. case 2:
  6292. return p2.trys.push([2, 7, , 8]), [4, Ha(a3, void 0, { responseType: "blob" })];
  6293. case 3:
  6294. return o4 = p2.sent(), null == window.navigator.msSaveOrOpenBlob ? [3, 4] : (l3 = t3.createObjectURL(o4.blob), e4.push(l3), [3, 6]);
  6295. case 4:
  6296. return [4, (u2 = o4.blob, new Promise(function(t4, e5) {
  6297. var i5 = new FileReader();
  6298. i5.onload = function(e6) {
  6299. t4(i5.result);
  6300. }, i5.onerror = function(t5) {
  6301. e5(t5);
  6302. }, i5.readAsDataURL(u2);
  6303. }))];
  6304. case 5:
  6305. l3 = p2.sent(), p2.label = 6;
  6306. case 6:
  6307. return [2, 'url("' + l3 + '")' + s4];
  6308. case 7:
  6309. return h2 = p2.sent(), console.error("Failed to load font", a3, h2), [2, null];
  6310. case 8:
  6311. return [2];
  6312. }
  6313. var u2;
  6314. });
  6315. });
  6316. });
  6317. i3.push(Promise.all(l2).then(function(t4) {
  6318. return 0 === (t4 = t4.filter(function(t5) {
  6319. return null != t5;
  6320. })).length ? "" : a2.replace(Wa, "src: " + t4.join(", ") + ";");
  6321. }));
  6322. }
  6323. }
  6324. })];
  6325. case 1:
  6326. return s2.sent(), [4, Promise.all(i3)];
  6327. case 2:
  6328. return n3 = s2.sent(), [2, { blobs: e4, cssText: n3.filter(function(t4) {
  6329. return !!t4;
  6330. }).join("\n") }];
  6331. }
  6332. });
  6333. });
  6334. }, e3.prototype.getImage = function(t3, e4, i3) {
  6335. return S(this, void 0, void 0, function() {
  6336. var n3, r3, s2, a2, o3;
  6337. return I(this, function(l2) {
  6338. switch (l2.label) {
  6339. case 0:
  6340. return (n3 = this._objectsAlreadyHidden) || this.hideNonExportableSprites(), Z(e4) || (e4 = this.getFormatOptions(t3)), [4, this.awaitValidSprites()];
  6341. case 1:
  6342. return l2.sent(), [4, this.simplifiedImageExport()];
  6343. case 2:
  6344. if (!l2.sent())
  6345. return [3, 10];
  6346. r3 = void 0, l2.label = 3;
  6347. case 3:
  6348. return l2.trys.push([3, 7, , 9]), [4, this.getCanvas(e4)];
  6349. case 4:
  6350. return r3 = l2.sent(), false === i3 ? [3, 6] : [4, this.addExtras(r3, e4)];
  6351. case 5:
  6352. r3 = l2.sent(), l2.label = 6;
  6353. case 6:
  6354. return s2 = r3.toDataURL(this.getContentType(t3), e4.quality), this.disposeCanvas(r3), n3 || this.restoreNonExportableSprites(), [2, s2];
  6355. case 7:
  6356. return a2 = l2.sent(), console.error(a2.message + "\n" + a2.stack), fa("Simple export failed, falling back to advanced export"), r3 && this.disposeCanvas(r3), [4, this.getImageAdvanced(t3, e4, i3)];
  6357. case 8:
  6358. return o3 = l2.sent(), n3 || this.restoreNonExportableSprites(), [2, o3];
  6359. case 9:
  6360. return [3, 12];
  6361. case 10:
  6362. return [4, this.getImageAdvanced(t3, e4, i3)];
  6363. case 11:
  6364. return o3 = l2.sent(), n3 || this.restoreNonExportableSprites(), [2, o3];
  6365. case 12:
  6366. return [2];
  6367. }
  6368. });
  6369. });
  6370. }, e3.prototype.addExtras = function(t3, e4, i3) {
  6371. return S(this, void 0, void 0, function() {
  6372. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2, c2, f2, g2, y2, m2 = this;
  6373. return I(this, function(v2) {
  6374. switch (v2.label) {
  6375. case 0:
  6376. return this.extraSprites.length ? (n3 = 0, r3 = 0, s2 = t3.width, a2 = t3.height, o3 = 0, l2 = 0, [4, Promise.all(zt(this.extraSprites, function(t4) {
  6377. return S(m2, void 0, void 0, function() {
  6378. var h3, p3, u3, d3;
  6379. return I(this, function(c3) {
  6380. switch (c3.label) {
  6381. case 0:
  6382. return (h3 = t4 instanceof Za ? { sprite: t4, position: "bottom" } : t4).position = h3.position || "bottom", h3.marginTop = h3.marginTop || 0, h3.marginRight = h3.marginRight || 0, h3.marginBottom = h3.marginBottom || 0, h3.marginLeft = h3.marginLeft || 0, i3 ? [4, h3.sprite.exporting.getCanvasAdvanced(e4)] : [3, 2];
  6383. case 1:
  6384. return p3 = c3.sent(), [3, 4];
  6385. case 2:
  6386. return [4, h3.sprite.exporting.getCanvas(e4)];
  6387. case 3:
  6388. p3 = c3.sent(), c3.label = 4;
  6389. case 4:
  6390. return u3 = p3.width + h3.marginLeft + h3.marginRight, d3 = p3.height + h3.marginTop + h3.marginBottom, "top" == h3.position ? (s2 = h3.crop ? a2 : gt(s2, u3), r3 += d3) : "right" == h3.position ? (a2 = h3.crop ? a2 : gt(a2, d3), o3 += u3) : "left" == h3.position ? (a2 = h3.crop ? a2 : gt(a2, d3), n3 += u3) : "bottom" === h3.position && (s2 = h3.crop ? a2 : gt(s2, u3), l2 += d3), [2, { canvas: p3, position: h3.position, left: h3.marginLeft, top: h3.marginTop, width: u3, height: d3 }];
  6391. }
  6392. });
  6393. });
  6394. }))]) : [3, 2];
  6395. case 1:
  6396. return h2 = v2.sent(), (p2 = this.getDisposableCanvas()).width = n3 + s2 + o3, p2.height = r3 + a2 + l2, u2 = p2.getContext("2d"), (d2 = this.backgroundColor || this.findBackgroundColor(this.sprite.dom)) && (u2.fillStyle = d2.toString(), u2.fillRect(0, 0, p2.width, p2.height)), g2 = (c2 = n3) + s2, y2 = (f2 = r3) + a2, Ut(h2, function(t4) {
  6397. "top" == t4.position ? (f2 -= t4.height, u2.drawImage(t4.canvas, n3 + t4.left, f2 + t4.top)) : "right" == t4.position ? (u2.drawImage(t4.canvas, g2 + t4.left, r3 + t4.top), g2 += t4.width) : "left" == t4.position ? (c2 -= t4.width, u2.drawImage(t4.canvas, c2 + t4.left, r3 + t4.top)) : "bottom" === t4.position && (u2.drawImage(t4.canvas, n3 + t4.left, y2 + t4.top), y2 += t4.height), m2.disposeCanvas(t4.canvas);
  6398. }), u2.drawImage(t3, n3, r3), [2, p2];
  6399. case 2:
  6400. return [2, t3];
  6401. }
  6402. });
  6403. });
  6404. }, e3.prototype.getCanvas = function(t3) {
  6405. return S(this, void 0, void 0, function() {
  6406. var e4, i3, n3, r3, s2, a2, o3, l2, h2, p2, u2, d2, c2, f2, g2, y2, m2;
  6407. return I(this, function(v2) {
  6408. switch (v2.label) {
  6409. case 0:
  6410. Z(t3) || (t3 = {}), e4 = this.backgroundColor || this.findBackgroundColor(this.sprite.dom), i3 = this.getDOMURL(), n3 = null, r3 = null, v2.label = 1;
  6411. case 1:
  6412. return v2.trys.push([1, , 4, 5]), a2 = this.sprite.pixelWidth, o3 = this.sprite.pixelHeight, l2 = Bs(this.sprite.dom), h2 = Hs(this.sprite.dom), p2 = t3.scale || 1, u2 = this.getPixelRatio(t3), p2 = this.getAdjustedScale(a2 * u2, o3 * u2, p2, t3), (s2 = this.getDisposableCanvas()).style.width = a2 * p2 + "px", s2.style.height = o3 * p2 + "px", s2.width = a2 * p2, s2.height = o3 * p2, d2 = s2.getContext("2d"), e4 && (d2.fillStyle = e4.toString(), d2.fillRect(0, 0, a2 * p2, o3 * p2)), c2 = [], this.useWebFonts && c2.push(this.getFontFamilies().then(function(t4) {
  6413. return r3 = t4.blobs, t4.cssText;
  6414. })), c2.push(this.imagesToDataURI(this.sprite.dom, t3)), c2.push(this.prepForeignObjects(this.sprite.dom, t3)), [4, Promise.all(c2)];
  6415. case 2:
  6416. return f2 = v2.sent(), g2 = this.normalizeSVG("<style>" + f2[0] + "</style>" + this.serializeElement(this.sprite.paper.defs) + this.serializeElement(this.sprite.dom), t3, a2, o3, p2, l2, h2), y2 = new Blob([g2], { type: "image/svg+xml" }), n3 = i3.createObjectURL(y2), [4, this.loadNewImage(n3, a2 * p2 * u2, o3 * p2 * u2, "anonymous")];
  6417. case 3:
  6418. return m2 = v2.sent(), d2.drawImage(m2, 0, 0), [3, 5];
  6419. case 4:
  6420. return null !== n3 && i3.revokeObjectURL(n3), null !== r3 && Ut(r3, function(t4) {
  6421. i3.revokeObjectURL(t4);
  6422. }), this.restoreRemovedObjects(), [7];
  6423. case 5:
  6424. return [2, s2];
  6425. }
  6426. });
  6427. });
  6428. }, e3.prototype.getCanvasAdvanced = function(t3) {
  6429. return S(this, void 0, void 0, function() {
  6430. var e4, i3, n3, r3, s2, a2, o3, l2, h2, p2, u2;
  6431. return I(this, function(d2) {
  6432. switch (d2.label) {
  6433. case 0:
  6434. return Z(t3) || (t3 = {}), [4, this.imagesToDataURI(this.sprite.dom, t3)];
  6435. case 1:
  6436. return d2.sent(), e4 = this.backgroundColor || this.findBackgroundColor(this.sprite.dom), [4, this.canvg];
  6437. case 2:
  6438. return i3 = d2.sent(), n3 = this.sprite.pixelWidth, r3 = this.sprite.pixelHeight, s2 = Bs(this.sprite.dom), a2 = Hs(this.sprite.dom), o3 = t3.scale || 1, l2 = this.getPixelRatio(t3), o3 = this.getAdjustedScale(n3 * l2, r3 * l2, o3, t3), h2 = this.normalizeSVG(this.serializeElement(this.sprite.paper.defs) + this.serializeElement(this.sprite.dom), t3, n3, r3, o3, s2, a2, e4), (p2 = this.getDisposableCanvas()).style.width = n3 * l2 * o3 + "px", p2.style.height = r3 * l2 * o3 + "px", p2.width = n3 * l2 * o3, p2.height = r3 * l2 * o3, u2 = { useCORS: true }, 1 != l2 && (u2.ignoreDimensions = true, u2.scaleWidth = n3 * l2 * o3, u2.scaleHeight = r3 * l2 * o3), [4, i3.fromString(p2.getContext("2d"), h2, u2).render()];
  6439. case 3:
  6440. return d2.sent(), [2, p2];
  6441. }
  6442. });
  6443. });
  6444. }, e3.prototype.getImageAdvanced = function(t3, e4, i3) {
  6445. return S(this, void 0, void 0, function() {
  6446. var n3, r3, s2;
  6447. return I(this, function(a2) {
  6448. switch (a2.label) {
  6449. case 0:
  6450. return (n3 = this._objectsAlreadyHidden) || this.hideNonExportableSprites(), Z(e4) || (e4 = this.getFormatOptions(t3)), [4, this.getCanvasAdvanced(e4)];
  6451. case 1:
  6452. return r3 = a2.sent(), false === i3 ? [3, 3] : [4, this.addExtras(r3, e4, true)];
  6453. case 2:
  6454. r3 = a2.sent(), a2.label = 3;
  6455. case 3:
  6456. return s2 = r3.toDataURL(this.getContentType(t3), e4.quality), this.disposeCanvas(r3), n3 || this.restoreNonExportableSprites(), [2, s2];
  6457. }
  6458. });
  6459. });
  6460. }, e3.prototype.getDisposableCanvas = function() {
  6461. var t3 = document.createElement("canvas");
  6462. return t3.style.position = "fixed", t3.style.top = "-10000px", document.body.appendChild(t3), t3;
  6463. }, e3.prototype.disposeCanvas = function(t3) {
  6464. document.body.removeChild(t3);
  6465. }, e3.prototype.getPixelRatio = function(t3) {
  6466. return this.useRetina ? Ln() : 1;
  6467. }, e3.prototype.getAdjustedScale = function(t3, e4, i3, n3) {
  6468. if (!n3)
  6469. return i3;
  6470. var r3, s2, a2 = t3 * i3, o3 = t3 * i3;
  6471. return n3.maxWidth && a2 > n3.maxWidth && (r3 = n3.maxWidth / t3), n3.maxHeight && o3 > n3.maxHeight && (s2 = n3.maxHeight / e4), r3 || s2 ? yt(r3, s2) : (n3.minWidth && a2 < n3.minWidth && (r3 = n3.minWidth / t3), n3.minHeight && o3 < n3.minHeight && (s2 = n3.minHeight / e4), r3 || s2 ? gt(r3, s2) : i3);
  6472. }, e3.prototype.imagesToDataURI = function(t3, i3) {
  6473. return S(this, void 0, void 0, function() {
  6474. var n3, r3, s2, a2, o3, l2;
  6475. return I(this, function(h2) {
  6476. switch (h2.label) {
  6477. case 0:
  6478. if (!(n3 = t3.querySelectorAll("image")).length)
  6479. return [3, 2];
  6480. for (r3 = [], s2 = n3.length, a2 = 0; a2 < s2; a2++)
  6481. o3 = n3[a2], (l2 = o3.getAttributeNS(e3.XLINK, "href")) && (-1 !== l2.indexOf("data:image") || (-1 !== l2.indexOf(".svg") ? r3.push(this.svgToDataURI(o3, i3)) : r3.push(this.imageToDataURI(o3, i3))));
  6482. return [4, Promise.all(r3)];
  6483. case 1:
  6484. return h2.sent(), [2];
  6485. case 2:
  6486. return [2];
  6487. }
  6488. });
  6489. });
  6490. }, e3.prototype.prepForeignObjects = function(t3, e4) {
  6491. return S(this, void 0, void 0, function() {
  6492. var e5, i3, n3;
  6493. return I(this, function(r3) {
  6494. if ((e5 = t3.querySelectorAll("foreignObject")).length)
  6495. for (i3 = e5.length, n3 = 0; n3 < i3; n3++)
  6496. this.temporarilyRemoveObject(e5[n3]);
  6497. return [2];
  6498. });
  6499. });
  6500. }, e3.prototype.imageToDataURI = function(t3, i3) {
  6501. return S(this, void 0, void 0, function() {
  6502. var n3, r3, s2;
  6503. return I(this, function(a2) {
  6504. switch (a2.label) {
  6505. case 0:
  6506. return a2.trys.push([0, 2, , 3]), [4, this.loadNewImage(t3.getAttributeNS(e3.XLINK, "href"), null, null, "anonymous")];
  6507. case 1:
  6508. n3 = a2.sent(), (r3 = document.createElement("canvas")).width = n3.width, r3.height = n3.height, r3.getContext("2d").drawImage(n3, 0, 0);
  6509. try {
  6510. return s2 = r3.toDataURL(), t3.setAttribute("href", s2), [2, s2];
  6511. } catch (e4) {
  6512. return false !== i3.keepTainted && this.temporarilyRemoveObject(t3), [2, void 0];
  6513. }
  6514. return [3, 3];
  6515. case 2:
  6516. return a2.sent(), i3 && false === i3.keepTainted || this.temporarilyRemoveObject(t3), [2, void 0];
  6517. case 3:
  6518. return [2];
  6519. }
  6520. });
  6521. });
  6522. }, e3.prototype.svgToDataURI = function(t3, i3) {
  6523. return S(this, void 0, void 0, function() {
  6524. var n3, r3, s2, a2;
  6525. return I(this, function(o3) {
  6526. switch (o3.label) {
  6527. case 0:
  6528. n3 = t3.getAttributeNS(e3.XLINK, "href"), o3.label = 1;
  6529. case 1:
  6530. return o3.trys.push([1, 3, , 4]), [4, Ha(n3)];
  6531. case 2:
  6532. return r3 = o3.sent(), s2 = this.adapter.apply("charset", { charset: "base64", type: "svg", options: i3 }).charset, a2 = this.adapter.apply("svgToDataURI", { data: "data:" + this.getContentType("svg") + ";" + s2 + "," + btoa(r3.response), options: i3 }).data, t3.setAttributeNS(e3.XLINK, "href", a2), [2, a2];
  6533. case 3:
  6534. return o3.sent(), i3 && false === i3.keepTainted || this.temporarilyRemoveObject(t3), [2, void 0];
  6535. case 4:
  6536. return [2];
  6537. }
  6538. });
  6539. });
  6540. }, e3.prototype.temporarilyRemoveObject = function(t3, e4) {
  6541. var i3 = t3.parentElement || t3.parentNode;
  6542. e4 || (e4 = this.sprite.paper.add("g").node), i3.insertBefore(e4, t3), t3.textContent, i3.removeChild(t3), this._removedObjects.push({ element: t3, placeholder: e4 });
  6543. }, e3.prototype.restoreRemovedObjects = function() {
  6544. for (var t3; t3 = this._removedObjects.pop(); )
  6545. (t3.placeholder.parentElement || t3.placeholder.parentNode).insertBefore(t3.element, t3.placeholder);
  6546. }, e3.prototype.simplifiedImageExport = function() {
  6547. return S(this, void 0, void 0, function() {
  6548. var t3, e4, i3, n3, r3, s2, a2;
  6549. return I(this, function(o3) {
  6550. switch (o3.label) {
  6551. case 0:
  6552. if (false === this.useSimplifiedExport)
  6553. return [2, false];
  6554. if (false === (t3 = Ii.getCache("simplifiedImageExport")) || true === t3)
  6555. return [2, t3];
  6556. o3.label = 1;
  6557. case 1:
  6558. o3.trys.push([1, 6, , 7]), (e4 = document.createElement("canvas")).width = 1, e4.height = 1, i3 = e4.getContext("2d"), n3 = this.getDOMURL(), r3 = new Blob([this.normalizeSVG("<g></g>", {}, 1, 1)], { type: "image/svg+xml" }), s2 = n3.createObjectURL(r3), a2 = void 0, o3.label = 2;
  6559. case 2:
  6560. return o3.trys.push([2, 4, , 5]), [4, this.loadNewImage(s2, 1, 1)];
  6561. case 3:
  6562. return a2 = o3.sent(), [3, 5];
  6563. case 4:
  6564. return o3.sent(), [2, false];
  6565. case 5:
  6566. i3.drawImage(a2, 0, 0), n3.revokeObjectURL(s2);
  6567. try {
  6568. return Ii.setCache("simplifiedImageExport", true), [2, true];
  6569. } catch (t4) {
  6570. return Ii.setCache("simplifiedImageExport", false), [2, false];
  6571. }
  6572. return [3, 7];
  6573. case 6:
  6574. return o3.sent(), Ii.setCache("simplifiedImageExport", false), [2, false];
  6575. case 7:
  6576. return [2];
  6577. }
  6578. });
  6579. });
  6580. }, e3.prototype.loadNewImage = function(t3, e4, i3, n3) {
  6581. return new Promise(function(r3, s2) {
  6582. var a2;
  6583. function o3() {
  6584. if (n3) {
  6585. var e5 = a2.src;
  6586. a2.onerror = function() {
  6587. s2(new Error('Loading image "' + t3 + '" failed'));
  6588. }, a2.removeAttribute("crossorigin"), a2.src = "", a2.src = e5;
  6589. } else
  6590. s2(new Error('Loading image "' + t3 + '" failed'));
  6591. }
  6592. a2 = e4 && i3 ? new Image(e4, i3) : new Image(), n3 && a2.setAttribute("crossOrigin", n3), a2.onload = function() {
  6593. r3(a2);
  6594. }, a2.onabort = o3, a2.onerror = o3, a2.src = t3;
  6595. });
  6596. }, e3.prototype.getDOMURL = function() {
  6597. return self.URL || self.webkitURL || self;
  6598. }, e3.prototype.getSVG = function(t3, e4, i3) {
  6599. return void 0 === i3 && (i3 = true), S(this, void 0, void 0, function() {
  6600. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2;
  6601. return I(this, function(c2) {
  6602. switch (c2.label) {
  6603. case 0:
  6604. return (n3 = this._objectsAlreadyHidden) || this.hideNonExportableSprites(), Z(e4) || (e4 = this.getFormatOptions("svg")), [4, this.awaitValidSprites()];
  6605. case 1:
  6606. return c2.sent(), r3 = this.sprite.pixelWidth, s2 = this.sprite.pixelHeight, a2 = Bs(this.sprite.dom), o3 = Hs(this.sprite.dom), l2 = e4.scale || 1, h2 = this.getPixelRatio(e4), l2 = this.getAdjustedScale(r3 * h2, s2 * h2, l2, e4), p2 = this.normalizeSVG(this.serializeElement(this.sprite.paper.defs) + this.serializeElement(this.sprite.dom), e4, r3, s2, l2, a2, o3), u2 = this.adapter.apply("charset", { charset: "charset=utf-8", type: "svg", options: e4 }).charset, d2 = this.adapter.apply("getSVG", { data: i3 ? "data:" + this.getContentType(t3) + ";" + u2 + "," + encodeURIComponent(p2) : p2, options: e4 }).data, n3 || this.restoreNonExportableSprites(), [2, d2];
  6607. }
  6608. });
  6609. });
  6610. }, e3.prototype.normalizeSVG = function(t3, e4, i3, n3, r3, s2, a2, o3) {
  6611. var l2 = "";
  6612. i3 && (l2 += 'width="' + Math.round(i3 * (r3 || 1)) + 'px" '), n3 && (l2 += 'height="' + Math.round(n3 * (r3 || 1)) + 'px" ');
  6613. var h2 = "";
  6614. s2 && (h2 += "font-family: " + s2.replace(/"/g, "") + ";"), a2 && (h2 += "font-size: " + a2 + ";"), r3 && (l2 += 'viewBox="0 0 ' + i3 + " " + n3 + '" ');
  6615. var p2 = [], u2 = t3.match(/<foreignObject[\s\S]*<\/foreignObject>/gi);
  6616. if (u2)
  6617. for (var d2 = 0; d2 < u2.length; d2++)
  6618. t3 = t3.replace(u2[d2], wn), p2.push(u2[d2]);
  6619. t3.match(/<svg/) ? "" !== l2 && (t3 = (t3 = (t3 = t3.replace(/(<svg[^>]*)width="[^"]*"/, "$1")).replace(/(<svg[^>]*)height="[^"]*"/, "$1")).replace(/(<svg)/, "$1" + l2)) : t3 = '<?xml version="1.0" encoding="utf-8"?><svg ' + l2 + ' style="' + h2 + '" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + t3 + "</svg>", o3 && (t3 = t3.replace(/(<svg[^>]*>)/, '$1<rect width="100%" height="100%" fill="' + o3.rgba + '"/>')), /MSIE |Trident\//.test(navigator.userAgent) && (t3 = t3.replace(/<feColorMatrix [^\/>]*\/>/gi, ""));
  6620. var c2 = new RegExp("url\\(" + Bn(Dn()), "g");
  6621. if (t3 = (t3 = t3.replace(c2, "url(#")).replace(/url\(&quot;([^)]*)&quot;\)/gm, "url($1)"), p2.length)
  6622. for (d2 = 0; d2 < p2.length; d2++)
  6623. t3 = t3.replace(wn, p2[d2]);
  6624. return this.adapter.apply("normalizeSVG", { data: t3, options: e4 }).data;
  6625. }, e3.prototype.serializeElement = function(t3) {
  6626. return new XMLSerializer().serializeToString(t3);
  6627. }, e3.prototype.getPDF = function(t3, e4) {
  6628. return S(this, void 0, void 0, function() {
  6629. function i3(t4) {
  6630. var e5 = {};
  6631. e5.normal = t4.normal.path, c2[t4.normal.path] = t4.normal.bytes, t4.bold ? (e5.bold = t4.bold.path, c2[t4.bold.path] = t4.bold.bytes) : e5.bold = t4.normal.path, t4.italics ? (e5.italics = t4.italics.path, c2[t4.italics.path] = t4.italics.bytes) : e5.italics = t4.normal.path, t4.bolditalics ? (e5.bolditalics = t4.bolditalics.path, c2[t4.bolditalics.path] = t4.bolditalics.bytes) : e5.bolditalics = t4.normal.path, d2[t4.name] = e5;
  6632. }
  6633. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2, c2;
  6634. return I(this, function(f2) {
  6635. switch (f2.label) {
  6636. case 0:
  6637. return [4, this.getImage(e4.imageFormat || "png", e4)];
  6638. case 1:
  6639. return n3 = f2.sent(), [4, this.pdfmake];
  6640. case 2:
  6641. return r3 = f2.sent(), s2 = [30, 30, 30, 30], a2 = { pageSize: e4.pageSize || "A4", pageOrientation: e4.pageOrientation || "portrait", pageMargins: e4.pageMargins || s2, defaultStyle: { font: e4.font ? e4.font.name : void 0 }, content: [] }, o3 = this.adapter.apply("title", { title: this.title, options: e4 }).title, l2 = 0, o3 && (a2.content.push({ text: o3, fontSize: e4.fontSize || 14, bold: true, margin: [0, 0, 0, 15] }), l2 += 50), e4.addURL && (a2.content.push({ text: this.language.translate("Saved from") + ": " + document.location.href, fontSize: e4.fontSize, margin: [0, 0, 0, 15] }), l2 += 50), "pdfdata" != t3 && a2.content.push({ image: n3, alignment: e4.align || "left", fit: this.getPageSizeFit(a2.pageSize, a2.pageMargins, l2) }), "pdfdata" == t3 || e4.addData ? (p2 = (h2 = a2.content).push, u2 = {}, [4, this.getPDFData("pdf", e4)]) : [3, 4];
  6642. case 3:
  6643. p2.apply(h2, [(u2.table = f2.sent(), u2.fontSize = e4.fontSize || 14, u2)]), f2.label = 4;
  6644. case 4:
  6645. return a2 = this.adapter.apply("pdfmakeDocument", { doc: a2, options: e4 }).doc, d2 = null, c2 = null, e4.font && (d2 = {}, c2 = {}, i3(e4.font), e4.extraFonts && Ut(e4.extraFonts, i3)), [4, new Promise(function(t4, e5) {
  6646. r3.createPdf(a2, null, d2, c2).getDataUrl(function(e6) {
  6647. t4(e6);
  6648. });
  6649. })];
  6650. case 5:
  6651. return [2, f2.sent()];
  6652. }
  6653. });
  6654. });
  6655. }, e3.prototype.getPDFData = function(t3, e4) {
  6656. return S(this, void 0, void 0, function() {
  6657. var t4, i3, n3, r3, s2, a2, o3 = this;
  6658. return I(this, function(l2) {
  6659. if (t4 = { body: [] }, i3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "pdf" }).dataFields, n3 = this.data, e4.pivot)
  6660. r3 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "pdfdata" }).dataFieldsOrder, We(i3, function(i4, r4) {
  6661. var s3 = [];
  6662. e4.addColumnNames && s3.push(r4);
  6663. for (var a3 = n3.length, l3 = 0; l3 < a3; l3++) {
  6664. var h2 = n3[l3][i4];
  6665. s3.push(o3.convertToSpecialFormat(i4, h2, e4, true));
  6666. }
  6667. t4.body.push(o3.getPDFDataRow(s3, e4, void 0, true));
  6668. }, function(t5, e5) {
  6669. var i4 = r3.indexOf(t5), n4 = r3.indexOf(e5);
  6670. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6671. });
  6672. else
  6673. for (e4.addColumnNames && (t4.body.push(this.getPDFDataRow(i3, e4, void 0, true)), t4.headerRows = 1), s2 = n3.length, a2 = 0; a2 < s2; a2++)
  6674. t4.body.push(this.getPDFDataRow(n3[a2], e4, i3));
  6675. return [2, this.adapter.apply("pdfmakeTable", { table: t4, options: e4 }).table];
  6676. });
  6677. });
  6678. }, e3.prototype.getPDFDataRow = function(t3, e4, i3, n3) {
  6679. var r3 = this;
  6680. void 0 === n3 && (n3 = false);
  6681. var s2 = [];
  6682. i3 || (i3 = t3);
  6683. var a2 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "pdfdata" }).dataFieldsOrder;
  6684. return We(i3, function(i4, a3) {
  6685. var o3 = r3.convertEmptyValue(i4, t3[i4], e4), l2 = n3 ? o3 : r3.convertToSpecialFormat(i4, o3, e4);
  6686. l2 = "" + l2, s2.push(l2);
  6687. }, function(t4, e5) {
  6688. var i4 = a2.indexOf(t4), n4 = a2.indexOf(e5);
  6689. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6690. }), s2;
  6691. }, e3.prototype.getPageSizeFit = function(t3, e4, i3) {
  6692. void 0 === i3 && (i3 = 0);
  6693. var n3 = [0, 0, 0, 0];
  6694. "number" == typeof e4 ? n3 = [e4, e4, e4, e4] : 2 == e4.length ? n3 = [e4[0], e4[1], e4[0], e4[1]] : 4 == e4.length && (n3 = e4);
  6695. var r3 = { "4A0": [4767.87, 6740.79], "2A0": [3370.39, 4767.87], A0: [2383.94, 3370.39], A1: [1683.78, 2383.94], A2: [1190.55, 1683.78], A3: [841.89, 1190.55], A4: [595.28, 841.89], A5: [419.53, 595.28], A6: [297.64, 419.53], A7: [209.76, 297.64], A8: [147.4, 209.76], A9: [104.88, 147.4], A10: [73.7, 104.88], B0: [2834.65, 4008.19], B1: [2004.09, 2834.65], B2: [1417.32, 2004.09], B3: [1000.63, 1417.32], B4: [708.66, 1000.63], B5: [498.9, 708.66], B6: [354.33, 498.9], B7: [249.45, 354.33], B8: [175.75, 249.45], B9: [124.72, 175.75], B10: [87.87, 124.72], C0: [2599.37, 3676.54], C1: [1836.85, 2599.37], C2: [1298.27, 1836.85], C3: [918.43, 1298.27], C4: [649.13, 918.43], C5: [459.21, 649.13], C6: [323.15, 459.21], C7: [229.61, 323.15], C8: [161.57, 229.61], C9: [113.39, 161.57], C10: [79.37, 113.39], RA0: [2437.8, 3458.27], RA1: [1729.13, 2437.8], RA2: [1218.9, 1729.13], RA3: [864.57, 1218.9], RA4: [609.45, 864.57], SRA0: [2551.18, 3628.35], SRA1: [1814.17, 2551.18], SRA2: [1275.59, 1814.17], SRA3: [907.09, 1275.59], SRA4: [637.8, 907.09], EXECUTIVE: [521.86, 756], FOLIO: [612, 936], LEGAL: [612, 1008], LETTER: [612, 792], TABLOID: [792, 1224] }[t3];
  6696. return r3[0] -= n3[0] + n3[2], r3[1] -= n3[1] + n3[3] + i3, r3;
  6697. }, e3.prototype.getExcel = function(t3, e4) {
  6698. return S(this, void 0, void 0, function() {
  6699. var i3, n3, r3, s2, a2, o3, l2, h2, p2, u2 = this;
  6700. return I(this, function(d2) {
  6701. switch (d2.label) {
  6702. case 0:
  6703. return Z(e4) || (e4 = this.getFormatOptions("xlsx")), [4, this.xlsx];
  6704. case 1:
  6705. if (i3 = d2.sent(), n3 = this.adapter.apply("xlsxWorkbookOptions", { xlsx: i3, options: { bookType: "xlsx", bookSST: false, type: "base64" } }).options, r3 = this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName", { xlsx: i3, name: this.title || this.language.translate("Data") }).name), s2 = { SheetNames: [r3], Sheets: {} }, a2 = [], o3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "xslx" }).dataFields, e4.pivot)
  6706. l2 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "xlsx" }).dataFieldsOrder, We(o3, function(t4, i4) {
  6707. var n4 = [];
  6708. e4.addColumnNames && n4.push(i4);
  6709. for (var r4 = u2.data.length, s3 = 0; s3 < r4; s3++) {
  6710. var o4 = u2.data[s3][t4];
  6711. n4.push(u2.convertToSpecialFormat(t4, o4, e4, true));
  6712. }
  6713. a2.push(u2.getExcelRow(n4, e4, void 0, true));
  6714. }, function(t4, e5) {
  6715. var i4 = l2.indexOf(t4), n4 = l2.indexOf(e5);
  6716. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6717. });
  6718. else
  6719. for (e4.addColumnNames && a2.push(this.getExcelRow(o3, e4, void 0, true)), h2 = this.data.length, p2 = 0; p2 < h2; p2++)
  6720. a2.push(this.getExcelRow(this.data[p2], e4, o3));
  6721. return s2.Sheets[r3] = i3.utils.aoa_to_sheet(a2), s2 = this.adapter.apply("xlsxWorkbook", { xlsx: i3, workbook: s2, options: e4 }).workbook, [2, this.adapter.apply("getExcel", { data: "data:" + this.getContentType(t3) + ";base64," + i3.write(s2, n3), options: e4 }).data];
  6722. }
  6723. });
  6724. });
  6725. }, e3.prototype.normalizeExcelSheetName = function(t3) {
  6726. return Nn(t3 = t3.replace(/([:\\\/?*\[\]]+)/g, " "), 31, "...", true);
  6727. }, e3.prototype.getExcelRow = function(t3, e4, i3, n3) {
  6728. var r3 = this;
  6729. void 0 === n3 && (n3 = false);
  6730. var s2 = [];
  6731. i3 || (i3 = t3);
  6732. var a2 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "xlsx" }).dataFieldsOrder;
  6733. return We(i3, function(i4, a3) {
  6734. var o3 = r3.convertEmptyValue(i4, t3[i4], e4), l2 = n3 ? o3 : r3.convertToSpecialFormat(i4, o3, e4, true);
  6735. s2.push(l2);
  6736. }, function(t4, e5) {
  6737. var i4 = a2.indexOf(t4), n4 = a2.indexOf(e5);
  6738. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6739. }), s2;
  6740. }, e3.prototype.getCSV = function(t3, e4, i3) {
  6741. return void 0 === i3 && (i3 = true), S(this, void 0, void 0, function() {
  6742. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2 = this;
  6743. return I(this, function(c2) {
  6744. if (Z(e4) || (e4 = this.getFormatOptions("csv")), n3 = "", r3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "csv" }).dataFields, s2 = "", a2 = this.data, e4.pivot)
  6745. o3 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "csv" }).dataFieldsOrder, We(r3, function(t4, i4) {
  6746. var r4 = [];
  6747. e4.addColumnNames && r4.push(i4);
  6748. for (var o4 = a2.length, l3 = 0; l3 < o4; l3++) {
  6749. var h3 = a2[l3][t4];
  6750. r4.push(d2.convertToSpecialFormat(t4, h3, e4, true));
  6751. }
  6752. n3 += s2 + d2.getCSVRow(r4, e4, void 0, true), s2 = "\n";
  6753. }, function(t4, e5) {
  6754. var i4 = o3.indexOf(t4), n4 = o3.indexOf(e5);
  6755. return i4 > n4 ? -1 : i4 < n4 ? 1 : 0;
  6756. });
  6757. else {
  6758. for (l2 = a2.length, h2 = 0; h2 < l2; h2++)
  6759. p2 = this.getCSVRow(a2[h2], e4, r3), e4.reverse ? n3 = p2 + s2 + n3 : n3 += s2 + p2, s2 = "\n";
  6760. e4.addColumnNames && (n3 = this.getCSVRow(r3, e4, void 0, true) + s2 + n3);
  6761. }
  6762. return u2 = this.adapter.apply("charset", { charset: "charset=utf-8", type: t3, options: e4 }).charset, [2, this.adapter.apply("getCSV", { data: i3 ? "data:" + this.getContentType(t3) + ";" + u2 + "," + encodeURIComponent(n3) : n3, options: e4 }).data];
  6763. });
  6764. });
  6765. }, e3.prototype.getCSVRow = function(t3, e4, i3, n3) {
  6766. var r3 = this;
  6767. void 0 === n3 && (n3 = false);
  6768. var s2 = e4.separator || ",", a2 = [];
  6769. i3 || (i3 = t3);
  6770. var o3 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "csv" }).dataFieldsOrder;
  6771. return We(i3, function(i4, o4) {
  6772. var l2 = r3.convertEmptyValue(i4, t3[i4], e4), h2 = n3 ? l2 : r3.convertToSpecialFormat(i4, l2, e4);
  6773. h2 = (h2 = "" + h2).replace(/"/g, '""'), (e4.forceQuotes || h2.search(new RegExp('"|\n|' + s2, "g")) >= 0) && (h2 = '"' + h2 + '"'), a2.push(h2);
  6774. }, function(t4, e5) {
  6775. var i4 = o3.indexOf(t4), n4 = o3.indexOf(e5);
  6776. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6777. }), a2.join(s2);
  6778. }, e3.prototype.getHTML = function(t3, e4, i3) {
  6779. return void 0 === i3 && (i3 = true), S(this, void 0, void 0, function() {
  6780. var n3, r3, s2, a2, o3, l2, h2, p2 = this;
  6781. return I(this, function(u2) {
  6782. if (Z(e4) || (e4 = this.getFormatOptions("html")), n3 = "<table>", e4.tableClass && (n3 = '<table class="' + e4.tableClass + '">'), r3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "html" }).dataFields, s2 = this.data, e4.pivot)
  6783. a2 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "html" }).dataFieldsOrder, n3 += "\n<tbody>", We(r3, function(t4, i4) {
  6784. var r4 = [];
  6785. e4.addColumnNames && r4.push(i4);
  6786. for (var a3 = s2.length, o4 = 0; o4 < a3; o4++) {
  6787. var l3 = s2[o4][t4];
  6788. r4.push(p2.convertToSpecialFormat(t4, l3, e4, true));
  6789. }
  6790. n3 += "\n" + p2.getHTMLRow(r4, e4, void 0, true);
  6791. }, function(t4, e5) {
  6792. var i4 = a2.indexOf(t4), n4 = a2.indexOf(e5);
  6793. return i4 > n4 ? -1 : i4 < n4 ? 1 : 0;
  6794. }), n3 += "\n</tbody>";
  6795. else {
  6796. for (e4.addColumnNames && (n3 += "\n<thead>\n" + this.getHTMLRow(r3, e4, void 0, true, true) + "\n</thead>"), n3 += "\n<tbody>", o3 = s2.length, l2 = 0; l2 < o3; l2++)
  6797. n3 += "\n" + this.getHTMLRow(s2[l2], e4, r3);
  6798. n3 += "\n</tbody>";
  6799. }
  6800. return n3 += "\n</table>", h2 = this.adapter.apply("charset", { charset: "charset=utf-8", type: t3, options: e4 }).charset, [2, this.adapter.apply("getHTML", { data: i3 ? "data:" + this.getContentType(t3) + ";" + h2 + "," + encodeURIComponent(n3) : n3, options: e4 }).data];
  6801. });
  6802. });
  6803. }, e3.prototype.getHTMLRow = function(t3, e4, i3, n3, r3) {
  6804. var s2 = this;
  6805. void 0 === n3 && (n3 = false), void 0 === r3 && (r3 = false);
  6806. var a2 = " <tr>";
  6807. e4.rowClass && (a2 = ' <tr class="' + e4.rowClass + '">'), i3 || (i3 = t3);
  6808. var o3 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "html" }).dataFieldsOrder, l2 = r3 ? "th" : "td", h2 = true;
  6809. return We(i3, function(i4, r4) {
  6810. var o4 = s2.convertEmptyValue(i4, t3[i4], e4), p2 = n3 ? o4 : s2.convertToSpecialFormat(i4, o4, e4);
  6811. p2 = (p2 = "" + p2).replace(/[\u00A0-\u9999<>\&]/gim, function(t4) {
  6812. return "&#" + t4.charCodeAt(0) + ";";
  6813. });
  6814. var u2 = l2;
  6815. e4.pivot && h2 && (u2 = "th"), e4.cellClass ? a2 += "\n <" + u2 + ' class="' + e4.cellClass + '">' + p2 + "</" + u2 + ">" : a2 += "\n <" + u2 + ">" + p2 + "</" + u2 + ">", h2 = false;
  6816. }, function(t4, e5) {
  6817. var i4 = o3.indexOf(t4), n4 = o3.indexOf(e5);
  6818. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6819. }), a2 += "\n </tr>";
  6820. }, e3.prototype.getJSON = function(t3, e4, i3) {
  6821. return void 0 === i3 && (i3 = true), S(this, void 0, void 0, function() {
  6822. var n3, r3, s2, a2, o3, l2, h2, p2, u2 = this;
  6823. return I(this, function(d2) {
  6824. if (Z(e4) || (e4 = this.getFormatOptions("json")), r3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "json" }).dataFields, this._dynamicDataFields)
  6825. n3 = this.data;
  6826. else
  6827. for (n3 = [], s2 = this.data, a2 = function(t4, i4) {
  6828. var a3 = s2[i4];
  6829. if ("object" == typeof a3) {
  6830. var o4 = {};
  6831. Ne(a3, function(t5, i5) {
  6832. Z(r3[t5]) && (o4[r3[t5]] = u2.convertToSpecialFormat(t5, i5, e4));
  6833. }), n3.push(o4);
  6834. }
  6835. }, o3 = s2.length, l2 = 0; l2 < o3; l2++)
  6836. a2(0, l2);
  6837. return h2 = JSON.stringify(n3, function(t4, i4) {
  6838. return "object" == typeof i4 && Ne(i4, function(t5, n4) {
  6839. i4[t5] = u2.convertToSpecialFormat(t5, n4, e4);
  6840. }), i4;
  6841. }, e4.indent), p2 = this.adapter.apply("charset", { charset: "charset=utf-8", type: t3, options: e4 }).charset, [2, this.adapter.apply("getJSON", { data: i3 ? "data:" + this.getContentType(t3) + ";" + p2 + "," + encodeURIComponent(h2) : h2, options: e4 }).data];
  6842. });
  6843. });
  6844. }, e3.prototype.convertToSpecialFormat = function(t3, e4, i3, n3) {
  6845. if ("number" == typeof e4)
  6846. if (this.isDateField(t3))
  6847. e4 = new Date(e4);
  6848. else {
  6849. if (this.isDurationField(t3))
  6850. return this.durationFormatter.format(e4, this.durationFormat);
  6851. if (this.isNumberField(t3) && this.numberFormat)
  6852. return this.numberFormatter.format(e4, this.numberFormat);
  6853. }
  6854. return e4 instanceof Date ? i3.useTimestamps ? e4 = e4.getTime() : i3.useLocale ? n3 || (e4 = e4.toLocaleString()) : e4 = this.dateFormatter.format(e4, this.dateFormat) : Q(e4) && this.isDateField(t3) && this.dateFormat && (e4 = this.dateFormatter.format(this.dateFormatter.parse(e4), this.dateFormat)), e4;
  6855. }, e3.prototype.convertEmptyValue = function(t3, e4, i3) {
  6856. return Z(e4) ? e4 : i3.emptyAs;
  6857. }, e3.prototype.download = function(t3, e4, i3) {
  6858. return void 0 === i3 && (i3 = false), S(this, void 0, void 0, function() {
  6859. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2, c2, f2, g2, y2, m2;
  6860. return I(this, function(v2) {
  6861. if (this.msBlobDownloadSupport()) {
  6862. if (f2 = t3.split(";"), g2 = f2.shift().replace(/data:/, ""), t3 = decodeURIComponent(f2.join(";").replace(/^[^,]*,/, "")), -1 != ["image/svg+xml", "application/json", "text/csv"].indexOf(g2))
  6863. return n3 = new Blob([t3], { type: g2 }), window.navigator.msSaveBlob(n3, e4), [2, true];
  6864. try {
  6865. s2 = atob(t3), t3 = s2;
  6866. } catch (t4) {
  6867. return [2, false];
  6868. }
  6869. for (l2 = new Array(t3.length), h2 = 0; h2 < t3.length; ++h2)
  6870. p2 = t3.charCodeAt(h2), l2[h2] = p2;
  6871. u2 = new Blob([new Uint8Array(l2)], { type: g2 }), window.navigator.msSaveBlob(u2, e4);
  6872. } else if (this.blobDownloadSupport()) {
  6873. if ((r3 = document.createElement("a")).download = e4, document.body.appendChild(r3), f2 = t3.split(";"), g2 = f2.shift().replace(/data:/, ""), t3 = decodeURIComponent(f2.join(";").replace(/^[^,]*,/, "")), -1 != ["image/svg+xml", "application/json", "text/csv", "text/html"].indexOf(g2))
  6874. return i3 && (t3 = "\uFEFF" + t3), a2 = new Blob([t3], { type: g2 }), o3 = window.URL.createObjectURL(a2), r3.href = o3, r3.download = e4, r3.click(), setTimeout(function() {
  6875. document.body.removeChild(r3), window.URL.revokeObjectURL(o3);
  6876. }, 100), [2, true];
  6877. try {
  6878. s2 = atob(t3), t3 = s2;
  6879. } catch (t4) {
  6880. return [2, false];
  6881. }
  6882. for (l2 = new Array(t3.length), h2 = 0; h2 < t3.length; ++h2)
  6883. p2 = t3.charCodeAt(h2), l2[h2] = p2;
  6884. i3 && (l2 = [239, 187, 191].concat(l2)), u2 = new Blob([new Uint8Array(l2)], { type: g2 }), d2 = window.URL.createObjectURL(u2), r3.href = d2, r3.download = e4, document.body.appendChild(r3), r3.click(), document.body.removeChild(r3), setTimeout(function() {
  6885. window.URL.revokeObjectURL(d2);
  6886. }, 100);
  6887. } else
  6888. this.linkDownloadSupport() ? ((c2 = document.createElement("a")).download = e4, c2.href = t3, document.body.appendChild(c2), c2.click(), document.body.removeChild(c2)) : this.legacyIE() ? 4 === (f2 = t3.match(/^data:(.*);[ ]*([^,]*),(.*)$/)).length && ("base64" == f2[2] ? f2[1].match(/^image\//) && this.showModal('<img src="' + t3 + '" style="float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;" /><p>' + this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."') + '</p><p style="text-align: center;"><small>' + this.language.translate("(Press ESC to close this message)") + "</small></p>", this.language.translate("Image Export Complete")) : (g2 = void 0, e4.match(/\.svg$/) ? g2 = "image/svg+xml" : (g2 = "text/plain", e4 += ".txt"), (y2 = document.createElement("iframe")).width = "1px", y2.height = "1px", y2.style.display = "none", document.body.appendChild(y2), (m2 = y2.contentDocument).open(g2, "replace"), m2.write(decodeURIComponent(f2[3])), m2.close(), m2.execCommand("SaveAs", true, e4), document.body.removeChild(y2))) : window.location.href = t3;
  6889. return [2, true];
  6890. });
  6891. });
  6892. }, e3.prototype.downloadSupport = function() {
  6893. return this.linkDownloadSupport() || this.msBlobDownloadSupport();
  6894. }, e3.prototype.linkDownloadSupport = function() {
  6895. var t3 = Ii.getCache("linkDownloadSupport");
  6896. if (false === t3 || true === t3)
  6897. return t3;
  6898. var e4 = void 0 !== document.createElement("a").download;
  6899. return Ii.setCache("linkDownloadSupport", e4), e4;
  6900. }, e3.prototype.blobDownloadSupport = function() {
  6901. return Z(window.Blob);
  6902. }, e3.prototype.msBlobDownloadSupport = function() {
  6903. return Z(window.navigator.msSaveOrOpenBlob);
  6904. }, e3.prototype.legacyIE = function() {
  6905. var t3 = document.createElement("div");
  6906. return t3.innerHTML = "<!--[if lt IE 10]><i></i><![endif]-->", 1 == t3.getElementsByTagName("i").length;
  6907. }, e3.prototype.print = function(t3, e4, i3) {
  6908. return S(this, void 0, void 0, function() {
  6909. return I(this, function(n3) {
  6910. return "css" == e4.printMethod ? [2, this.printViaCSS(t3, e4, i3)] : [2, this.printViaIframe(t3, e4, i3)];
  6911. });
  6912. });
  6913. }, e3.prototype.printViaCSS = function(t3, e4, i3) {
  6914. return S(this, void 0, void 0, function() {
  6915. var n3, r3, s2, a2;
  6916. return I(this, function(o3) {
  6917. return n3 = document.documentElement.scrollTop || document.body.scrollTop, r3 = new Ls(As(this.container), "body > *", { display: "none", position: "fixed", visibility: "hidden", opacity: "0", clipPath: "polygon(0px 0px,0px 0px,0px 0px,0px 0px);" }), i3 && document && document.title && (s2 = document.title, document.title = i3), (a2 = new Image()).src = t3, a2.style.maxWidth = "100%", a2.style.display = "block", a2.style.position = "relative", a2.style.visibility = "visible", a2.style.opacity = "1", a2.style.clipPath = "none", document.body.appendChild(a2), this.setTimeout(function() {
  6918. window.print();
  6919. }, 50), /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream && e4.delay < 1e3 ? e4.delay = 1e3 : e4.delay < 100 && (e4.delay = 100), this.setTimeout(function() {
  6920. document.body.removeChild(a2), r3.dispose(), s2 && (document.title = document.title), document.documentElement.scrollTop = document.body.scrollTop = n3;
  6921. }, e4.delay || 500), [2, true];
  6922. });
  6923. });
  6924. }, e3.prototype.printViaIframe = function(t3, e4, i3) {
  6925. return S(this, void 0, void 0, function() {
  6926. var n3, r3;
  6927. return I(this, function(s2) {
  6928. return (n3 = document.createElement("iframe")).style.visibility = "hidden", document.body.appendChild(n3), n3.contentWindow.document.open(), n3.contentWindow.document.close(), (r3 = new Image()).src = t3, r3.style.maxWidth = "100%", r3.style.height = "auto", i3 && (n3.contentWindow.document.title = i3), n3.contentWindow.document.body.appendChild(r3), n3.load = function() {
  6929. n3.contentWindow.document.body.appendChild(r3);
  6930. }, this.setTimeout(function() {
  6931. try {
  6932. n3.contentWindow.document.execCommand("print", false, null) || n3.contentWindow.print();
  6933. } catch (t4) {
  6934. n3.contentWindow.print();
  6935. }
  6936. }, e4.delay || 50), /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream && e4.delay < 1e3 ? e4.delay = 1e3 : e4.delay < 100 && (e4.delay = 100), this.setTimeout(function() {
  6937. document.body.removeChild(n3);
  6938. }, e4.delay + 50 || 100), [2, true];
  6939. });
  6940. });
  6941. }, e3.prototype.findBackgroundColor = function(t3) {
  6942. var e4 = 1, i3 = Os(t3, "background-color");
  6943. if ((i3.match(/[^,]*,[^,]*,[^,]*,[ ]?0/) || "transparent" == i3) && (e4 = 0), 0 == e4) {
  6944. var n3 = t3.parentElement;
  6945. return n3 ? this.findBackgroundColor(n3) : dn("#fff");
  6946. }
  6947. return dn(i3, e4);
  6948. }, Object.defineProperty(e3.prototype, "container", { get: function() {
  6949. return this.adapter.apply("container", { container: this._container }).container;
  6950. }, set: function(t3) {
  6951. this._container = t3;
  6952. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sprite", { get: function() {
  6953. return this.adapter.apply("sprite", { sprite: this._sprite }).sprite;
  6954. }, set: function(t3) {
  6955. this._sprite = t3;
  6956. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "extraSprites", { get: function() {
  6957. return this.adapter.apply("extraSprites", { extraSprites: this._extraSprites }).extraSprites;
  6958. }, set: function(t3) {
  6959. this._extraSprites = t3;
  6960. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "validateSprites", { get: function() {
  6961. return this.adapter.apply("validateSprites", { validateSprites: this._validateSprites }).validateSprites;
  6962. }, set: function(t3) {
  6963. this._validateSprites = t3;
  6964. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "data", { get: function() {
  6965. return this.adapter.apply("data", { data: this._data }).data;
  6966. }, set: function(t3) {
  6967. this._data = t3;
  6968. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dataFields", { get: function() {
  6969. return this._dataFields || this.generateDataFields(), this.adapter.apply("dataFields", { dataFields: this._dataFields }).dataFields;
  6970. }, set: function(t3) {
  6971. this._dataFields = t3, this._dynamicDataFields = false;
  6972. }, enumerable: true, configurable: true }), e3.prototype.handleDataUpdated = function() {
  6973. this._dynamicDataFields && (this._dataFields = void 0);
  6974. var t3 = this.data.length > 0;
  6975. this._prevHasData != t3 && (this._prevHasData = t3, this.menu && this.menu.invalidate());
  6976. }, Object.defineProperty(e3.prototype, "dateFormatter", { get: function() {
  6977. return this._dateFormatter || (this._dateFormatter = new Ma(), this._dateFormatter.language = this.language), this.adapter.apply("dateFormatter", { dateFormatter: this._dateFormatter }).dateFormatter;
  6978. }, set: function(t3) {
  6979. this._dateFormatter = t3;
  6980. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateFormat", { get: function() {
  6981. return this.adapter.apply("dateFormat", { dateFormat: this._dateFormat }).dateFormat;
  6982. }, set: function(t3) {
  6983. this._dateFormat = t3;
  6984. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateFields", { get: function() {
  6985. return this._dateFields || (this._dateFields = new Fi()), this.adapter.apply("dateFields", { dateFields: this._dateFields }).dateFields;
  6986. }, set: function(t3) {
  6987. this._dateFields = t3;
  6988. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "numberFormatter", { get: function() {
  6989. return this._numberFormatter || (this._numberFormatter = new Fa(), this._numberFormatter.language = this.language), this.adapter.apply("numberFormatter", { numberFormatter: this._numberFormatter }).numberFormatter;
  6990. }, set: function(t3) {
  6991. this._numberFormatter = t3;
  6992. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "numberFormat", { get: function() {
  6993. return this.adapter.apply("numberFormat", { numberFormat: this._numberFormat }).numberFormat;
  6994. }, set: function(t3) {
  6995. this._numberFormat = t3;
  6996. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "numberFields", { get: function() {
  6997. return this._numberFields || (this._numberFields = new Fi()), this.adapter.apply("numberFields", { numberFields: this._numberFields }).numberFields;
  6998. }, set: function(t3) {
  6999. this._numberFields = t3;
  7000. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFormatter", { get: function() {
  7001. return this._durationFormatter || (this._durationFormatter = new La(), this._durationFormatter.language = this.language), this.adapter.apply("durationFormatter", { durationFormatter: this._durationFormatter }).durationFormatter;
  7002. }, set: function(t3) {
  7003. this._durationFormatter = t3;
  7004. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFormat", { get: function() {
  7005. return this.adapter.apply("durationFormat", { durationFormat: this._durationFormat }).durationFormat;
  7006. }, set: function(t3) {
  7007. this._durationFormat = t3;
  7008. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFields", { get: function() {
  7009. return this._durationFields || (this._durationFields = new Fi()), this.adapter.apply("durationFields", { durationFields: this._durationFields }).durationFields;
  7010. }, set: function(t3) {
  7011. this._durationFields = t3;
  7012. }, enumerable: true, configurable: true }), e3.prototype.generateDataFields = function() {
  7013. var t3 = this;
  7014. this._dataFields = {}, this.data.length && Ut(this.data, function(e4) {
  7015. Ne(e4, function(e5, i3) {
  7016. Z(t3._dataFields[e5]) || (t3._dataFields[e5] = t3.adapter.apply("dataFieldName", { name: e5, field: e5 }).name);
  7017. });
  7018. });
  7019. }, e3.prototype.isDateField = function(t3) {
  7020. return this.adapter.apply("isDateField", { isDateField: this.dateFields.contains(t3), field: t3 }).isDateField;
  7021. }, e3.prototype.isNumberField = function(t3) {
  7022. return this.adapter.apply("isNumberField", { isNumberField: this.numberFields.contains(t3), field: t3 }).isNumberField;
  7023. }, e3.prototype.isDurationField = function(t3) {
  7024. return this.adapter.apply("isDurationField", { isDurationField: this.durationFields.contains(t3), field: t3 }).isDurationField;
  7025. }, e3.prototype.getContentType = function(t3) {
  7026. var e4 = "";
  7027. switch (t3) {
  7028. case "png":
  7029. case "gif":
  7030. e4 = "image/" + t3;
  7031. break;
  7032. case "jpg":
  7033. e4 = "image/jpeg";
  7034. break;
  7035. case "svg":
  7036. e4 = "image/svg+xml";
  7037. break;
  7038. case "csv":
  7039. e4 = "text/csv";
  7040. break;
  7041. case "json":
  7042. e4 = "application/json";
  7043. break;
  7044. case "html":
  7045. e4 = "text/html";
  7046. break;
  7047. case "pdf":
  7048. case "pdfdata":
  7049. e4 = "application/pdf";
  7050. break;
  7051. case "xlsx":
  7052. e4 = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
  7053. }
  7054. return this.adapter.apply("contentType", { contentType: e4, type: t3 }).contentType;
  7055. }, Object.defineProperty(e3.prototype, "filePrefix", { get: function() {
  7056. return this.adapter.apply("filePrefix", { filePrefix: this._filePrefix }).filePrefix;
  7057. }, set: function(t3) {
  7058. this._filePrefix = t3;
  7059. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "backgroundColor", { get: function() {
  7060. return this.adapter.apply("backgroundColor", { backgroundColor: this._backgroundColor }).backgroundColor;
  7061. }, set: function(t3) {
  7062. this._backgroundColor = t3;
  7063. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "title", { get: function() {
  7064. return this.adapter.apply("title", { title: this._title }).title;
  7065. }, set: function(t3) {
  7066. this._title = t3;
  7067. }, enumerable: true, configurable: true }), e3.prototype.showPreloader = function() {
  7068. var t3 = this.preloader;
  7069. t3 && (t3.progress = 0.5, t3.label.text = "...");
  7070. }, e3.prototype.hidePreloader = function() {
  7071. var t3 = this.preloader;
  7072. t3 && (t3.progress = 1);
  7073. }, Object.defineProperty(e3.prototype, "preloader", { get: function() {
  7074. return this._sprite && this._sprite.parent && this._sprite.parent.preloader ? this._sprite.parent.preloader : void 0;
  7075. }, enumerable: true, configurable: true }), e3.prototype.showTimeout = function() {
  7076. this.showModal(this.adapter.apply("timeoutMessage", { message: this.language.translate("Export operation took longer than expected. Something might have gone wrong.") }).message);
  7077. }, e3.prototype.hideTimeout = function() {
  7078. this._timeoutTimeout && (this.removeDispose(this._timeoutTimeout), this._timeoutTimeout = null), this.hideModal();
  7079. }, Object.defineProperty(e3.prototype, "language", { get: function() {
  7080. return this._language || (this._language = new Ta()), this._language;
  7081. }, set: function(t3) {
  7082. this._language = t3;
  7083. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "modal", { get: function() {
  7084. return this._modal || (this._modal = new ca(), this._modal.adapter.add("classPrefix", function(t3) {
  7085. return ls.classNamePrefix + t3;
  7086. })), this._modal;
  7087. }, enumerable: true, configurable: true }), e3.prototype.showModal = function(t3, e4) {
  7088. this.hideModal(), this.hidePreloader();
  7089. var i3 = this.modal;
  7090. i3.container = this.sprite.svgContainer.SVGContainer, i3.content = t3, i3.readerTitle = e4, i3.open();
  7091. }, e3.prototype.hideModal = function() {
  7092. this._modal && this.modal.close();
  7093. }, e3.prototype._canvg = function() {
  7094. return S(this, void 0, void 0, function() {
  7095. var t3;
  7096. return I(this, function(e4) {
  7097. switch (e4.label) {
  7098. case 0:
  7099. return [4, a.e(265).then(a.bind(a, 1234))];
  7100. case 1:
  7101. return null != (t3 = e4.sent()).default ? [2, t3.default] : [2, t3];
  7102. }
  7103. });
  7104. });
  7105. }, Object.defineProperty(e3.prototype, "canvg", { get: function() {
  7106. return this._canvg();
  7107. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pdfmake", { get: function() {
  7108. return null == ja && (ja = function() {
  7109. return S(this, void 0, void 0, function() {
  7110. var t3, e4, i3, n3;
  7111. return I(this, function(r3) {
  7112. switch (r3.label) {
  7113. case 0:
  7114. return [4, Promise.all([a.e(643).then(a.t.bind(a, 6727, 23)), a.e(643).then(a.bind(a, 4995))])];
  7115. case 1:
  7116. return t3 = r3.sent(), e4 = t3[0], i3 = t3[1], (n3 = window).pdfMake = n3.pdfMake || {}, n3.pdfMake.vfs = i3.default, e4.vfs = i3.default, [2, e4];
  7117. }
  7118. });
  7119. });
  7120. }()), ja;
  7121. }, enumerable: true, configurable: true }), e3.prototype._xlsx = function() {
  7122. return S(this, void 0, void 0, function() {
  7123. return I(this, function(t3) {
  7124. switch (t3.label) {
  7125. case 0:
  7126. return [4, Promise.all([a.e(739), a.e(297)]).then(a.t.bind(a, 7739, 23))];
  7127. case 1:
  7128. return [2, t3.sent()];
  7129. }
  7130. });
  7131. });
  7132. }, Object.defineProperty(e3.prototype, "xlsx", { get: function() {
  7133. return this._xlsx();
  7134. }, enumerable: true, configurable: true }), e3.prototype.setFormatOptions = function(t3, e4) {
  7135. this._formatOptions.setKey(t3, e4);
  7136. }, e3.prototype.getFormatOptions = function(t3) {
  7137. return this._formatOptions.getKey(t3);
  7138. }, Object.defineProperty(e3.prototype, "formatOptions", { get: function() {
  7139. return this._formatOptions;
  7140. }, enumerable: true, configurable: true }), e3.prototype._disablePointers = function() {
  7141. Z(this._spriteInteractionsEnabled) || (this._spriteInteractionsEnabled = this.sprite.interactionsEnabled), this.sprite.interactionsEnabled = false;
  7142. }, e3.prototype._releasePointers = function() {
  7143. Z(this._spriteInteractionsEnabled) && !this._exportRunning && (this.sprite.interactionsEnabled = this._spriteInteractionsEnabled);
  7144. }, e3.prototype.hideNonExportableSprites = function() {
  7145. var t3 = this;
  7146. if (!this._objectsAlreadyHidden) {
  7147. var e4 = this.sprite.svgContainer;
  7148. e4 && Ut(e4.nonExportableSprites, function(e5) {
  7149. e5.isHidden || e5.isHiding || !e5.visible || t3._hiddenObjects.push(e5), e5.hide(0);
  7150. }), this._objectsAlreadyHidden = true;
  7151. }
  7152. }, e3.prototype.restoreNonExportableSprites = function() {
  7153. this._objectsAlreadyHidden && (Ut(this._hiddenObjects, function(t3) {
  7154. t3.show(0);
  7155. }), this._hiddenObjects = [], this._objectsAlreadyHidden = false);
  7156. }, e3.prototype.awaitValidSprites = function() {
  7157. return S(this, void 0, void 0, function() {
  7158. var t3;
  7159. return I(this, function(e4) {
  7160. switch (e4.label) {
  7161. case 0:
  7162. return t3 = [], this.validateSprites.length && Ut(this.validateSprites, function(e5, i3) {
  7163. e5.invalid && t3.push(new Promise(function(t4, i4) {
  7164. e5.events.once("validated", function(e6) {
  7165. t4();
  7166. });
  7167. }));
  7168. }), t3.length ? [4, Promise.all(t3)] : [3, 2];
  7169. case 1:
  7170. e4.sent(), e4.label = 2;
  7171. case 2:
  7172. return [2];
  7173. }
  7174. });
  7175. });
  7176. }, e3.prototype.processConfig = function(e4) {
  7177. Ii.registeredClasses.ExportMenu = Ba, e4 && (Z(e4.menu) && !Z(e4.menu.type) && (e4.menu.type = "ExportMenu"), Z(e4.dataFields) && et(e4.dataFields) && (this.dataFields = e4.dataFields, delete e4.dataFields)), t2.prototype.processConfig.call(this, e4);
  7178. }, e3.XLINK = "http://www.w3.org/1999/xlink", e3;
  7179. }(Ra), Ka = ["fill", "fillOpacity", "stroke", "strokeOpacity", "strokeWidth", "strokeDasharray", "strokeDashoffset", "strokeLinecap", "strokeLinejoin"], Za = function(t2) {
  7180. function e3() {
  7181. var e4 = t2.call(this) || this;
  7182. return e4.properties = {}, e4._eventDispatcher = new as(e4), e4._bindings = {}, e4._isTemplate = false, e4._isPath = false, e4._inited = false, e4._ready = false, e4.isHiding = false, e4._isHidden = false, e4.isShowing = false, e4.isStandaloneInstance = false, e4._isActive = false, e4._mask = new ve(), e4._positionPrecision = 3, e4._language = new ve(), e4._exporting = new ve(), e4._exportable = true, e4._bbox = { x: 0, y: 0, width: 0, height: 0 }, e4.invalid = false, e4.positionInvalid = false, e4.propertyFields = {}, e4.applyOnClones = false, e4._measuredWidthSelf = 0, e4._measuredHeightSelf = 0, e4.maxLeft = 0, e4.maxRight = 0, e4.maxTop = 0, e4.maxBottom = 0, e4.maxLeftSelf = 0, e4.maxRightSelf = 0, e4.maxTopSelf = 0, e4.maxBottomSelf = 0, e4._isDragged = false, e4._isResized = false, e4._disabled = false, e4._internalDisabled = false, e4._updateDisabled = false, e4._internalDefaultsApplied = false, e4.rollOutDelay = 0, e4.isBaseSprite = false, e4.shouldClone = true, e4.appeared = false, e4.ex = 0, e4.ey = 0, e4.dragWhileResize = false, e4.measureFailed = false, e4.preventShow = false, e4.cloneTooltip = true, e4.className = "Sprite", e4._disposers.push(e4._eventDispatcher), e4.uid, e4.group = e4.paper.addGroup("g"), e4.setPropertyValue("scale", 1), e4.setPropertyValue("rotation", 0), e4.setPropertyValue("align", "none"), e4.setPropertyValue("valign", "none"), e4.setPropertyValue("pixelPerfect", false), e4.setPropertyValue("visible", true), e4.setPropertyValue("tooltipPosition", "fixed"), e4.setPropertyValue("verticalCenter", "none"), e4.setPropertyValue("horizontalCenter", "none"), e4.setPropertyValue("tooltipX", V(50)), e4.setPropertyValue("tooltipX", V(50)), e4.setPropertyValue("marginTop", 0), e4.setPropertyValue("marginBottom", 0), e4.setPropertyValue("marginLeft", 0), e4.setPropertyValue("marginRight", 0), e4.setPropertyValue("dx", 0), e4.setPropertyValue("dy", 0), e4.setPropertyValue("paddingTop", 0), e4.setPropertyValue("paddingBottom", 0), e4.setPropertyValue("paddingRight", 0), e4.setPropertyValue("paddingLeft", 0), e4.setPropertyValue("togglable", false), e4.setPropertyValue("hidden", false), e4.setPropertyValue("urlTarget", "_self"), e4.setPropertyValue("alwaysShowTooltip", false), e4.setPropertyValue("showTooltipOn", "hover"), e4._prevMeasuredWidth = 0, e4._prevMeasuredHeight = 0, e4._measuredWidth = 0, e4._measuredHeight = 0, e4._isMeasured = true, e4.invalidate(), e4.applyTheme(), e4._disposers.push(e4.events), e4._disposers.push(e4.group), e4._disposers.push(e4._mask), e4._disposers.push(e4._language), e4._disposers.push(e4._exporting), e4._disposers.push(new ye(function() {
  7183. Ne(e4._bindings, function(t3, e5) {
  7184. e5.dispose();
  7185. });
  7186. })), e4.setPropertyValue("interactionsEnabled", true), e4;
  7187. }
  7188. return C(e3, t2), Object.defineProperty(e3.prototype, "events", { get: function() {
  7189. return this._eventDispatcher;
  7190. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "adapter", { get: function() {
  7191. return this._adapterO || (this._adapterO = new Yi(this)), this._adapterO;
  7192. }, enumerable: true, configurable: true }), e3.prototype.applyTheme = function() {
  7193. t2.prototype.applyTheme.call(this), ls.autoSetClassName && this.setClassName();
  7194. }, e3.prototype.getCurrentThemes = function() {
  7195. var t3 = this._themes;
  7196. if (t3)
  7197. return t3;
  7198. var e4 = this._parent;
  7199. return e4 ? e4.getCurrentThemes() : Ii.themes;
  7200. }, e3.prototype.applyInternalDefaults = function() {
  7201. this._internalDefaultsApplied = true;
  7202. }, e3.prototype.invalidate = function() {
  7203. this.disabled || this._isTemplate || this.__disabled || this.invalid || (this.invalid = true, Ii.addToInvalidSprites(this), Qa.requestFrame());
  7204. }, e3.prototype.validate = function() {
  7205. this.dispatchImmediately("beforevalidated"), this._internalDefaultsApplied || this.applyInternalDefaults(), this.beforeDraw(), this.draw(), this.invalid = false, Ii.removeFromInvalidSprites(this), this.afterDraw();
  7206. }, e3.prototype.invalidatePosition = function() {
  7207. this.disabled || this._isTemplate || this.positionInvalid || (this.positionInvalid = true, Ii.addToInvalidPositions(this), Qa.requestFrame());
  7208. }, e3.prototype.validatePosition = function() {
  7209. var t3 = this.pixelX, e4 = this.pixelY, i3 = this.dx, n3 = this.dy, r3 = t3 + i3, s2 = e4 + n3;
  7210. this._updateDisabled && (this._internalDisabled ? this.group.attr({ display: "none" }) : this.disabled || this.removeSVGAttribute("display"), this._updateDisabled = false);
  7211. var a2 = this.measure(), o3 = this.group.transformString;
  7212. this.group.moveTo({ x: r3, y: s2 }), this.group.rotation = this.rotation, this.nonScaling ? this.group.scale = this.scale / this.globalScale : this.group.scale = this.scale, (o3 != this.group.transformString || a2) && (null == o3 ? this.dispatch("transformed") : this.dispatchImmediately("transformed"), this.dispatch("positionchanged"), "hit" != this.showTooltipOn && "always" != this.showTooltipOn || this.updateTooltipPosition()), t3 + i3 == r3 && e4 + n3 == s2 && (Ii.removeFromInvalidPositions(this), this.positionInvalid = false);
  7213. var l2 = this._maskRectangle;
  7214. l2 && this._clipElement.moveTo({ x: l2.x - t3, y: l2.y - e4 });
  7215. }, e3.prototype.beforeDraw = function() {
  7216. }, e3.prototype.draw = function() {
  7217. }, e3.prototype.afterDraw = function() {
  7218. var t3, e4;
  7219. if ((this.isMeasured || "none" !== this.horizontalCenter || "none" !== this.verticalCenter) && this.measureElement(), this._inited)
  7220. this.dispatch("validated");
  7221. else {
  7222. if (this._adapterO)
  7223. try {
  7224. for (var i3 = D(this._adapterO.keys()), n3 = i3.next(); !n3.done; n3 = i3.next()) {
  7225. var r3 = n3.value;
  7226. switch (r3) {
  7227. case "mask":
  7228. case "fill":
  7229. case "opacity":
  7230. case "fillOpacity":
  7231. case "stroke":
  7232. case "strokeOpacity":
  7233. case "strokeWidth":
  7234. case "shapeRendering":
  7235. case "strokeDasharray":
  7236. case "strokeDashoffset":
  7237. case "strokeLinecap":
  7238. case "strokeLinejoin":
  7239. case "textDecoration":
  7240. case "fontSize":
  7241. case "fontFamily":
  7242. case "fontWeight":
  7243. this[r3] = this[r3];
  7244. }
  7245. }
  7246. } catch (e5) {
  7247. t3 = { error: e5 };
  7248. } finally {
  7249. try {
  7250. n3 && !n3.done && (e4 = i3.return) && e4.call(i3);
  7251. } finally {
  7252. if (t3)
  7253. throw t3.error;
  7254. }
  7255. }
  7256. this.applyFilters(), this.visible = this.visible, this.interactionsEnabled = this.getPropertyValue("interactionsEnabled"), this._inited = true, this.showOnInit || (this.appeared = true), this.hidden && this.hide(0), this.applyMask(), this.dispatch("validated"), this.dispatch("inited"), this.dispatchReady();
  7257. }
  7258. "always" == this.showTooltipOn && (!this.visible || this.disabled || this.__disabled ? this.hideTooltip(0) : this.showTooltip());
  7259. }, e3.prototype.dispatchReady = function() {
  7260. this.isReady() || (this._ready = true, this.dispatch("ready"));
  7261. }, e3.prototype.reinit = function() {
  7262. this._inited = false, this.setState(this.defaultState), this.invalidate();
  7263. }, e3.prototype.handleGlobalScale = function() {
  7264. this.dispatch("globalscalechanged"), this.nonScalingStroke && (this.strokeWidth = this.strokeWidth), this.nonScaling && this.validatePosition(), this.updateFilterScale();
  7265. }, e3.prototype.updateFilterScale = function() {
  7266. var t3 = this;
  7267. ti(this.filters.iterator(), function(e4) {
  7268. e4.scale = t3.globalScale;
  7269. });
  7270. }, e3.prototype.removeFromInvalids = function() {
  7271. Ii.removeFromInvalidSprites(this), Ii.removeFromInvalidPositions(this);
  7272. }, e3.prototype.copyFrom = function(e4) {
  7273. var i3 = this;
  7274. t2.prototype.copyFrom.call(this, e4), this.isMeasured = e4.isMeasured, this.states.copyFrom(e4.states), e4.filters.length > 0 && e4.filters.each(function(t3) {
  7275. i3.filters.push(t3.clone());
  7276. }), e4._adapterO && this.adapter.copyFrom(e4._adapterO), e4._interaction && this.interactions.copyFrom(e4.interactions), e4._plugins && this.plugins.copyFrom(e4.plugins), this.configField = e4.configField, this.applyOnClones = e4.applyOnClones, this.disabled = e4.disabled, this.virtualParent = e4.virtualParent, this.exportable = e4.exportable, e4._tooltip && (this._tooltip ? this._tooltip.copyFrom(e4.tooltip) : e4.cloneTooltip ? this.tooltip = e4.tooltip.clone() : this._tooltip = e4.tooltip), this._showSystemTooltip = e4.showSystemTooltip, Sn(e4.propertyFields, this.propertyFields), Sn(e4.properties, this), e4.fillModifier && (this.fillModifier = e4.fillModifier.clone()), e4.strokeModifier && (this.strokeModifier = e4.strokeModifier.clone()), e4.focusFilter && (this.focusFilter = e4.focusFilter.clone());
  7277. }, e3.prototype.dispose = function() {
  7278. if (!this.isDisposed()) {
  7279. if ("always" == this.showTooltipOn && this.tooltip && this.tooltip.hide(), this.dispatchImmediately("beforedisposed"), this.isBaseSprite) {
  7280. if (this.htmlContainer)
  7281. for (; this.htmlContainer.childNodes.length > 0; )
  7282. this.htmlContainer.removeChild(this.htmlContainer.firstChild);
  7283. this.isBaseSprite = false;
  7284. }
  7285. if (t2.prototype.dispose.call(this), this._adapterO && this._adapterO.clear(), this.applyOnClones && this._clones)
  7286. for (var e4 = this._clones.length - 1; e4 >= 0; e4--)
  7287. this._clones.getIndex(e4).dispose();
  7288. this._svgContainer && this._svgContainer.dispose(), this._interactionDisposer && (this._interactionDisposer.dispose(), this._interactionDisposer = void 0), this._urlDisposer && this._urlDisposer.dispose(), this.removeFromInvalids(), this.element && this.element.dispose(), this.group && this.group.dispose(), this._numberFormatter && this._numberFormatter.dispose(), this._focusFilter && this._focusFilter.dispose();
  7289. var i3 = this.stroke;
  7290. !i3 || i3 instanceof un || !i3.dispose || this.clonedFrom && this.clonedFrom.stroke == i3 || i3.dispose();
  7291. var n3 = this.fill;
  7292. if (!n3 || n3 instanceof un || !n3.dispose || this.clonedFrom && this.clonedFrom.fill == n3 || n3.dispose(), Z(this.id) && this.map.removeKey(this.id), this.parent = void 0, this._filters)
  7293. for (; this._filters.length > 0; ) {
  7294. var r3 = this._filters.getIndex(0);
  7295. r3.dispose(), this._filters.removeValue(r3);
  7296. }
  7297. this._alwaysShowDisposers = void 0;
  7298. }
  7299. }, Object.defineProperty(e3.prototype, "isTemplate", { get: function() {
  7300. return this._isTemplate;
  7301. }, set: function(t3) {
  7302. t3 = z(t3), this._isTemplate != t3 && (this._isTemplate = t3, this instanceof $a && ti(this.children.iterator(), function(e4) {
  7303. e4.isTemplate = t3;
  7304. }), t3 ? (this.parent = this._parent, this.removeFromInvalids()) : this.invalidate());
  7305. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showSystemTooltip", { get: function() {
  7306. return Z(this._showSystemTooltip) ? this._showSystemTooltip : this.virtualParent ? this.virtualParent.showSystemTooltip : !!this._parent && this._parent.showSystemTooltip;
  7307. }, set: function(t3) {
  7308. t3 = z(t3), this._showSystemTooltip != t3 && (this._showSystemTooltip = t3, this.applyAccessibility());
  7309. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "topParent", { get: function() {
  7310. return this._topParent ? this._topParent : this._parent ? this._parent.topParent : void 0;
  7311. }, set: function(t3) {
  7312. this._topParent = t3;
  7313. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "parent", { get: function() {
  7314. return this._parent;
  7315. }, set: function(t3) {
  7316. if (!this._isTemplate) {
  7317. this.paper;
  7318. var e4 = this._parent;
  7319. e4 != t3 && (e4 && e4.children.removeValue(this), this._parent = t3, t3 ? (this.topParent = t3.topParent, t3.isTemplate && (this.isTemplate = true), this.baseId = t3.baseId, t3.children.push(this), this._tooltip && !this._tooltipContainer && (this._tooltip.parent = t3.tooltipContainer), this._dataItem || (this.dataItem = t3.dataItem), this.handleAlwaysShowTooltip(), this.dataItem && this.applyAccessibility(), this.dispatchImmediately("parentset")) : this.topParent = void 0);
  7320. }
  7321. }, enumerable: true, configurable: true }), e3.prototype.handleAlwaysShow = function() {
  7322. this.showTooltip();
  7323. }, e3.prototype.handleAlwaysShowTooltip = function() {
  7324. var t3 = this, e4 = this._alwaysShowDisposers;
  7325. if (e4 && Ut(e4, function(t4) {
  7326. t4.dispose();
  7327. }), this._alwaysShowDisposers = [], "always" == this.showTooltipOn)
  7328. for (; null != t3; ) {
  7329. var i3 = t3.events.on("visibilitychanged", this.handleAlwaysShow, this, false);
  7330. this.addDisposer(i3), this._alwaysShowDisposers.push(i3), t3 = t3.parent;
  7331. }
  7332. }, Object.defineProperty(e3.prototype, "virtualParent", { get: function() {
  7333. return this._virtualParent;
  7334. }, set: function(t3) {
  7335. this._virtualParent = t3, this.dataItem && this.applyAccessibility();
  7336. }, enumerable: true, configurable: true }), e3.prototype.appendDefs = function() {
  7337. this.filterElement && this.paper.appendDef(this.filterElement);
  7338. var t3 = this.fill;
  7339. t3 && t3.element && this.paper.appendDef(t3.element);
  7340. var e4 = this.stroke;
  7341. if (e4 && e4.element && this.paper.appendDef(e4.element), this.fillModifier && this.fill instanceof un) {
  7342. var i3 = this.fillModifier.modify(this.fill);
  7343. i3 && i3.element && this.paper.appendDef(i3.element);
  7344. }
  7345. if (this.strokeModifier && this.stroke instanceof un) {
  7346. var n3 = this.strokeModifier.modify(this.stroke);
  7347. n3 && n3.element && this.paper.appendDef(n3.element);
  7348. }
  7349. this._clipPath && this.paper.appendDef(this._clipPath), false === this._exportable && (this.exportable = false);
  7350. }, Object.defineProperty(e3.prototype, "map", { get: function() {
  7351. var t3 = this.topParent;
  7352. return t3 ? t3.map : (this._map || (this._map = new Pi()), this._map);
  7353. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "delayedMap", { get: function() {
  7354. var t3 = this.topParent;
  7355. return t3 ? t3.delayedMap : (this._delayedMap || (this._delayedMap = new Pi()), this._delayedMap);
  7356. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "id", { get: function() {
  7357. return this._id;
  7358. }, set: function(t3) {
  7359. if (this._id != t3) {
  7360. if (this._id = t3, this.map.hasKey(t3))
  7361. throw Error("Duplicate id (" + t3 + ") used on multiple objects.");
  7362. this.map.setKey(t3, this), ls.autoSetClassName && this.setClassName();
  7363. }
  7364. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dom", { get: function() {
  7365. return this.group.node;
  7366. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paper", { get: function() {
  7367. if (this._paper)
  7368. return this._paper;
  7369. var t3 = this._parent;
  7370. return t3 ? t3.paper : wa();
  7371. }, set: function(t3) {
  7372. this.setPaper(t3);
  7373. }, enumerable: true, configurable: true }), e3.prototype.setPaper = function(t3) {
  7374. return this._paper != t3 && (this._paper = t3, this.appendDefs(), true);
  7375. }, Object.defineProperty(e3.prototype, "htmlContainer", { get: function() {
  7376. if (this._htmlContainer)
  7377. return this._htmlContainer;
  7378. var t3 = this._parent;
  7379. return t3 ? t3.htmlContainer : void 0;
  7380. }, set: function(t3) {
  7381. this._htmlContainer = t3;
  7382. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "titleElement", { get: function() {
  7383. return this._titleElement || (this._titleElement = this.paper.add("title"), this.group.add(this._titleElement)), this._titleElement;
  7384. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "descriptionElement", { get: function() {
  7385. return this._descriptionElement || (this._descriptionElement = this.paper.add("desc"), this.group.add(this._descriptionElement)), this._descriptionElement;
  7386. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "filters", { get: function() {
  7387. return this._filters || (this._filters = new Fi(), this._disposers.push(this._filters.events.onAll(this.applyFilters, this)), this._disposers.push(new Ai(this._filters))), this._filters;
  7388. }, enumerable: true, configurable: true }), e3.prototype.setSVGAttributes = function() {
  7389. this.fill = this.fill, this.opacity = this.opacity, this.fillOpacity = this.fillOpacity, this.stroke = this.stroke, this.strokeOpacity = this.strokeOpacity, this.shapeRendering = this.shapeRendering, this.strokeDasharray = this.strokeDasharray, this.strokeDashoffset = this.strokeDashoffset, this.strokeLinecap = this.strokeLinecap, this.strokeLinejoin = this.strokeLinejoin, this.focusable = this.focusable, this.tabindex = this.tabindex, this.role = this.role;
  7390. }, e3.prototype.setSVGAttribute = function(t3) {
  7391. this.group.attr(t3);
  7392. }, e3.prototype.removeSVGAttribute = function(t3) {
  7393. this.group.removeAttr(t3);
  7394. }, e3.prototype.setClassName = function() {
  7395. var t3 = this.className, e4 = ls.classNamePrefix;
  7396. this.element && this.element.addClass(e4 + t3), this.group.addClass(e4 + t3 + "-group"), Z(this.id) && this.group.addClass(e4 + this.id), this.userClassName && this.group.addClass(this.userClassName);
  7397. }, e3.prototype.uidAttr = function() {
  7398. return this.setSVGAttribute({ id: this.uid }), this.uid;
  7399. }, e3.prototype.updateClipPath = function() {
  7400. var t3 = this._clipElement;
  7401. t3 && t3.moveTo({ x: this.mask.pixelX, y: this.mask.pixelY });
  7402. }, e3.prototype.createClipPath = function() {
  7403. if (!this._clipPath) {
  7404. this._clipPath = this.paper.addGroup("clipPath"), this.paper.appendDef(this._clipPath), this._disposers.push(this._clipPath);
  7405. var t3 = Ii.getUniqueId();
  7406. this._clipPath.attr({ id: t3 }), this.group.attr({ "clip-path": 'url("' + Dn() + t3 + '")' });
  7407. }
  7408. }, e3.prototype.applyMask = function() {
  7409. var t3 = this.mask;
  7410. if (this._clipPath && t3)
  7411. if (t3 instanceof $a) {
  7412. this._clipElement.attr({ width: gt(0, t3.pixelWidth), height: gt(0, t3.pixelHeight) });
  7413. var e4 = dr({ x: t3.pixelX, y: t3.pixelY }, t3.parent, this);
  7414. this._clipPath.x = e4.x, this._clipPath.y = e4.y;
  7415. } else
  7416. t3.element && t3.element != this._clipElement && (this._clipElement = t3.element, this._clipPath.add(this._clipElement)), this._clipPath.scale = t3.scale, this._clipPath.x = t3.pixelX, this._clipPath.y = t3.pixelY, this._clipPath.rotation = t3.rotation;
  7417. }, e3.prototype.applyFilters = function() {
  7418. var t3 = this;
  7419. if (this._filters && this._filters.length > 0) {
  7420. var e4 = 100, i3 = 100;
  7421. this.filterElement ? this.filterElement.removeChildNodes() : (this.filterElement = this.paper.addGroup("filter"), this._disposers.push(this.filterElement)), this.paper.appendDef(this.filterElement);
  7422. var n3 = "filter-" + this.uid;
  7423. this.filterElement.attr({ id: n3 }), ti(this.filters.iterator(), function(n4) {
  7424. n4.sprite = t3, n4.paper = t3.paper, t3.filterElement.attr({ filterUnits: n4.filterUnits }), n4.appendPrimitives(t3.filterElement), n4.width > e4 && (e4 = n4.width), n4.height > i3 && (i3 = n4.height), n4.scale = t3.globalScale;
  7425. });
  7426. var r3 = e4 + "%", s2 = i3 + "%";
  7427. this.filterElement.attr({ width: r3, height: s2, x: -(e4 - 100) / 2 + "%", y: -(i3 - 100) / 2 + "%" }), this.group.attr({ filter: 'url("' + Dn() + n3 + '")' });
  7428. } else
  7429. this.filterElement && (this.group.removeAttr("filter"), this.filterElement.removeChildNodes());
  7430. }, e3.prototype.removeClipPath = function() {
  7431. this._clipPath && (this.removeDispose(this._clipPath), this._clipPath = void 0);
  7432. }, e3.prototype.setElement = function(t3) {
  7433. this.element = t3, this.setSVGAttributes(), this.applyAccessibility();
  7434. }, Object.defineProperty(e3.prototype, "element", { get: function() {
  7435. return this._element;
  7436. }, set: function(t3) {
  7437. this.removeElement(), this._element = t3, this.group.add(t3), t3.node instanceof SVGPathElement && (this._isPath = true), this.invalid || this.validate(), ls.autoSetClassName && this.setClassName();
  7438. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "svgContainer", { get: function() {
  7439. return this._svgContainer ? this._svgContainer : this._parent ? this._parent.svgContainer : void 0;
  7440. }, set: function(t3) {
  7441. this._svgContainer = t3;
  7442. }, enumerable: true, configurable: true }), e3.prototype.measureElement = function() {
  7443. if (this.element)
  7444. if (this.definedBBox)
  7445. this._bbox = this.definedBBox;
  7446. else {
  7447. var t3 = this.element.getBBox();
  7448. this._bbox = { x: t3.x, y: t3.y, width: t3.width, height: t3.height };
  7449. }
  7450. }, e3.prototype.updateCenter = function() {
  7451. if (this.element) {
  7452. var t3 = this.element.transformString, e4 = this.bbox, i3 = 0, n3 = 0, r3 = e4.x, s2 = e4.y, a2 = e4.width, o3 = e4.height, l2 = this.pixelPaddingLeft, h2 = this.pixelPaddingRight, p2 = this.pixelPaddingTop, u2 = this.pixelPaddingBottom, d2 = gt(a2 + l2 + h2, this.pixelWidth), c2 = gt(o3 + p2 + u2, this.pixelHeight), f2 = e4.x, g2 = e4.x + d2, y2 = e4.y, m2 = e4.y + c2, v2 = this.horizontalCenter, b2 = this.verticalCenter;
  7453. switch (v2) {
  7454. case "none":
  7455. i3 = r3 + l2;
  7456. break;
  7457. case "left":
  7458. i3 = l2;
  7459. break;
  7460. case "middle":
  7461. i3 = l2 - (a2 + h2 + l2) / 2;
  7462. break;
  7463. case "right":
  7464. i3 = -h2 - a2;
  7465. }
  7466. switch (b2) {
  7467. case "none":
  7468. n3 = s2 + p2;
  7469. break;
  7470. case "top":
  7471. n3 = p2;
  7472. break;
  7473. case "middle":
  7474. n3 = p2 - (o3 + u2 + p2) / 2;
  7475. break;
  7476. case "bottom":
  7477. n3 = -u2 - o3;
  7478. }
  7479. this._measuredHeight = c2, this._measuredWidth = d2;
  7480. var x2 = lt(i3 - r3, this._positionPrecision, true), _2 = lt(n3 - s2, this._positionPrecision, true);
  7481. this.ex = x2 - l2, this.ey = _2 - p2, this.maxLeft = f2 + x2 - l2, this.maxRight = g2 + x2 - l2, this.maxTop = y2 + _2 - p2, this.maxBottom = m2 + _2 - p2, this.pixelPerfect && 0 == ls.pixelPerfectPrecision && (x2 -= 0.5, _2 -= 0.5), this.element.moveTo({ x: x2, y: _2 }), t3 != this.element.transformString && this.dispatchImmediately("transformed");
  7482. }
  7483. }, e3.prototype.measure = function() {
  7484. this.updateCenter();
  7485. var t3 = this._measuredWidth, e4 = this._measuredHeight, i3 = this.maxLeft, n3 = this.maxRight, r3 = this.maxTop, s2 = this.maxBottom;
  7486. this._measuredWidthSelf = t3, this._measuredHeightSelf = e4;
  7487. var a2 = this._positionPrecision;
  7488. if (this.maxLeftSelf = this.maxLeft, this.maxRightSelf = this.maxRight, this.maxTopSelf = this.maxTop, this.maxBottomSelf = this.maxBottom, 0 !== this.rotation || 1 !== this.scale || this.nonScaling) {
  7489. this.nonScalingStroke && (this.strokeWidth = this.strokeWidth);
  7490. var o3 = this.paper.svg, l2 = o3.createSVGMatrix(), h2 = this.rotation, p2 = this.scale;
  7491. this.nonScaling && (p2 = this.scale / this.globalScale), l2.a = ft(h2) * p2, l2.c = -dt(h2) * p2, l2.e = 0, l2.b = dt(h2) * p2, l2.d = ft(h2) * p2, l2.f = 0;
  7492. var u2 = o3.createSVGPoint();
  7493. u2.x = i3, u2.y = r3;
  7494. var d2 = o3.createSVGPoint();
  7495. d2.x = n3, d2.y = r3;
  7496. var c2 = o3.createSVGPoint();
  7497. c2.x = n3, c2.y = s2;
  7498. var f2 = o3.createSVGPoint();
  7499. f2.x = i3, f2.y = s2;
  7500. var g2 = u2.matrixTransform(l2), y2 = d2.matrixTransform(l2), m2 = c2.matrixTransform(l2), v2 = f2.matrixTransform(l2);
  7501. i3 = Math.min(g2.x, y2.x, m2.x, v2.x), n3 = Math.max(g2.x, y2.x, m2.x, v2.x), r3 = Math.min(g2.y, y2.y, m2.y, v2.y), t3 = n3 - i3, e4 = (s2 = Math.max(g2.y, y2.y, m2.y, v2.y)) - r3, this.maxLeft = lt(i3, a2, true), this.maxRight = lt(n3, a2, true), this.maxTop = lt(r3, a2, true), this.maxBottom = lt(s2, a2, true);
  7502. }
  7503. return this._measuredWidth = lt(t3, a2, true), this._measuredHeight = lt(e4, a2, true), (this._measuredWidth != this._prevMeasuredWidth || this._measuredHeight != this._prevMeasuredHeight) && (this._prevMeasuredHeight = this._measuredHeight, this._prevMeasuredWidth = this._measuredWidth, this.dispatch("sizechanged"), (this.isHover || "hit" == this.showTooltipOn || "always" == this.showTooltipOn) && this.tooltip && this.tooltip.visible && (Z(this.tooltipText) || Z(this.tooltipHTML)) && this.updateTooltipPosition(), true);
  7504. }, e3.prototype.insertBefore = function(t3) {
  7505. var e4 = this._parent;
  7506. if (e4) {
  7507. var i3 = e4.children.indexOf(t3);
  7508. -1 !== i3 && (e4.children.moveValue(this, i3), e4.sortChildren());
  7509. }
  7510. return this;
  7511. }, e3.prototype.insertAfter = function(t3) {
  7512. var e4 = this._parent;
  7513. if (e4) {
  7514. var i3 = e4.children.indexOf(t3);
  7515. -1 !== i3 && (e4.children.moveValue(this, i3 + 1), e4.sortChildren());
  7516. }
  7517. return this;
  7518. }, e3.prototype.removeElement = function() {
  7519. this._element && (this.removeDispose(this._element), this._element = void 0);
  7520. }, e3.prototype.getRelativeX = function(t3) {
  7521. return t3 instanceof A ? t3.value : this._parent ? t3 / this._parent.innerWidth : 0;
  7522. }, e3.prototype.getRelativeY = function(t3) {
  7523. return t3 instanceof A ? t3.value : this._parent ? t3 / this._parent.innerHeight : 0;
  7524. }, e3.prototype.getPixelX = function(t3) {
  7525. var e4 = 0;
  7526. if (tt(t3))
  7527. e4 = t3;
  7528. else if (t3 instanceof A) {
  7529. var i3 = t3.value;
  7530. this._parent && (e4 = lt(this._parent.innerWidth * i3, this._positionPrecision, true));
  7531. }
  7532. return e4;
  7533. }, e3.prototype.getPixelY = function(t3) {
  7534. var e4 = 0;
  7535. if (tt(t3))
  7536. e4 = t3;
  7537. else if (t3 instanceof A) {
  7538. var i3 = t3.value;
  7539. this._parent && (e4 = lt(this._parent.innerHeight * i3, this._positionPrecision, true));
  7540. }
  7541. return e4;
  7542. }, e3.prototype.moveTo = function(t3, e4, i3, n3) {
  7543. this.isDragged && !n3 || (t3 && (tt(t3.x) && this.setPropertyValue("x", lt(t3.x, this._positionPrecision, true)), tt(t3.y) && this.setPropertyValue("y", lt(t3.y, this._positionPrecision, true))), tt(e4) && (this.rotation = e4), tt(i3) && (this.scale = i3), this.invalidatePosition());
  7544. }, Object.defineProperty(e3.prototype, "mask", { get: function() {
  7545. return this._adapterO ? this._adapterO.apply("mask", this._mask.get()) : this._mask.get();
  7546. }, set: function(t3) {
  7547. var e4 = this;
  7548. this._mask.get() !== t3 && (t3 ? (this.createClipPath(), t3 instanceof $a ? this._clipElement = this.paper.add("rect") : (t3.isMeasured = false, t3.element && (this._clipElement = t3.element)), this._clipElement && this._clipPath.add(this._clipElement), this._mask.set(t3, new me([t3.events.on("maxsizechanged", function() {
  7549. e4.inited && e4.applyMask();
  7550. }, void 0, false), t3.events.on("validated", this.applyMask, this, false), t3.events.on("positionchanged", this.applyMask, this, false)])), this.applyMask()) : (this._mask.reset(), this.group.removeAttr("clip-path"), this.removeClipPath()));
  7551. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maskRectangle", { get: function() {
  7552. return this._maskRectangle;
  7553. }, set: function(t3) {
  7554. t3 ? (this.createClipPath(), this._clipElement || (this._clipElement = this.paper.add("rect"), this._clipPath.add(this._clipElement)), this._clipElement.attr({ width: t3.width, height: t3.height })) : (this.removeClipPath(), this._clipElement = void 0), this._maskRectangle = t3;
  7555. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isMeasured", { get: function() {
  7556. return this._isMeasured;
  7557. }, set: function(t3) {
  7558. (t3 = z(t3)) || (this._measuredWidth = 0, this._measuredHeight = 0), this._isMeasured != t3 && (this._isMeasured = t3, this.invalidatePosition());
  7559. }, enumerable: true, configurable: true }), e3.prototype.hitTest = function(t3) {
  7560. this.invalid && this.validate(), t3.invalid && t3.validate();
  7561. var e4 = this.pixelX + this.maxLeft, i3 = this.pixelY + this.maxTop, n3 = e4 + this.maxRight, r3 = i3 + this.maxBottom, s2 = t3.pixelX + t3.maxLeft, a2 = t3.pixelY + t3.maxTop, o3 = s2 + t3.maxRight, l2 = a2 + t3.maxBottom;
  7562. return !(s2 > n3 || o3 < e4 || a2 > r3 || l2 < i3);
  7563. }, Object.defineProperty(e3.prototype, "inited", { get: function() {
  7564. return this._inited;
  7565. }, enumerable: true, configurable: true }), e3.prototype.isReady = function() {
  7566. return this._ready;
  7567. }, Object.defineProperty(e3.prototype, "states", { get: function() {
  7568. if (!this._states) {
  7569. var t3 = new ss();
  7570. this._states = new wi(t3), this._disposers.push(this._states.events.on("insertKey", this.processState, this, false)), this._disposers.push(this._states.events.on("setKey", this.processState, this, false)), this._disposers.push(new _i(this._states)), this._disposers.push(t3);
  7571. }
  7572. return this._states;
  7573. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hiddenState", { get: function() {
  7574. if (!this.states.getKey("hidden")) {
  7575. var t3 = this.states.create("hidden");
  7576. t3.properties.opacity = 0, t3.properties.visible = false;
  7577. }
  7578. return this.states.getKey("hidden");
  7579. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "defaultState", { get: function() {
  7580. return this.states.getKey("default") || (this.states.create("default").properties.opacity = 1), this.states.getKey("default");
  7581. }, enumerable: true, configurable: true }), e3.prototype.processState = function(t3) {
  7582. var e4 = t3.newValue;
  7583. if (e4.sprite = this, e4.name = t3.key, (this.states.hasKey("hover") || "hover" == this.showTooltipOn && (Z(this.tooltipHTML) || Z(this.tooltipText))) && (this.hoverable = true), (this.states.hasKey("down") || "hover" == this.showTooltipOn && (Z(this.tooltipHTML) || Z(this.tooltipText))) && (this.clickable = true), this.states.hasKey("focus") && (this.focusable = true), this.applyOnClones)
  7584. for (var i3 = this.clones.values, n3 = i3.length, r3 = 0; r3 < n3; ++r3) {
  7585. var s2 = i3[r3];
  7586. s2.isDisposed() || s2.states.setKey(e4.name, e4);
  7587. }
  7588. }, Object.defineProperty(e3.prototype, "animations", { get: function() {
  7589. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  7590. }, enumerable: true, configurable: true }), e3.prototype.getSvgPoint = function(t3) {
  7591. try {
  7592. var e4 = this.htmlContainer.getBoundingClientRect();
  7593. return { x: t3.x - e4.left, y: t3.y - e4.top };
  7594. } catch (e5) {
  7595. return t3;
  7596. }
  7597. }, e3.prototype.animate = function(t3, e4, i3) {
  7598. return new ys(this, t3, e4, i3).start();
  7599. }, e3.prototype.setState = function(t3, e4, i3) {
  7600. var n3;
  7601. if (t3 instanceof ss)
  7602. this.states.setKey(t3.name, t3), n3 = t3;
  7603. else if (!(n3 = this.states.getKey(t3)))
  7604. return;
  7605. if ("hover" == n3.name) {
  7606. if (this.isHidden)
  7607. return;
  7608. this.isHover = true;
  7609. }
  7610. return "hidden" == n3.name ? this.isHiding = true : this.visible || this.setVisibility(n3.properties.visible || this.defaultState.properties.visible), "active" == n3.name && (this.isActive = true), tt(e4) || (e4 = n3.transitionDuration), Z(i3) || (i3 = n3.transitionEasing), this.transitTo(n3, e4, i3);
  7611. }, e3.prototype.applyCurrentState = function(t3) {
  7612. var e4 = this.setState(this.defaultState, t3);
  7613. return this.isHover && (e4 = this.setState("hover", t3)), this.isDown && this.interactions.downPointers.length && (e4 = this.setState("down", t3)), this.isFocused = this.isFocused, this.isActive && (e4 = this.setState("active", t3), this.isHover && this.states.hasKey("hoverActive") && (e4 = this.setState("hoverActive", t3))), e4;
  7614. }, e3.prototype.transitTo = function(t3, e4, i3) {
  7615. var n3, r3 = this, s2 = [];
  7616. if (Ne(t3.allValues, function(t4, e5) {
  7617. var i4 = r3[t4];
  7618. if (e5 != i4 && null == r3.defaultState.properties[t4] && (r3.defaultState.properties[t4] = i4), "__unset" != e5) {
  7619. var n4 = { from: i4, to: e5, property: t4 };
  7620. s2.push(n4);
  7621. }
  7622. }), s2.length > 0 && ((n3 = this.animate(s2, e4, i3)) && !n3.isFinished() ? this._disposers.push(n3.events.on("animationended", function() {
  7623. r3.dispatchImmediately("transitionended");
  7624. })) : this.dispatchImmediately("transitionended")), t3.filters.length > 0) {
  7625. var a2 = [];
  7626. ti(t3.filters.iterator(), function(t4) {
  7627. var n4 = t4.clone();
  7628. a2.push(n4);
  7629. var s3 = [];
  7630. ti(r3.filters.iterator(), function(t5) {
  7631. t5.className == n4.className && (pi(r3.defaultState.filters.iterator(), function(t6) {
  7632. return t6.className === n4.className;
  7633. }) || r3.defaultState.filters.push(t5), Ne(n4.properties, function(e5, i4) {
  7634. var n5 = t5.properties[e5];
  7635. n5 != i4 && s3.push({ property: e5, from: n5, to: i4 });
  7636. }));
  7637. }), n4.animate(s3, e4, i3);
  7638. }), this.filters.clear(), this.filters.pushAll(a2);
  7639. }
  7640. return n3;
  7641. }, e3.prototype.isInTransition = function() {
  7642. return this.animations.length > 0;
  7643. }, Object.defineProperty(e3.prototype, "isHover", { get: function() {
  7644. return !!this.isInteractive() && this.interactions.isHover;
  7645. }, set: function(t3) {
  7646. (t3 = z(t3)) !== this.isHover && this.isInteractive() && (this.interactions.isHover = t3, t3 ? this.handleOver() : (this.interactions.isRealHover = false, this.handleOut()));
  7647. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isDragged", { get: function() {
  7648. return this._isDragged;
  7649. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isResized", { get: function() {
  7650. return this._isResized;
  7651. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isDown", { get: function() {
  7652. return !!this.isInteractive() && this.interactions.isDown;
  7653. }, set: function(t3) {
  7654. t3 = z(t3), this.isInteractive() && this.isDown != t3 && (this.interactions.isDown = t3, t3 ? this.handleDown() : this.handleUp());
  7655. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isFocused", { get: function() {
  7656. return !!this.isInteractive() && this.interactions.isFocused;
  7657. }, set: function(t3) {
  7658. t3 = z(t3), this.focusable && this.isFocused != t3 && this.isInteractive() && (this.interactions.isFocused = t3, true === t3 ? this.handleFocus() : this.handleBlur());
  7659. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isActive", { get: function() {
  7660. return this._isActive;
  7661. }, set: function(t3) {
  7662. this.setActive(t3);
  7663. }, enumerable: true, configurable: true }), e3.prototype.setActive = function(t3) {
  7664. t3 = z(t3), this._isActive !== t3 && (this._isActive = t3, t3 && this.states.hasKey("active") ? (this.setState("active"), this.isHover && this.states.hasKey("hoverActive") && this.setState("hoverActive")) : this.applyCurrentState(), this.dispatchImmediately("toggled"));
  7665. }, Object.defineProperty(e3.prototype, "disabled", { get: function() {
  7666. var t3 = this.getPropertyValue("disabled");
  7667. return Z(t3) ? t3 : this.virtualParent ? this.virtualParent.disabled : !!this._parent && this._parent.disabled;
  7668. }, set: function(t3) {
  7669. this.setDisabled(t3);
  7670. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(t3) {
  7671. if (t3 = z(t3), this.getPropertyValue("disabled") != t3) {
  7672. if (this.setPropertyValue("disabled", t3, true), t3)
  7673. this.parent = this._parent, this.removeFromInvalids(), this.group.attr({ display: "none" }), this.dispatch("disabled");
  7674. else {
  7675. if (this._parent) {
  7676. var e4 = this._parent.element;
  7677. e4.hasChild(this.group) || e4.add(this.group);
  7678. }
  7679. this instanceof $a ? (this.deepInvalidate(), this._background && this._background.invalidate()) : this.invalidate(), this.__disabled || this.removeSVGAttribute("display"), this.dispatch("enabled");
  7680. }
  7681. return this.dispatch("transformed"), Qa.requestFrame(), true;
  7682. }
  7683. return false;
  7684. }, Object.defineProperty(e3.prototype, "__disabled", { get: function() {
  7685. return this._internalDisabled;
  7686. }, set: function(t3) {
  7687. this._internalDisabled != t3 && (this._internalDisabled = t3, this._updateDisabled = true, this.invalidatePosition(), t3 || this.invalidate());
  7688. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "numberFormatter", { get: function() {
  7689. return this._numberFormatter ? this._numberFormatter : this.virtualParent ? this.virtualParent.numberFormatter : this._parent ? this._parent.numberFormatter : (this._numberFormatter = new Fa(), this._numberFormatter.language = this.language, this.numberFormatter);
  7690. }, set: function(t3) {
  7691. this._numberFormatter = t3, this._numberFormatter.language = this.language;
  7692. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateFormatter", { get: function() {
  7693. return this._dateFormatter ? this._dateFormatter : this.virtualParent ? this.virtualParent.dateFormatter : this._parent ? this._parent.dateFormatter : (this._dateFormatter = new Ma(), this._dateFormatter.language = this.language, this.dateFormatter);
  7694. }, set: function(t3) {
  7695. this._dateFormatter = t3, this._dateFormatter.language = this.language;
  7696. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFormatter", { get: function() {
  7697. return this._durationFormatter ? this._durationFormatter : this.virtualParent ? this.virtualParent.durationFormatter : this._parent ? this._parent.durationFormatter : (this._durationFormatter = new La(), this._durationFormatter.language = this.language, this.durationFormatter);
  7698. }, set: function(t3) {
  7699. this._durationFormatter = t3, this._durationFormatter.language = this.language;
  7700. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "language", { get: function() {
  7701. var t3 = this._language.get();
  7702. return t3 || (this.virtualParent ? this.virtualParent.language : this._parent ? this._parent.language : (t3 = new Ta(), this.language = t3, t3));
  7703. }, set: function(t3) {
  7704. var e4 = this;
  7705. this._language.get() !== t3 && this._language.set(t3, t3.events.on("localechanged", function(t4) {
  7706. if (e4._numberFormatter && (e4._numberFormatter.language = e4.language), e4._dateFormatter && (e4._dateFormatter.language = e4.language), e4._durationFormatter && (e4._durationFormatter.language = e4.language), e4._exporting.get()) {
  7707. var i3 = e4._exporting.get();
  7708. i3.numberFormatter.language = e4.language, i3.dateFormatter.language = e4.language, i3.durationFormatter.language = e4.language, i3.language = e4.language;
  7709. }
  7710. e4 instanceof $a && e4.deepInvalidate();
  7711. }));
  7712. }, enumerable: true, configurable: true }), e3.prototype.populateString = function(t3, e4) {
  7713. if (Z(t3)) {
  7714. t3 = X(t3);
  7715. var i3 = (t3 = Va().escape(t3)).match(/\{([^}]+)\}/g), n3 = void 0;
  7716. if (i3)
  7717. for (n3 = 0; n3 < i3.length; n3++) {
  7718. var r3 = i3[n3].replace(/\{([^}]+)\}/, "$1"), s2 = this.getTagValue(r3, "", e4);
  7719. Z(s2) || (s2 = ""), t3 = t3.split(i3[n3]).join(s2);
  7720. }
  7721. t3 = Va().unescape(t3);
  7722. } else
  7723. t3 = "";
  7724. return this._adapterO ? this._adapterO.apply("populateString", t3) : t3;
  7725. }, e3.prototype.getTagValue = function(t3, e4, i3) {
  7726. var n3;
  7727. Z(i3) || (i3 = this.dataItem);
  7728. for (var r3, s2 = [], a2 = /([^.]+)\(([^)]*)\)|([^.]+)/g; null !== (r3 = a2.exec(t3)); )
  7729. if (r3[3])
  7730. s2.push({ prop: r3[3] });
  7731. else {
  7732. var o3 = [];
  7733. if ("" != Wn(r3[2]))
  7734. for (var l2 = /'([^']*)'|"([^"]*)"|([0-9\-]+)/g, h2 = void 0; null !== (h2 = l2.exec(r3[2])); )
  7735. o3.push(h2[1] || h2[2] || h2[3]);
  7736. s2.push({ method: r3[1], params: o3 });
  7737. }
  7738. if (i3) {
  7739. Z(n3 = this.getTagValueFromObject(s2, i3.values)) && !et(n3) || (n3 = this.getTagValueFromObject(s2, i3));
  7740. var p2 = i3.dataContext;
  7741. !Z(n3) && p2 && (Z(n3 = this.getTagValueFromObject(s2, i3.dataContext)) || (n3 = this.getTagValueFromObject([{ prop: t3 }], p2)), !Z(n3) && p2.dataContext && (n3 = this.getTagValueFromObject(s2, p2.dataContext))), !Z(n3) && i3.component && i3.component.dataItem !== i3 && (n3 = i3.component.getTagValue(t3, e4));
  7742. }
  7743. return Z(n3) || (n3 = this.getTagValueFromObject(s2, this.populateStringFrom || this)), !Z(n3) && this._parent && (n3 = this._parent.getTagValue(t3, e4)), n3;
  7744. }, e3.prototype.getTagValueFromObject = function(t3, e4, i3) {
  7745. for (var n3 = e4, r3 = false, s2 = 0, a2 = t3.length; s2 < a2; s2++) {
  7746. var o3 = t3[s2];
  7747. if (o3.prop) {
  7748. if (!Z(n3 = n3[o3.prop]))
  7749. return;
  7750. } else
  7751. switch (o3.method) {
  7752. case "formatNumber":
  7753. var l2 = tr(n3);
  7754. Z(l2) && (n3 = this.numberFormatter.format(l2, i3 || o3.params[0] || void 0), r3 = true);
  7755. break;
  7756. case "formatDate":
  7757. var h2 = void 0;
  7758. if (!J(h2 = Q(n3) ? this.dateFormatter.parse(n3) : Qn(n3)) || M(h2.getTime()))
  7759. return;
  7760. Z(h2) && (n3 = this.dateFormatter.format(h2, i3 || o3.params[0] || void 0), r3 = true);
  7761. break;
  7762. case "formatDuration":
  7763. var p2 = tr(n3);
  7764. Z(p2) && (n3 = this.durationFormatter.format(p2, i3 || o3.params[0] || void 0, o3.params[1] || void 0), r3 = true);
  7765. break;
  7766. case "urlEncode":
  7767. case "encodeURIComponent":
  7768. n3 = encodeURIComponent(n3);
  7769. break;
  7770. default:
  7771. n3[o3.method] && n3[o3.method].apply(this, o3.params);
  7772. }
  7773. }
  7774. if (!r3) {
  7775. var u2 = [{ method: "", params: i3 }];
  7776. if (Z(i3)) {
  7777. var d2 = Kn(i3);
  7778. d2 === xn ? u2[0].method = "formatNumber" : d2 === _n ? u2[0].method = "formatDate" : d2 === Pn && (u2[0].method = "formatDuration");
  7779. } else
  7780. tt(n3) ? (u2[0].method = "formatNumber", u2[0].params = "") : J(n3) && (u2[0].method = "formatDate", u2[0].params = "");
  7781. u2[0].method && (n3 = this.getTagValueFromObject(u2, n3));
  7782. }
  7783. return n3;
  7784. }, Object.defineProperty(e3.prototype, "dataItem", { get: function() {
  7785. if (!this._dataItem) {
  7786. if (this.virtualParent)
  7787. return this.virtualParent.dataItem;
  7788. if (this._parent)
  7789. return this._parent.dataItem;
  7790. }
  7791. return this._dataItem;
  7792. }, set: function(t3) {
  7793. this.setDataItem(t3);
  7794. }, enumerable: true, configurable: true }), e3.prototype.setDataItem = function(t3) {
  7795. var e4 = this;
  7796. if (this._dataItem != t3) {
  7797. if (this._dataItem = t3, t3) {
  7798. if (this.configField) {
  7799. var i3 = t3.dataContext;
  7800. i3 && (this.config = i3[this.configField], !this.config && i3.dataContext && (this.config = i3.dataContext[this.configField]));
  7801. }
  7802. var n3 = t3.dataContext;
  7803. if (n3) {
  7804. var r3 = n3.dataContext;
  7805. Ne(this.propertyFields, function(t4, i4) {
  7806. if (Z(n3[i4]))
  7807. e4[t4] = n3[i4];
  7808. else if (r3) {
  7809. var s2 = r3[i4];
  7810. Z(s2) && (e4[t4] = s2);
  7811. }
  7812. });
  7813. }
  7814. }
  7815. this.invalidate();
  7816. }
  7817. }, e3.prototype.getPropertyValue = function(t3) {
  7818. var e4 = this.properties[t3];
  7819. return this._isTemplate || (this._adapterO && (e4 = this._adapterO.apply(t3, e4)), e4 = Xi.applyAll(this, t3, e4)), e4;
  7820. }, e3.prototype.setColorProperty = function(t3, e4, i3) {
  7821. var n3 = this.properties[t3];
  7822. return !(e4 instanceof un && n3 instanceof un && e4.toString() == n3.toString()) && this.setPropertyValue(t3, e4, i3);
  7823. }, e3.prototype.setPercentProperty = function(t3, e4, i3, n3, r3, s2) {
  7824. if (tt(e4 = K(e4)))
  7825. return tt(r3) && (e4 = lt(e4, r3, s2)), this.setPropertyValue(t3, e4, i3, n3);
  7826. var a2 = this.properties[t3];
  7827. return !(e4 instanceof A && a2 instanceof A && e4.value == a2.value) && this.setPropertyValue(t3, e4, i3, n3);
  7828. }, e3.prototype.setPropertyValue = function(t3, e4, i3, n3) {
  7829. if (this.properties[t3] !== e4 && !this.isDisposed()) {
  7830. if (this.properties[t3] = e4, this.events.isEnabled("propertychanged")) {
  7831. var r3 = { type: "propertychanged", target: this, property: t3 };
  7832. this.events.dispatchImmediately("propertychanged", r3);
  7833. }
  7834. if (i3 && this.invalidate(), n3 && this.invalidatePosition(), this.applyOnClones)
  7835. for (var s2 = this.clones.values, a2 = s2.length, o3 = 0; o3 < a2; ++o3) {
  7836. var l2 = s2[o3];
  7837. l2.isDisposed() || (l2[t3] = e4);
  7838. }
  7839. return true;
  7840. }
  7841. return false;
  7842. }, e3.prototype.bind = function(t3, e4, i3, n3) {
  7843. var r3 = this;
  7844. void 0 === i3 && (i3 = t3), Z(this._bindings[t3]) && this._bindings[t3].dispose(), this[t3] = e4[i3], this._bindings[t3] = e4.events.on("propertychanged", function(s2) {
  7845. if (s2.property === i3) {
  7846. var a2 = e4[i3];
  7847. n3 && (a2 = n3(a2)), r3[t3] = a2;
  7848. }
  7849. });
  7850. }, e3.prototype.observe = function(t3, e4, i3, n3) {
  7851. var r3 = this;
  7852. return new me(zt(se(t3), function(t4) {
  7853. return r3.events.on("propertychanged", function(n4) {
  7854. n4.property === t4 && e4.call(i3, n4);
  7855. }, i3, n3);
  7856. }));
  7857. }, e3.prototype.applyAccessibility = function() {
  7858. var t3 = this.readerTitle, e4 = this.readerDescription, i3 = this.role, n3 = this.readerHidden, r3 = this.readerChecked, s2 = this.readerControls, a2 = this.readerLive, o3 = this.readerOrientation, l2 = this.readerValueNow, h2 = this.readerValueText, p2 = [], u2 = [], d2 = this.readerLabelledBy;
  7859. d2 && p2.push(d2);
  7860. var c2 = this.readerDescribedBy;
  7861. if (c2 && u2.push(c2), t3)
  7862. if (p2.length || this.showSystemTooltip) {
  7863. var f2 = this.titleElement, g2 = this.uid + "-title";
  7864. f2.node.textContent != t3 && (f2.node.textContent = t3, f2.attr({ id: g2 })), p2.push(g2);
  7865. } else
  7866. this._titleElement && (this.group.removeElement(this._titleElement), this._titleElement = void 0), this.setSVGAttribute({ "aria-label": t3 });
  7867. else
  7868. this.removeSVGAttribute("aria-label"), this._titleElement && (this.group.removeElement(this._titleElement), this._titleElement = void 0);
  7869. if (e4) {
  7870. var y2 = this.descriptionElement, m2 = this.uid + "-description";
  7871. y2.node.textContent != e4 && (y2.node.textContent = e4, y2.attr({ id: m2 })), u2.push(m2);
  7872. } else
  7873. this._descriptionElement && (this.group.removeElement(this._descriptionElement), this._descriptionElement = void 0);
  7874. p2.length ? this.setSVGAttribute({ "aria-labelledby": p2.join(" ") }) : this.removeSVGAttribute("aria-labelledby"), u2.length ? this.setSVGAttribute({ "aria-describedby": u2.join(" ") }) : this.removeSVGAttribute("aria-describedby"), i3 ? this.setSVGAttribute({ role: i3 }) : this.removeSVGAttribute("role"), n3 ? this.setSVGAttribute({ "aria-hidden": "true" }) : this.removeSVGAttribute("aria-hidden"), r3 ? this.setSVGAttribute({ "aria-checked": "true" }) : false === r3 ? this.setSVGAttribute({ "aria-checked": "false" }) : this.removeSVGAttribute("aria-checked"), s2 ? this.setSVGAttribute({ "aria-controls": s2 }) : this.removeSVGAttribute("aria-controls"), a2 ? this.setSVGAttribute({ "aria-live": a2 }) : this.removeSVGAttribute("aria-live"), o3 ? this.setSVGAttribute({ "aria-orientation": o3 }) : this.removeSVGAttribute("aria-orientation"), l2 ? this.setSVGAttribute({ "aria-valuenow": l2 }) : this.removeSVGAttribute("aria-valuenow"), h2 ? this.setSVGAttribute({ "aria-valuetext": h2 }) : this.removeSVGAttribute("aria-valuetext");
  7875. }, Object.defineProperty(e3.prototype, "readerTitle", { get: function() {
  7876. var t3 = this.getPropertyValue("readerTitle");
  7877. return Z(t3) && this.dataItem ? this.populateString(t3) : t3;
  7878. }, set: function(t3) {
  7879. t3 = G(t3), this.setPropertyValue("readerTitle", t3) && this.applyAccessibility();
  7880. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerDescription", { get: function() {
  7881. var t3 = this.getPropertyValue("readerDescription");
  7882. return Z(t3) && this.dataItem ? this.populateString(t3) : this.getPropertyValue("readerDescription");
  7883. }, set: function(t3) {
  7884. t3 = G(t3), this.setPropertyValue("readerDescription", t3) && this.applyAccessibility();
  7885. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "role", { get: function() {
  7886. return this.getPropertyValue("role");
  7887. }, set: function(t3) {
  7888. t3 = G(t3), this.setPropertyValue("role", t3) && (this.applyAccessibility(), "slider" == t3 && (this.setSVGAttribute({ "aria-valuemin": "0" }), this.setSVGAttribute({ "aria-valuemax": "100" })));
  7889. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerHidden", { get: function() {
  7890. return this.getPropertyValue("readerHidden");
  7891. }, set: function(t3) {
  7892. t3 = z(t3), this.setPropertyValue("readerHidden", t3) && this.applyAccessibility();
  7893. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerChecked", { get: function() {
  7894. return this.getPropertyValue("readerChecked");
  7895. }, set: function(t3) {
  7896. t3 = z(t3), this.setPropertyValue("readerChecked", t3) && this.applyAccessibility();
  7897. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerControls", { get: function() {
  7898. return this.getPropertyValue("readerControls");
  7899. }, set: function(t3) {
  7900. t3 = G(t3), this.setPropertyValue("readerControls", t3) && this.applyAccessibility();
  7901. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerLive", { get: function() {
  7902. return this.getPropertyValue("readerLive");
  7903. }, set: function(t3) {
  7904. t3 = G(t3), this.setPropertyValue("readerLive", t3) && this.applyAccessibility();
  7905. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerLabelledBy", { get: function() {
  7906. return this.getPropertyValue("readerLabelledBy");
  7907. }, set: function(t3) {
  7908. t3 = G(t3), this.setPropertyValue("readerLabelledBy", t3) && this.applyAccessibility();
  7909. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerDescribedBy", { get: function() {
  7910. return this.getPropertyValue("readerDescribedBy");
  7911. }, set: function(t3) {
  7912. t3 = G(t3), this.setPropertyValue("readerDescribedBy", t3) && this.applyAccessibility();
  7913. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerOrientation", { get: function() {
  7914. return this.getPropertyValue("readerOrientation");
  7915. }, set: function(t3) {
  7916. t3 = G(t3), this.setPropertyValue("readerOrientation", t3) && this.applyAccessibility();
  7917. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerValueNow", { get: function() {
  7918. return this.getPropertyValue("readerValueNow");
  7919. }, set: function(t3) {
  7920. t3 = G(t3), this.setPropertyValue("readerValueNow", t3) && this.applyAccessibility();
  7921. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerValueText", { get: function() {
  7922. return this.getPropertyValue("readerValueText");
  7923. }, set: function(t3) {
  7924. t3 = G(t3), this.setPropertyValue("readerValueText", t3) && this.applyAccessibility();
  7925. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keyboardOptions", { get: function() {
  7926. if (!this.interactions.keyboardOptions) {
  7927. if (this.virtualParent)
  7928. return this.virtualParent.keyboardOptions;
  7929. if (this._parent)
  7930. return this._parent.keyboardOptions;
  7931. }
  7932. return this.interactions.keyboardOptions;
  7933. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mouseOptions", { get: function() {
  7934. if (!this.interactions.mouseOptions) {
  7935. if (this.virtualParent)
  7936. return this.virtualParent.mouseOptions;
  7937. if (this._parent)
  7938. return this._parent.mouseOptions;
  7939. }
  7940. return this.interactions.mouseOptions;
  7941. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "interactions", { get: function() {
  7942. if (!this._interaction) {
  7943. var t3 = ua().getInteraction(this.dom);
  7944. this._interaction = t3, this._interaction.clickable = this.clickable, this._interaction.hoverable = this.hoverable, this._interaction.trackable = this.trackable, this._interaction.draggable = this.draggable, this._interaction.swipeable = this.swipeable, this._interaction.resizable = this.resizable, this._interaction.wheelable = this.wheelable, this._interaction.contextMenuDisabled = this.contextMenuDisabled, this._interaction.inert = this.inert, this._interaction.sprite = this, this._disposers.push(this._interaction);
  7945. }
  7946. return this._interaction;
  7947. }, enumerable: true, configurable: true }), e3.prototype.isInteractive = function() {
  7948. return !!this._interaction;
  7949. }, Object.defineProperty(e3.prototype, "focusable", { get: function() {
  7950. return this.getPropertyValue("focusable");
  7951. }, set: function(t3) {
  7952. var e4 = this;
  7953. t3 = z(t3), this.setPropertyValue("focusable", t3) && (t3 || this.isInteractive()) && (this.interactions.focusable = t3, t3 ? (this.setSVGAttribute({ focusable: t3 }), Z(this._tabindex) || (this.tabindex = 0)) : (this.removeSVGAttribute("focusable"), this.tabindex = void 0), this.interactions.setEventDisposer("sprite-focusable", t3, function() {
  7954. return new me([e4.events.on("blur", e4.handleBlur, e4, false), e4.events.on("focus", e4.handleFocus, e4, false)]);
  7955. }));
  7956. }, enumerable: true, configurable: true }), e3.prototype.handleFocus = function(t3) {
  7957. this.focusable && (this.topParent && (this.topParent.hasFocused = true, this.topParent.focusedElement = this), this.focusFilter && this.filters.push(this.focusFilter), this.hoverOnFocus && (this.isHover = true, this.handleOver()));
  7958. }, e3.prototype.handleBlur = function(t3) {
  7959. this.focusable && (this.topParent && (this.topParent.hasFocused = false, this.topParent.focusedElement = void 0), this.focusFilter && this.filters.removeValue(this.focusFilter), this.hoverOnFocus && (this.isHover = false, this.handleOut()));
  7960. }, Object.defineProperty(e3.prototype, "focusFilter", { get: function() {
  7961. return this._focusFilter || (this.virtualParent ? this.virtualParent.focusFilter : this._parent ? this._parent.focusFilter : void 0);
  7962. }, set: function(t3) {
  7963. this._focusFilter = t3;
  7964. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverOnFocus", { get: function() {
  7965. return this.getPropertyValue("hoverOnFocus");
  7966. }, set: function(t3) {
  7967. t3 !== this.hoverOnFocus && this.setPropertyValue("hoverOnFocus", t3);
  7968. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tabindex", { get: function() {
  7969. var t3 = this._tabindex;
  7970. return null != t3 ? t3 : this.virtualParent ? this.virtualParent.tabindex : this._parent ? this._parent.tabindex : void 0;
  7971. }, set: function(t3) {
  7972. t3 = U(t3), this.setPropertyValue("tabindex", t3) && tt(t3) && (this.interactions.tabindex = t3, this.setSVGAttribute({ tabindex: t3 }), this._tabindex = t3, this.focusable = true);
  7973. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inertiaOptions", { get: function() {
  7974. return !this.interactions.inertiaOptions && this._parent ? this._parent.inertiaOptions : this.interactions.inertiaOptions;
  7975. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "draggable", { get: function() {
  7976. return this.getPropertyValue("draggable");
  7977. }, set: function(t3) {
  7978. var e4 = this;
  7979. t3 = z(t3), this.setPropertyValue("draggable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.draggable = t3, this.interactions.setEventDisposer("sprite-draggable", t3, function() {
  7980. return new me([e4.events.on("down", e4.handleDown, e4, false), e4.events.on("dragstart", e4.handleDragStart, e4, false), e4.events.on("drag", e4.handleDragMove, e4, false), e4.events.on("dragstop", e4.handleDragStop, e4, false)]);
  7981. }));
  7982. }, enumerable: true, configurable: true }), e3.prototype.handleDragStart = function(t3) {
  7983. this.interactions.isTouchProtected && t3.touch || (this.interactions.originalPosition = { x: this.pixelX, y: this.pixelY }, this._isDragged = true, this.hideTooltip(0));
  7984. }, e3.prototype.dragStart = function(t3) {
  7985. this._isDragged = true, ua().dragStart(this.interactions, t3);
  7986. }, e3.prototype.handleDragStop = function(t3) {
  7987. this.interactions.isTouchProtected && t3.touch || (this._isDragged = false, this.showTooltip(), this.interactions.originalPosition = void 0);
  7988. }, e3.prototype.dragStop = function(t3, e4) {
  7989. this._isDragged = false, ua().dragStop(this.interactions, t3, e4);
  7990. }, e3.prototype.handleDragMove = function(t3) {
  7991. if (!this.interactions.isTouchProtected || !t3.touch) {
  7992. var e4 = this.interactions.originalPosition;
  7993. if (e4 && this._isDragged) {
  7994. var i3 = this._parent.globalScale * this.svgContainer.cssScale;
  7995. this.moveTo({ x: e4.x + t3.shift.x / i3, y: e4.y + t3.shift.y / i3 }, void 0, void 0, true);
  7996. }
  7997. this.dispatchImmediately("dragged", t3);
  7998. }
  7999. }, Object.defineProperty(e3.prototype, "inert", { get: function() {
  8000. return this.getPropertyValue("inert");
  8001. }, set: function(t3) {
  8002. t3 = z(t3), this.setPropertyValue("inert", t3) && (t3 || this.isInteractive()) && (this.interactions.inert = t3);
  8003. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverOptions", { get: function() {
  8004. if (!this.interactions.hoverOptions) {
  8005. if (this.virtualParent)
  8006. return this.virtualParent.hoverOptions;
  8007. if (this._parent)
  8008. return this._parent.hoverOptions;
  8009. }
  8010. return this.interactions.hoverOptions;
  8011. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverable", { get: function() {
  8012. return this.getPropertyValue("hoverable");
  8013. }, set: function(t3) {
  8014. var e4 = this;
  8015. t3 = z(t3), this.setPropertyValue("hoverable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.hoverable = t3, this.interactions.setEventDisposer("sprite-hoverable", t3, function() {
  8016. return new me([e4.events.on("over", e4.handleOver, e4, false), e4.events.on("out", e4.handleOut, e4, false)]);
  8017. }));
  8018. }, enumerable: true, configurable: true }), e3.prototype.handleOver = function(t3) {
  8019. if (this._outTimeout && this._outTimeout.dispose(), this.isHover) {
  8020. this.states.hasKey("hover") && (this.isHidden || this.applyCurrentState());
  8021. var e4 = void 0;
  8022. t3 && t3.pointer && (e4 = gr(t3.pointer.point, this.svgContainer.SVGContainer, this.svgContainer.cssScale)), "hover" == this.showTooltipOn && this.showTooltip(e4);
  8023. } else
  8024. "hover" == this.showTooltipOn && this.hideTooltip(), !this.isHidden && this.states.hasKey("hover") && this.applyCurrentState();
  8025. }, e3.prototype.handleOut = function(t3) {
  8026. var e4 = this;
  8027. this.tooltip && this.tooltip.targetSprite == this && this.tooltip.keepTargetHover ? this._outTimeout = this.setTimeout(function() {
  8028. e4.tooltip.isHover || (e4.tooltip.targetSprite == e4 && e4.hideTooltip(), e4._outTimeout = e4.setTimeout(e4.handleOutReal.bind(e4), e4.rollOutDelay));
  8029. }, 10) : ("hover" == this.showTooltipOn && this.hideTooltip(), this._outTimeout = this.setTimeout(this.handleOutReal.bind(this), this.rollOutDelay));
  8030. }, e3.prototype.handleOutReal = function() {
  8031. this.isHidden || this.isHiding || !this.states.hasKey("hover") || this.applyCurrentState();
  8032. }, Object.defineProperty(e3.prototype, "hitOptions", { get: function() {
  8033. if (!this.interactions.hitOptions) {
  8034. if (this.virtualParent)
  8035. return this.virtualParent.hitOptions;
  8036. if (this._parent)
  8037. return this._parent.hitOptions;
  8038. }
  8039. return this.interactions.hitOptions;
  8040. }, enumerable: true, configurable: true }), e3.prototype.handleDown = function(t3) {
  8041. 1 === this.interactions.downPointers.length && (this.interactions.originalPosition = { x: this.pixelX, y: this.pixelY }, this.interactions.originalAngle = this.rotation, this.interactions.originalScale = this.scale, this.states.hasKey("down") && this.setState("down"));
  8042. }, e3.prototype.handleUp = function(t3) {
  8043. var e4 = this;
  8044. this._isResized = false, this.states.hasKey("down") && this.applyCurrentState(), "hit" == this.showTooltipOn && (this.updateTooltipPosition(t3.pointer ? t3.pointer.point : void 0), this._disposers.push(Ii.events.once("exitframe", function() {
  8045. e4.showTooltip();
  8046. })), this._disposers.push(ua().body.events.once("down", function(t4) {
  8047. e4.hideTooltip();
  8048. })));
  8049. }, Object.defineProperty(e3.prototype, "clickable", { get: function() {
  8050. return this.getPropertyValue("clickable");
  8051. }, set: function(t3) {
  8052. var e4 = this;
  8053. t3 = z(t3), this.setPropertyValue("clickable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.clickable = t3, this.interactions.setEventDisposer("sprite-clickable", t3, function() {
  8054. return new me([e4.events.on("down", e4.handleDown, e4, false), e4.events.on("up", e4.handleUp, e4, false)]);
  8055. }));
  8056. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "togglable", { get: function() {
  8057. return this.getPropertyValue("togglable");
  8058. }, set: function(t3) {
  8059. var e4 = this;
  8060. t3 = z(t3), this.setPropertyValue("togglable", t3) && (t3 || this.isInteractive()) && this.interactions.setEventDisposer("sprite-togglable", t3, function() {
  8061. return e4.events.on("hit", e4.handleToggle, e4, false);
  8062. });
  8063. }, enumerable: true, configurable: true }), e3.prototype.handleToggle = function(t3) {
  8064. this.isActive = !this.isActive;
  8065. }, Object.defineProperty(e3.prototype, "contextMenuDisabled", { get: function() {
  8066. return this.getPropertyValue("contextMenuDisabled");
  8067. }, set: function(t3) {
  8068. t3 = z(t3), this.setPropertyValue("contextMenuDisabled", t3) && (this.interactions.contextMenuDisabled = t3);
  8069. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "url", { get: function() {
  8070. return this.getPropertyValue("url");
  8071. }, set: function(t3) {
  8072. this.setPropertyValue("url", t3) && (this._urlDisposer && this._urlDisposer.dispose(), An(t3) && (this._urlDisposer = this.events.on("hit", this.urlHandler, this, false), this.clickable = true, this.cursorOverStyle = Ia.pointer));
  8073. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "baseId", { get: function() {
  8074. return !this._baseId && this._parent && (this.baseId = this._parent.baseId), this._baseId;
  8075. }, set: function(t3) {
  8076. this.setBaseId(t3);
  8077. }, enumerable: true, configurable: true }), e3.prototype.setBaseId = function(t3) {
  8078. t3 != this._baseId && (this.invalid && (this.invalid = false, Ii.removeFromInvalidSprites(this), this.invalidate()), this._baseId = t3);
  8079. }, Object.defineProperty(e3.prototype, "baseSprite", { get: function() {
  8080. return this.isBaseSprite ? this : this._parent ? this._parent.baseSprite : void 0;
  8081. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "urlTarget", { get: function() {
  8082. return this.getPropertyValue("urlTarget");
  8083. }, set: function(t3) {
  8084. this.setPropertyValue("urlTarget", t3);
  8085. }, enumerable: true, configurable: true }), e3.prototype.urlHandler = function(t3) {
  8086. if (An(this.url)) {
  8087. var e4 = this.populateString(this.url);
  8088. "_self" === this.urlTarget ? window.location.href = e4 : window.open(e4, this.urlTarget);
  8089. }
  8090. }, Object.defineProperty(e3.prototype, "swipeOptions", { get: function() {
  8091. if (!this.interactions.swipeOptions) {
  8092. if (this.virtualParent)
  8093. return this.virtualParent.swipeOptions;
  8094. if (this._parent)
  8095. return this._parent.swipeOptions;
  8096. }
  8097. return this.interactions.swipeOptions;
  8098. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "swipeable", { get: function() {
  8099. return this.getPropertyValue("swipeable");
  8100. }, set: function(t3) {
  8101. t3 = z(t3), this.setPropertyValue("swipeable", t3) && (this.applyCursorStyle(), (t3 || this.isInteractive()) && (this.interactions.swipeable = t3));
  8102. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "trackable", { get: function() {
  8103. return this.getPropertyValue("trackable");
  8104. }, set: function(t3) {
  8105. t3 = z(t3), this.setPropertyValue("trackable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.trackable = t3);
  8106. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wheelable", { get: function() {
  8107. return this.getPropertyValue("wheelable");
  8108. }, set: function(t3) {
  8109. this.setPropertyValue("wheelable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.wheelable = t3);
  8110. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "resizable", { get: function() {
  8111. return this.getPropertyValue("resizable");
  8112. }, set: function(t3) {
  8113. var e4 = this;
  8114. t3 = z(t3), this.setPropertyValue("resizable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.resizable = t3, this.interactions.setEventDisposer("sprite-resizable", t3, function() {
  8115. return new me([e4.events.on("down", e4.handleDown, e4, false), e4.events.on("resize", e4.handleResize, e4, false)]);
  8116. }));
  8117. }, enumerable: true, configurable: true }), e3.prototype.handleResize = function(t3) {
  8118. if ((!this.interactions.isTouchProtected || !t3.touch) && (this._isResized = true, this.scale = this.interactions.originalScale * t3.scale, this.validatePosition(), this.draggable || this.dragWhileResize)) {
  8119. this._isDragged = false;
  8120. var e4 = St(gr(t3.point1, this.htmlContainer, this.svgContainer.cssScale), gr(t3.point2, this.htmlContainer, this.svgContainer.cssScale)), i3 = mr(t3.startPoint1, this._parent), n3 = mr(t3.startPoint2, this._parent), r3 = this.interactions.originalPosition, s2 = this.interactions.originalScale;
  8121. if (r3) {
  8122. var a2 = St({ x: (i3.x - r3.x) / s2, y: (i3.y - r3.y) / s2 }, { x: (n3.x - r3.x) / s2, y: (n3.y - r3.y) / s2 }), o3 = pr(e4, this._parent);
  8123. this.moveTo({ x: o3.x - a2.x * this.scale, y: o3.y - a2.y * this.scale }, void 0, void 0, true);
  8124. }
  8125. }
  8126. }, Object.defineProperty(e3.prototype, "cursorOptions", { get: function() {
  8127. if (!this.interactions.cursorOptions) {
  8128. if (this.virtualParent)
  8129. return this.virtualParent.cursorOptions;
  8130. if (this._parent)
  8131. return this._parent.cursorOptions;
  8132. }
  8133. return this.interactions.cursorOptions;
  8134. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorOverStyle", { set: function(t3) {
  8135. this.cursorOptions.overStyle || (this.interactions.cursorOptions = { defaultStyle: this.cursorOptions.defaultStyle }), this.cursorOptions.overStyle = t3, ua().applyCursorOverStyle(this.interactions);
  8136. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorDownStyle", { set: function(t3) {
  8137. this.cursorOptions.downStyle = t3;
  8138. }, enumerable: true, configurable: true }), e3.prototype.applyCursorStyle = function() {
  8139. }, Object.defineProperty(e3.prototype, "interactionsEnabled", { get: function() {
  8140. return false !== this.getPropertyValue("interactionsEnabled") && (this.virtualParent ? this.virtualParent.interactionsEnabled : !this._parent || this._parent.interactionsEnabled);
  8141. }, set: function(t3) {
  8142. if (t3 = z(t3), this.setPropertyValue("interactionsEnabled", t3)) {
  8143. var e4 = null;
  8144. t3 ? this.group.node.style.pointerEvents = "" : e4 = "none", this.group.node.style.pointerEvents = e4;
  8145. }
  8146. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "exporting", { get: function() {
  8147. return this.getExporting();
  8148. }, set: function(t3) {
  8149. this._exporting.set(t3, t3);
  8150. }, enumerable: true, configurable: true }), e3.prototype.getExporting = function() {
  8151. var t3 = this._exporting.get();
  8152. return t3 || (!this.isStandaloneInstance && this._parent ? this._parent.exporting : ((t3 = new Ga(this.svgContainer.SVGContainer)).sprite = this, t3.language = this.language, t3.numberFormatter = this.numberFormatter, t3.dateFormatter = this.dateFormatter, t3.durationFormatter = this.durationFormatter, this._exporting.set(t3, t3), t3));
  8153. }, Object.defineProperty(e3.prototype, "exportable", { get: function() {
  8154. return this._exportable;
  8155. }, set: function(t3) {
  8156. var e4 = this.svgContainer;
  8157. this._exportable = t3, e4 && (t3 ? ee(e4.nonExportableSprites, this) : -1 == Xt(e4.nonExportableSprites, this) && e4.nonExportableSprites.push(this));
  8158. }, enumerable: true, configurable: true }), e3.prototype.modalPrefix = function(t3) {
  8159. return ls.classNamePrefix + t3;
  8160. }, Object.defineProperty(e3.prototype, "modal", { get: function() {
  8161. var t3 = this.svgContainer;
  8162. if (t3) {
  8163. var e4 = t3.modal;
  8164. return e4.adapter.has("classPrefix", this.modalPrefix) || e4.adapter.add("classPrefix", this.modalPrefix), e4;
  8165. }
  8166. }, enumerable: true, configurable: true }), e3.prototype.openModal = function(t3, e4) {
  8167. var i3 = this.svgContainer;
  8168. if (i3)
  8169. return i3.openModal(t3, e4);
  8170. }, e3.prototype.closeModal = function() {
  8171. var t3 = this.svgContainer;
  8172. t3 && t3.closeModal();
  8173. }, Object.defineProperty(e3.prototype, "popups", { get: function() {
  8174. var t3 = this.svgContainer;
  8175. if (t3) {
  8176. var e4 = t3.popups;
  8177. return e4.template.sprite = this, e4.template.adapter.has("classPrefix", this.modalPrefix) || e4.template.adapter.add("classPrefix", this.modalPrefix), e4;
  8178. }
  8179. }, enumerable: true, configurable: true }), e3.prototype.openPopup = function(t3, e4) {
  8180. var i3 = this.svgContainer;
  8181. if (i3)
  8182. return i3.openPopup(t3, e4);
  8183. }, e3.prototype.closeAllPopups = function() {
  8184. var t3 = this.svgContainer;
  8185. t3 && t3.closeAllPopups();
  8186. }, Object.defineProperty(e3.prototype, "x", { get: function() {
  8187. return this.getPropertyValue("x");
  8188. }, set: function(t3) {
  8189. this.isDragged || this.setPercentProperty("x", t3, false, true, this._positionPrecision, true);
  8190. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelX", { get: function() {
  8191. var t3 = ut(this.getPixelX(this.x), this.minX, this.maxX);
  8192. return this._adapterO ? this._adapterO.apply("pixelX", t3) : t3;
  8193. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeX", { get: function() {
  8194. return this._adapterO ? this._adapterO.apply("relativeX", this.getRelativeX(this.x)) : this.getRelativeX(this.x);
  8195. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minX", { get: function() {
  8196. return this.getPropertyValue("minX");
  8197. }, set: function(t3) {
  8198. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("minX", t3, false, true));
  8199. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxX", { get: function() {
  8200. return this.getPropertyValue("maxX");
  8201. }, set: function(t3) {
  8202. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("maxX", t3, false, true));
  8203. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y", { get: function() {
  8204. return this.getPropertyValue("y");
  8205. }, set: function(t3) {
  8206. this.isDragged || this.setPercentProperty("y", t3, false, true, this._positionPrecision, true);
  8207. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelY", { get: function() {
  8208. var t3 = ut(this.getPixelY(this.y), this.minY, this.maxY);
  8209. return this._adapterO ? this._adapterO.apply("pixelY", t3) : t3;
  8210. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeY", { get: function() {
  8211. return this._adapterO ? this._adapterO.apply("relativeY", this.getRelativeX(this.y)) : this.getRelativeX(this.y);
  8212. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minY", { get: function() {
  8213. return this.getPropertyValue("minY");
  8214. }, set: function(t3) {
  8215. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("minY", t3, false, true));
  8216. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxY", { get: function() {
  8217. return this.getPropertyValue("maxY");
  8218. }, set: function(t3) {
  8219. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("maxY", t3, false, true));
  8220. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dx", { get: function() {
  8221. return this.getPropertyValue("dx");
  8222. }, set: function(t3) {
  8223. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("dx", t3, false, true));
  8224. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dy", { get: function() {
  8225. return this.getPropertyValue("dy");
  8226. }, set: function(t3) {
  8227. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("dy", t3, false, true));
  8228. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rotation", { get: function() {
  8229. return this.getPropertyValue("rotation");
  8230. }, set: function(t3) {
  8231. tt(t3 = U(t3)) || (t3 = 0), this.setPropertyValue("rotation", t3, false, true);
  8232. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "align", { get: function() {
  8233. return this.getPropertyValue("align");
  8234. }, set: function(t3) {
  8235. t3 = G(t3), this.setPropertyValue("align", t3) && this._parent && this._parent.invalidateLayout();
  8236. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valign", { get: function() {
  8237. return this.getPropertyValue("valign");
  8238. }, set: function(t3) {
  8239. t3 = G(t3), this.setPropertyValue("valign", t3) && this._parent && this._parent.invalidateLayout();
  8240. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "horizontalCenter", { get: function() {
  8241. return this.getPropertyValue("horizontalCenter");
  8242. }, set: function(t3) {
  8243. t3 = G(t3), this.setPropertyValue("horizontalCenter", t3) && this.updateCenter();
  8244. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalCenter", { get: function() {
  8245. return this.getPropertyValue("verticalCenter");
  8246. }, set: function(t3) {
  8247. t3 = G(t3), this.setPropertyValue("verticalCenter", t3) && this.updateCenter();
  8248. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxWidth", { get: function() {
  8249. var t3 = this.getPropertyValue("maxWidth");
  8250. if (!tt(t3) && this._parent) {
  8251. var e4 = this._parent.maxWidth;
  8252. return "absolute" != this._parent.layout && "none" != this.align && null != this.align && (e4 = e4 - this.pixelMarginLeft - this.pixelMarginRight), e4;
  8253. }
  8254. return t3;
  8255. }, set: function(t3) {
  8256. this.setMaxWidth(t3);
  8257. }, enumerable: true, configurable: true }), e3.prototype.setMaxWidth = function(t3) {
  8258. var e4 = this.maxWidth, i3 = this.maxHeight;
  8259. if (this.setPropertyValue("maxWidth", t3)) {
  8260. tt(this.relativeWidth) && this.invalidate();
  8261. var n3 = { type: "maxsizechanged", target: this, previousWidth: e4, previousHeight: i3 };
  8262. this.dispatchImmediately("maxsizechanged", n3);
  8263. }
  8264. }, Object.defineProperty(e3.prototype, "maxHeight", { get: function() {
  8265. var t3 = this.getPropertyValue("maxHeight");
  8266. if (!tt(t3) && this._parent) {
  8267. var e4 = this._parent.maxHeight;
  8268. return "absolute" != this._parent.layout && "none" != this.valign && null != this.valign && (e4 = e4 - this.pixelMarginTop - this.pixelMarginBottom), e4;
  8269. }
  8270. return t3;
  8271. }, set: function(t3) {
  8272. this.setMaxHeight(t3);
  8273. }, enumerable: true, configurable: true }), e3.prototype.setMaxHeight = function(t3) {
  8274. var e4 = this.maxWidth, i3 = this.maxHeight;
  8275. if (this.setPropertyValue("maxHeight", t3)) {
  8276. tt(this.relativeHeight) && this.invalidate();
  8277. var n3 = { type: "maxsizechanged", target: this, previousWidth: e4, previousHeight: i3 };
  8278. this.dispatchImmediately("maxsizechanged", n3);
  8279. }
  8280. }, Object.defineProperty(e3.prototype, "minWidth", { get: function() {
  8281. return this.getPropertyValue("minWidth");
  8282. }, set: function(t3) {
  8283. this.setPropertyValue("minWidth", t3, true);
  8284. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minHeight", { get: function() {
  8285. return this.getPropertyValue("minHeight");
  8286. }, set: function(t3) {
  8287. this.setPropertyValue("minHeight", t3, true);
  8288. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "width", { get: function() {
  8289. return this.getPropertyValue("width");
  8290. }, set: function(t3) {
  8291. this.setPercentProperty("width", t3, true, false, this._positionPrecision, true) && (this.percentWidth = void 0, this.relativeWidth = void 0, t3 instanceof A ? (this.percentWidth = t3.percent, tt(this._pixelWidth) && (this.maxWidth = void 0), this._pixelWidth = void 0) : (this._pixelWidth = Number(t3), this.maxWidth = this._pixelWidth), this.invalidatePosition());
  8292. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "height", { get: function() {
  8293. return this.getPropertyValue("height");
  8294. }, set: function(t3) {
  8295. this.setPercentProperty("height", t3, true, false, this._positionPrecision, true) && (this.percentHeight = void 0, this._relativeHeight = void 0, t3 instanceof A ? (this.percentHeight = t3.percent, tt(this._pixelHeight) && (this.maxHeight = void 0), this._pixelHeight = void 0) : (this._pixelHeight = Number(t3), this.maxHeight = this._pixelHeight), this.invalidatePosition());
  8296. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelWidth", { get: function() {
  8297. var t3;
  8298. t3 = tt(this.percentWidth) ? this.maxWidth : tt(this._pixelWidth) ? this._pixelWidth : 0;
  8299. var e4 = this.minWidth;
  8300. null != e4 && t3 < e4 && (t3 = e4);
  8301. var i3 = lt(t3, this._positionPrecision, true);
  8302. return this._adapterO ? this._adapterO.apply("pixelWidth", i3) : i3;
  8303. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelHeight", { get: function() {
  8304. var t3;
  8305. t3 = tt(this.percentHeight) ? this.maxHeight : tt(this._pixelHeight) ? this._pixelHeight : 0;
  8306. var e4 = this.minHeight;
  8307. null != e4 && t3 < e4 && (t3 = e4);
  8308. var i3 = lt(t3, this._positionPrecision, true);
  8309. return this._adapterO ? this._adapterO.apply("pixelHeight", i3) : i3;
  8310. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeWidth", { get: function() {
  8311. var t3 = this._relativeWidth;
  8312. if (tt(t3))
  8313. return this._adapterO ? this._adapterO.apply("relativeWidth", t3) : t3;
  8314. }, set: function(t3) {
  8315. this._relativeWidth != t3 && (this._relativeWidth = t3);
  8316. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeHeight", { get: function() {
  8317. var t3 = this._relativeHeight;
  8318. if (tt(t3))
  8319. return this._adapterO ? this._adapterO.apply("relativeHeight", t3) : t3;
  8320. }, set: function(t3) {
  8321. this._relativeHeight != t3 && (this._relativeHeight = t3);
  8322. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "measuredWidth", { get: function() {
  8323. return this.disabled || this.__disabled ? 0 : this._adapterO ? this._adapterO.apply("measuredWidth", this._measuredWidth) : this._measuredWidth;
  8324. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "measuredHeight", { get: function() {
  8325. return this.disabled || this.__disabled ? 0 : this._adapterO ? this._adapterO.apply("measuredHeight", this._measuredHeight) : this._measuredHeight;
  8326. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outerWidth", { get: function() {
  8327. var t3 = this.pixelWidth + this.pixelMarginRight + this.pixelMarginLeft;
  8328. return this._adapterO ? this._adapterO.apply("outerWidth", t3) : t3;
  8329. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outerHeight", { get: function() {
  8330. var t3 = this.pixelHeight + this.pixelMarginTop + this.pixelMarginBottom;
  8331. return this._adapterO ? this._adapterO.apply("outerHeight", t3) : t3;
  8332. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerWidth", { get: function() {
  8333. var t3 = Math.max(0, this.pixelWidth - this.pixelPaddingRight - this.pixelPaddingLeft);
  8334. return this._adapterO ? this._adapterO.apply("innerWidth", t3) : t3;
  8335. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerHeight", { get: function() {
  8336. var t3 = Math.max(0, this.pixelHeight - this.pixelPaddingTop - this.pixelPaddingBottom);
  8337. return this._adapterO ? this._adapterO.apply("innerHeight", t3) : t3;
  8338. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "globalScale", { get: function() {
  8339. var t3 = this.scale;
  8340. return this._parent && (t3 *= this._parent.globalScale), this._adapterO ? this._adapterO.apply("globalScale", t3) : t3;
  8341. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "scale", { get: function() {
  8342. return this.getPropertyValue("scale");
  8343. }, set: function(t3) {
  8344. (t3 = U(t3)) < 0 && (t3 = 0), t3 != this.getPropertyValue("scale") && (this.setPropertyValue("scale", t3, false, true), this.handleGlobalScale());
  8345. }, enumerable: true, configurable: true }), e3.prototype.margin = function(t3, e4, i3, n3) {
  8346. return this.marginTop = t3, this.marginRight = e4, this.marginBottom = i3, this.marginLeft = n3, this;
  8347. }, Object.defineProperty(e3.prototype, "marginLeft", { get: function() {
  8348. return this.getPropertyValue("marginLeft");
  8349. }, set: function(t3) {
  8350. this.setPercentProperty("marginLeft", t3, true, true, this._positionPrecision, true);
  8351. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "marginRight", { get: function() {
  8352. return this.getPropertyValue("marginRight");
  8353. }, set: function(t3) {
  8354. this.setPercentProperty("marginRight", t3, true, true, this._positionPrecision, true);
  8355. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "marginTop", { get: function() {
  8356. return this.getPropertyValue("marginTop");
  8357. }, set: function(t3) {
  8358. this.setPercentProperty("marginTop", t3, true, true, this._positionPrecision, true);
  8359. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "marginBottom", { get: function() {
  8360. return this.getPropertyValue("marginBottom");
  8361. }, set: function(t3) {
  8362. this.setPercentProperty("marginBottom", t3, true, true, this._positionPrecision, true);
  8363. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelMarginRight", { get: function() {
  8364. var t3 = this.getPixelX(this.marginRight);
  8365. return this._adapterO ? this._adapterO.apply("pixelMarginRight", t3) : t3;
  8366. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeMarginRight", { get: function() {
  8367. var t3 = this.getRelativeX(this.marginRight);
  8368. return this._adapterO ? this._adapterO.apply("relativeMarginRight", t3) : t3;
  8369. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelMarginLeft", { get: function() {
  8370. var t3 = this.getPixelX(this.marginLeft);
  8371. return this._adapterO ? this._adapterO.apply("pixelMarginLeft", t3) : t3;
  8372. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeMarginLeft", { get: function() {
  8373. var t3 = this.getRelativeX(this.marginLeft);
  8374. return this._adapterO ? this._adapterO.apply("relativeMarginLeft", t3) : t3;
  8375. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelMarginTop", { get: function() {
  8376. var t3 = this.getPixelY(this.marginTop);
  8377. return this._adapterO ? this._adapterO.apply("pixelMarginTop", t3) : t3;
  8378. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeMarginTop", { get: function() {
  8379. var t3 = this.getRelativeY(this.marginTop);
  8380. return this._adapterO ? this._adapterO.apply("relativeMarginTop", t3) : t3;
  8381. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelMarginBottom", { get: function() {
  8382. var t3 = this.getPixelY(this.marginBottom);
  8383. return this._adapterO ? this._adapterO.apply("pixelMarginBottom", t3) : t3;
  8384. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeMarginBottom", { get: function() {
  8385. var t3 = this.getRelativeY(this.marginBottom);
  8386. return this._adapterO ? this._adapterO.apply("relativeMarginBottom", t3) : t3;
  8387. }, enumerable: true, configurable: true }), e3.prototype.padding = function(t3, e4, i3, n3) {
  8388. return this.paddingTop = t3, this.paddingRight = e4, this.paddingBottom = i3, this.paddingLeft = n3, this;
  8389. }, Object.defineProperty(e3.prototype, "paddingLeft", { get: function() {
  8390. return this.getPropertyValue("paddingLeft");
  8391. }, set: function(t3) {
  8392. this.setPercentProperty("paddingLeft", t3, true, true, this._positionPrecision, true);
  8393. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paddingRight", { get: function() {
  8394. return this.getPropertyValue("paddingRight");
  8395. }, set: function(t3) {
  8396. this.setPercentProperty("paddingRight", t3, true, true, this._positionPrecision, true);
  8397. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paddingTop", { get: function() {
  8398. return this.getPropertyValue("paddingTop");
  8399. }, set: function(t3) {
  8400. this.setPercentProperty("paddingTop", t3, true, true, this._positionPrecision, true);
  8401. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paddingBottom", { get: function() {
  8402. return this.getPropertyValue("paddingBottom");
  8403. }, set: function(t3) {
  8404. this.setPercentProperty("paddingBottom", t3, true, true, this._positionPrecision, true);
  8405. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPaddingRight", { get: function() {
  8406. return this.getPixelX(this.paddingRight);
  8407. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativePaddingRight", { get: function() {
  8408. return this.getRelativeX(this.paddingRight);
  8409. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPaddingLeft", { get: function() {
  8410. return this.getPixelX(this.paddingLeft);
  8411. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativePaddingLeft", { get: function() {
  8412. return this.getRelativeX(this.paddingLeft);
  8413. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPaddingTop", { get: function() {
  8414. return this.getPixelY(this.paddingTop);
  8415. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativePaddingTop", { get: function() {
  8416. return this.getRelativeY(this.paddingTop);
  8417. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPaddingBottom", { get: function() {
  8418. return this.getPixelY(this.paddingBottom);
  8419. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativePaddingBottom", { get: function() {
  8420. return this.getRelativeY(this.paddingBottom);
  8421. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "path", { get: function() {
  8422. return this.getPropertyValue("path");
  8423. }, set: function(t3) {
  8424. this.setPath(t3);
  8425. }, enumerable: true, configurable: true }), e3.prototype.setPath = function(t3) {
  8426. return !!this.setPropertyValue("path", t3) && (this._adapterO && (t3 = this._adapterO.apply("path", t3)), this._isPath || (this.element && (!this.element.node || this.element.node instanceof SVGPathElement) || (this.element = this.paper.add("path")), this._isPath = true), Z(t3) ? this.element.attr({ d: t3 }) : this.element.removeAttr("d"), this.invalidatePosition(), this.inited || this.events.once("inited", this.validatePosition, this, false), true);
  8427. }, Object.defineProperty(e3.prototype, "fillModifier", { get: function() {
  8428. return this.getPropertyValue("fillModifier");
  8429. }, set: function(t3) {
  8430. this.setPropertyValue("fillModifier", t3) && this.setFill(this.fill);
  8431. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeModifier", { get: function() {
  8432. return this.getPropertyValue("strokeModifier");
  8433. }, set: function(t3) {
  8434. this.setPropertyValue("strokeModifier", t3, true);
  8435. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fillOpacity", { get: function() {
  8436. return this.getPropertyValue("fillOpacity");
  8437. }, set: function(t3) {
  8438. t3 = ot(t3, 0, 1), this.setPropertyValue("fillOpacity", t3) && this.setSVGAttribute({ "fill-opacity": t3 });
  8439. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fill", { get: function() {
  8440. return this.getPropertyValue("fill");
  8441. }, set: function(t3) {
  8442. this.setFill(t3);
  8443. }, enumerable: true, configurable: true }), e3.prototype.setFill = function(t3) {
  8444. if (et(t3) && !("r" in t3) || (t3 = gn(t3)), this.setColorProperty("fill", t3) || this.fillModifier)
  8445. if (t3 instanceof un && this.fillModifier && (t3 = this.fillModifier.modify(t3)), this.realFill = t3, t3 instanceof un)
  8446. this.setSVGAttribute({ fill: t3.toString() });
  8447. else if (Z(t3)) {
  8448. if (t3 instanceof Ca || t3 instanceof Oa || t3 instanceof Sa) {
  8449. var e4 = t3;
  8450. e4.paper = this.paper, this.setSVGAttribute({ fill: 'url("' + Dn() + e4.id + '")' });
  8451. }
  8452. } else
  8453. this.removeSVGAttribute("fill");
  8454. }, Object.defineProperty(e3.prototype, "opacity", { get: function() {
  8455. return this.getPropertyValue("opacity");
  8456. }, set: function(t3) {
  8457. t3 = ot(t3, 0, 1), this.setPropertyValue("opacity", t3) && this.setSVGAttribute({ opacity: t3 });
  8458. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "stroke", { get: function() {
  8459. return this.getPropertyValue("stroke");
  8460. }, set: function(t3) {
  8461. this.setStroke(t3);
  8462. }, enumerable: true, configurable: true }), e3.prototype.setStroke = function(t3) {
  8463. if (et(t3) && !("r" in t3) || (t3 = gn(t3)), this.setColorProperty("stroke", t3) || this.strokeModifier)
  8464. if (t3 instanceof un && this.strokeModifier && (t3 = this.strokeModifier.modify(t3)), this.realStroke = t3, t3 instanceof un)
  8465. "none" == t3.hex ? this.removeSVGAttribute("stroke") : this.setSVGAttribute({ stroke: t3.toString() });
  8466. else if (Z(t3)) {
  8467. if (t3 instanceof Ca || t3 instanceof Oa || t3 instanceof Sa) {
  8468. var e4 = t3;
  8469. e4.paper = this.paper, this.setSVGAttribute({ stroke: 'url("' + Dn() + e4.id + '")' });
  8470. }
  8471. } else
  8472. this.removeSVGAttribute("stroke");
  8473. }, Object.defineProperty(e3.prototype, "strokeOpacity", { get: function() {
  8474. return this.getPropertyValue("strokeOpacity");
  8475. }, set: function(t3) {
  8476. t3 = ot(t3, 0, 1), this.setPropertyValue("strokeOpacity", t3) && this.setSVGAttribute({ "stroke-opacity": t3 });
  8477. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nonScalingStroke", { get: function() {
  8478. return this.getPropertyValue("nonScalingStroke");
  8479. }, set: function(t3) {
  8480. t3 = z(t3), this.setPropertyValue("nonScalingStroke", t3) && (this.strokeWidth = this.strokeWidth);
  8481. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nonScaling", { get: function() {
  8482. return this.getPropertyValue("nonScaling");
  8483. }, set: function(t3) {
  8484. t3 = z(t3), this.setPropertyValue("nonScaling", t3, false, true);
  8485. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeWidth", { get: function() {
  8486. return this.getPropertyValue("strokeWidth");
  8487. }, set: function(t3) {
  8488. t3 = U(t3), this.setPropertyValue("strokeWidth", t3, true), this.nonScalingStroke && (tt(t3) || (t3 = 1), t3 /= this.globalScale), this.setSVGAttribute({ "stroke-width": t3 });
  8489. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeDasharray", { get: function() {
  8490. return this.getPropertyValue("strokeDasharray");
  8491. }, set: function(t3) {
  8492. t3 = G(t3), this.setPropertyValue("strokeDasharray", t3) && this.setSVGAttribute({ "stroke-dasharray": t3 });
  8493. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeDashoffset", { get: function() {
  8494. return this.getPropertyValue("strokeDashoffset");
  8495. }, set: function(t3) {
  8496. t3 = U(t3), this.setPropertyValue("strokeDashoffset", t3) && this.setSVGAttribute({ "stroke-dashoffset": t3 });
  8497. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeLinecap", { get: function() {
  8498. return this.getPropertyValue("strokeLinecap");
  8499. }, set: function(t3) {
  8500. this.setPropertyValue("strokeLinecap", t3) && this.setSVGAttribute({ "stroke-linecap": t3 });
  8501. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeLinejoin", { get: function() {
  8502. return this.getPropertyValue("strokeLinejoin");
  8503. }, set: function(t3) {
  8504. this.setPropertyValue("strokeLinejoin", t3) && this.setSVGAttribute({ "stroke-linejoin": t3 });
  8505. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "shapeRendering", { get: function() {
  8506. return this.getPropertyValue("shapeRendering");
  8507. }, set: function(t3) {
  8508. t3 = G(t3), this.setPropertyValue("shapeRendering", t3) && this.setSVGAttribute({ "shape-rendering": t3 });
  8509. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPerfect", { get: function() {
  8510. return this.getPropertyValue("pixelPerfect");
  8511. }, set: function(t3) {
  8512. t3 = z(t3), this._positionPrecision = t3 ? ls.pixelPerfectPrecision : 3, this.setPropertyValue("pixelPerfect", t3, true);
  8513. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rtl", { get: function() {
  8514. return Z(this._rtl) ? this._rtl : !!this._topParent && this._topParent.rtl;
  8515. }, set: function(t3) {
  8516. t3 = z(t3), this.isBaseSprite && (this.topParent.rtl = t3), this._rtl = t3;
  8517. }, enumerable: true, configurable: true }), e3.prototype.show = function(t3) {
  8518. return this.showReal(t3);
  8519. }, e3.prototype.showReal = function(t3) {
  8520. var e4 = this;
  8521. if (!this.preventShow) {
  8522. var i3, n3 = this.defaultState.properties;
  8523. if (!this.disabled && (this.isHidden || !this.visible || this.isHiding || null != n3.opacity && this.opacity < n3.opacity && !this.isShowing) && !this.isDisposed()) {
  8524. this.invalid && this.validate(), this.positionInvalid && this.validatePosition(), tt(t3) || (t3 = this.defaultState.transitionDuration), this._hideAnimation && (this._hideAnimation.kill(), this._hideAnimation = void 0), this._showHideDisposer && this.removeDispose(this._showHideDisposer), this._isHidden = false, this.isHiding = false, this.isShowing = true, (i3 = this.applyCurrentState(t3)) && !i3.isFinished() ? (this._showHideDisposer = i3.events.on("animationended", function() {
  8525. e4.isShowing = false;
  8526. }), this._disposers.push(this._showHideDisposer)) : this.isShowing = false;
  8527. var r3 = this.defaultState.properties.visible;
  8528. Z(r3) || (r3 = true), this.visible = r3, this.readerHidden = false, this.dispatchImmediately("shown");
  8529. }
  8530. return i3;
  8531. }
  8532. }, e3.prototype.hide = function(t3) {
  8533. return this.hideReal(t3);
  8534. }, e3.prototype.hideReal = function(t3) {
  8535. var e4, i3 = this;
  8536. if (!this.isHiding && this.visible && !this.isDisposed()) {
  8537. this.tooltip && this.tooltip.currentSprite == this && this.hideTooltip(0), this._hideAnimation && (this._hideAnimation.kill(), this._hideAnimation = void 0), this.isShowing = false, this._showHideDisposer && this.removeDispose(this._showHideDisposer);
  8538. var n3 = this.hiddenState;
  8539. n3 ? (e4 = this.setState(n3, t3, void 0)) && !e4.isFinished() ? (this._hideAnimation = e4, this._showHideDisposer = e4.events.on("animationended", function() {
  8540. i3.isHiding = false, i3._isHidden = true, 0 == n3.properties.visible && (i3.visible = false);
  8541. }, this), this._disposers.push(this._showHideDisposer), this._disposers.push(e4)) : (this.isHiding = false, this._isHidden = true) : (this.visible = false, this.isHiding = false, this._isHidden = true), this.readerHidden = true, this.dispatchImmediately("hidden"), this.invalidate();
  8542. }
  8543. return tt(t3) || (t3 = this.hiddenState.transitionDuration), e4;
  8544. }, Object.defineProperty(e3.prototype, "visible", { get: function() {
  8545. return this.getVisibility();
  8546. }, set: function(t3) {
  8547. t3 = z(t3), this.setVisibility(t3);
  8548. }, enumerable: true, configurable: true }), e3.prototype.getVisibility = function() {
  8549. var t3 = this.getPropertyValue("visible");
  8550. return Z(t3) || (t3 = true), t3;
  8551. }, e3.prototype.setVisibility = function(t3) {
  8552. if (this.setPropertyValue("visible", t3) && (t3 ? this.group.removeAttr("visibility") : this.group.attr({ visibility: "hidden" }), this.events.isEnabled("visibilitychanged"))) {
  8553. var e4 = { type: "visibilitychanged", target: this, visible: t3 };
  8554. this.events.dispatchImmediately("visibilitychanged", e4);
  8555. }
  8556. }, Object.defineProperty(e3.prototype, "zIndex", { get: function() {
  8557. return this.getPropertyValue("zIndex");
  8558. }, set: function(t3) {
  8559. t3 = U(t3), this.setPropertyValue("zIndex", t3) && this.dispatch("zIndexChanged");
  8560. }, enumerable: true, configurable: true }), e3.prototype.toFront = function() {
  8561. var t3 = this._parent;
  8562. t3 && t3.children.indexOf(this) != t3.children.length - 1 && (t3.children.moveValue(this, t3.children.length - 1), this.dispatch("zIndexChanged"));
  8563. }, e3.prototype.toBack = function() {
  8564. var t3 = this._parent;
  8565. t3 && 0 != t3.children.indexOf(this) && (t3.children.moveValue(this, 0), this.dispatch("zIndexChanged"));
  8566. }, Object.defineProperty(e3.prototype, "userClassName", { get: function() {
  8567. return this.getPropertyValue("userClassName");
  8568. }, set: function(t3) {
  8569. this.setPropertyValue("userClassName", t3) && (!t3 && this.userClassName && this.group.removeClass(this.userClassName), this.setClassName());
  8570. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltip", { get: function() {
  8571. return this._tooltip ? this._tooltip : this.virtualParent ? this.virtualParent.tooltip : this._parent ? this._parent.tooltip : void 0;
  8572. }, set: function(t3) {
  8573. this._tooltip && this.removeDispose(this._tooltip), this._tooltip = t3, t3 && (t3.parent = this.tooltipContainer);
  8574. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipDataItem", { get: function() {
  8575. return this._tooltipDataItem || this.dataItem;
  8576. }, set: function(t3) {
  8577. this._tooltipDataItem = t3;
  8578. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipColorSource", { get: function() {
  8579. return this._tooltipColorSource;
  8580. }, set: function(t3) {
  8581. this._tooltipColorSource = t3;
  8582. }, enumerable: true, configurable: true }), e3.prototype.showTooltip = function(t3) {
  8583. "always" == this.showTooltipOn && !this._tooltip && this.tooltip && (this._tooltip = this.tooltip.clone()), !t3 && "pointer" == this.tooltipPosition && this.isHover && (t3 = gr(ua().lastPointer.point, this.svgContainer.SVGContainer, this.svgContainer.cssScale));
  8584. for (var e4 = this; null != e4; ) {
  8585. if (!e4.visible || e4.disabled || e4.__disabled)
  8586. return void (this._tooltip && this._tooltip.visible && this._tooltip.hide(0));
  8587. e4 = e4.parent;
  8588. }
  8589. if (Z(this.tooltipText) || Z(this.tooltipHTML)) {
  8590. var i3 = this.tooltip, n3 = this.tooltipDataItem;
  8591. if (i3) {
  8592. i3.targetSprite = this;
  8593. var r3 = this, s2 = this.tooltipColorSource;
  8594. if ((i3.getStrokeFromObject || i3.getFillFromObject) && s2 && (s2.isTemplate ? n3 && Kt(n3.sprites, function(t4) {
  8595. return t4.clonedFrom != s2 || (r3 = t4, false);
  8596. }) : r3 = s2), i3.getStrokeFromObject) {
  8597. for (var a2 = this.stroke, o3 = r3; null != o3.parent && (null == (a2 = o3.stroke) && (o3 = o3.parent), null == a2); )
  8598. ;
  8599. a2 instanceof un ? i3.background.animate({ property: "stroke", to: a2 }, i3.animationDuration) : i3.background.stroke = a2;
  8600. }
  8601. if (i3.dataItem = n3, i3.label.populateStringFrom = this, i3.getFillFromObject) {
  8602. var l2 = this.fill;
  8603. for (o3 = r3; null != o3.parent; )
  8604. if (null == (l2 = o3.fill) || l2 instanceof un && null == l2.rgb)
  8605. o3 = o3.parent;
  8606. else if (null != l2)
  8607. break;
  8608. null == l2 && (l2 = dn("#000000")), l2 instanceof un && i3.visible ? i3.background.animate({ property: "fill", to: l2 }, i3.animationDuration) : i3.background.fill = l2, i3.autoTextColor && l2 instanceof un && (i3.label.fill = l2.alternative);
  8609. }
  8610. var h2 = "";
  8611. if (this.tooltipHTML && (i3.html = this.tooltipHTML, h2 = this.tooltipHTML), this.tooltipText && (i3.text = this.tooltipText, h2 = this.tooltipText), this.updateTooltipPosition(t3)) {
  8612. if (i3.readerDescribedBy = this.uidAttr(), i3.label.invalid && i3.label.validate(), null != h2 && "" != h2 && "" != i3.label.currentText) {
  8613. i3 && !i3.parent && (i3.parent = this.tooltipContainer);
  8614. var p2 = i3.defaultState.transitionDuration;
  8615. return p2 <= 0 && (p2 = 1), i3.show(p2), i3.currentSprite = this, true;
  8616. }
  8617. this.hideTooltip(0);
  8618. } else
  8619. this.hideTooltip(0);
  8620. }
  8621. }
  8622. return false;
  8623. }, e3.prototype.updateTooltipPosition = function(t3) {
  8624. var e4 = this;
  8625. if ("pointer" != this.tooltipPosition) {
  8626. var i3 = ur({ x: this.getTooltipX(), y: this.getTooltipY() }, this);
  8627. return this.pointTooltipTo(i3);
  8628. }
  8629. if (this._interactionDisposer && this._interactionDisposer.dispose(), this._interactionDisposer = ua().body.events.on("track", function(t4) {
  8630. return e4.pointTooltipTo(gr(t4.point, e4.svgContainer.SVGContainer, e4.svgContainer.cssScale), true);
  8631. }), t3)
  8632. return this.pointTooltipTo(t3, true);
  8633. }, e3.prototype.pointTooltipTo = function(t3, e4) {
  8634. var i3 = this.tooltip;
  8635. if (i3 && this.topParent) {
  8636. if (i3.showInViewport)
  8637. return i3.pointTo(t3, e4), true;
  8638. if (Nt(t3, { x: 0, y: 0, width: this.topParent.maxWidth, height: this.topParent.maxHeight }))
  8639. return i3.pointTo(t3, e4), true;
  8640. }
  8641. return false;
  8642. }, e3.prototype.hideTooltip = function(t3) {
  8643. if ("always" != this.showTooltipOn) {
  8644. var e4 = this.tooltip;
  8645. e4 && (e4.targetSprite == this && (e4.targetSprite = void 0), e4.hide(t3), this._interactionDisposer && (this._interactionDisposer.dispose(), this._interactionDisposer = void 0));
  8646. }
  8647. }, Object.defineProperty(e3.prototype, "tooltipHTML", { get: function() {
  8648. return this.getPropertyValue("tooltipHTML");
  8649. }, set: function(t3) {
  8650. t3 = G(t3), this.hoverable = true, this.setPropertyValue("tooltipHTML", t3) && this.tooltip && this.tooltip.visible && this.showTooltip();
  8651. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipText", { get: function() {
  8652. return this.getPropertyValue("tooltipText");
  8653. }, set: function(t3) {
  8654. (t3 = G(t3)) && (this.hoverable = true), this.setPropertyValue("tooltipText", t3) && this.tooltip && this.tooltip.visible && this.showTooltip();
  8655. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipContainer", { get: function() {
  8656. return this._tooltipContainer ? this._tooltipContainer : this._parent ? this._parent.tooltipContainer : void 0;
  8657. }, set: function(t3) {
  8658. this._tooltipContainer = t3;
  8659. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipX", { get: function() {
  8660. return this.getTooltipX();
  8661. }, set: function(t3) {
  8662. this.setPercentProperty("tooltipX", t3) && this.tooltip && this.tooltip.invalidate();
  8663. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "alwaysShowTooltip", { get: function() {
  8664. return "always" == this.getPropertyValue("showTooltipOn");
  8665. }, set: function(t3) {
  8666. (t3 = z(t3)) && (this.showTooltipOn = "always");
  8667. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showTooltipOn", { get: function() {
  8668. return this.getPropertyValue("showTooltipOn");
  8669. }, set: function(t3) {
  8670. this.setPropertyValue("showTooltipOn", t3) && ("hit" == t3 && (this.clickable = true), this.tooltip && ("always" == t3 ? this.showTooltip() : this.handleAlwaysShowTooltip()));
  8671. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipPosition", { get: function() {
  8672. return this.getPropertyValue("tooltipPosition");
  8673. }, set: function(t3) {
  8674. this.setPropertyValue("tooltipPosition", t3);
  8675. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipY", { get: function() {
  8676. return this.getTooltipY();
  8677. }, set: function(t3) {
  8678. this.setPercentProperty("tooltipY", t3) && this.tooltip && this.tooltip.invalidate();
  8679. }, enumerable: true, configurable: true }), e3.prototype.getTooltipX = function() {
  8680. var t3, e4 = this.getPropertyValue("tooltipX");
  8681. return Z(e4) || (e4 = V(50)), tt(e4) && (t3 = e4), e4 instanceof A && (t3 = this.maxLeftSelf + this._measuredWidthSelf * e4.value - this.pixelPaddingLeft - this.ex), tt(t3) || (t3 = 0), t3;
  8682. }, e3.prototype.getTooltipY = function() {
  8683. var t3, e4 = this.getPropertyValue("tooltipY");
  8684. return Z(e4) || (e4 = V(50)), tt(e4) && (t3 = e4), e4 instanceof A && (t3 = this.maxTopSelf + this._measuredHeightSelf * e4.value - this.pixelPaddingTop - this.ey), tt(t3) || (t3 = 0), t3;
  8685. }, e3.prototype.raiseCriticalError = function(t3, e4) {
  8686. this.svgContainer && (this._adapterO ? this.modal.content = this._adapterO.apply("criticalError", t3).message : this.modal.content = t3.message, e4 ? this.modal.closable = true : this.disabled = true, ls.suppressErrors || this.modal.open()), ls.verbose && console.log(t3);
  8687. }, e3.prototype.processConfig = function(e4) {
  8688. e4 && (Z(e4.tooltipColorSource) && Q(e4.tooltipColorSource) && this.map.hasKey(e4.tooltipColorSource) && (e4.tooltipColorSource = this.map.getKey(e4.tooltipColorSource)), Z(e4.cursorOverStyle) && Q(e4.cursorOverStyle) && (e4.cursorOverStyle = this.getCursorStyle(e4.cursorOverStyle)), Z(e4.cursorDowntyle) && Q(e4.cursorDowntyle) && (e4.cursorDowntyle = this.getCursorStyle(e4.cursorDowntyle)), Z(e4.cursorOptions) && (Z(e4.cursorOptions.overStyle) && Q(e4.cursorOptions.overStyle) && (e4.cursorOptions.overStyle = this.getCursorStyle(e4.cursorOptions.overStyle)), Z(e4.cursorOptions.downStyle) && Q(e4.cursorOptions.downStyle) && (e4.cursorOptions.downStyle = this.getCursorStyle(e4.cursorOptions.downStyle)))), t2.prototype.processConfig.call(this, e4), this.processDelayedMap();
  8689. }, e3.prototype.getCursorStyle = function(t3) {
  8690. switch (t3) {
  8691. case "grab":
  8692. return Ia.grab;
  8693. case "grabbing":
  8694. return Ia.grabbing;
  8695. case "pointer":
  8696. return Ia.pointer;
  8697. case "horizontalResize":
  8698. return Ia.horizontalResize;
  8699. case "verticalResize":
  8700. return Ia.verticalResize;
  8701. default:
  8702. return Ia.default;
  8703. }
  8704. }, e3.prototype.configOrder = function(e4, i3) {
  8705. return e4 == i3 ? 0 : "tooltipColorSource" == e4 ? 1 : "tooltipColorSource" == i3 ? -1 : t2.prototype.configOrder.call(this, e4, i3);
  8706. }, Object.defineProperty(e3.prototype, "isHidden", { get: function() {
  8707. return this._isHidden ? this._isHidden : !!this._parent && this._parent.isHidden;
  8708. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showOnInit", { get: function() {
  8709. return this.getPropertyValue("showOnInit");
  8710. }, set: function(t3) {
  8711. t3 = z(t3), this.setShowOnInit(t3);
  8712. }, enumerable: true, configurable: true }), e3.prototype.setShowOnInit = function(t3) {
  8713. this.setPropertyValue("showOnInit", t3) && (this.isTemplate || (!t3 || this.inited || this.hidden ? this._showOnInitDisposer && this._showOnInitDisposer.dispose() : (this._showOnInitDisposer = new me([Ii.events.once("enterframe", this.hideInitially, this), this.events.once("beforevalidated", this.hideInitially, this, false), this.events.on("inited", this.appear, this, false)]), this._disposers.push(this._showOnInitDisposer))));
  8714. }, e3.prototype.hideInitially = function() {
  8715. this.isDisposed() || (this.appeared = false, this.inited || this.hide(0));
  8716. }, e3.prototype.appear = function() {
  8717. var t3 = this;
  8718. if (this.appeared = false, this.hidden || this.isHidden || this.hide(0), this.hidden)
  8719. this.appeared = true, this.dispatch("appeared");
  8720. else {
  8721. var e4 = this.show();
  8722. e4 && !e4.isFinished() ? this.addDisposer(e4.events.on("animationended", function() {
  8723. t3.appeared = true, t3.dispatch("appeared");
  8724. })) : (this.appeared = true, this.dispatch("appeared"));
  8725. }
  8726. }, Object.defineProperty(e3.prototype, "hidden", { get: function() {
  8727. return this.getPropertyValue("hidden");
  8728. }, set: function(t3) {
  8729. t3 = z(t3), this.setPropertyValue("hidden", t3);
  8730. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bbox", { get: function() {
  8731. return this.definedBBox ? this.definedBBox : this._bbox;
  8732. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "plugins", { get: function() {
  8733. var t3 = this;
  8734. return this._plugins || (this._plugins = new Fi(), this._disposers.push(this._plugins.events.on("inserted", function(e4) {
  8735. e4.newValue.target = t3, e4.newValue.init();
  8736. })), this._disposers.push(new Ai(this._plugins))), this._plugins;
  8737. }, enumerable: true, configurable: true }), e3.prototype._systemUpdate = function(t3) {
  8738. this.validate();
  8739. }, e3.prototype._systemCheckIfValidate = function() {
  8740. return true;
  8741. }, e3.prototype._systemValidatePositions = function() {
  8742. this.validatePosition();
  8743. }, e3.prototype._systemValidateLayouts = function() {
  8744. }, e3;
  8745. }(mn);
  8746. Ii.registeredClasses.Sprite = Za;
  8747. var qa = function(t2) {
  8748. function e3() {
  8749. var e4 = t2.call(this) || this;
  8750. return e4.className = "Rectangle", e4.element = e4.paper.add("rect"), e4.applyTheme(), e4;
  8751. }
  8752. return C(e3, t2), e3.prototype.draw = function() {
  8753. t2.prototype.draw.call(this);
  8754. var e4 = this._positionPrecision;
  8755. this.pixelPerfect && (e4 = 0);
  8756. var i3 = lt(this.innerWidth, e4), n3 = lt(this.innerHeight, e4);
  8757. this.element.attr({ width: i3, height: n3 });
  8758. }, e3.prototype.measureElement = function() {
  8759. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  8760. return this.definedBBox ? this.definedBBox : this.isMeasured ? { x: 0, y: 0, width: this.innerWidth, height: this.innerHeight } : { x: 0, y: 0, width: 0, height: 0 };
  8761. }, enumerable: true, configurable: true }), e3;
  8762. }(Za);
  8763. Ii.registeredClasses.Rectangle = qa;
  8764. var $a = function(t2) {
  8765. function e3() {
  8766. var e4 = t2.call(this) || this;
  8767. return e4._childrenByLayout = [], e4._childrenDisposers = new Pi(), e4.hasFocused = false, e4.setStateOnSprites = [], e4.layoutInvalid = false, e4._absoluteWidth = 0, e4._absoluteHeight = 0, e4._shouldBeReady = [], e4._tapToActivate = false, e4.tapTimeout = 3e3, e4.className = "Container", e4._element = e4.paper.addGroup("g"), e4.group.add(e4.element), e4.setPropertyValue("pixelPerfect", false), e4.setPropertyValue("layout", "absolute"), e4.setPropertyValue("fixedWidthGrid", false), e4.setPropertyValue("verticalCenter", "none"), e4.setPropertyValue("horizontalCenter", "none"), e4._positionPrecision = 4, e4._disposers.push(new _i(e4._childrenDisposers)), e4.children.events.on("inserted", e4.handleChildAdded, e4), e4.children.events.on("removed", e4.handleChildRemoved, e4), e4.applyTheme(), e4;
  8768. }
  8769. return C(e3, t2), e3.prototype.handleChildAdded = function(t3) {
  8770. this.processChild(t3.newValue);
  8771. }, e3.prototype.processChild = function(t3) {
  8772. try {
  8773. this._childrenDisposers.insertKey(t3.uid, new me([t3.events.on("transformed", this.handleChildTransform, this), t3.events.on("zIndexChanged", this.sortAndAdd, this)]));
  8774. } catch (t4) {
  8775. }
  8776. this.element && this.element.add(t3.group), t3.parent = this, t3.paper = this.paper, this.dispatchImmediately("childadded", { type: "childadded", newValue: t3 }), this.invalidate();
  8777. }, e3.prototype.sortAndAdd = function() {
  8778. this.sortChildren(), this.addChildren();
  8779. }, e3.prototype.handleChildRemoved = function(t3) {
  8780. var e4 = t3.oldValue;
  8781. this._childrenDisposers.removeKey(e4.uid), this.element && this.element.removeElement(e4.group), e4.isMeasured && this.invalidateLayout(), this.dispatchImmediately("childremoved", { type: "childremoved", oldValue: e4 });
  8782. }, e3.prototype.handleChildTransform = function(t3) {
  8783. t3.target.isMeasured && this.invalidateLayout();
  8784. }, e3.prototype.invalidateLayout = function() {
  8785. this.layoutInvalid || this.disabled || this.isTemplate || "none" == this.layout || this.__disabled || (this.layoutInvalid = true, Ii.addToInvalidLayouts(this), Qa.requestFrame());
  8786. }, e3.prototype.invalidate = function() {
  8787. t2.prototype.invalidate.call(this), this.invalidateLayout();
  8788. }, e3.prototype.deepInvalidate = function() {
  8789. t2.prototype.invalidate.call(this), Ut(this._childrenByLayout, function(t3) {
  8790. t3 instanceof e3 ? t3.deepInvalidate() : t3.invalidate();
  8791. }), this.invalidateLayout();
  8792. }, Object.defineProperty(e3.prototype, "children", { get: function() {
  8793. return this._children || (this._children = new Fi()), this._children;
  8794. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minWidth", { get: function() {
  8795. return this.getPropertyValue("minWidth");
  8796. }, set: function(t3) {
  8797. this.setPropertyValue("minWidth", t3) && this.invalidateLayout();
  8798. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minHeight", { get: function() {
  8799. return this.getPropertyValue("minHeight");
  8800. }, set: function(t3) {
  8801. this.setPropertyValue("minHeight", t3) && this.invalidateLayout();
  8802. }, enumerable: true, configurable: true }), e3.prototype.removeElement = function() {
  8803. }, e3.prototype.sortChildren = function() {
  8804. var t3 = this;
  8805. if (this._childrenByLayout = [], "none" != this.layout && "absolute" != this.layout && this.layout) {
  8806. var e4 = [], i3 = [];
  8807. ti(this.children.iterator(), function(n3) {
  8808. "horizontal" == t3.layout || "grid" == t3.layout ? tt(n3.percentWidth) ? i3.push(n3) : e4.push(n3) : "vertical" == t3.layout && tt(n3.percentHeight) ? i3.push(n3) : e4.push(n3);
  8809. }), this._childrenByLayout = e4.concat(i3);
  8810. } else
  8811. this._childrenByLayout = this.children.values;
  8812. this.calculateRelativeSize();
  8813. }, e3.prototype.calculateRelativeSize = function() {
  8814. var t3 = this, e4 = 0, i3 = 0;
  8815. Ut(this._childrenByLayout, function(t4) {
  8816. t4.isMeasured && (tt(t4.percentWidth) && (e4 += t4.percentWidth), tt(t4.percentHeight) && (i3 += t4.percentHeight));
  8817. }), Ut(this._childrenByLayout, function(n3) {
  8818. n3.isMeasured && ("horizontal" == t3.layout && (tt(n3.percentWidth) && (n3.relativeWidth = n3.percentWidth / e4), tt(n3.percentHeight) && (n3.relativeHeight = n3.percentHeight / 100)), "vertical" == t3.layout && (tt(n3.percentHeight) && (n3.relativeHeight = n3.percentHeight / i3), tt(n3.percentWidth) && (n3.relativeWidth = n3.percentWidth / 100)), "grid" == t3.layout && (tt(n3.percentHeight) && (n3.relativeHeight = n3.percentHeight / 100), tt(n3.percentWidth) && (n3.relativeWidth = n3.percentWidth / 100))), "absolute" != t3.layout && n3.isMeasured || (tt(n3.percentWidth) && (n3.relativeWidth = n3.percentWidth / 100), tt(n3.percentHeight) && (n3.relativeHeight = n3.percentHeight / 100));
  8819. });
  8820. }, e3.prototype.addChildren = function() {
  8821. if (this.element) {
  8822. var t3 = oe(this.children.values), e4 = t3.map(function(t4, e5) {
  8823. return { idx: e5, data: t4 };
  8824. });
  8825. e4.sort(function(t4, e5) {
  8826. var i4 = t4.data.zIndex || 0, n4 = e5.data.zIndex || 0;
  8827. return i4 < n4 ? -1 : i4 > n4 ? 1 : t4.idx - e5.idx;
  8828. }), t3 = e4.map(function(t4) {
  8829. return t4.data;
  8830. });
  8831. var i3 = this.element, n3 = true;
  8832. if (i3.node && i3.node.childNodes) {
  8833. for (var r3 = 0, s2 = i3.node.childNodes.length; r3 < s2; r3++)
  8834. if (i3.node.childNodes[r3] != t3[r3].group.node) {
  8835. n3 = false;
  8836. break;
  8837. }
  8838. }
  8839. n3 || (Ut(t3, function(t4) {
  8840. t4.group && i3.add(t4.group);
  8841. }), this._background && this.group.addToBack(this._background.group), this.invalidateLayout());
  8842. }
  8843. }, e3.prototype.createChild = function(t3) {
  8844. var e4 = new t3();
  8845. return e4.parent = this, e4;
  8846. }, e3.prototype.removeChildren = function() {
  8847. for (; this.children.length > 0; ) {
  8848. var t3 = this.children.getIndex(0);
  8849. t3.parent = void 0, this.children.removeValue(t3);
  8850. }
  8851. }, e3.prototype.disposeChildren = function() {
  8852. for (; this.children.length > 0; ) {
  8853. var t3 = this.children.getIndex(0);
  8854. t3.dispose(), this.children.removeValue(t3);
  8855. }
  8856. }, Object.defineProperty(e3.prototype, "background", { get: function() {
  8857. return this._background || (this._background = this.createBackground(), this.processBackground()), this._background;
  8858. }, set: function(t3) {
  8859. this._background && this.background != t3 && this.removeDispose(this._background), t3 && (this._background = t3, this._disposers.push(t3), this.processBackground());
  8860. }, enumerable: true, configurable: true }), e3.prototype.handleGlobalScale = function() {
  8861. t2.prototype.handleGlobalScale.call(this), this.children.each(function(t3) {
  8862. t3.handleGlobalScale();
  8863. });
  8864. }, e3.prototype.createBackground = function() {
  8865. return new qa();
  8866. }, e3.prototype.processBackground = function() {
  8867. var t3 = this._background;
  8868. t3 && (t3.isMeasured = false, this._background.fill = new Ys().getFor("background"), t3.parent = this, t3.isMeasured = false, this.children.removeValue(t3), this._disposers.push(t3), this.group.addToBack(this._background.group));
  8869. }, e3.prototype.validateLayout = function() {
  8870. var t3 = this;
  8871. Ii.removeFromInvalidLayouts(this), this.layoutInvalid = false, this._availableWidth = this.innerWidth, this._availableHeight = this.innerHeight;
  8872. var e4 = 0, i3 = 0, n3 = true;
  8873. this.children && (this.sortChildren(), Ut(this._childrenByLayout, function(r3) {
  8874. var s2, a2;
  8875. if (tt(r3.relativeWidth) ? (s2 = lt(t3._availableWidth * r3.relativeWidth, 2), "horizontal" == t3.layout && (s2 -= r3.pixelMarginRight + r3.pixelMarginLeft)) : "horizontal" == t3.layout && r3.invalid && r3.validate(), tt(r3.relativeHeight) ? (a2 = lt(t3._availableHeight * r3.relativeHeight, 2), "vertical" == t3.layout && (a2 -= r3.pixelMarginTop + r3.pixelMarginBottom)) : "vertical" == t3.layout && r3.invalid && r3.validate(), 0 == r3.invalid) {
  8876. if (tt(r3.relativeWidth) && (r3.maxWidth = s2), tt(r3.relativeHeight) && (r3.maxHeight = a2), r3.isMeasured) {
  8877. "horizontal" == t3.layout && (tt(r3.percentWidth) || r3.measuredWidth > 0 && (t3._availableWidth -= r3.measuredWidth + r3.pixelMarginLeft + r3.pixelMarginRight)), "vertical" == t3.layout && (tt(r3.percentHeight) || r3.measuredHeight > 0 && (t3._availableHeight -= r3.measuredHeight + r3.pixelMarginTop + r3.pixelMarginBottom));
  8878. var o3 = r3.measuredWidth, l2 = r3.measuredHeight;
  8879. "none" != r3.align && (o3 += r3.pixelMarginLeft + r3.pixelMarginRight), "none" != r3.valign && (l2 += r3.pixelMarginTop + r3.pixelMarginBottom), e4 = Math.max(e4, o3), i3 = Math.max(i3, l2);
  8880. }
  8881. } else
  8882. r3.isMeasured && (tt(r3.relativeWidth) && r3.maxWidth != s2 && (r3.maxWidth = s2, n3 = false), tt(r3.relativeHeight) && r3.maxHeight != a2 && (r3.maxHeight = a2, n3 = false));
  8883. })), this._absoluteWidth = e4, this._absoluteHeight = i3, n3 && this.arrange();
  8884. }, e3.prototype.arrange = function() {
  8885. var t3, e4, i3, n3, r3, s2, a2, o3, l2, h2, p2, u2 = this, d2 = this.children, c2 = 0, f2 = 0, g2 = gt(this.innerWidth, this._absoluteWidth), y2 = gt(this.innerHeight, this._absoluteHeight), m2 = this.pixelPaddingLeft, v2 = this.pixelPaddingRight, b2 = this.pixelPaddingTop, x2 = this.pixelPaddingBottom, _2 = 0, P2 = 0, w2 = 0, C2 = 0, O2 = [], S2 = [], I2 = this.maxWidth, D2 = this.maxHeight, k2 = this.minWidth, T2 = this.minHeight, V2 = oe(d2.values);
  8886. if (this.reverseOrder && V2.reverse(), "grid" == this.layout) {
  8887. s2 = I2, r3 = 1;
  8888. for (var F2 = 0, M2 = V2.length; F2 < M2; F2++)
  8889. if ((j2 = V2[F2]).isMeasured && !j2.disabled && !j2.__disabled) {
  8890. var L2 = j2.measuredWidth;
  8891. L2 < s2 && (s2 = L2), L2 > r3 && (r3 = L2);
  8892. }
  8893. s2 = ut(s2, 1, I2), r3 = ut(r3, 1, I2), a2 = this.fixedWidthGrid ? I2 / r3 : I2 / s2, a2 = gt(1, Math.floor(a2)), a2 = yt(this.maxColumns, a2), O2 = this.getColumnWidth(V2, a2, r3);
  8894. }
  8895. for (F2 = 0, M2 = V2.length; F2 < M2; F2++) {
  8896. var j2;
  8897. if (!(j2 = V2[F2]).isMeasured || j2.disabled || j2.__disabled)
  8898. j2.validatePosition();
  8899. else {
  8900. var E2 = void 0, R2 = void 0, B2 = j2.pixelMarginLeft, H2 = j2.pixelMarginRight, N2 = j2.pixelMarginTop, W2 = j2.pixelMarginBottom, X2 = j2.measuredWidth, Y2 = j2.measuredHeight, z2 = void 0, U2 = void 0, G2 = void 0, K2 = void 0;
  8901. switch (this.layout) {
  8902. case "none":
  8903. break;
  8904. case "absolute":
  8905. switch (j2.align) {
  8906. case "left":
  8907. E2 = B2 - j2.maxLeft;
  8908. break;
  8909. case "center":
  8910. E2 = (g2 - X2) / 2 - j2.maxLeft;
  8911. break;
  8912. case "right":
  8913. E2 = g2 - H2 - j2.maxRight;
  8914. break;
  8915. default:
  8916. j2.x instanceof A || (E2 = j2.pixelX);
  8917. }
  8918. switch (j2.valign) {
  8919. case "top":
  8920. R2 = N2 - j2.maxTop;
  8921. break;
  8922. case "middle":
  8923. R2 = (y2 - Y2) / 2 - j2.maxTop;
  8924. break;
  8925. case "bottom":
  8926. R2 = y2 - W2 - j2.maxBottom;
  8927. break;
  8928. default:
  8929. j2.y instanceof A || (R2 = j2.pixelY);
  8930. }
  8931. break;
  8932. case "vertical":
  8933. switch (j2.align) {
  8934. case "left":
  8935. E2 = B2 - j2.maxLeft;
  8936. break;
  8937. case "center":
  8938. E2 = (g2 - X2) / 2 - j2.maxLeft;
  8939. break;
  8940. case "right":
  8941. E2 = g2 - H2 - j2.maxRight;
  8942. break;
  8943. default:
  8944. E2 = j2.pixelX;
  8945. }
  8946. P2 = (R2 = P2 + N2 - j2.maxTop) + j2.maxBottom + W2;
  8947. break;
  8948. case "horizontal":
  8949. switch (j2.valign) {
  8950. case "top":
  8951. R2 = N2 - j2.maxTop;
  8952. break;
  8953. case "middle":
  8954. R2 = (y2 - Y2) / 2 - j2.maxTop;
  8955. break;
  8956. case "bottom":
  8957. R2 = y2 - W2 - j2.maxBottom;
  8958. break;
  8959. default:
  8960. R2 = j2.pixelY;
  8961. }
  8962. _2 = (E2 = _2 + B2 - j2.maxLeft) + j2.maxRight + H2;
  8963. break;
  8964. case "grid":
  8965. switch (E2 = _2 + B2 - j2.maxLeft, j2.valign) {
  8966. case "top":
  8967. R2 = P2 + N2 - j2.maxTop;
  8968. break;
  8969. case "middle":
  8970. R2 = P2 + (y2 - Y2) / 2 - j2.maxTop;
  8971. break;
  8972. case "bottom":
  8973. R2 = P2 + y2 - W2 - j2.maxBottom;
  8974. break;
  8975. default:
  8976. R2 = P2 - j2.maxTop;
  8977. }
  8978. _2 += O2[C2], S2[w2] = gt(S2[w2], Y2);
  8979. var Z2 = O2[++C2];
  8980. if (tt(Z2) || (Z2 = r3), _2 > yt(this.innerWidth, I2) - Z2 + 1 && C2 < a2) {
  8981. a2 = C2, _2 = 0, P2 = 0, w2 = 0, C2 = 0, O2 = this.getColumnWidth(V2, a2, r3), S2 = [], F2 = -1;
  8982. continue;
  8983. }
  8984. C2 >= a2 && (C2 = 0, P2 += S2[w2], w2++, _2 = 0);
  8985. }
  8986. "none" !== this.layout && (j2.moveTo({ x: E2, y: R2 }), z2 = E2 + j2.maxLeft - B2, U2 = E2 + j2.maxRight + H2, G2 = R2 + j2.maxTop - N2, K2 = R2 + j2.maxBottom + W2, (U2 > e4 || !tt(e4)) && (e4 = U2), (z2 < t3 || !tt(t3)) && (t3 = z2), (G2 < i3 || !tt(i3)) && (i3 = G2), (K2 > n3 || !tt(n3)) && (n3 = K2), (U2 > l2 || !tt(l2)) && (l2 = U2), (z2 < o3 || !tt(o3)) && (o3 = z2), (G2 < h2 || !tt(h2)) && (h2 = G2), K2 > p2 || tt(p2));
  8987. }
  8988. }
  8989. if ("none" == this.layout) {
  8990. var q2 = this.bbox;
  8991. t3 = q2.x, e4 = q2.x + q2.width, i3 = q2.y, n3 = q2.y + q2.height;
  8992. }
  8993. tt(t3) || (t3 = 0, o3 = 0), tt(e4) || (l2 = e4 = this._availableWidth), tt(i3) || (i3 = 0, h2 = 0), tt(n3) || (p2 = n3 = this._availableHeight), tt(h2) || (h2 = 0), tt(p2) || (p2 = h2), tt(o3) || (o3 = 0), tt(l2) || (l2 = o3), c2 = e4 - t3, f2 = n3 - i3, tt(this.relativeWidth) && (t3 = 0, e4 = c2 = I2 - m2 - v2), tt(this.relativeHeight) && (i3 = 0, n3 = f2 = D2 - b2 - x2), tt(this._pixelWidth) && (t3 = 0, c2 = this._pixelWidth - m2 - v2), tt(k2) && c2 < k2 && (t3 = 0, c2 = this.minWidth - m2 - v2), tt(this._pixelHeight) && (i3 = 0, f2 = this._pixelHeight - b2 - x2), tt(T2) && f2 < T2 && (i3 = 0, f2 = T2 - b2 - x2);
  8994. var $2 = l2 - o3, J2 = p2 - h2;
  8995. if ("none" != this.layout && (this.contentAlign || this.contentValign) && d2.length > 0) {
  8996. var Q2, et2, it2 = c2, nt2 = f2;
  8997. it2 < $2 && (it2 = $2), nt2 < J2 && (nt2 = J2), "center" == this.contentAlign && (Q2 = (it2 - $2) / 2), "right" == this.contentAlign && (Q2 = it2 - $2), "middle" == this.contentValign && (et2 = (nt2 - J2) / 2), "bottom" == this.contentValign && (et2 = nt2 - J2), tt(Q2) && ti(d2.iterator(), function(t4) {
  8998. var e5 = t4.maxLeft, i4 = Q2;
  8999. "horizontal" == u2.layout && (t4.x = t4.pixelX + i4), "grid" == u2.layout && (t4.x = t4.pixelX + i4), "vertical" == u2.layout && (i4 += t4.pixelMarginLeft, "none" == t4.align && (t4.x = i4 - e5)), "absolute" == u2.layout && (i4 += t4.pixelMarginLeft, "none" == t4.align && (t4.x = i4 - e5));
  9000. }), tt(et2) && ti(d2.iterator(), function(t4) {
  9001. var e5 = t4.maxTop, i4 = et2;
  9002. "horizontal" == u2.layout && (i4 += t4.pixelMarginTop, "none" == t4.valign && (t4.y = i4 - e5)), "grid" == u2.layout && (i4 += t4.pixelMarginTop, t4.y = i4 - e5), "vertical" == u2.layout && (t4.y = t4.pixelY + i4), "absolute" == u2.layout && (i4 += t4.pixelMarginTop, "none" == t4.valign && (t4.y = i4 - e5));
  9003. });
  9004. }
  9005. var rt2 = this.bbox;
  9006. c2 = gt(c2, k2), f2 = gt(f2, T2), this.contentWidth = c2, this.contentHeight = f2, c2 = yt(c2, I2), f2 = yt(f2, D2), this._bbox = { x: t3, y: i3, width: c2, height: f2 };
  9007. var st2 = this.maxLeft, at2 = this.maxTop, ot2 = this.maxBottom, lt2 = this.maxRight;
  9008. if (this.measure(), (st2 != this.maxLeft || lt2 != this.maxRight || at2 != this.maxTop || ot2 != this.maxBottom) && this.events.isEnabled("transformed")) {
  9009. var ht2 = { type: "transformed", target: this };
  9010. rt2 && (ht2.dummyData = rt2.width + " " + c2 + " " + rt2.height + " " + f2), this.events.dispatchImmediately("transformed", ht2);
  9011. }
  9012. this.dispatchImmediately("layoutvalidated");
  9013. }, e3.prototype.updateCenter = function() {
  9014. t2.prototype.updateCenter.call(this), this.updateBackground();
  9015. }, e3.prototype.updateBackground = function() {
  9016. var t3 = this._background;
  9017. t3 && (t3.x = this.maxLeft, t3.y = this.maxTop, t3.width = this.maxRight - this.maxLeft, t3.height = this.maxBottom - this.maxTop);
  9018. }, e3.prototype.getColumnWidth = function(t3, e4, i3) {
  9019. var n3 = this, r3 = [], s2 = 0;
  9020. return Ut(t3, function(t4) {
  9021. !t4.isMeasured || t4.disabled || t4.__disabled || (n3.fixedWidthGrid ? r3[s2] = i3 : r3[s2] = gt(r3[s2], t4.measuredWidth + t4.pixelMarginRight + t4.pixelMarginLeft), ++s2 == e4 && (s2 = 0));
  9022. }), r3;
  9023. }, Object.defineProperty(e3.prototype, "layout", { get: function() {
  9024. return this.getPropertyValue("layout");
  9025. }, set: function(t3) {
  9026. this.setPropertyValue("layout", t3) && this.invalidateLayout();
  9027. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "contentValign", { get: function() {
  9028. return this.getPropertyValue("contentValign");
  9029. }, set: function(t3) {
  9030. this.setPropertyValue("contentValign", t3, true);
  9031. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "contentAlign", { get: function() {
  9032. return this.getPropertyValue("contentAlign");
  9033. }, set: function(t3) {
  9034. this.setPropertyValue("contentAlign", t3, true);
  9035. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fixedWidthGrid", { get: function() {
  9036. return this.getPropertyValue("fixedWidthGrid");
  9037. }, set: function(t3) {
  9038. this.setPropertyValue("fixedWidthGrid", t3, true);
  9039. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxColumns", { get: function() {
  9040. return this.getPropertyValue("maxColumns");
  9041. }, set: function(t3) {
  9042. this.setPropertyValue("maxColumns", t3, true);
  9043. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "reverseOrder", { get: function() {
  9044. return this.getPropertyValue("reverseOrder");
  9045. }, set: function(t3) {
  9046. this.setPropertyValue("reverseOrder", t3, true);
  9047. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "setStateOnChildren", { get: function() {
  9048. return this.getPropertyValue("setStateOnChildren");
  9049. }, set: function(t3) {
  9050. this.setPropertyValue("setStateOnChildren", t3, true);
  9051. }, enumerable: true, configurable: true }), e3.prototype.fitsToBounds = function(t3) {
  9052. var e4 = t3.x, i3 = t3.y;
  9053. return e4 >= -0.5 && e4 <= this.pixelWidth + 0.5 && i3 >= -0.5 && i3 <= this.pixelHeight + 0.5;
  9054. }, e3.prototype.copyFrom = function(e4) {
  9055. var i3 = this;
  9056. t2.prototype.copyFrom.call(this, e4), this.layout = e4.layout, this.setStateOnChildren = e4.setStateOnChildren, e4._background && (this.background = e4._background.clone(), this.background.copyFrom(e4._background)), ti(e4.children.iterator(), function(t3) {
  9057. t3.shouldClone && (t3.clone().parent = i3);
  9058. });
  9059. }, Object.defineProperty(e3.prototype, "preloader", { get: function() {
  9060. return this._preloader || (this.parent ? this.parent.preloader : void 0);
  9061. }, set: function(t3) {
  9062. this._preloader && this.removeDispose(this._preloader), this._preloader = t3, t3 && (t3.parent = this.tooltipContainer, this._disposers.push(t3));
  9063. }, enumerable: true, configurable: true }), e3.prototype.setPaper = function(e4) {
  9064. var i3 = this, n3 = t2.prototype.setPaper.call(this, e4);
  9065. return n3 && (this._background && (this._background.paper = e4, this._background.topParent = this.topParent), this.children.each(function(t3) {
  9066. t3.setPaper(e4), t3.topParent = i3.topParent;
  9067. })), n3;
  9068. }, e3.prototype.removeFromInvalids = function() {
  9069. t2.prototype.removeFromInvalids.call(this), Ii.removeFromInvalidLayouts(this);
  9070. }, e3.prototype.setDataItem = function(e4) {
  9071. this._dataItem != e4 && (ti(this.children.iterator(), function(t3) {
  9072. t3.dataItem = e4;
  9073. }), this._background && (this._background.dataItem = e4)), t2.prototype.setDataItem.call(this, e4);
  9074. }, e3.prototype.measureElement = function() {
  9075. this.disabled || this.isTemplate || "none" == this.layout || this.__disabled || this.validateLayout();
  9076. }, Object.defineProperty(e3.prototype, "fontFamily", { get: function() {
  9077. return this.getPropertyValue("fontFamily");
  9078. }, set: function(t3) {
  9079. this.setPropertyValue("fontFamily", t3, true) && (this.setSVGAttribute({ "font-family": t3 }), this.invalidateLabels());
  9080. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fontSize", { get: function() {
  9081. return this.getPropertyValue("fontSize");
  9082. }, set: function(t3) {
  9083. this.setPropertyValue("fontSize", t3, true) && (this.setSVGAttribute({ "font-size": t3 }), this.invalidateLabels());
  9084. }, enumerable: true, configurable: true }), e3.prototype.invalidateLabels = function() {
  9085. this.children.each(function(t3) {
  9086. t3.hardInvalidate ? (t3.hardInvalidate(), t3.events.once("validated", t3.handleValidate, t3, false)) : t3 instanceof e3 && t3.invalidateLabels();
  9087. });
  9088. }, Object.defineProperty(e3.prototype, "fontWeight", { get: function() {
  9089. return this.getPropertyValue("fontWeight");
  9090. }, set: function(t3) {
  9091. this.setPropertyValue("fontWeight", t3), this.setSVGAttribute({ "font-weight": t3 });
  9092. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "textDecoration", { get: function() {
  9093. return this.getPropertyValue("textDecoration");
  9094. }, set: function(t3) {
  9095. this.setPropertyValue("textDecoration", t3), this.setSVGAttribute({ "text-decoration": t3 });
  9096. }, enumerable: true, configurable: true }), e3.prototype.dispose = function() {
  9097. this._background && this._background.dispose(), this._shouldBeReady = [], this.disposeChildren(), t2.prototype.dispose.call(this);
  9098. }, e3.prototype.setState = function(e4, i3, n3) {
  9099. var r3 = e4;
  9100. return e4 instanceof ss && (r3 = e4.name), this.setStateOnChildren && ti(this.children.iterator(), function(t3) {
  9101. t3.setState(r3, i3, n3), "active" != r3 && (t3.isActive = false);
  9102. }), this._background && this._background.setState(r3), this.setStateOnSprites.length && Ut(this.setStateOnSprites, function(t3) {
  9103. t3.setState(r3, i3, n3);
  9104. }), t2.prototype.setState.call(this, e4, i3, n3);
  9105. }, e3.prototype.setActive = function(e4) {
  9106. t2.prototype.setActive.call(this, e4), this._background && (this._background.isActive = e4);
  9107. }, e3.prototype.dispatchReady = function() {
  9108. var e4 = this;
  9109. if (!this.isReady() && !this.isDisposed()) {
  9110. var i3 = true;
  9111. Qe(this.children.iterator(), function(t3) {
  9112. return !!(t3.__disabled || t3.disabled || t3.isReady()) || (i3 = false, false);
  9113. }), Kt(this._shouldBeReady, function(t3) {
  9114. return !!(t3.__disabled || t3.disabled || t3.isReady()) || (i3 = false, false);
  9115. }), i3 ? t2.prototype.dispatchReady.call(this) : Ii.events.once("exitframe", function() {
  9116. e4.dispatchReady(), Qa.requestFrame();
  9117. }, void 0, false);
  9118. }
  9119. }, e3.prototype._systemUpdate = function(e4) {
  9120. this.children.each(function(t3) {
  9121. t3.invalid && (t3._systemCheckIfValidate() ? t3.dataItem && t3.dataItem.component && t3.dataItem.component.dataInvalid ? e4.push(t3) : t3.validate() : e4.push(t3));
  9122. }), t2.prototype._systemUpdate.call(this, e4);
  9123. }, e3.prototype._systemValidatePositions = function() {
  9124. this.children.each(function(t3) {
  9125. t3.positionInvalid && t3.validatePosition();
  9126. }), t2.prototype._systemValidatePositions.call(this);
  9127. }, e3.prototype._systemValidateLayouts = function() {
  9128. this.layoutInvalid && !this.isDisposed() && this.validateLayout();
  9129. }, Object.defineProperty(e3.prototype, "tapToActivate", { get: function() {
  9130. return this._tapToActivate;
  9131. }, set: function(t3) {
  9132. this._tapToActivate != t3 && this.setTapToActivate(t3);
  9133. }, enumerable: true, configurable: true }), e3.prototype.setTapToActivate = function(t3) {
  9134. var e4 = this;
  9135. this._tapToActivate = t3, this.interactions.isTouchProtected = t3, t3 && this.interactions.setEventDisposer("container-tapToActivate", t3, function() {
  9136. return new me([e4.events.on("hit", e4.handleTapToActivate, e4, false), e4.events.on("down", e4.initTapTimeout, e4, false), e4.events.on("track", e4.initTapTimeout, e4, false), ua().body.events.on("down", function(t4) {
  9137. ua().isLocalElement(t4.pointer, e4.paper.svg, e4.uid) || e4.handleTapToActivateDeactivation();
  9138. }, e4, false)]);
  9139. }), ua();
  9140. }, e3.prototype.handleTapToActivate = function() {
  9141. this.interactions.isTouchProtected = false, this.initTapTimeout();
  9142. }, e3.prototype.handleTapToActivateDeactivation = function() {
  9143. this.interactions.isTouchProtected = true;
  9144. }, e3.prototype.initTapTimeout = function() {
  9145. var t3 = this;
  9146. this._tapToActivateTimeout && this._tapToActivateTimeout.dispose(), this.tapToActivate && !this.interactions.isTouchProtected && this.tapTimeout && (this._tapToActivateTimeout = this.setTimeout(function() {
  9147. t3.handleTapToActivateDeactivation();
  9148. }, this.tapTimeout));
  9149. }, e3.prototype.moveHtmlContainer = function(t3) {
  9150. var e4 = _s(t3);
  9151. if (e4) {
  9152. this.htmlContainer = e4;
  9153. var i3 = this.svgContainer;
  9154. i3.htmlElement = e4, i3.htmlElement.appendChild(i3.SVGContainer), i3.initSensor(), i3.measure();
  9155. } else
  9156. Q(t3) && "" != t3 && Qa.log("html container '" + t3 + "' not found");
  9157. }, e3.prototype.hasLicense = function() {
  9158. if (ls.commercialLicense)
  9159. return true;
  9160. for (var t3 = 0; t3 < ls.licenses.length; t3++)
  9161. if (ls.licenses[t3].match(/^CH.{5,}/i))
  9162. return true;
  9163. return false;
  9164. }, e3;
  9165. }(Za);
  9166. Ii.registeredClasses.Container = $a;
  9167. var Ja = function() {
  9168. function t2() {
  9169. this._isPaused = false, this.animations = [], this.uid = Ii.getUniqueId(), this.dummyCounter = 0, this._frameRequested = false, this.updateStepDuration = 45, this.time = Date.now();
  9170. }
  9171. return t2.prototype.reportTime = function(t3, e3) {
  9172. this.dummyCounter, e3 && (this.time = Date.now());
  9173. }, t2.prototype.update = function() {
  9174. var t3 = this;
  9175. if (!this._isPaused) {
  9176. this._frameRequested = false;
  9177. var e3 = Date.now();
  9178. for (var i3 in Ii.dispatchImmediately("enterframe"), Ii.invalidDatas)
  9179. if (Re(Ii.invalidDatas, i3)) {
  9180. for (var n3 = Ii.invalidDatas[i3]; n3.length > 0; ) {
  9181. var r3 = (s2 = n3[0]).dataProvider;
  9182. if (s2.isDisposed())
  9183. ee(n3, s2);
  9184. else if (r3 && r3.dataInvalid)
  9185. try {
  9186. if (r3.validateData(), r3.dataValidationProgress < 1)
  9187. break;
  9188. } catch (t4) {
  9189. ee(n3, r3), r3.raiseCriticalError(t4);
  9190. }
  9191. else
  9192. try {
  9193. if (s2.validateData(), s2.dataValidationProgress < 1)
  9194. break;
  9195. } catch (t4) {
  9196. ee(n3, s2), s2.raiseCriticalError(t4);
  9197. }
  9198. }
  9199. if (Date.now() - e3 > this.updateStepDuration)
  9200. break;
  9201. }
  9202. for (; Ii.invalidRawDatas.length > 0; )
  9203. if ((s2 = Ii.invalidRawDatas[0]).isDisposed())
  9204. ee(Ii.invalidRawDatas, s2);
  9205. else
  9206. try {
  9207. s2.validateRawData();
  9208. } catch (t4) {
  9209. ee(Ii.invalidRawDatas, s2), s2.raiseCriticalError(t4);
  9210. }
  9211. for (; Ii.invalidDataItems.length > 0; ) {
  9212. if (r3 = (s2 = Ii.invalidDataItems[0]).dataProvider, s2.isDisposed() || s2.dataInvalid || r3 && r3.dataInvalid)
  9213. ;
  9214. else
  9215. try {
  9216. s2.validateDataItems();
  9217. } catch (t4) {
  9218. ee(Ii.invalidDataItems, s2), s2.raiseCriticalError(t4);
  9219. }
  9220. ee(Ii.invalidDataItems, s2);
  9221. }
  9222. for (; Ii.invalidDataRange.length > 0; ) {
  9223. var s2;
  9224. if (r3 = (s2 = Ii.invalidDataRange[0]).dataProvider, s2.isDisposed() || s2.dataInvalid || r3 && r3.dataInvalid)
  9225. ;
  9226. else
  9227. try {
  9228. s2.validateDataRange(), s2.skipRangeEvent || s2.dispatchImmediately("datarangechanged"), s2.skipRangeEvent = false;
  9229. } catch (t4) {
  9230. ee(Ii.invalidDataRange, s2), s2.raiseCriticalError(t4);
  9231. }
  9232. ee(Ii.invalidDataRange, s2);
  9233. }
  9234. var a2 = [];
  9235. Ne(Ii.invalidLayouts, function(e4) {
  9236. t3.validateLayouts(e4);
  9237. }), Ne(Ii.invalidPositions, function(e4) {
  9238. t3.validatePositions(e4);
  9239. });
  9240. var o3 = false;
  9241. if (e3 = Date.now(), Ne(Ii.invalidSprites, function(i4, n4) {
  9242. for (var r4 = 0; n4.length > 0; ) {
  9243. if (t3.validateLayouts(i4), t3.validatePositions(i4), 5 == ++r4) {
  9244. if (Date.now() - e3 > t3.updateStepDuration)
  9245. break;
  9246. r4 = 0;
  9247. }
  9248. var s3 = n4[n4.length - 1];
  9249. if (s3 && !s3.isDisposed()) {
  9250. if (s3._systemCheckIfValidate())
  9251. if (t3.checkIfValidate2(s3))
  9252. try {
  9253. s3._systemUpdate(a2);
  9254. } catch (t4) {
  9255. s3.invalid = false, ee(n4, s3), s3.raiseCriticalError(t4);
  9256. }
  9257. else
  9258. a2.push(s3);
  9259. else
  9260. a2.push(s3);
  9261. s3.invalid = false;
  9262. }
  9263. ee(n4, s3);
  9264. }
  9265. Ii.invalidSprites[i4] = Ii.invalidSprites[i4].concat(a2);
  9266. }), Ne(Ii.invalidSprites, function(t4, e4) {
  9267. e4.length > 0 && (o3 = true);
  9268. }), Ne(Ii.invalidDatas, function(t4, e4) {
  9269. e4.length > 0 && (o3 = true);
  9270. }), Ut(oe(this.animations), function(t4) {
  9271. t4.update();
  9272. }), Ne(Ii.invalidLayouts, function(e4) {
  9273. t3.validateLayouts(e4);
  9274. }), Ne(Ii.invalidPositions, function(e4) {
  9275. t3.validatePositions(e4);
  9276. }), Ve(), Ne(Ii.invalidLayouts, function(e4) {
  9277. t3.validateLayouts(e4);
  9278. }), Ne(Ii.invalidPositions, function(e4) {
  9279. t3.validatePositions(e4);
  9280. }), Ii.dispatchImmediately("exitframe"), (o3 || this.animations.length > 0 || [].length > 0) && this.requestFrame(), this.updateStepDuration < 200) {
  9281. var l2 = true;
  9282. Ne(Ii.invalidDatas, function(t4, e4) {
  9283. e4.length > 0 && (l2 = false);
  9284. }), Ne(Ii.invalidSprites, function(t4, e4) {
  9285. e4.length > 0 && (l2 = false);
  9286. }), l2 && (this.updateStepDuration = 200);
  9287. }
  9288. }
  9289. }, t2.prototype.checkIfValidate2 = function(t3) {
  9290. return !(t3.dataItem && t3.dataItem.component && t3.dataItem.component.dataInvalid && !t3.dataItem.component.isTemplate);
  9291. }, t2.prototype.requestFrame = function() {
  9292. var t3 = this;
  9293. this._frameRequested || (Oe(function() {
  9294. t3.update();
  9295. }), this._frameRequested = true);
  9296. }, t2.prototype.softInvalidate = function(t3) {
  9297. var e3 = this;
  9298. t3.children.each(function(t4) {
  9299. t4 instanceof $a && e3.softInvalidate(t4), t4.measureFailed && (Di(t4, "Label") ? t4.hardInvalidate() : t4.invalidate(), t4.measureFailed = false);
  9300. });
  9301. }, t2.prototype.validatePositions = function(t3) {
  9302. for (var e3 = Ii.invalidPositions[t3]; e3.length > 0; ) {
  9303. var i3 = e3[e3.length - 1];
  9304. if (i3.isDisposed())
  9305. ee(e3, i3);
  9306. else
  9307. try {
  9308. i3._systemValidatePositions();
  9309. } catch (t4) {
  9310. i3.positionInvalid = false, ee(e3, i3), i3.raiseCriticalError(t4);
  9311. }
  9312. }
  9313. }, t2.prototype.validateLayouts = function(t3) {
  9314. for (var e3 = Ii.invalidLayouts[t3]; e3.length > 0; ) {
  9315. var i3 = e3[e3.length - 1];
  9316. if (i3.isDisposed())
  9317. ee(e3, i3);
  9318. else
  9319. try {
  9320. i3.children.each(function(t4) {
  9321. t4._systemValidateLayouts();
  9322. }), i3.validateLayout();
  9323. } catch (t4) {
  9324. i3.layoutInvalid = false, ee(e3, i3), i3.raiseCriticalError(t4);
  9325. }
  9326. }
  9327. }, t2.prototype.log = function(t3) {
  9328. !function() {
  9329. for (var t4 = [], e3 = 0; e3 < arguments.length; e3++)
  9330. t4[e3] = arguments[e3];
  9331. ls.verbose && console && console.log.apply(console, T(t4));
  9332. }(t3);
  9333. }, Object.defineProperty(t2.prototype, "isPaused", { get: function() {
  9334. return this._isPaused;
  9335. }, set: function(t3) {
  9336. this._isPaused = t3, t3 || (this._frameRequested = false, this.requestFrame());
  9337. }, enumerable: true, configurable: true }), t2.VERSION = "4.10.28", t2;
  9338. }(), Qa = new Ja(), to = function() {
  9339. function t2() {
  9340. }
  9341. return t2.prototype.parse = function(t3) {
  9342. return [];
  9343. }, Object.defineProperty(t2.prototype, "parsableNumbers", { get: function() {
  9344. return this.options.numberFields && this.options.numberFields.length > 0;
  9345. }, enumerable: true, configurable: true }), t2.prototype.maybeToNumber = function(t3, e3) {
  9346. return -1 !== this.options.numberFields.indexOf(t3) ? tr(e3) : e3;
  9347. }, Object.defineProperty(t2.prototype, "parsableDates", { get: function() {
  9348. return this.options.dateFields && this.options.dateFields.length > 0;
  9349. }, enumerable: true, configurable: true }), t2.prototype.maybeToDate = function(t3, e3) {
  9350. return -1 !== this.options.dateFields.indexOf(t3) ? this.options.dateFormatter.parse(e3, this.dateFormat) : e3;
  9351. }, t2.prototype.maybeToEmpty = function(t3) {
  9352. return Z(t3) && "" != t3 || !Z(this.options.emptyAs) ? t3 : this.options.emptyAs;
  9353. }, Object.defineProperty(t2.prototype, "dateFormatter", { get: function() {
  9354. return this.options.dateFormatter || (this.options.dateFormatter = new Ma(), this.options.dateFormat && (this.options.dateFormat = this.options.dateFormat)), this.options.dateFormatter;
  9355. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "dateFormat", { get: function() {
  9356. return this.options.dateFormat || this.dateFormatter.inputDateFormat;
  9357. }, enumerable: true, configurable: true }), t2;
  9358. }(), eo = [",", ";", " "], io = function(t2) {
  9359. function e3() {
  9360. var e4 = null !== t2 && t2.apply(this, arguments) || this;
  9361. return e4.contentType = "text/csv", e4.options = { delimiter: "", reverse: false, skipRows: 0, skipEmpty: true, useColumnNames: false }, e4;
  9362. }
  9363. return C(e3, t2), e3.isCSV = function(t3) {
  9364. return !!e3.getDelimiterFromData(t3);
  9365. }, e3.getDelimiterFromData = function(t3) {
  9366. var e4, i3 = t3.split("\n"), n3 = i3.length;
  9367. return Ut(eo, function(t4) {
  9368. for (var r3 = 0, s2 = 0, a2 = 0; a2 < n3; ++a2) {
  9369. if (!((r3 = i3[a2].split(t4).length) > 1)) {
  9370. s2 = 0;
  9371. break;
  9372. }
  9373. if (0 === s2)
  9374. s2 = r3;
  9375. else if (r3 != s2) {
  9376. s2 = 0;
  9377. break;
  9378. }
  9379. }
  9380. s2 && (e4 = t4);
  9381. }), e4;
  9382. }, e3.prototype.parse = function(t3) {
  9383. this.options.delimiter || (this.options.delimiter = e3.getDelimiterFromData(t3));
  9384. var i3, n3, r3, s2 = this.CSVToArray(t3, this.options.delimiter), a2 = Z(this.options.emptyAs), o3 = this.parsableNumbers, l2 = this.parsableDates, h2 = [], p2 = [];
  9385. for (n3 = 0; n3 < this.options.skipRows; n3++)
  9386. s2.shift();
  9387. if (this.options.useColumnNames) {
  9388. p2 = s2.shift();
  9389. for (var u2 = 0; u2 < p2.length; u2++)
  9390. "" === (i3 = Z(p2[u2]) ? p2[u2].replace(/^\s+|\s+$/gm, "") : "") && (i3 = "col" + u2), p2[u2] = i3;
  9391. }
  9392. for (; r3 = this.options.reverse ? s2.pop() : s2.shift(); )
  9393. if (!this.options.skipEmpty || 1 !== r3.length || "" !== r3[0]) {
  9394. var d2 = {};
  9395. for (n3 = 0; n3 < r3.length; n3++)
  9396. d2[i3 = void 0 === p2[n3] ? "col" + n3 : p2[n3]] = "" === r3[n3] ? this.options.emptyAs : r3[n3], a2 && (d2[i3] = this.maybeToEmpty(d2[i3])), o3 && (d2[i3] = this.maybeToNumber(i3, d2[i3])), l2 && (d2[i3] = this.maybeToDate(i3, d2[i3]));
  9397. h2.push(d2);
  9398. }
  9399. return h2;
  9400. }, e3.prototype.CSVToArray = function(t3, e4) {
  9401. e4 = e4 || ",";
  9402. for (var i3 = new RegExp("(\\" + e4 + '|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\' + e4 + "\\r\\n]*))", "gi"), n3 = [[]], r3 = null; r3 = i3.exec(t3); ) {
  9403. var s2, a2 = r3[1];
  9404. a2.length && a2 !== e4 && n3.push([]), s2 = r3[2] ? r3[2].replace(new RegExp('""', "g"), '"') : r3[3], n3[n3.length - 1].push(s2);
  9405. }
  9406. return n3;
  9407. }, e3;
  9408. }(to), no = function(t2) {
  9409. function e3() {
  9410. var e4 = null !== t2 && t2.apply(this, arguments) || this;
  9411. return e4.contentType = "application/json", e4.options = {}, e4;
  9412. }
  9413. return C(e3, t2), e3.isJSON = function(t3) {
  9414. try {
  9415. return JSON.parse(t3), true;
  9416. } catch (t4) {
  9417. return false;
  9418. }
  9419. }, e3.prototype.parse = function(t3) {
  9420. var e4, i3 = this;
  9421. try {
  9422. Z(JSON) && (e4 = JSON.parse(t3));
  9423. } catch (t4) {
  9424. return;
  9425. }
  9426. var n3 = Z(this.options.emptyAs), r3 = this.parsableNumbers, s2 = this.parsableDates;
  9427. if (Array.isArray(e4) && (r3 || s2 || n3))
  9428. for (var a2 = function(t4, a3) {
  9429. var o4 = e4[t4];
  9430. Ne(o4, function(t5, e5) {
  9431. n3 && (o4[t5] = i3.maybeToEmpty(o4[t5])), r3 && (o4[t5] = i3.maybeToNumber(t5, o4[t5])), s2 && (o4[t5] = i3.maybeToDate(t5, o4[t5]));
  9432. });
  9433. }, o3 = 0, l2 = e4.length; o3 < l2; o3++)
  9434. a2(o3);
  9435. return e4;
  9436. }, e3;
  9437. }(to), ro = function() {
  9438. function t2() {
  9439. this.adapter = new Yi(this);
  9440. }
  9441. return t2.prototype.load = function(t3) {
  9442. var e3 = zt(Array.isArray(t3) ? t3 : [t3], function(t4) {
  9443. return t4.dispatchImmediately("started"), t4.dispatchImmediately("loadstarted"), Ha(t4.url, t4, t4.requestOptions);
  9444. });
  9445. Promise.all(e3).then(function(t4) {
  9446. Ut(t4, function(t5) {
  9447. var e4 = t5.target;
  9448. e4.dispatchImmediately("loadended"), t5.error ? e4.events.isEnabled("error") && e4.events.dispatchImmediately("error", { type: "error", code: t5.xhr.status, message: e4.language.translate("Unable to load file: %1", null, e4.url), target: e4 }) : e4.processData(t5.response, t5.type), e4.dispatchImmediately("ended");
  9449. });
  9450. }).catch(function(t4) {
  9451. t4.target && (t4.target.dispatchImmediately("loadended"), t4.target.events.isEnabled("error") && t4.target.events.dispatchImmediately("error", { type: "error", code: t4.xhr.status, message: t4.target.language.translate("Unable to load file: %1", null, t4.target.url), target: t4.target }), t4.target.dispatchImmediately("ended"));
  9452. });
  9453. }, t2.prototype.getParserByType = function(t3) {
  9454. return this.adapter.apply("getParserByType", { parser: null, type: t3 }).parser || ("csv" == t3 || "text/csv" == t3 || "application/vnd.ms-excel" == t3 ? new io() : "json" == t3 || "application/json" == t3 ? new no() : void 0);
  9455. }, t2.prototype.getParserByData = function(t3, e3) {
  9456. var i3 = this.adapter.apply("getParserByData", { parser: null, data: t3, type: e3 }).parser;
  9457. if (!i3) {
  9458. if (i3 = this.getParserByType(e3))
  9459. return i3;
  9460. if (no.isJSON(t3))
  9461. return this.getParserByType("json");
  9462. if (io.isCSV(t3))
  9463. return this.getParserByType("csv");
  9464. }
  9465. return i3;
  9466. }, t2;
  9467. }(), so = new ro(), ao = function(t2) {
  9468. function e3(e4, i3) {
  9469. var n3 = t2.call(this) || this;
  9470. return n3.adapter = new Yi(n3), n3._requestOptions = {}, n3._incremental = false, n3._incrementalParams = {}, n3._keepCount = false, n3._updateCurrentData = false, n3.showPreloader = true, n3.className = "DataSource", e4 && (n3.url = e4), i3 && (n3.parser = "string" == typeof i3 ? so.getParserByType(i3) : i3), n3;
  9471. }
  9472. return C(e3, t2), e3.prototype.processData = function(t3, e4) {
  9473. if (this.dispatchImmediately("parsestarted"), this.parser || (this.parser = so.getParserByData(t3, e4), this.parser)) {
  9474. if (this.parser.options = this.adapter.apply("parserOptions", this.parser.options), this.parser.options.dateFields = this.adapter.apply("dateFields", this.parser.options.dateFields || []), this.parser.options.numberFields = this.adapter.apply("numberFields", this.parser.options.numberFields || []), this.parser.options.dateFields && !this.parser.options.dateFormatter && (this.parser.options.dateFormatter = this.dateFormatter), this.data = this.adapter.apply("parsedData", this.parser.parse(this.adapter.apply("unparsedData", t3))), !Z(this.data) && this.events.isEnabled("parseerror")) {
  9475. var i3 = { type: "parseerror", message: this.language.translate("Error parsing file: %1", null, this.url), target: this };
  9476. this.events.dispatchImmediately("parseerror", i3);
  9477. }
  9478. this.dispatchImmediately("parseended"), Z(this.data) && this.dispatchImmediately("done", { data: this.data }), this.lastLoad = new Date();
  9479. } else {
  9480. if (this.events.isEnabled("parseerror")) {
  9481. var n3 = { type: "parseerror", message: this.language.translate("No parser available for file: %1", null, this.url), target: this };
  9482. this.events.dispatchImmediately("parseerror", n3);
  9483. }
  9484. this.dispatchImmediately("parseended");
  9485. }
  9486. }, Object.defineProperty(e3.prototype, "url", { get: function() {
  9487. var t3 = this.disableCache ? this.timestampUrl(this._url) : this._url;
  9488. return this.incremental && this.component.data.length && (t3 = this.addUrlParams(t3, this.incrementalParams)), this.adapter.apply("url", t3);
  9489. }, set: function(t3) {
  9490. this._url = t3;
  9491. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "requestOptions", { get: function() {
  9492. return this.adapter.apply("requestOptions", this._requestOptions);
  9493. }, set: function(t3) {
  9494. this._requestOptions = t3;
  9495. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "parser", { get: function() {
  9496. return this._parser || (this._parser = new no()), this.adapter.apply("parser", this._parser);
  9497. }, set: function(t3) {
  9498. this._parser = t3;
  9499. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "reloadFrequency", { get: function() {
  9500. return this.adapter.apply("reloadTimeout", this._reloadFrequency);
  9501. }, set: function(t3) {
  9502. var e4 = this;
  9503. this._reloadFrequency != t3 && (this._reloadFrequency = t3, t3 ? Z(this._reloadDisposer) || (this._reloadDisposer = this.events.on("ended", function(t4) {
  9504. e4._reloadTimeout = setTimeout(function() {
  9505. e4.load();
  9506. }, e4.reloadFrequency);
  9507. })) : Z(this._reloadDisposer) && (this._reloadDisposer.dispose(), this._reloadDisposer = void 0));
  9508. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "incremental", { get: function() {
  9509. return this.adapter.apply("incremental", this._incremental);
  9510. }, set: function(t3) {
  9511. this._incremental = t3;
  9512. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "incrementalParams", { get: function() {
  9513. return this.adapter.apply("incrementalParams", this._incrementalParams);
  9514. }, set: function(t3) {
  9515. this._incrementalParams = t3;
  9516. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keepCount", { get: function() {
  9517. return this.adapter.apply("keepCount", this._keepCount);
  9518. }, set: function(t3) {
  9519. this._keepCount = t3;
  9520. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "updateCurrentData", { get: function() {
  9521. return this.adapter.apply("updateCurrentData", this._updateCurrentData);
  9522. }, set: function(t3) {
  9523. this._updateCurrentData = t3;
  9524. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "language", { get: function() {
  9525. return this._language ? this._language : this.component ? (this._language = this.component.language, this._language) : (this.language = new Ta(), this.language);
  9526. }, set: function(t3) {
  9527. this._language = t3;
  9528. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateFormatter", { get: function() {
  9529. return this._dateFormatter ? this._dateFormatter : this.component ? (this._dateFormatter = this.component.dateFormatter, this._dateFormatter) : (this.dateFormatter = new Ma(), this.dateFormatter);
  9530. }, set: function(t3) {
  9531. this._dateFormatter = t3;
  9532. }, enumerable: true, configurable: true }), e3.prototype.timestampUrl = function(t3) {
  9533. var e4 = {};
  9534. return e4[new Date().getTime().toString()] = "", this.addUrlParams(t3, e4);
  9535. }, e3.prototype.dispose = function() {
  9536. t2.prototype.dispose.call(this), this._reloadTimeout && clearTimeout(this._reloadTimeout), Z(this._reloadDisposer) && (this._reloadDisposer.dispose(), this._reloadDisposer = void 0);
  9537. }, e3.prototype.load = function() {
  9538. this.url && (this._reloadTimeout && clearTimeout(this._reloadTimeout), so.load(this));
  9539. }, e3.prototype.addUrlParams = function(t3, e4) {
  9540. var i3 = t3.match(/\?/) ? "&" : "?", n3 = [];
  9541. return Ne(e4, function(t4, e5) {
  9542. "" != e5 ? n3.push(t4 + "=" + encodeURIComponent(e5)) : n3.push(t4);
  9543. }), n3.length ? t3 + i3 + n3.join("&") : t3;
  9544. }, e3.prototype.processConfig = function(e4) {
  9545. Ii.registeredClasses.json = no, Ii.registeredClasses.JSONParser = no, Ii.registeredClasses.csv = io, Ii.registeredClasses.CSVParser = io, t2.prototype.processConfig.call(this, e4);
  9546. }, e3;
  9547. }(mn), oo = function(t2) {
  9548. function e3() {
  9549. var e4 = t2.call(this) || this;
  9550. return e4._rules = new Fi(), e4._appliedRules = {}, e4._appliedTargets = [], e4._useDefault = true, e4.adapter = new Yi(e4), e4._enabled = false, e4._responsiveDisposers = [], e4._noStates = [], e4.className = "Responsive", e4.rules.events.on("inserted", function() {
  9551. e4.checkRules();
  9552. }, true), e4.rules.events.on("removed", function() {
  9553. e4.checkRules();
  9554. }, true), e4._disposers.push(e4.rules.events), e4.applyTheme(), e4;
  9555. }
  9556. return C(e3, t2), Object.defineProperty(e3.prototype, "component", { get: function() {
  9557. return this._component;
  9558. }, set: function(t3) {
  9559. var e4 = this;
  9560. t3 != this._component && (this.disposeResponsiveHandlers(), this._component = t3, this._responsiveDisposers.push(q(this.component).events.on("sizechanged", function() {
  9561. e4.checkRules();
  9562. }, this)), this._responsiveDisposers.push(q(this.component).events.once("datavalidated", function() {
  9563. e4._component.isReady() && e4.checkRules(true);
  9564. }, this)), this.enabled = true);
  9565. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "enabled", { get: function() {
  9566. return this.adapter.apply("enabled", this._enabled);
  9567. }, set: function(t3) {
  9568. this._enabled != t3 && (this._enabled = t3, this.applyRules());
  9569. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "useDefault", { get: function() {
  9570. return this.adapter.apply("useDefault", this._useDefault);
  9571. }, set: function(t3) {
  9572. this._useDefault != t3 && (this._useDefault = t3, this.applyRules());
  9573. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rules", { get: function() {
  9574. return this.adapter.apply("rules", this._rules);
  9575. }, set: function(t3) {
  9576. this._rules = t3, this._enabled = true, this.applyRules();
  9577. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "defaultRules", { get: function() {
  9578. return this.adapter.apply("defaultRules", lo);
  9579. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "allRules", { get: function() {
  9580. var t3 = new Fi();
  9581. return this.useDefault && t3.copyFrom(this.defaultRules), t3.copyFrom(this.rules), this.adapter.apply("allRules", t3);
  9582. }, enumerable: true, configurable: true }), e3.prototype.isApplied = function(t3) {
  9583. var e4 = this._appliedRules[t3];
  9584. return !!Z(e4) && e4;
  9585. }, e3.prototype.checkRules = function(t3) {
  9586. var e4 = this;
  9587. void 0 === t3 && (t3 = false);
  9588. var i3 = this.allRules;
  9589. if (i3 && 0 != i3.length) {
  9590. var n3 = false, r3 = q(this.component);
  9591. if (0 != r3.pixelWidth && 0 != r3.pixelHeight && (ti(i3.iterator(), function(t4) {
  9592. t4.id || (t4.id = Ii.getUniqueId());
  9593. var i4 = t4.relevant(r3);
  9594. (i4 && !e4.isApplied(t4.id) || !i4 && e4.isApplied(t4.id)) && (n3 = true), e4._appliedRules[t4.id] = i4;
  9595. }), t3 && (n3 = true), n3)) {
  9596. if (!this.component.isReady())
  9597. return r3.hidden = true, void r3.events.once("ready", function(t4) {
  9598. t4.target.show(0), e4._applyRules();
  9599. });
  9600. this.dispatchImmediately("ruleschanged"), this._applyRules();
  9601. }
  9602. }
  9603. }, e3.prototype._applyRules = function() {
  9604. var t3 = this;
  9605. this._timeout && this._timeout.dispose(), this._timeout = this.setTimeout(function() {
  9606. t3.applyRules();
  9607. }, 10);
  9608. }, e3.prototype.applyRules = function(t3) {
  9609. var e4 = this, i3 = Z(t3) ? t3 : q(this.component), n3 = false;
  9610. if (this.enabled) {
  9611. var r3 = false;
  9612. ti(this.allRules.iterator(), function(t4) {
  9613. var s2 = e4.getState(t4, i3);
  9614. s2 && (n3 || (-1 !== Xt(e4._appliedTargets, i3.uid) && i3.setState(e4.getDefaultState(i3), 0), n3 = true), e4.isApplied(q(t4.id)) && (s2.transitionDuration = 0, e4.setTargetState(i3, s2), e4.dispatchImmediately("ruleapplied", { rule: t4 }), r3 = true));
  9615. }), r3 ? re(this._appliedTargets, i3.uid) : ee(this._appliedTargets, i3.uid);
  9616. }
  9617. i3.children && ti(i3.children.iterator(), function(t4) {
  9618. e4.applyRules(t4);
  9619. });
  9620. }, e3.prototype.getState = function(t3, e4) {
  9621. var i3 = "responsive-" + t3.id, n3 = e4.uid + "_" + i3;
  9622. if (-1 === Xt(this._noStates, n3)) {
  9623. if (e4.states.hasKey(i3))
  9624. return e4.states.getKey(i3);
  9625. var r3 = t3.state(e4, i3);
  9626. return r3 || this._noStates.push(n3), r3;
  9627. }
  9628. }, e3.prototype.getDefaultState = function(t3) {
  9629. return t3.states.hasKey("responsive-default") ? t3.states.getKey("responsive-default") : t3.states.create("responsive-default");
  9630. }, e3.prototype.setTargetState = function(t3, e4) {
  9631. var i3 = this, n3 = this.getDefaultState(t3);
  9632. Ne(e4.properties, function(e5, r3) {
  9633. Z(n3.properties[e5]) || (n3.properties[e5] = i3.getValue(t3, e5));
  9634. }), t3.setState(e4);
  9635. }, e3.prototype.getValue = function(t3, e4) {
  9636. var i3 = t3.getPropertyValue(e4);
  9637. return !Z(i3) && Z(t3[e4]) && (i3 = t3[e4]), i3;
  9638. }, e3.prototype.dispose = function() {
  9639. this.disposeResponsiveHandlers(), t2.prototype.dispose.call(this);
  9640. }, e3.prototype.disposeResponsiveHandlers = function() {
  9641. for (var t3 = this._responsiveDisposers.pop(); t3; )
  9642. t3.dispose(), t3 = this._responsiveDisposers.pop();
  9643. }, e3;
  9644. }(mn), lo = new Fi();
  9645. lo.events.on("inserted", function(t2) {
  9646. t2.newValue.id = Ii.getUniqueId();
  9647. });
  9648. var ho = function() {
  9649. function t2() {
  9650. }
  9651. return t2.widthXXS = function(e3) {
  9652. return e3.pixelWidth <= t2.XXS;
  9653. }, t2.widthXS = function(e3) {
  9654. return e3.pixelWidth <= t2.XS;
  9655. }, t2.widthS = function(e3) {
  9656. return e3.pixelWidth <= t2.S;
  9657. }, t2.widthM = function(e3) {
  9658. return e3.pixelWidth <= t2.M;
  9659. }, t2.widthL = function(e3) {
  9660. return e3.pixelWidth <= t2.L;
  9661. }, t2.widthXL = function(e3) {
  9662. return e3.pixelWidth <= t2.XL;
  9663. }, t2.widthXXL = function(e3) {
  9664. return e3.pixelWidth <= t2.XXL;
  9665. }, t2.heightXXS = function(e3) {
  9666. return e3.pixelHeight <= t2.XXS;
  9667. }, t2.heightXS = function(e3) {
  9668. return e3.pixelHeight <= t2.XS;
  9669. }, t2.heightS = function(e3) {
  9670. return e3.pixelHeight <= t2.S;
  9671. }, t2.heightM = function(e3) {
  9672. return e3.pixelHeight <= t2.M;
  9673. }, t2.heightL = function(e3) {
  9674. return e3.pixelHeight <= t2.L;
  9675. }, t2.heightXL = function(e3) {
  9676. return e3.pixelHeight <= t2.XL;
  9677. }, t2.heightXXL = function(e3) {
  9678. return e3.pixelHeight <= t2.XXL;
  9679. }, t2.isXXS = function(e3) {
  9680. return e3.pixelWidth <= t2.XXS && e3.pixelHeight <= t2.XXS;
  9681. }, t2.isXS = function(e3) {
  9682. return e3.pixelWidth <= t2.XS && e3.pixelHeight <= t2.XS;
  9683. }, t2.isS = function(e3) {
  9684. return e3.pixelWidth <= t2.S && e3.pixelHeight <= t2.S;
  9685. }, t2.isM = function(e3) {
  9686. return e3.pixelWidth <= t2.M && e3.pixelHeight <= t2.M;
  9687. }, t2.isL = function(e3) {
  9688. return e3.pixelWidth <= t2.L && e3.pixelHeight <= t2.L;
  9689. }, t2.isXL = function(e3) {
  9690. return e3.pixelWidth <= t2.XL && e3.pixelHeight <= t2.XL;
  9691. }, t2.isXXL = function(e3) {
  9692. return e3.pixelWidth <= t2.XXL && e3.pixelHeight <= t2.XXL;
  9693. }, t2.maybeXXS = function(e3) {
  9694. return e3.pixelWidth <= t2.XXS || e3.pixelHeight <= t2.XXS;
  9695. }, t2.maybeXS = function(e3) {
  9696. return e3.pixelWidth <= t2.XS || e3.pixelHeight <= t2.XS;
  9697. }, t2.maybeS = function(e3) {
  9698. return e3.pixelWidth <= t2.S || e3.pixelHeight <= t2.S;
  9699. }, t2.maybeM = function(e3) {
  9700. return e3.pixelWidth <= t2.M || e3.pixelHeight <= t2.M;
  9701. }, t2.maybeL = function(e3) {
  9702. return e3.pixelWidth <= t2.L || e3.pixelHeight <= t2.L;
  9703. }, t2.maybeXL = function(e3) {
  9704. return e3.pixelWidth <= t2.XL || e3.pixelHeight <= t2.XL;
  9705. }, t2.maybeXXL = function(e3) {
  9706. return e3.pixelWidth <= t2.XXL || e3.pixelHeight <= t2.XXL;
  9707. }, t2.XXS = 100, t2.XS = 200, t2.S = 300, t2.M = 400, t2.L = 600, t2.XL = 800, t2.XXL = 1e3, t2;
  9708. }(), po = function(t2) {
  9709. function e3() {
  9710. var e4 = t2.call(this) || this;
  9711. return e4._disabled = false, e4.hasProperties = false, e4.values = {}, e4.categories = {}, e4.dates = {}, e4.locations = {}, e4.workingLocations = {}, e4.properties = {}, e4.sprites = [], e4.isTemplate = false, e4._index = null, e4._visible = true, e4._hidden = false, e4._ignoreMinMax = false, e4.hasChildren = {}, e4.isHiding = false, e4._valueAnimations = {}, e4._locationAnimations = {}, e4.className = "DataItem", e4.applyTheme(), e4;
  9712. }
  9713. return C(e3, t2), Object.defineProperty(e3.prototype, "adapter", { get: function() {
  9714. return this._adapterO || (this._adapterO = new Yi(this)), this._adapterO;
  9715. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "index", { get: function() {
  9716. return this.component && null != this._index ? this._index : -1;
  9717. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animations", { get: function() {
  9718. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  9719. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "visible", { get: function() {
  9720. return !this._hidden && this._visible;
  9721. }, set: function(t3) {
  9722. t3 && (this.hidden = false), this._visible != t3 && this.setVisibility(t3);
  9723. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hidden", { get: function() {
  9724. return this._hidden;
  9725. }, set: function(t3) {
  9726. this._hidden != t3 && (this._hidden = t3, t3 ? this.setVisibility(false) : this.setVisibility(true, true));
  9727. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "__disabled", { get: function() {
  9728. return this._disabled;
  9729. }, set: function(t3) {
  9730. this._disabled = t3, Ut(this.sprites, function(e4) {
  9731. e4.__disabled = t3;
  9732. });
  9733. }, enumerable: true, configurable: true }), e3.prototype.setVisibility = function(t3, e4) {
  9734. if (Ut(this.sprites, function(e5) {
  9735. t3 ? e5.visible = e5.defaultState.properties.visible : e5.hiddenState ? e5.visible = e5.hiddenState.properties.visible : e5.visible = false;
  9736. }), this._visible = t3, this._eventDispatcher && !this.__disabled && this.events.isEnabled("visibilitychanged")) {
  9737. var i3 = { type: "visibilitychanged", target: this, visible: t3 };
  9738. this.events.dispatchImmediately("visibilitychanged", i3);
  9739. }
  9740. }, e3.prototype.show = function(t3, e4, i3) {
  9741. var n3, r3 = this;
  9742. if (!this.hidden)
  9743. return this.setVisibility(true, true), this.isHiding = false, this._hideDisposer && this.removeDispose(this._hideDisposer), i3 && Ut(i3, function(i4) {
  9744. n3 = r3.setWorkingValue(i4, r3.values[i4].value, t3, e4);
  9745. }), Ut(this.sprites, function(i4) {
  9746. var n4 = i4.show(t3);
  9747. null == n4 || n4.isFinished() || (r3._disposers.push(n4), null != e4 && e4 > 0 && n4.delay(e4));
  9748. }), n3;
  9749. }, e3.prototype.dispose = function() {
  9750. t2.prototype.dispose.call(this), Ut(this.sprites, function(t3) {
  9751. t3.dispose();
  9752. }), this.sprites = [];
  9753. }, e3.prototype.hide = function(t3, e4, i3, n3) {
  9754. var r3 = this;
  9755. if (this.isHiding = true, Ut(this.sprites, function(i4) {
  9756. var n4 = i4.hide(t3);
  9757. null == n4 || n4.isFinished() || (r3._disposers.push(n4), null != e4 && e4 > 0 && n4.delay(e4));
  9758. }), tt(i3) && n3) {
  9759. var s2;
  9760. if (Ut(n3, function(n4) {
  9761. var a2 = r3.setWorkingValue(n4, i3, t3, e4);
  9762. a2 && (s2 = a2);
  9763. }), s2 && !s2.isFinished())
  9764. return this._hideDisposer = s2.events.on("animationended", function() {
  9765. r3.setVisibility(false, true), r3.isHiding = false;
  9766. }), this._disposers.push(this._hideDisposer), s2;
  9767. this.isHiding = false, this.setVisibility(false, true);
  9768. } else
  9769. this.isHiding = false, this.setVisibility(false);
  9770. }, e3.prototype.getDuration = function(t3) {
  9771. if (!tt(t3)) {
  9772. var e4 = this.component;
  9773. e4 && (t3 = e4.interpolationDuration);
  9774. }
  9775. if (null != t3)
  9776. return this._adapterO ? this._adapterO.apply("duration", t3) : t3;
  9777. }, e3.prototype.getValue = function(t3, e4) {
  9778. if (t3 && this.component) {
  9779. e4 || (e4 = this.component.dataFields[t3 + "Show"]) || (e4 = "value");
  9780. var i3 = this.values[t3][e4];
  9781. return this._adapterO && this._adapterO.isEnabled("value") ? this._adapterO.apply("value", { value: i3, field: t3 }).value : i3;
  9782. }
  9783. }, e3.prototype.getWorkingValue = function(t3) {
  9784. if (t3 && this.component) {
  9785. var e4 = this.component.dataFields[t3 + "Show"];
  9786. return e4 || (e4 = "workingValue"), this._adapterO ? this._adapterO.apply("workingValue", { workingValue: this.values[t3][e4], field: t3 }).workingValue : this.values[t3][e4];
  9787. }
  9788. }, e3.prototype.getActualWorkingValue = function(t3) {
  9789. return this.values[t3].workingValue;
  9790. }, e3.prototype.setValue = function(t3, e4, i3, n3) {
  9791. var r3 = this.values[t3].value, s2 = this.getDuration(i3);
  9792. if (r3 !== (e4 = U(e4))) {
  9793. if (this.values[t3].value = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("valuechanged")) {
  9794. var a2 = { type: "valuechanged", target: this, property: t3 };
  9795. this.events.dispatchImmediately("valuechanged", a2);
  9796. }
  9797. this.component && this.component.handleDataItemValueChange(this, t3);
  9798. }
  9799. this.setWorkingValue(t3, e4, s2, n3);
  9800. }, e3.prototype.setCalculatedValue = function(t3, e4, i3) {
  9801. if (this.values[t3][i3] !== e4 && tt(e4)) {
  9802. if (this.values[t3][i3] = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("calculatedvaluechanged")) {
  9803. var n3 = { type: "calculatedvaluechanged", target: this, property: t3 };
  9804. this.events.dispatchImmediately("calculatedvaluechanged", n3);
  9805. }
  9806. this.component && this.component.handleDataItemCalculatedValueChange(this, t3);
  9807. }
  9808. }, e3.prototype.setWorkingValue = function(t3, e4, i3, n3) {
  9809. if (tt(this.values[t3].value)) {
  9810. var r3 = this.getDuration(i3), s2 = this.values[t3].workingValue;
  9811. if (null != r3 && r3 > 0 && tt(s2) && this.component) {
  9812. if (s2 != e4) {
  9813. var a2 = this.animate({ childObject: this.values[t3], property: "workingValue", from: s2, to: e4, dummyData: t3 }, r3, this.component.interpolationEasing);
  9814. return null != n3 && a2.delay(n3), a2.events.on("animationstarted", this.handleInterpolationProgress, this), a2.events.on("animationprogress", this.handleInterpolationProgress, this), a2.events.on("animationended", this.handleInterpolationProgress, this), this._valueAnimations[t3] = a2, a2;
  9815. }
  9816. (o3 = this._valueAnimations[t3]) && o3.stop(), this.values[t3].workingValue = e4;
  9817. } else {
  9818. var o3;
  9819. if ((o3 = this._valueAnimations[t3]) && o3.stop(), this.values[t3].workingValue = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("workingvaluechanged")) {
  9820. var l2 = { type: "workingvaluechanged", target: this, property: t3 };
  9821. this.events.dispatchImmediately("workingvaluechanged", l2);
  9822. }
  9823. this.component && this.component.handleDataItemWorkingValueChange(this, t3);
  9824. }
  9825. }
  9826. }, e3.prototype.setLocation = function(t3, e4, i3, n3) {
  9827. if (this.locations[t3] !== e4) {
  9828. if (this.locations[t3] = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("locationchanged")) {
  9829. var r3 = { type: "locationchanged", target: this, property: t3 };
  9830. this.events.dispatchImmediately("locationchanged", r3);
  9831. }
  9832. this.component && this.component.handleDataItemValueChange(this, t3), this.setWorkingLocation(t3, e4, i3, n3);
  9833. }
  9834. }, e3.prototype.setWorkingLocation = function(t3, e4, i3, n3) {
  9835. var r3 = this.getDuration(i3), s2 = this.workingLocations[t3];
  9836. if (null != r3 && r3 > 0 && tt(s2) && this.component) {
  9837. if (s2 != e4) {
  9838. var a2 = this.animate({ childObject: this.workingLocations, property: t3, from: s2, to: e4, dummyData: t3 }, r3, this.component.interpolationEasing);
  9839. return null != n3 && a2.delay(n3), a2.events.on("animationstarted", this.handleInterpolationProgress, this), a2.events.on("animationprogress", this.handleInterpolationProgress, this), a2.events.on("animationended", this.handleInterpolationProgress, this), this._locationAnimations[t3] = a2, a2;
  9840. }
  9841. (o3 = this._locationAnimations[t3]) && o3.stop(), this.workingLocations[t3] = e4;
  9842. } else {
  9843. var o3;
  9844. if ((o3 = this._locationAnimations[t3]) && o3.stop(), this.workingLocations[t3] = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("workinglocationchanged")) {
  9845. var l2 = { type: "workinglocationchanged", target: this, property: t3 };
  9846. this.events.dispatchImmediately("workinglocationchanged", l2);
  9847. }
  9848. this.component && this.component.handleDataItemWorkingLocationChange(this, t3);
  9849. }
  9850. }, e3.prototype.setDate = function(t3, e4, i3) {
  9851. !J(e4) && this.component && (e4 = this.component.dateFormatter.parse(e4)), this.dates[t3] !== e4 && (this.dates[t3] = e4, this.setValue(t3, e4.getTime(), i3));
  9852. }, e3.prototype.getDate = function(t3) {
  9853. return this._adapterO ? this._adapterO.apply("date", { date: this.dates[t3], field: t3 }).date : this.dates[t3];
  9854. }, e3.prototype.setProperty = function(t3, e4) {
  9855. if (this.properties[t3] !== e4) {
  9856. if (this.hasProperties = true, this.properties[t3] = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("propertychanged")) {
  9857. var i3 = { type: "propertychanged", target: this, property: t3, value: e4 };
  9858. this.events.dispatchImmediately("propertychanged", i3);
  9859. }
  9860. this.component && this.component.handleDataItemPropertyChange(this, t3);
  9861. }
  9862. }, e3.prototype.setCategory = function(t3, e4) {
  9863. Q(e4) || (e4 = X(e4)), this.categories[t3] !== e4 && (this.categories[t3] = e4);
  9864. }, e3.prototype.copyFrom = function(e4) {
  9865. t2.prototype.copyFrom.call(this, e4), e4.dataContext && (this.dataContext = Tn(e4.dataContext, {})), Sn(e4.locations, this.locations), e4._adapterO && this.adapter.copyFrom(e4._adapterO), this.component = e4.component;
  9866. }, Object.defineProperty(e3.prototype, "opacity", { set: function(t3) {
  9867. Ut(this.sprites, function(e4) {
  9868. e4.opacity = t3;
  9869. });
  9870. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ignoreMinMax", { get: function() {
  9871. return this._ignoreMinMax;
  9872. }, set: function(t3) {
  9873. if (this._ignoreMinMax = t3, this._eventDispatcher && !this.__disabled && this.events.isEnabled("propertychanged")) {
  9874. var e4 = { type: "propertychanged", target: this, property: "ignoreMinMax", value: t3 };
  9875. this.events.dispatchImmediately("propertychanged", e4);
  9876. }
  9877. this.component && this.component.handleDataItemPropertyChange(this, "ignoreMinMax");
  9878. }, enumerable: true, configurable: true }), e3.prototype.animate = function(t3, e4, i3) {
  9879. return new ys(this, t3, e4, i3).start();
  9880. }, e3.prototype.handleInterpolationProgress = function(t3) {
  9881. var e4 = t3.target.animationOptions[0];
  9882. if (e4) {
  9883. if (this._eventDispatcher && !this.__disabled && this.events.isEnabled("workingvaluechanged")) {
  9884. var i3 = { type: "workingvaluechanged", target: this, property: e4.dummyData };
  9885. this.events.dispatchImmediately("workingvaluechanged", i3);
  9886. }
  9887. this.component && this.component.handleDataItemWorkingValueChange(this, e4.dummyData);
  9888. }
  9889. }, e3.prototype.hasValue = function(t3) {
  9890. for (var e4 = 0, i3 = t3.length; e4 < i3; e4++) {
  9891. var n3 = this.values[t3[e4]];
  9892. if (!n3 || !Z(n3.value))
  9893. return false;
  9894. }
  9895. return true;
  9896. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  9897. return this.parent ? this.parent.depth + 1 : 0;
  9898. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dataContext", { get: function() {
  9899. return this._dataContext;
  9900. }, set: function(t3) {
  9901. this._dataContext = t3;
  9902. }, enumerable: true, configurable: true }), e3.prototype.addSprite = function(t3) {
  9903. t3.dataItem && t3.dataItem != this && ee(t3.dataItem.sprites, t3), this.visible || t3.hide(0), this.isHiding && t3.hide(), this.sprites.push(t3), t3.dataItem = this;
  9904. }, e3;
  9905. }(mn), uo = function(t2) {
  9906. function e3() {
  9907. var e4 = t2.call(this) || this;
  9908. return e4.dataFields = {}, e4._dataSources = {}, e4._parseDataFrom = 0, e4._dataDisposers = [], e4._currentDataSetId = "", e4._start = 0, e4._end = 1, e4.skipRangeEvent = false, e4.rangeChangeDuration = 0, e4.rangeChangeEasing = zr, e4.parsingStepDuration = 50, e4.dataInvalid = false, e4.rawDataInvalid = false, e4.dataRangeInvalid = false, e4.dataItemsInvalid = false, e4.interpolationDuration = 0, e4.interpolationEasing = zr, e4.sequencedInterpolation = true, e4.sequencedInterpolationDelay = 0, e4.dataValidationProgress = 0, e4._addAllDataItems = true, e4._usesData = true, e4.className = "Component", e4.minZoomCount = 1, e4.maxZoomCount = 0, e4._dataItems = new Ei(e4.createDataItem()), e4._dataItems.events.on("inserted", e4.handleDataItemAdded, e4, false), e4._dataItems.events.on("removed", e4.handleDataItemRemoved, e4, false), e4._disposers.push(new Ai(e4._dataItems)), e4._disposers.push(e4._dataItems.template), e4.invalidateData(), e4.dataUsers.events.on("inserted", e4.handleDataUserAdded, e4, false), e4._disposers.push(new me(e4._dataDisposers)), e4._start = 0, e4._end = 1, e4.maxZoomDeclination = 1, e4.applyTheme(), e4;
  9909. }
  9910. return C(e3, t2), e3.prototype.createDataItem = function() {
  9911. return new po();
  9912. }, e3.prototype.handleDataUserAdded = function(t3) {
  9913. t3.newValue.dataProvider = this;
  9914. }, e3.prototype.handleDataItemValueChange = function(t3, e4) {
  9915. this.dataItemsInvalid || this.invalidateDataItems();
  9916. }, e3.prototype.handleDataItemWorkingValueChange = function(t3, e4) {
  9917. }, e3.prototype.handleDataItemWorkingLocationChange = function(t3, e4) {
  9918. }, e3.prototype.handleDataItemCalculatedValueChange = function(t3, e4) {
  9919. }, e3.prototype.handleDataItemPropertyChange = function(t3, e4) {
  9920. }, e3.prototype.processDataItem = function(t3, e4) {
  9921. var i3 = this;
  9922. if (t3) {
  9923. e4 || (e4 = {}), t3.dataContext = e4;
  9924. var n3 = false;
  9925. Ne(this.dataFields, function(r3, s2) {
  9926. var a2 = r3, o3 = e4[s2];
  9927. if (i3._adapterO && i3._adapterO.isEnabled("dataContextValue") && (o3 = i3._adapterO.apply("dataContextValue", { field: a2, value: o3, dataItem: t3 }).value), Z(o3))
  9928. if (n3 = true, t3.hasChildren[a2]) {
  9929. var l2 = i3.createDataItem();
  9930. l2.copyFrom(i3.mainDataSet.template);
  9931. var h2 = new Ei(l2);
  9932. h2.events.on("inserted", i3.handleDataItemAdded, i3, false), h2.events.on("removed", i3.handleDataItemRemoved, i3, false), i3._dataDisposers.push(new Ai(h2));
  9933. for (var p2 = o3.length, u2 = 0; u2 < p2; u2++) {
  9934. var d2 = o3[u2], c2 = h2.create();
  9935. c2.parent = t3, i3.processDataItem(c2, d2);
  9936. }
  9937. t3[a2] = h2;
  9938. } else
  9939. t3[a2] = o3;
  9940. }), Ne(this.propertyFields, function(i4, r3) {
  9941. var s2 = i4, a2 = e4[r3];
  9942. Z(a2) && (n3 = true, t3.setProperty(s2, a2));
  9943. }), this._addAllDataItems || n3 || this.mainDataSet.remove(t3);
  9944. }
  9945. }, e3.prototype.updateDataItem = function(t3) {
  9946. var e4 = this;
  9947. if (t3) {
  9948. var i3 = t3.dataContext;
  9949. Ne(this.dataFields, function(n3, r3) {
  9950. var s2 = n3, a2 = i3[r3];
  9951. e4._adapterO && (a2 = e4._adapterO.apply("dataContextValue", { field: s2, value: a2, dataItem: t3 }).value), Z(a2) && (t3.hasChildren[s2] ? t3[s2].each(function(t4) {
  9952. e4.updateDataItem(t4);
  9953. }) : t3[s2] = a2);
  9954. }), Ne(this.propertyFields, function(e5, n3) {
  9955. var r3 = e5, s2 = i3[n3];
  9956. Z(s2) && t3.setProperty(r3, s2);
  9957. });
  9958. }
  9959. }, e3.prototype.validateDataElements = function() {
  9960. for (var t3 = this.endIndex, e4 = this.startIndex; e4 < t3; e4++) {
  9961. var i3 = this.dataItems.getIndex(e4);
  9962. i3 && this.validateDataElement(i3);
  9963. }
  9964. }, e3.prototype.validate = function() {
  9965. this.validateDataElements(), t2.prototype.validate.call(this);
  9966. }, e3.prototype.validateDataElement = function(t3) {
  9967. }, e3.prototype.addData = function(t3, e4, i3) {
  9968. var n3 = this;
  9969. if (!this.dataInvalid && this.inited && (this._parseDataFrom = this.data.length), i3 || (t3 instanceof Array ? Ut(t3, function(t4) {
  9970. n3.data.push(t4);
  9971. }) : this.data.push(t3)), this.inited)
  9972. this.removeData(e4, i3);
  9973. else if (tt(e4))
  9974. for (; e4 > 0; )
  9975. this.data.shift(), e4--;
  9976. this.invalidateData();
  9977. }, e3.prototype.removeData = function(t3, e4) {
  9978. if (tt(t3) && t3 > 0) {
  9979. for (; t3 > 0; ) {
  9980. var i3 = this.mainDataSet.getIndex(0);
  9981. i3 && this.mainDataSet.remove(i3), this.dataUsers.each(function(t4) {
  9982. if (!t4.data || 0 == t4.data.length) {
  9983. var e5 = t4.mainDataSet.getIndex(0);
  9984. e5 && t4.mainDataSet.remove(e5);
  9985. }
  9986. }), e4 || this.data.shift(), this._parseDataFrom > 0 && this._parseDataFrom--, t3--;
  9987. }
  9988. this.invalidateDataItems();
  9989. }
  9990. }, e3.prototype.invalidateData = function() {
  9991. this.disabled || this.isTemplate || (Ii.addToInvalidComponents(this), Qa.requestFrame(), this.dataInvalid = true, ti(this.dataUsers.iterator(), function(t3) {
  9992. t3.invalidateDataItems();
  9993. }));
  9994. }, e3.prototype.invalidateDataUsers = function() {
  9995. ti(this.dataUsers.iterator(), function(t3) {
  9996. t3.invalidate();
  9997. });
  9998. }, e3.prototype.invalidateDataItems = function() {
  9999. this.disabled || this.isTemplate || (ie(Ii.invalidDataItems, this), Qa.requestFrame(), this.dataItemsInvalid = true, ti(this.dataUsers.iterator(), function(t3) {
  10000. t3.invalidateDataItems();
  10001. }));
  10002. }, e3.prototype.invalidateDataRange = function() {
  10003. this.disabled || this.isTemplate || (this.dataRangeInvalid = true, ie(Ii.invalidDataRange, this), Qa.requestFrame());
  10004. }, e3.prototype.validateDataRange = function() {
  10005. ee(Ii.invalidDataRange, this), this.dataRangeInvalid = false, this.startIndex == this._prevStartIndex && this.endIndex == this._prevEndIndex || (this.rangeChangeUpdate(), this.appendDataItems(), this.invalidate(), this.dispatchImmediately("datarangechanged"));
  10006. }, e3.prototype.sliceData = function() {
  10007. this._workingStartIndex = this.startIndex, this._workingEndIndex = this.endIndex;
  10008. }, e3.prototype.rangeChangeUpdate = function() {
  10009. this.sliceData(), this._prevStartIndex = this.startIndex, this._prevEndIndex = this.endIndex;
  10010. }, e3.prototype.appendDataItems = function() {
  10011. for (var t3 = this.endIndex, e4 = this.startIndex; e4 < t3; e4++)
  10012. (i3 = this.dataItems.getIndex(e4)) && (i3.__disabled = false);
  10013. for (e4 = 0; e4 < this.startIndex; e4++)
  10014. (i3 = this.dataItems.getIndex(e4)) && (i3.__disabled = true);
  10015. for (e4 = this.endIndex; e4 < this.dataItems.length; e4++) {
  10016. var i3;
  10017. (i3 = this.dataItems.getIndex(e4)) && (i3.__disabled = true);
  10018. }
  10019. }, e3.prototype.invalidateRawData = function() {
  10020. this.disabled || this.isTemplate || (ie(Ii.invalidRawDatas, this), Qa.requestFrame(), this.rawDataInvalid = true, ti(this.dataUsers.iterator(), function(t3) {
  10021. t3.invalidateRawData();
  10022. }));
  10023. }, e3.prototype.validateRawData = function() {
  10024. var t3 = this;
  10025. ee(Ii.invalidRawDatas, this), ti(this.mainDataSet.iterator(), function(e4) {
  10026. e4 && t3.updateDataItem(e4);
  10027. });
  10028. }, e3.prototype.dispose = function() {
  10029. var e4 = this;
  10030. this.mainDataSet.template.clones.clear(), Ne(this._dataSources, function(t3, i3) {
  10031. e4.removeDispose(i3);
  10032. }), this.disposeData(), t2.prototype.dispose.call(this);
  10033. }, e3.prototype.disposeData = function() {
  10034. this.mainDataSet.template.clones.clear(), Ut(this._dataDisposers, function(t3) {
  10035. t3.dispose();
  10036. }), ti(this.dataUsers.iterator(), function(t3) {
  10037. t3.disposeData();
  10038. }), this._dataDisposers.length = 0, this._startIndex = void 0, this._endIndex = void 0, this.mainDataSet.clear(), this.mainDataSet.template.clones.clear(), this._dataSets && this._dataSets.clear();
  10039. }, e3.prototype.getDataItem = function(t3) {
  10040. return this.mainDataSet.create();
  10041. }, e3.prototype.validateData = function() {
  10042. if (this.dispatchImmediately("beforedatavalidated"), this.dataInvalid = false, Ii.removeFromInvalidComponents(this), !this.__disabled) {
  10043. if (this.dataValidationProgress = 0, this._prevStartIndex = void 0, this._prevEndIndex = void 0, this._startIndex = void 0, this._endIndex = void 0, this.dataFields.data && this.dataItem) {
  10044. var t3 = this.dataItem.dataContext;
  10045. this._data = t3[this.dataFields.data];
  10046. }
  10047. if (0 === this._parseDataFrom && this.data.length > 0 && this.disposeData(), this.data.length > 0) {
  10048. var e4 = this.preloader;
  10049. ti(this.dataUsers.iterator(), function(t4) {
  10050. t4._startIndex = void 0, t4._endIndex = void 0;
  10051. });
  10052. for (var i3 = 0, n3 = Date.now(), r3 = this._parseDataFrom, s2 = this.data.length, a2 = function() {
  10053. var t4 = o3.data[r3];
  10054. if (o3._usesData) {
  10055. var s3 = o3.getDataItem(t4);
  10056. o3.processDataItem(s3, t4);
  10057. }
  10058. if (o3.dataUsers.each(function(e5) {
  10059. if (0 == e5.data.length) {
  10060. var i4 = e5.getDataItem(t4);
  10061. e5.processDataItem(i4, t4);
  10062. }
  10063. }), 100 == ++i3 && (i3 = 0, Date.now() - n3 > o3.parsingStepDuration && r3 < o3.data.length - 10))
  10064. return o3._parseDataFrom = r3 + 1, e4 && (r3 / o3.data.length > 0.5 && !e4.visible || (e4.progress = r3 / o3.data.length)), o3.dataValidationProgress = r3 / o3.data.length, r3 = o3.data.length, o3.invalidateData(), { value: void 0 };
  10065. }, o3 = this; r3 < s2; r3++) {
  10066. var l2 = a2();
  10067. if ("object" == typeof l2)
  10068. return l2.value;
  10069. }
  10070. e4 && (e4.progress = 1), this.dataUsers.each(function(t4) {
  10071. t4.hidden && t4.hide(0);
  10072. });
  10073. }
  10074. this.dataValidationProgress = 1, this._parseDataFrom = 0, this.invalidateDataItems(), this._internalDefaultsApplied || this.applyInternalDefaults(), this.dispatch("datavalidated");
  10075. }
  10076. }, e3.prototype.validateDataItems = function() {
  10077. ee(Ii.invalidDataItems, this), this.dataItemsInvalid = false, this.invalidateDataRange(), this.invalidate(), this.dispatch("dataitemsvalidated");
  10078. }, Object.defineProperty(e3.prototype, "data", { get: function() {
  10079. return this._data || (this._data = []), this._adapterO ? this._adapterO.apply("data", this._data) : this._data;
  10080. }, set: function(t3) {
  10081. this.setData(t3);
  10082. }, enumerable: true, configurable: true }), e3.prototype.setData = function(t3) {
  10083. this.isDisposed() || (this._parseDataFrom = 0, this.disposeData(), this._data = t3, t3 && t3.length > 0 ? this.invalidateData() : (this.dispatchImmediately("beforedatavalidated"), this.dispatch("datavalidated")));
  10084. }, e3.prototype.getDataSource = function(t3) {
  10085. var e4 = this;
  10086. return Z(this._dataSources[t3]) || (this._dataSources[t3] = new ao(), this._dataSources[t3].component = this, this.setDataSourceEvents(this._dataSources[t3], t3), this._dataSources[t3].adapter.add("dateFields", function(t4) {
  10087. return e4.dataSourceDateFields(t4);
  10088. }), this._dataSources[t3].adapter.add("numberFields", function(t4) {
  10089. return e4.dataSourceNumberFields(t4);
  10090. }), this.events.on("inited", function() {
  10091. e4.loadData(t3);
  10092. }, this, false)), this._dataSources[t3];
  10093. }, Object.defineProperty(e3.prototype, "dataSource", { get: function() {
  10094. return this._dataSources.data || this.getDataSource("data"), this._dataSources.data;
  10095. }, set: function(t3) {
  10096. var e4 = this;
  10097. this._dataSources.data && this.removeDispose(this._dataSources.data), this._dataSources.data = t3, this._dataSources.data.component = this, this.events.on("inited", function() {
  10098. e4.loadData("data");
  10099. }, this, false), this.setDataSourceEvents(t3, "data");
  10100. }, enumerable: true, configurable: true }), e3.prototype.loadData = function(t3) {
  10101. this._dataSources[t3].load();
  10102. }, e3.prototype.dataSourceDateFields = function(t3) {
  10103. return t3;
  10104. }, e3.prototype.dataSourceNumberFields = function(t3) {
  10105. return t3;
  10106. }, e3.prototype.populateDataSourceFields = function(t3, e4, i3) {
  10107. return Ut(i3, function(i4) {
  10108. e4[i4] && -1 === Xt(t3, e4[i4]) && t3.push(e4[i4]);
  10109. }), t3;
  10110. }, e3.prototype.setDataSourceEvents = function(t3, e4) {
  10111. var i3 = this;
  10112. t3.events.on("started", function(t4) {
  10113. var e5 = i3.preloader;
  10114. e5 && (e5.progress = 0);
  10115. }, void 0, false), t3.events.on("loadstarted", function(t4) {
  10116. var e5 = i3.preloader;
  10117. e5 && (e5.progress = 0.25);
  10118. }, void 0, false), t3.events.on("loadended", function(t4) {
  10119. var e5 = i3.preloader;
  10120. e5 && (e5.progress = 0.5);
  10121. }, void 0, false), t3.events.on("parseended", function(t4) {
  10122. var e5 = i3.preloader;
  10123. e5 && (e5.progress = 0.75);
  10124. }, void 0, false), t3.events.on("ended", function(t4) {
  10125. var e5 = i3.preloader;
  10126. e5 && (e5.progress = 1);
  10127. }, void 0, false), t3.events.on("error", function(t4) {
  10128. var e5 = i3.preloader;
  10129. e5 && (e5.progress = 1), i3.openModal(t4.message);
  10130. }, void 0, false), e4 && t3.events.on("done", function(n3) {
  10131. var r3 = i3.preloader;
  10132. r3 && (r3.progress = 1), "data" != e4 || it(n3.data) || (n3.data = [n3.data]), t3.incremental && "data" == e4 && i3.data.length ? i3.addData(n3.data, t3.keepCount ? n3.data.length : 0) : t3.updateCurrentData && "data" == e4 && i3.data.length ? (Ut(i3.data, function(t4, e5) {
  10133. Z(n3.data[e5]) && Ne(t4, function(i4, r4) {
  10134. Z(n3.data[e5][i4]) && (t4[i4] = n3.data[e5][i4]);
  10135. });
  10136. }), i3.invalidateRawData()) : i3[e4] = n3.data;
  10137. });
  10138. }, Object.defineProperty(e3.prototype, "responsive", { get: function() {
  10139. return this._responsive || (this._responsive = new oo(), this._responsive.component = this), this._responsive;
  10140. }, set: function(t3) {
  10141. this._responsive = t3, this._responsive.component = this;
  10142. }, enumerable: true, configurable: true }), e3.prototype.zoom = function(t3, e4, i3, n3) {
  10143. var r3 = this;
  10144. void 0 === e4 && (e4 = false), void 0 === i3 && (i3 = false);
  10145. var s2 = t3.start, a2 = t3.end, o3 = t3.priority;
  10146. if (t3.start == t3.end && (t3.start = t3.start - 0.5 / this.maxZoomFactor, t3.end = t3.end + 0.5 / this.maxZoomFactor), "end" == o3 && 1 == a2 && 0 != s2 && s2 < this.start && (o3 = "start"), "start" == o3 && 0 == s2 && a2 > this.end && (o3 = "end"), tt(n3) || (n3 = this.maxZoomDeclination), !tt(s2) || !tt(a2))
  10147. return { start: this.start, end: this.end };
  10148. if (this._finalStart != s2 || this._finalEnd != a2) {
  10149. var l2 = this.maxZoomFactor / this.minZoomCount, h2 = this.maxZoomFactor / this.maxZoomCount;
  10150. if ("start" == o3 ? (this.maxZoomCount > 0 && 1 / (a2 - s2) < h2 && (a2 = s2 + 1 / h2), 1 / (a2 - s2) > l2 && (a2 = s2 + 1 / l2), a2 > 1 && a2 - s2 < 1 / l2 && (s2 = a2 - 1 / l2)) : (this.maxZoomCount > 0 && 1 / (a2 - s2) < h2 && (s2 = a2 - 1 / h2), 1 / (a2 - s2) > l2 && (s2 <= 0 ? a2 = s2 + 1 / l2 : s2 = a2 - 1 / l2), s2 < 0 && a2 - s2 < 1 / l2 && (a2 = s2 + 1 / l2)), s2 < -n3 && (s2 = -n3), 1 / (a2 - s2) > l2 && (a2 = s2 + 1 / l2), a2 > 1 + n3 && (a2 = 1 + n3), 1 / (a2 - s2) > l2 && (s2 = a2 - 1 / l2), this._finalEnd = a2, this._finalStart = s2, this.skipRangeEvent = e4, this.dispatchImmediately("rangechangestarted"), this.rangeChangeDuration > 0 && !i3) {
  10151. var p2 = this.rangeChangeAnimation;
  10152. if (p2 && p2.progress < 1) {
  10153. var u2 = p2.animationOptions;
  10154. if (u2.length > 1) {
  10155. if (u2[0].to == s2 && u2[1].to == a2)
  10156. return { start: s2, end: a2 };
  10157. p2.isDisposed() || p2.stop();
  10158. }
  10159. }
  10160. this.rangeChangeAnimation && this.rangeChangeAnimation.kill(), p2 = this.animate([{ property: "start", to: s2 }, { property: "end", to: a2 }], this.rangeChangeDuration, this.rangeChangeEasing), this.rangeChangeAnimation = p2, p2 && !p2.isFinished() ? p2.events.on("animationended", function() {
  10161. r3.dispatchImmediately("rangechangeended");
  10162. }) : this.dispatchImmediately("rangechangeended");
  10163. } else
  10164. this.start = s2, this.end = a2, this.dispatch("rangechangeended");
  10165. }
  10166. return { start: s2, end: a2 };
  10167. }, e3.prototype.zoomToIndexes = function(t3, e4, i3, n3) {
  10168. if (tt(t3) && tt(e4)) {
  10169. var r3 = t3 / this.dataItems.length, s2 = e4 / this.dataItems.length;
  10170. this.zoom({ start: r3, end: s2 }, i3, n3);
  10171. }
  10172. }, Object.defineProperty(e3.prototype, "zoomFactor", { get: function() {
  10173. return ut(1 / (this.end - this.start), 1, this.maxZoomFactor);
  10174. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxZoomFactor", { get: function() {
  10175. return this.getPropertyValue("maxZoomFactor");
  10176. }, set: function(t3) {
  10177. this.setPropertyValue("maxZoomFactor", t3) && (1 == t3 && (this.maxZoomDeclination = 0), this.invalidateDataRange());
  10178. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxZoomDeclination", { get: function() {
  10179. return this.getPropertyValue("maxZoomDeclination");
  10180. }, set: function(t3) {
  10181. this.setPropertyValue("maxZoomDeclination", t3) && this.invalidateDataRange();
  10182. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startIndex", { get: function() {
  10183. return tt(this._startIndex) || (this._startIndex = 0), this._startIndex;
  10184. }, set: function(t3) {
  10185. this._startIndex = ut(Math.round(t3), 0, this.dataItems.length), this.start = this.indexToPosition(this._startIndex);
  10186. }, enumerable: true, configurable: true }), e3.prototype.indexToPosition = function(t3) {
  10187. return t3 / this.dataItems.length;
  10188. }, Object.defineProperty(e3.prototype, "endIndex", { get: function() {
  10189. var t3 = this.dataItems.length;
  10190. return (!tt(this._endIndex) || this._endIndex > t3) && (this._endIndex = t3), this._endIndex;
  10191. }, set: function(t3) {
  10192. this._endIndex = ut(Math.round(t3), 0, this.dataItems.length), this.end = this.indexToPosition(this._endIndex);
  10193. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "start", { get: function() {
  10194. return this._adapterO ? this._adapterO.apply("start", this._start) : this._start;
  10195. }, set: function(t3) {
  10196. if (this._start != t3) {
  10197. this._start = t3;
  10198. var e4 = Math.max(0, Math.floor(this.dataItems.length * t3) || 0);
  10199. this._startIndex = Math.min(e4, this.dataItems.length), this.invalidateDataRange(), this.invalidate(), this.dispatchImmediately("startchanged"), this.dispatch("startendchanged");
  10200. }
  10201. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "end", { get: function() {
  10202. return this._adapterO ? this._adapterO.apply("end", this._end) : this._end;
  10203. }, set: function(t3) {
  10204. this._end != t3 && (this._end = t3, this._endIndex = Math.min(this.dataItems.length, Math.ceil(this.dataItems.length * t3) || 0), this.invalidateDataRange(), this.invalidate(), this.dispatchImmediately("endchanged"), this.dispatch("startendchanged"));
  10205. }, enumerable: true, configurable: true }), e3.prototype.removeFromInvalids = function() {
  10206. t2.prototype.removeFromInvalids.call(this), Ii.removeFromInvalidComponents(this), ee(Ii.invalidDataItems, this), ee(Ii.invalidDataRange, this), ee(Ii.invalidRawDatas, this);
  10207. }, Object.defineProperty(e3.prototype, "dataItems", { get: function() {
  10208. if ("" != this._currentDataSetId) {
  10209. var t3 = this.dataSets.getKey(this._currentDataSetId);
  10210. if (t3)
  10211. return t3;
  10212. }
  10213. return this._dataItems;
  10214. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dataSets", { get: function() {
  10215. return this._dataSets || (this._dataSets = new Pi()), this._dataSets;
  10216. }, enumerable: true, configurable: true }), e3.prototype.setDataSet = function(t3) {
  10217. if (this._currentDataSetId != t3) {
  10218. if (this.dataSets.getKey(t3))
  10219. return this.dataItems.each(function(t4) {
  10220. t4.__disabled = true;
  10221. }), this._currentDataSetId = t3, this.invalidateDataRange(), this._prevStartIndex = void 0, this.dataItems.each(function(t4) {
  10222. t4.__disabled = false;
  10223. }), true;
  10224. if ("" != this._currentDataSetId)
  10225. return this.dataItems.each(function(t4) {
  10226. t4.__disabled = true;
  10227. }), this._currentDataSetId = "", this.invalidateDataRange(), this._prevStartIndex = void 0, this.dataItems.each(function(t4) {
  10228. t4.__disabled = false;
  10229. }), true;
  10230. }
  10231. return false;
  10232. }, Object.defineProperty(e3.prototype, "currentDataSetId", { get: function() {
  10233. return this._currentDataSetId;
  10234. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mainDataSet", { get: function() {
  10235. return this._dataItems;
  10236. }, enumerable: true, configurable: true }), e3.prototype._updateDataItemIndexes = function(t3) {
  10237. for (var e4 = this.mainDataSet.values, i3 = e4.length, n3 = t3; n3 < i3; ++n3)
  10238. e4[n3]._index = n3;
  10239. }, e3.prototype.handleDataItemAdded = function(t3) {
  10240. t3.newValue.component = this, this._updateDataItemIndexes(t3.index), this.dataItemsInvalid || this.invalidateDataItems();
  10241. }, e3.prototype.handleDataItemRemoved = function(t3) {
  10242. this._updateDataItemIndexes(t3.index), this.dataItemsInvalid || this.invalidateDataItems();
  10243. }, e3.prototype.bindDataField = function(t3, e4) {
  10244. this.dataFields[t3] = e4, this.invalidateDataRange();
  10245. }, e3.prototype.invalidateProcessedData = function() {
  10246. this.resetProcessedRange(), this.invalidateDataRange();
  10247. }, e3.prototype.resetProcessedRange = function() {
  10248. this._prevEndIndex = null, this._prevStartIndex = null;
  10249. }, Object.defineProperty(e3.prototype, "dataUsers", { get: function() {
  10250. var t3 = this;
  10251. return this._dataUsers || (this._dataUsers = new Fi(), this._disposers.push(new ye(function() {
  10252. ti(t3._dataUsers.iterator(), function(t4) {
  10253. t4.dispose();
  10254. });
  10255. }))), this._dataUsers;
  10256. }, enumerable: true, configurable: true }), e3.prototype.clone = function() {
  10257. var e4 = t2.prototype.clone.call(this);
  10258. return e4.dataFields = Sn(this.dataFields, {}), e4;
  10259. }, e3.prototype.copyFrom = function(e4) {
  10260. t2.prototype.copyFrom.call(this, e4), this.data = e4.data, this.sequencedInterpolation = e4.sequencedInterpolation, this.sequencedInterpolationDelay = e4.sequencedInterpolationDelay, this.interpolationDuration = e4.interpolationDuration, this.interpolationEasing = e4.interpolationEasing;
  10261. }, e3.prototype.reinit = function() {
  10262. this._inited = false, this.deepInvalidate();
  10263. }, e3.prototype.getExporting = function() {
  10264. var e4 = t2.prototype.getExporting.call(this);
  10265. return e4.adapter.has("data", this._exportData, -1, this) || (e4.adapter.add("data", this._exportData, -1, this), this.events.on("datavalidated", function(t3) {
  10266. e4.handleDataUpdated();
  10267. })), e4;
  10268. }, e3.prototype._exportData = function(t3) {
  10269. return t3.data = this.data, t3;
  10270. }, e3.prototype.setDisabled = function(e4) {
  10271. var i3 = t2.prototype.setDisabled.call(this, e4);
  10272. return i3 && this.invalidateData(), i3;
  10273. }, e3.prototype.setShowOnInit = function(e4) {
  10274. e4 != this.getPropertyValue("showOnInit") && (!e4 || this.inited || this.hidden ? this._showOnInitDisposer2 && this.removeDispose(this._showOnInitDisposer2) : (this._showOnInitDisposer2 = this.events.once("dataitemsvalidated", this.hideInitially, this, false), this._disposers.push(this._showOnInitDisposer2))), t2.prototype.setShowOnInit.call(this, e4);
  10275. }, e3.prototype.setBaseId = function(e4) {
  10276. e4 != this._baseId && this.dataInvalid && (this.dataInvalid = false, Ii.removeFromInvalidComponents(this), this._baseId = e4, this.invalidateData()), t2.prototype.setBaseId.call(this, e4);
  10277. }, Object.defineProperty(e3.prototype, "minZoomCount", { get: function() {
  10278. return this.getPropertyValue("minZoomCount");
  10279. }, set: function(t3) {
  10280. this.setPropertyValue("minZoomCount", t3);
  10281. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxZoomCount", { get: function() {
  10282. return this.getPropertyValue("maxZoomCount");
  10283. }, set: function(t3) {
  10284. this.setPropertyValue("maxZoomCount", t3);
  10285. }, enumerable: true, configurable: true }), e3.prototype._systemCheckIfValidate = function() {
  10286. return !(this.dataInvalid || this.dataProvider && this.dataProvider.dataInvalid);
  10287. }, e3.prototype.asFunction = function(e4) {
  10288. return "interpolationEasing" == e4 || "rangeChangeEasing" == e4 || t2.prototype.asIs.call(this, e4);
  10289. }, e3;
  10290. }($a);
  10291. Ii.registeredClasses.Component = uo;
  10292. var co = function(t2) {
  10293. function e3() {
  10294. var e4 = t2.call(this) || this;
  10295. return e4.isOversized = false, e4.className = "Label", e4.fill = new Ys().getFor("text"), e4.wrap = false, e4.truncate = false, e4.fullWords = true, e4.ellipsis = "\u2026", e4.textAlign = "start", e4.textValign = "top", e4.layout = "absolute", e4.baseLineRatio = -0.27, e4._positionPrecision = 1, e4.events.on("maxsizechanged", function() {
  10296. e4.inited && e4.handleMaxSize();
  10297. }, e4, false), e4.events.once("validated", e4.handleValidate, e4, false), e4.applyTheme(), e4;
  10298. }
  10299. return C(e3, t2), e3.prototype.afterDraw = function() {
  10300. t2.prototype.afterDraw.call(this), this.validatePosition();
  10301. }, e3.prototype.setPaper = function(e4) {
  10302. var i3 = t2.prototype.setPaper.call(this, e4);
  10303. return i3 && this.hardInvalidate(), i3;
  10304. }, e3.prototype.handleValidate = function() {
  10305. !this.currentText && !this.text || 0 != this.bbox.width && 0 != this.bbox.height || Ii.events.once("exitframe", this.hardInvalidate, this);
  10306. }, e3.prototype.handleMaxSize = function() {
  10307. (this.bbox.width > this.availableWidth || this.bbox.width < this.availableWidth && (this.isOversized || this.truncate) || this.bbox.height > this.availableHeight || this.bbox.height < this.availableHeight && this.isOversized) && this.invalidate();
  10308. }, e3.prototype.arrange = function() {
  10309. }, e3.prototype.updateCurrentText = function() {
  10310. var t3, e4;
  10311. An(this.html) && this.paper.supportsForeignObject() ? (t3 = "html", e4 = this.html) : (t3 = "svg", e4 = this.text), et(e4) && (e4 = e4.toString()), Z(e4) && "" !== e4 && (e4 = this.populateString(e4, this.dataItem)), "html" == t3 ? this._adapterO && (e4 = this._adapterO.apply("htmlOutput", e4)) : this._adapterO && (e4 = this._adapterO.apply("textOutput", e4));
  10312. var i3 = e4 != this.currentText || t3 != this._currentFormat;
  10313. return this.currentText = e4, this._currentFormat = t3, i3;
  10314. }, e3.prototype.hardInvalidate = function() {
  10315. this._prevStatus = "", this.invalidate();
  10316. }, e3.prototype.getLineBBox = function(t3) {
  10317. var e4 = t3 && t3.element, i3 = e4 && e4.node;
  10318. i3 && i3.parentNode && (t3.bbox = e4.getBBox());
  10319. }, e3.prototype.draw = function() {
  10320. t2.prototype.draw.call(this);
  10321. var e4 = this.bbox.width, i3 = this.bbox.height, n3 = this.topParent;
  10322. if (!n3 || n3.maxWidth && n3.maxHeight) {
  10323. var r3 = gt(this.availableWidth - this.pixelPaddingLeft - this.pixelPaddingRight, 0), s2 = gt(this.availableHeight - this.pixelPaddingTop - this.pixelPaddingBottom, 0), a2 = s2 + "," + r3 + this.wrap + this.truncate + this.fullWords + this.rtl + this.ellipsis;
  10324. if (this.updateCurrentText() || !this.inited || this._prevStatus != a2) {
  10325. this._measuredWidth = 0, this._measuredHeight = 0, this.isOversized = false;
  10326. var o3 = this._currentFormat, l2 = this.currentText;
  10327. if (Z(l2) && "" != l2) {
  10328. var h2 = l2.split("\n");
  10329. this._prevStatus = a2, this.textAlign = this.textAlign;
  10330. var p2 = this.group.getAttr("display");
  10331. if ("none" == p2 && this.group.removeAttr("display"), this.textPathElement && this.textPathElement.removeChildren(), "svg" === o3) {
  10332. this.element.removeAttr("display");
  10333. var u2 = this.element;
  10334. this.resetBBox();
  10335. for (var d2 = 0, c2 = "", f2 = 0; f2 < h2.length; f2++) {
  10336. var g2 = h2[f2];
  10337. if ("" != g2) {
  10338. var y2 = Va().chunk(g2, null, this.ignoreFormatting), m2 = 0, v2 = true, b2 = false, x2 = this.getLineInfo(f2);
  10339. x2 ? (x2.text = "", x2.element.textContent = "") : (x2 = { text: "", element: this.getSVGLineElement("", 0), complex: false }, u2.add(x2.element)), x2.element.removeAttr("display"), x2.element.removeChildren(), this.textPathElement && x2.element.add(this.textPathElement);
  10340. for (var _2 = 0; _2 < y2.length; _2++) {
  10341. _2 && (x2.complex = true);
  10342. var P2 = y2[_2];
  10343. if ("format" === P2.type)
  10344. c2 = P2.text;
  10345. else {
  10346. if (b2)
  10347. continue;
  10348. if (x2.text = P2.text, x2.style = Va().translateStyleShortcuts(c2), this.textPathElement ? this.getSvgElement(x2.text, x2.style, this.textPathElement) : this.getSvgElement(x2.text, x2.style, x2.element), this.getLineBBox(x2), x2.bbox.width = Math.ceil(x2.bbox.width), m2 < x2.bbox.height && (m2 = x2.bbox.height), (this.wrap || this.truncate) && x2.bbox.width > r3) {
  10349. this.isOversized = true;
  10350. var w2 = x2.element.textContent, C2 = x2.bbox.width / w2.length, O2 = yt(Math.ceil((x2.bbox.width - r3) / C2), w2.length);
  10351. if (this.truncate) {
  10352. var S2 = false, I2 = x2.element.node;
  10353. if (I2 && I2.childNodes)
  10354. for (var D2 = x2.element.node.childNodes.length - 1; D2 >= 0; D2--) {
  10355. var k2 = x2.element.node.childNodes[D2];
  10356. if (S2 && x2.bbox.width <= r3 && (k2.textContent += " " + this.ellipsis, x2.bbox = x2.element.getBBox(), x2.bbox.width = Math.floor(x2.bbox.width), x2.bbox.width <= r3))
  10357. break;
  10358. S2 = false;
  10359. var T2 = k2.textContent;
  10360. for (w2 = x2.element.textContent, O2 = yt(Math.ceil((x2.bbox.width - r3) / C2), w2.length); x2.bbox.width > r3 && O2 <= w2.length && O2 > 0; )
  10361. (F2 = gt(w2.length - O2 - this.ellipsis.length, 1)) <= 1 && (O2 = 0, D2 > 0 && (S2 = true, x2.element.node.removeChild(k2))), (T2 = Nn(T2, F2, this.ellipsis, this.fullWords, this.rtl)).length > F2 && this.fullWords && (T2 = Nn(T2, F2, this.ellipsis, false, this.rtl)), k2.textContent = T2, x2.bbox = x2.element.getBBox(), x2.bbox.width = Math.floor(x2.bbox.width), O2 = Math.ceil(1.1 * O2);
  10362. b2 = true;
  10363. }
  10364. } else if (x2.element.node) {
  10365. for (var A2 = x2.element.node.lastChild, V2 = void 0; x2.bbox.width > r3 && O2 <= w2.length && O2 > 0; ) {
  10366. var F2 = gt(P2.text.length - O2, 1);
  10367. if (v2 ? V2 = Hn(P2.text, F2, true, this.rtl) : ((V2 = Hn(P2.text, F2, true, this.rtl, false))[0].length > F2 || 1 === F2) && (x2.element.node.removeChild(A2), O2 = 0), O2 > 0) {
  10368. var M2 = V2.shift();
  10369. v2 && (M2 = Wn(M2)), A2.textContent = Va().cleanUp(M2);
  10370. }
  10371. x2.bbox = x2.element.getBBox(), x2.bbox.width = Math.floor(x2.bbox.width), O2++;
  10372. }
  10373. if (V2.length > 0) {
  10374. var L2 = "";
  10375. Z(V2) && (this.rtl ? L2 += V2.join("") + c2 : L2 += c2 + V2.join("").replace(/([\[\]]{1})/g, "$1$1"));
  10376. for (var j2 = _2 + 1; j2 < y2.length; j2++)
  10377. "value" == y2[j2].type ? L2 += y2[j2].text.replace(/([\[\]]{1})/g, "$1$1") : L2 += y2[j2].text;
  10378. h2.splice(f2 + 1, 0, L2);
  10379. }
  10380. b2 = true;
  10381. }
  10382. }
  10383. this.bbox.width < x2.bbox.width && (this.bbox.width = x2.bbox.width), this.bbox.height = d2 + m2, this.textPathElement ? x2.element.attr({ dy: -this.paddingBottom.toString() }) : x2.element.attr({ x: "0", y: d2 + m2, dy: lt(this.baseLineRatio * m2, 3).toString() }), v2 = false;
  10384. }
  10385. }
  10386. var E2 = x2.element.node;
  10387. E2 && (A2 = E2.lastChild) && (A2.textContent = this.rtl ? Yn(A2.textContent) : Xn(A2.textContent)), d2 += m2, this.addLineInfo(x2, f2);
  10388. } else {
  10389. var R2 = this.getSVGLineElement("", 0);
  10390. R2.add(this.getSvgElement(".", Va().translateStyleShortcuts(c2))), u2.add(R2);
  10391. var B2 = Math.ceil(R2.getBBox().height);
  10392. B2 > 0 && (d2 += B2), u2.removeElement(R2);
  10393. var H2 = this.getLineInfo(f2);
  10394. H2 && (H2.text = "", H2.element.textContent = "");
  10395. }
  10396. }
  10397. this.maybeHideOversized(), this.measureFailed = false, 0 != this.bbox.width && 0 != this.bbox.height || (this.measureFailed = true), this._measuredWidth = lt(gt(this.bbox.width, this.pixelWidth - this.pixelPaddingLeft - this.pixelPaddingRight)), this._measuredHeight = lt(gt(this.bbox.height, this.pixelHeight - this.pixelPaddingTop - this.pixelPaddingBottom)), this.alignSVGText(), this.bbox.width = this._measuredWidth, this.bbox.height = this._measuredHeight, i3 == this._measuredHeight && e4 == this._measuredWidth || this.dispatch("transformed"), this.hideUnused(h2.length);
  10398. } else {
  10399. this.element.removeAttr("display"), this.resetBBox(), (u2 = this.element).removeChildren(), this.setCache("lineInfo", [], 0);
  10400. var N2 = this.paper.foreignObject();
  10401. u2.add(N2), this.maxWidth && N2.attr({ width: this.maxWidth - this.pixelPaddingLeft - this.pixelPaddingRight }), this.maxHeight && N2.attr({ height: this.maxHeight - this.pixelPaddingTop - this.pixelPaddingBottom });
  10402. var W2 = this.getHTMLLineElement(l2);
  10403. N2.node.appendChild(W2), W2.style.display = "inline-block";
  10404. var X2 = W2.clientWidth, Y2 = W2.clientHeight;
  10405. W2.style.display = "block", this._bbox = { x: 0, y: 0, width: X2, height: Y2 }, N2.attr({ width: X2 + 1, height: Y2 }), this.maybeHideOversized(), this._measuredWidth = gt(this.bbox.width, this.pixelWidth - this.pixelPaddingLeft - this.pixelPaddingRight), this._measuredHeight = gt(this.bbox.height, this.pixelHeight - this.pixelPaddingTop - this.pixelPaddingBottom), this.bbox.width = this._measuredWidth, this.bbox.height = this._measuredHeight, this.truncate && (W2.style.overflow = "hidden"), (X2 > r3 || Y2 > s2) && (this.isOversized = true);
  10406. }
  10407. this.setStyles(), this.updateCenter(), this.updateBackground(), "none" == p2 && this.group.attr({ display: "none" }), this.pathElement && this.paper.appendDef(this.pathElement);
  10408. } else
  10409. this.element.attr({ display: "none" });
  10410. }
  10411. } else
  10412. n3.events.once("maxsizechanged", this.hardInvalidate, this, false);
  10413. }, e3.prototype.maybeHideOversized = function() {
  10414. this.hideOversized && (this.availableWidth < this.bbox.width || this.availableHeight < this.bbox.height ? (this.element.attr({ display: "none" }), this.isOversized = true) : (this.element.removeAttr("display"), this.isOversized = false));
  10415. }, e3.prototype.alignSVGText = function() {
  10416. var t3 = this.element, e4 = t3.node.children || t3.node.childNodes;
  10417. if (e4 && (!e4 || 0 != e4.length)) {
  10418. var i3 = this._measuredWidth, n3 = this._measuredHeight;
  10419. this.pixelPaddingLeft, this.pixelPaddingRight, this.pixelPaddingTop, this.pixelPaddingBottom, this.rtl ? t3.attr({ direction: "rtl" }) : t3.removeAttr("direction");
  10420. for (var r3 = e4.length - 1; r3 >= 0; r3--) {
  10421. var s2 = e4[r3];
  10422. if (s2.setAttribute("text-anchor", this.textAlign), this.textPathElement)
  10423. s2.removeAttribute("x"), s2.removeAttribute("y");
  10424. else {
  10425. switch (this.textAlign) {
  10426. case "middle":
  10427. s2.setAttribute("x", (i3 / 2).toString() + "px");
  10428. break;
  10429. case "end":
  10430. this.rtl || s2.setAttribute("x", i3.toString());
  10431. break;
  10432. default:
  10433. this.rtl ? s2.setAttribute("x", i3.toString()) : s2.removeAttribute("text-anchor");
  10434. }
  10435. var a2 = U(s2.getAttribute("y"));
  10436. switch (this.textValign) {
  10437. case "middle":
  10438. s2.setAttribute("y", ((a2 || 0) + (n3 - this.bbox.height) / 2).toString());
  10439. break;
  10440. case "bottom":
  10441. s2.setAttribute("y", ((a2 || 0) + n3 - this.bbox.height).toString());
  10442. break;
  10443. default:
  10444. s2.setAttribute("y", (a2 || 0).toString());
  10445. }
  10446. }
  10447. }
  10448. }
  10449. }, e3.prototype.getSVGLineElement = function(t3, e4) {
  10450. var i3 = this.paper.addGroup("text");
  10451. return i3.textContent = t3, i3.attr({ x: "0" }), Z(e4) && i3.attr({ y: e4.toString() }), (this.truncate || this.wrap) && i3.attr({ overflow: "hidden" }), i3;
  10452. }, Object.defineProperty(e3.prototype, "rtl", { get: function() {
  10453. return Z(this._rtl) ? this._rtl : !!this._topParent && this._topParent.rtl;
  10454. }, set: function(t3) {
  10455. t3 = z(t3), this._rtl = t3, this.element && this.alignSVGText();
  10456. }, enumerable: true, configurable: true }), e3.prototype.resetBBox = function() {
  10457. this._bbox = { x: 0, y: 0, width: 0, height: 0 };
  10458. }, e3.prototype.getHTMLLineElement = function(t3) {
  10459. var e4 = document.createElement("div");
  10460. switch (e4.innerHTML = t3, this.textAlign) {
  10461. case "middle":
  10462. e4.style.textAlign = "center";
  10463. break;
  10464. case "end":
  10465. e4.style.textAlign = "right";
  10466. }
  10467. return this.wrap ? e4.style.wordWrap = "break-word" : e4.style.whiteSpace = "nowrap", this.rtl && (e4.style.direction = "rtl"), Z(this.fill) && (e4.style.color = this.fill.toString()), e4;
  10468. }, e3.prototype.setStyles = function() {
  10469. var t3 = this.element;
  10470. !this.selectable || this.draggable || this.resizable || this.swipeable ? t3.addStyle({ webkitUserSelect: "none", msUserSelect: "none" }) : this.selectable && (t3.removeStyle("webkitUserSelect"), t3.removeStyle("msUserSelect"));
  10471. }, e3.prototype.hideUnused = function(t3) {
  10472. this.initLineCache();
  10473. var e4 = this.getCache("lineInfo");
  10474. if (e4.length >= t3)
  10475. for (var i3 = t3; i3 < e4.length; i3++) {
  10476. var n3 = e4[i3];
  10477. n3 && n3.element && n3.element.attr({ display: "none" });
  10478. }
  10479. }, Object.defineProperty(e3.prototype, "text", { get: function() {
  10480. return this.getPropertyValue("text");
  10481. }, set: function(t3) {
  10482. this.setPropertyValue("text", t3, true);
  10483. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "path", { get: function() {
  10484. return this.getPropertyValue("path");
  10485. }, set: function(t3) {
  10486. this.setPropertyValue("path", t3, true) && (this.pathElement && this.pathElement.dispose(), this.textPathElement && this.textPathElement.dispose(), this.pathElement = this.paper.add("path"), this.pathElement.attr({ d: t3 }), this.pathElement.attr({ id: "text-path-" + this.uid }), this._disposers.push(this.pathElement), this.textPathElement = this.paper.addGroup("textPath"), this.textPathElement.attrNS(bs, "xlink:href", "#text-path-" + this.uid), this.textPathElement.attr({ path: t3 }), this._disposers.push(this.textPathElement), this.hardInvalidate());
  10487. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "locationOnPath", { get: function() {
  10488. return this.getPropertyValue("locationOnPath");
  10489. }, set: function(t3) {
  10490. this.setPropertyValue("locationOnPath", t3), this.textPathElement && this.textPathElement.attr({ startOffset: 100 * t3 + "%" });
  10491. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "baseLineRatio", { get: function() {
  10492. return this.getPropertyValue("baseLineRatio");
  10493. }, set: function(t3) {
  10494. this.setPropertyValue("baseLineRatio", t3);
  10495. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wrap", { get: function() {
  10496. return this.getPropertyValue("wrap");
  10497. }, set: function(t3) {
  10498. this.resetBBox(), this.setPropertyValue("wrap", t3, true);
  10499. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "truncate", { get: function() {
  10500. return this.getPropertyValue("truncate");
  10501. }, set: function(t3) {
  10502. this.resetBBox(), this.setPropertyValue("truncate", t3, true);
  10503. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fullWords", { get: function() {
  10504. return this.getPropertyValue("fullWords");
  10505. }, set: function(t3) {
  10506. this.setPropertyValue("fullWords", t3, true);
  10507. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ellipsis", { get: function() {
  10508. return this.getPropertyValue("ellipsis");
  10509. }, set: function(t3) {
  10510. this.setPropertyValue("ellipsis", t3, true);
  10511. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "selectable", { get: function() {
  10512. return this.getPropertyValue("selectable");
  10513. }, set: function(t3) {
  10514. this.setPropertyValue("selectable", t3, true), this.setStyles();
  10515. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "textAlign", { get: function() {
  10516. return this.getPropertyValue("textAlign");
  10517. }, set: function(t3) {
  10518. this.setPropertyValue("textAlign", t3, true);
  10519. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "textValign", { get: function() {
  10520. return this.getPropertyValue("textValign");
  10521. }, set: function(t3) {
  10522. this.setPropertyValue("textValign", t3, true);
  10523. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "html", { get: function() {
  10524. return this.getPropertyValue("html");
  10525. }, set: function(t3) {
  10526. this.setPropertyValue("html", t3, true), Z(t3) || this.element.removeChildrenByTag("foreignObject");
  10527. }, enumerable: true, configurable: true }), e3.prototype.setFill = function(e4) {
  10528. if (t2.prototype.setFill.call(this, e4), this.html)
  10529. for (var i3 = this.element.node.getElementsByTagName("div"), n3 = 0; n3 < i3.length; n3++) {
  10530. var r3 = i3[n3];
  10531. Z(this.fill) && (r3.style.color = this.fill.toString());
  10532. }
  10533. }, Object.defineProperty(e3.prototype, "hideOversized", { get: function() {
  10534. return this.getPropertyValue("hideOversized");
  10535. }, set: function(t3) {
  10536. this.setPropertyValue("hideOversized", t3, true);
  10537. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ignoreFormatting", { get: function() {
  10538. return this.getPropertyValue("ignoreFormatting");
  10539. }, set: function(t3) {
  10540. this.setPropertyValue("ignoreFormatting", t3, true);
  10541. }, enumerable: true, configurable: true }), e3.prototype.measureElement = function() {
  10542. }, e3.prototype.getLineInfo = function(t3) {
  10543. this.initLineCache();
  10544. var e4 = this.getCache("lineInfo");
  10545. return e4.length > t3 ? e4[t3] : void 0;
  10546. }, e3.prototype.addLineInfo = function(t3, e4) {
  10547. this.initLineCache(), this.getCache("lineInfo")[e4] = t3;
  10548. }, e3.prototype.initLineCache = function() {
  10549. Z(this.getCache("lineInfo")) || this.setCache("lineInfo", [], 0);
  10550. }, e3.prototype.setDataItem = function(e4) {
  10551. this._sourceDataItemEvents && this._sourceDataItemEvents.dispose(), e4 && (this._sourceDataItemEvents = new me([e4.events.on("valuechanged", this.invalidate, this, false), e4.events.on("workingvaluechanged", this.invalidate, this, false), e4.events.on("calculatedvaluechanged", this.invalidate, this, false), e4.events.on("propertychanged", this.invalidate, this, false)])), t2.prototype.setDataItem.call(this, e4);
  10552. }, Object.defineProperty(e3.prototype, "availableWidth", { get: function() {
  10553. return Z(this.maxWidth) ? this.maxWidth : this.pixelWidth;
  10554. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "availableHeight", { get: function() {
  10555. return Z(this.maxHeight) ? this.maxHeight : this.pixelHeight;
  10556. }, enumerable: true, configurable: true }), e3.prototype.getSvgElement = function(t3, e4, i3) {
  10557. var n3 = this.paper.add("tspan");
  10558. if (n3.textContent = t3, e4)
  10559. if (ls.nonce && i3) {
  10560. var r3 = "amcharts_element_style_" + btoa(e4).replace(/[^\w]*/g, "");
  10561. n3.node.setAttribute("class", r3);
  10562. var s2 = document.createElementNS(ms, "defs");
  10563. i3.node.appendChild(s2);
  10564. var a2 = document.createElement("style");
  10565. a2.type = "text/css", a2.innerHTML = "." + r3 + " { " + e4 + "}", a2.setAttribute("nonce", ls.nonce), s2.appendChild(a2);
  10566. } else
  10567. n3.node.setAttribute("style", e4);
  10568. return i3 && i3.add(n3), n3;
  10569. }, e3.prototype.deepInvalidate = function() {
  10570. t2.prototype.deepInvalidate.call(this), this.hardInvalidate();
  10571. }, Object.defineProperty(e3.prototype, "readerTitle", { get: function() {
  10572. var t3 = this.getPropertyValue("readerTitle");
  10573. return t3 ? this.dataItem && (t3 = this.populateString(t3)) : t3 = this.populateString($n(An(this.html) ? this.html : this.text)), t3;
  10574. }, set: function(t3) {
  10575. t3 = G(t3), this.setPropertyValue("readerTitle", t3) && this.applyAccessibility();
  10576. }, enumerable: true, configurable: true }), e3;
  10577. }($a);
  10578. Ii.registeredClasses.Label = co, lo.push({ relevant: ho.heightXS, state: function(t2, e3) {
  10579. if (t2 instanceof co && t2.parent && t2.parent.isBaseSprite) {
  10580. var i3 = t2.states.create(e3);
  10581. return i3.properties.disabled = true, i3;
  10582. }
  10583. return null;
  10584. } });
  10585. var fo = function(t2) {
  10586. function e3() {
  10587. var e4 = t2.call(this) || this;
  10588. return e4.className = "RoundedRectangle", e4.element = e4.paper.add("path"), e4.cornerRadius(3, 3, 3, 3), e4.applyTheme(), e4;
  10589. }
  10590. return C(e3, t2), e3.prototype.draw = function() {
  10591. t2.prototype.draw.call(this);
  10592. var e4 = this.innerWidth, i3 = this.innerHeight;
  10593. if (tt(e4) && tt(i3)) {
  10594. var n3 = yt(e4, i3) / 2, r3 = Vn(this.cornerRadiusTopLeft, n3), s2 = Vn(this.cornerRadiusTopRight, n3), a2 = Vn(this.cornerRadiusBottomRight, n3), o3 = Vn(this.cornerRadiusBottomLeft, n3), l2 = yt(Math.abs(e4 / 2), Math.abs(i3 / 2)), h2 = ut(r3, 0, l2), p2 = ut(s2, 0, l2), u2 = ut(a2, 0, l2), d2 = ut(o3, 0, l2), c2 = "M" + h2 + ",0 L" + (e4 - p2) + ",0 a" + p2 + "," + p2 + " 0 0 1 " + p2 + "," + p2 + " L" + e4 + "," + (i3 - u2) + " a" + u2 + "," + u2 + " 0 0 1 -" + u2 + "," + u2 + " L" + d2 + "," + i3 + " a" + d2 + "," + d2 + " 0 0 1 -" + d2 + ",-" + d2 + " L0," + h2 + " a" + h2 + "," + h2 + " 0 0 1 " + h2 + ",-" + h2 + " Z";
  10595. this.path = c2;
  10596. }
  10597. }, e3.prototype.cornerRadius = function(t3, e4, i3, n3) {
  10598. this.cornerRadiusTopLeft = t3, this.cornerRadiusTopRight = e4, this.cornerRadiusBottomLeft = i3, this.cornerRadiusBottomRight = n3;
  10599. }, Object.defineProperty(e3.prototype, "cornerRadiusTopLeft", { get: function() {
  10600. return this.getPropertyValue("cornerRadiusTopLeft");
  10601. }, set: function(t3) {
  10602. this.setPercentProperty("cornerRadiusTopLeft", t3, true);
  10603. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadiusTopRight", { get: function() {
  10604. return this.getPropertyValue("cornerRadiusTopRight");
  10605. }, set: function(t3) {
  10606. this.setPercentProperty("cornerRadiusTopRight", t3, true);
  10607. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadiusBottomRight", { get: function() {
  10608. return this.getPropertyValue("cornerRadiusBottomRight");
  10609. }, set: function(t3) {
  10610. this.setPercentProperty("cornerRadiusBottomRight", t3, true);
  10611. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadiusBottomLeft", { get: function() {
  10612. return this.getPropertyValue("cornerRadiusBottomLeft");
  10613. }, set: function(t3) {
  10614. this.setPercentProperty("cornerRadiusBottomLeft", t3, true);
  10615. }, enumerable: true, configurable: true }), e3.prototype.measureElement = function() {
  10616. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  10617. return this.definedBBox ? this.definedBBox : this.isMeasured ? { x: 0, y: 0, width: this.innerWidth, height: this.innerHeight } : { x: 0, y: 0, width: 0, height: 0 };
  10618. }, enumerable: true, configurable: true }), e3;
  10619. }(Za);
  10620. Ii.registeredClasses.RoundedRectangle = fo;
  10621. var go = function(t2) {
  10622. function e3() {
  10623. var e4 = t2.call(this) || this;
  10624. e4.className = "Button", e4.tooltipY = 0, e4.iconPosition = "left", e4.layout = "horizontal", e4.contentAlign = "center", e4.contentValign = "middle", e4.padding(8, 16, 8, 16), e4.setStateOnChildren = true;
  10625. var i3 = new Ys(), n3 = e4.background;
  10626. n3.fill = i3.getFor("secondaryButton"), n3.stroke = i3.getFor("secondaryButtonStroke"), n3.fillOpacity = 1, n3.strokeOpacity = 1, n3.cornerRadius(3, 3, 3, 3), e4.label = new co(), e4.label.fill = i3.getFor("secondaryButtonText"), e4.label.shouldClone = false;
  10627. var r3 = n3.states.create("hover");
  10628. r3.properties.fillOpacity = 1, r3.properties.fill = i3.getFor("secondaryButtonHover");
  10629. var s2 = n3.states.create("down");
  10630. return s2.transitionDuration = 100, s2.properties.fill = i3.getFor("secondaryButtonDown"), s2.properties.fillOpacity = 1, e4.role = "button", e4.focusable = true, e4.applyTheme(), e4;
  10631. }
  10632. return C(e3, t2), Object.defineProperty(e3.prototype, "icon", { get: function() {
  10633. return this._icon;
  10634. }, set: function(t3) {
  10635. var e4 = this._icon;
  10636. e4 && (e4.parent = void 0), t3 && (this._icon = t3, t3.parent = this, t3.interactionsEnabled = false, t3.shouldClone = false, this.iconPosition = this.iconPosition, this._disposers.push(t3));
  10637. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "iconPosition", { get: function() {
  10638. return this.getPropertyValue("iconPosition");
  10639. }, set: function(t3) {
  10640. this.setPropertyValue("iconPosition", t3), this.icon && ("left" == t3 ? this.icon.toBack() : this.icon.toFront());
  10641. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  10642. return this._label;
  10643. }, set: function(t3) {
  10644. this._label && this.removeDispose(this._label), this._label = t3, t3 && (t3.parent = this, t3.interactionsEnabled = false, this._disposers.push(this._label));
  10645. }, enumerable: true, configurable: true }), e3.prototype.createBackground = function() {
  10646. return new fo();
  10647. }, e3.prototype.copyFrom = function(e4) {
  10648. t2.prototype.copyFrom.call(this, e4), e4.label && this.label.copyFrom(e4.label), e4.icon && (this.icon = e4.icon.clone());
  10649. }, e3;
  10650. }($a);
  10651. Ii.registeredClasses.Button = go;
  10652. var yo = function(t2) {
  10653. function e3() {
  10654. var e4 = t2.call(this) || this;
  10655. return e4.className = "Circle", e4.element = e4.paper.add("circle"), e4.setPercentProperty("radius", V(100)), e4.setPropertyValue("horizontalCenter", "middle"), e4.setPropertyValue("verticalCenter", "middle"), e4.applyTheme(), e4;
  10656. }
  10657. return C(e3, t2), e3.prototype.draw = function() {
  10658. t2.prototype.draw.call(this), this.element.attr({ r: this.pixelRadius });
  10659. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  10660. return this.getPropertyValue("radius");
  10661. }, set: function(t3) {
  10662. this.setPercentProperty("radius", t3, true, false, 10, false);
  10663. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  10664. return Vn(this.radius, yt(this.innerWidth / 2, this.innerHeight / 2));
  10665. }, enumerable: true, configurable: true }), e3.prototype.measureElement = function() {
  10666. var t3 = this.pixelRadius;
  10667. this._bbox = { x: -t3, y: -t3, width: 2 * t3, height: 2 * t3 };
  10668. }, e3;
  10669. }(Za);
  10670. Ii.registeredClasses.Circle = yo;
  10671. var mo = function(t2) {
  10672. function e3() {
  10673. var e4 = t2.call(this) || this;
  10674. return e4.className = "Ellipse", e4.element = e4.paper.add("ellipse"), e4.applyTheme(), e4;
  10675. }
  10676. return C(e3, t2), e3.prototype.draw = function() {
  10677. t2.prototype.draw.call(this), this.element.attr({ rx: this.radius }), this.element.attr({ ry: this.radiusY });
  10678. }, Object.defineProperty(e3.prototype, "radiusY", { get: function() {
  10679. return this.innerHeight / 2;
  10680. }, set: function(t3) {
  10681. this.height = 2 * t3, this.invalidate();
  10682. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  10683. return this.innerWidth / 2;
  10684. }, set: function(t3) {
  10685. this.width = 2 * t3, this.invalidate();
  10686. }, enumerable: true, configurable: true }), e3;
  10687. }(yo);
  10688. Ii.registeredClasses.Ellipse = mo;
  10689. var vo = function(t2) {
  10690. function e3() {
  10691. var e4 = t2.call(this) || this;
  10692. return e4.className = "Image", e4.element = e4.paper.add("image"), e4.applyTheme(), e4.width = 50, e4.height = 50, e4;
  10693. }
  10694. return C(e3, t2), e3.prototype.draw = function() {
  10695. if (t2.prototype.draw.call(this), this.href) {
  10696. var e4 = this.innerWidth, i3 = this.innerHeight;
  10697. tt(this.widthRatio) && (e4 = i3 * this.widthRatio, this.width = e4), tt(this.heightRatio) && (i3 = e4 * this.heightRatio, this.height = i3), this.element.attr({ width: e4, height: i3 }), this.element.attrNS(bs, "xlink:href", this.href);
  10698. }
  10699. }, Object.defineProperty(e3.prototype, "href", { get: function() {
  10700. return this.getPropertyValue("href");
  10701. }, set: function(t3) {
  10702. this.setPropertyValue("href", t3, true);
  10703. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "widthRatio", { get: function() {
  10704. return this.getPropertyValue("widthRatio");
  10705. }, set: function(t3) {
  10706. this.setPropertyValue("widthRatio", t3, true);
  10707. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "heightRatio", { get: function() {
  10708. return this.getPropertyValue("heightRatio");
  10709. }, set: function(t3) {
  10710. this.setPropertyValue("heightRatio", t3, true);
  10711. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bbox", { get: function() {
  10712. return { x: 0, y: 0, width: this.pixelWidth, height: this.pixelHeight };
  10713. }, enumerable: true, configurable: true }), e3;
  10714. }(Za);
  10715. Ii.registeredClasses.Image = vo;
  10716. var bo = function(t2) {
  10717. function e3() {
  10718. var e4 = t2.call(this) || this;
  10719. return e4.className = "Line", e4.element = e4.paper.add("line"), e4.fill = dn(), e4.x1 = 0, e4.y1 = 0, e4.applyTheme(), e4;
  10720. }
  10721. return C(e3, t2), e3.prototype.draw = function() {
  10722. t2.prototype.draw.call(this), this.x1 == this.x2 || this.y1 == this.y2 ? this.pixelPerfect = true : this.pixelPerfect = false, this.x1 = this.x1, this.x2 = this.x2, this.y1 = this.y1, this.y2 = this.y2;
  10723. }, Object.defineProperty(e3.prototype, "x1", { get: function() {
  10724. return this.getPropertyValue("x1");
  10725. }, set: function(t3) {
  10726. tt(t3) || (t3 = 0);
  10727. var e4 = 0;
  10728. this.pixelPerfect && this.stroke instanceof Oa && (e4 = 1e-5), this.setPropertyValue("x1", t3, true), this.element.attr({ x1: t3 + e4 });
  10729. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "x2", { get: function() {
  10730. var t3 = this.getPropertyValue("x2");
  10731. return tt(t3) || (t3 = this.pixelWidth), t3;
  10732. }, set: function(t3) {
  10733. tt(t3) || (t3 = 0), this.setPropertyValue("x2", t3, true), this.element.attr({ x2: t3 });
  10734. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y1", { get: function() {
  10735. return this.getPropertyValue("y1");
  10736. }, set: function(t3) {
  10737. tt(t3) || (t3 = 0);
  10738. var e4 = 0;
  10739. this.pixelPerfect && this.stroke instanceof Oa && (e4 = 1e-5), this.setPropertyValue("y1", t3, true), this.element.attr({ y1: t3 + e4 });
  10740. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y2", { get: function() {
  10741. var t3 = this.getPropertyValue("y2");
  10742. return tt(t3) || (t3 = this.pixelHeight), t3;
  10743. }, set: function(t3) {
  10744. tt(t3) || (t3 = 0), this.setPropertyValue("y2", t3, true), this.element.attr({ y2: t3 });
  10745. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3) {
  10746. var e4 = { x: this.x1, y: this.y1 }, i3 = { x: this.x2, y: this.y2 }, n3 = St(e4, i3, t3), r3 = Dt(e4, i3);
  10747. return { x: n3.x, y: n3.y, angle: r3 };
  10748. }, e3;
  10749. }(Za);
  10750. Ii.registeredClasses.Line = bo;
  10751. var xo = function(t2) {
  10752. function e3() {
  10753. var e4 = t2.call(this) || this;
  10754. return e4.className = "PointedShape", e4.pointerBaseWidth = 15, e4.pointerLength = 10, e4.pointerY = 0, e4.pointerX = 0, e4.applyTheme(), e4;
  10755. }
  10756. return C(e3, t2), e3.prototype.draw = function() {
  10757. t2.prototype.draw.call(this), tt(this.pointerX) || (this.pointerX = this.pixelWidth / 2), tt(this.pointerY) || (this.pointerY = this.pixelHeight + 10);
  10758. }, Object.defineProperty(e3.prototype, "pointerBaseWidth", { get: function() {
  10759. return this.getPropertyValue("pointerBaseWidth");
  10760. }, set: function(t3) {
  10761. this.setPropertyValue("pointerBaseWidth", t3, true);
  10762. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pointerLength", { get: function() {
  10763. return this.getPropertyValue("pointerLength");
  10764. }, set: function(t3) {
  10765. this.setPropertyValue("pointerLength", t3, true);
  10766. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pointerX", { get: function() {
  10767. return this.getPropertyValue("pointerX");
  10768. }, set: function(t3) {
  10769. this.setPropertyValue("pointerX", t3, true);
  10770. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pointerY", { get: function() {
  10771. return this.getPropertyValue("pointerY");
  10772. }, set: function(t3) {
  10773. this.setPropertyValue("pointerY", t3, true);
  10774. }, enumerable: true, configurable: true }), e3;
  10775. }(Za), _o = function(t2) {
  10776. function e3() {
  10777. var e4 = t2.call(this) || this;
  10778. return e4.className = "PointedRectangle", e4.element = e4.paper.add("path"), e4.cornerRadius = 6, e4.applyTheme(), e4;
  10779. }
  10780. return C(e3, t2), e3.prototype.draw = function() {
  10781. t2.prototype.draw.call(this);
  10782. var e4 = this.cornerRadius, i3 = this.innerWidth, n3 = this.innerHeight;
  10783. if (i3 > 0 && n3 > 0) {
  10784. var r3, s2, a2 = this.pointerX, o3 = this.pointerY, l2 = this.pointerBaseWidth / 2, h2 = yt(i3 / 2, n3 / 2), p2 = ut(e4, 0, h2), u2 = ut(e4, 0, h2), d2 = ut(e4, 0, h2), c2 = ut(e4, 0, h2), f2 = void 0, g2 = void 0, y2 = void 0, m2 = void 0, v2 = (a2 - 0) * (n3 - 0) - (o3 - 0) * (i3 - 0), b2 = (a2 - 0) * (0 - n3) - (o3 - n3) * (i3 - 0);
  10785. f2 = v2 > 0 && b2 > 0 ? "M" + p2 + ",0 L" + ((r3 = ut(a2, p2 + l2, i3 - l2 - u2)) - l2) + ",0 L" + a2 + "," + (o3 = ut(o3, -1 / 0, 0)) + " L" + (r3 + l2) + ",0 L" + (i3 - u2) + ",0" : "M" + p2 + ",0 L" + (i3 - u2) + ",0", y2 = v2 < 0 && b2 < 0 ? " L" + (i3 - d2) + "," + n3 + " L" + ((r3 = ut(a2, c2 + l2, i3 - l2 - d2)) + l2) + "," + n3 + " L" + a2 + "," + (o3 = ut(o3, n3, 1 / 0)) + " L" + (r3 - l2) + "," + n3 + " L" + c2 + "," + n3 : " L" + c2 + "," + n3, m2 = v2 < 0 && b2 > 0 ? " L0," + (n3 - c2) + " L0," + ((s2 = ut(o3, p2 + l2, n3 - c2 - l2)) + l2) + " L" + (a2 = ut(a2, -1 / 0, 0)) + "," + o3 + " L0," + (s2 - l2) + " L0," + p2 : " L0," + p2, g2 = v2 > 0 && b2 < 0 ? " L" + i3 + "," + u2 + " L" + i3 + "," + ((s2 = ut(o3, u2 + l2, n3 - l2 - d2)) - l2) + " L" + (a2 = ut(a2, i3, 1 / 0)) + "," + o3 + " L" + i3 + "," + (s2 + l2) + " L" + i3 + "," + (n3 - d2) : " L" + i3 + "," + (n3 - d2);
  10786. var x2 = " a" + u2 + "," + u2 + " 0 0 1 " + u2 + "," + u2, _2 = " a" + d2 + "," + d2 + " 0 0 1 -" + d2 + "," + d2, P2 = " a" + c2 + "," + c2 + " 0 0 1 -" + c2 + ",-" + c2, w2 = " a" + p2 + "," + p2 + " 0 0 1 " + p2 + ",-" + p2;
  10787. this.path = f2 + x2 + g2 + _2 + y2 + P2 + m2 + w2;
  10788. }
  10789. }, Object.defineProperty(e3.prototype, "cornerRadius", { get: function() {
  10790. return this.getPropertyValue("cornerRadius");
  10791. }, set: function(t3) {
  10792. this.setPropertyValue("cornerRadius", t3, true);
  10793. }, enumerable: true, configurable: true }), e3;
  10794. }(xo);
  10795. function Po(t2) {
  10796. var e3 = Co(t2[0]), i3 = { x: 0, y: 0 }, n3 = ls.minPolylineStep;
  10797. tt(n3) || (n3 = 0.5);
  10798. for (var r3 = 0, s2 = t2.length; r3 < s2; r3++) {
  10799. var a2 = t2[r3];
  10800. _t(a2, i3) > n3 && (e3 += Co(a2), i3 = a2);
  10801. }
  10802. return e3;
  10803. }
  10804. function wo(t2) {
  10805. return " M" + lt(t2.x, 4) + "," + lt(t2.y, 4) + " ";
  10806. }
  10807. function Co(t2) {
  10808. return " L" + lt(t2.x, 4) + "," + lt(t2.y, 4) + " ";
  10809. }
  10810. function Oo(t2, e3) {
  10811. return " Q" + lt(e3.x, 4) + "," + lt(e3.y, 4) + " " + lt(t2.x, 4) + "," + lt(t2.y, 4);
  10812. }
  10813. function So(t2, e3, i3) {
  10814. return " C" + lt(e3.x, 4) + "," + lt(e3.y, 4) + " " + lt(i3.x, 4) + "," + lt(i3.y, 4) + " " + lt(t2.x, 4) + "," + lt(t2.y, 4);
  10815. }
  10816. function Io() {
  10817. return " Z";
  10818. }
  10819. function Do(t2, e3, i3, n3) {
  10820. if (0 == e3)
  10821. return "";
  10822. tt(n3) || (n3 = i3);
  10823. var r3 = "", s2 = ",", a2 = Math.ceil(Math.abs(e3) / 180), o3 = 1;
  10824. e3 < 0 && (o3 = 0);
  10825. var l2 = 0, h2 = 0, p2 = -ft(t2) * i3, u2 = -dt(t2) * n3;
  10826. if (e3 < 0.5 && i3 > 3e3)
  10827. return Co({ x: f2 = lt(ft(c2 = t2 + e3) * i3, 4), y: g2 = lt(dt(c2) * n3, 4) });
  10828. for (var d2 = 0; d2 < a2; d2++) {
  10829. var c2, f2, g2;
  10830. r3 += " a" + i3 + s2 + n3 + s2 + 0 + s2 + 0 + s2 + o3 + s2 + (f2 = lt(ft(c2 = t2 + e3 / a2 * (d2 + 1)) * i3 + p2 - l2, 4)) + s2 + (g2 = lt(dt(c2) * n3 + u2 - h2, 4)), l2 = f2, h2 = g2;
  10831. }
  10832. return r3;
  10833. }
  10834. function ko(t2, e3, i3, n3, r3, s2, a2) {
  10835. if (0 == e3)
  10836. return "";
  10837. if (tt(n3) || (n3 = 0), 0 == i3 && n3 <= 0)
  10838. return "";
  10839. if (i3 < n3) {
  10840. var o3 = i3;
  10841. i3 = n3, n3 = o3, tt(r3) && (r3 = r3 / n3 * i3);
  10842. }
  10843. 360 == (e3 = yt(e3, 360)) && (s2 = 0, a2 = 0);
  10844. var l2 = t2 + e3, h2 = dt(yt(e3, 45) / 2), p2 = (r3 = tt(r3) ? r3 : i3) / i3 * n3, u2 = r3 / i3 * (s2 = s2 || 0), d2 = r3 / i3 * (a2 = tt(a2) ? a2 : s2);
  10845. s2 = ut(s2, 0, (i3 - n3) / 2), u2 = ut(u2, 0, (r3 - p2) / 2), a2 = ut(a2, 0, (i3 - n3) / 2), d2 = ut(d2, 0, (r3 - p2) / 2), s2 = lt(ut(s2, 0, i3 * h2), 4), u2 = lt(ut(u2, 0, r3 * h2), 4), a2 = lt(ut(a2, 0, n3 * h2), 4), d2 = lt(ut(d2, 0, p2 * h2), 4);
  10846. var c2 = Math.asin(s2 / i3 / 2) * at * 2, f2 = Math.asin(u2 / r3 / 2) * at * 2;
  10847. n3 < a2 && (n3 = a2), p2 < d2 && (p2 = d2);
  10848. var g2 = Math.asin(a2 / n3 / 2) * at * 2, y2 = Math.asin(d2 / p2 / 2) * at * 2;
  10849. tt(g2) || (g2 = 0), tt(y2) || (y2 = 0);
  10850. var m2 = t2 + e3 / 2, v2 = { x: lt(ft(m2) * n3, 4), y: dt(m2) * p2 }, b2 = { x: ft(t2) * (n3 + a2), y: dt(t2) * (p2 + d2) }, x2 = { x: ft(t2) * (i3 - s2), y: dt(t2) * (r3 - u2) }, _2 = { x: ft(l2) * (i3 - s2), y: dt(l2) * (r3 - u2) }, P2 = { x: ft(l2) * (n3 + a2), y: dt(l2) * (p2 + d2) }, w2 = { x: ft(t2 + c2) * i3, y: dt(t2 + f2) * r3 }, C2 = { x: ft(l2 - g2) * n3, y: dt(l2 - y2) * p2 };
  10851. a2 += a2 * dt(g2 / 2), d2 += d2 * dt(y2 / 2), g2 > (l2 - t2) / 2 && (C2 = v2);
  10852. var O2 = "";
  10853. return 360 == e3 ? O2 = wo(x2) : (O2 = wo(b2), O2 += Co(x2), O2 += To(w2, s2, u2, true)), O2 += Do(t2 + c2, e3 - 2 * c2, i3, r3), tt(n3) && 0 != n3 ? (360 == e3 && 0 == s2 ? O2 += wo(P2) : (O2 += To(_2, s2, u2, true), O2 += Co(P2), O2 += To(C2, a2, d2, true)), O2 += Do(l2 - g2, -(e3 - 2 * g2), n3, p2), (e3 < 360 || s2 > 0) && (O2 += To(b2, a2, d2, true)), O2 += Co(b2)) : (O2 += To(_2, s2, u2, true), e3 < 360 && (O2 += Co(b2))), O2;
  10854. }
  10855. function To(t2, e3, i3, n3, r3, s2) {
  10856. if (0 == e3)
  10857. return "";
  10858. var a2 = ",";
  10859. return " A" + e3 + a2 + i3 + a2 + (s2 = s2 || 0) + a2 + +(r3 = Boolean(r3)) + a2 + +(n3 = Boolean(n3)) + a2 + lt(t2.x, 4) + a2 + lt(t2.y, 4);
  10860. }
  10861. function Ao(t2, e3, i3, n3) {
  10862. return tt(i3) || (i3 = 0), tt(n3) || (n3 = 0), wo({ x: i3, y: n3 }) + Co({ x: i3 + t2, y: n3 }) + Co({ x: i3 + t2, y: n3 + e3 }) + Co({ x: i3, y: n3 + e3 }) + " Z";
  10863. }
  10864. function Vo(t2, e3) {
  10865. var i3 = ",", n3 = " L";
  10866. return e3 ? "M" + t2.x + i3 + t2.y + n3 + t2.x + i3 + (t2.y + t2.height) + n3 + (t2.x + t2.width) + i3 + (t2.y + t2.height) + n3 + (t2.x + t2.width) + i3 + t2.y + n3 + t2.x + i3 + t2.y : "M" + t2.x + i3 + t2.y + n3 + (t2.x + t2.width) + i3 + t2.y + n3 + (t2.x + t2.width) + i3 + (t2.y + t2.height) + n3 + t2.x + i3 + (t2.y + t2.height) + n3 + t2.x + i3 + t2.y;
  10867. }
  10868. function Fo(t2, e3) {
  10869. var i3 = wa().add("path").node;
  10870. if (i3.setAttribute("d", t2), i3.getPointAtLength && i3.getTotalLength) {
  10871. for (var n3 = i3.getTotalLength(), r3 = [], s2 = 0; s2 < e3; s2++) {
  10872. var a2 = i3.getPointAtLength(s2 / e3 * n3);
  10873. r3.push({ x: a2.x, y: a2.y });
  10874. }
  10875. return r3;
  10876. }
  10877. i3.remove();
  10878. }
  10879. function Mo(t2, e3, i3, n3, r3, s2, a2, o3, l2) {
  10880. tt(o3) || (o3 = 0), tt(o3) || (l2 = o3);
  10881. for (var h2 = r3 + 0.01, p2 = o3 * st, u2 = []; h2 < i3 + a2; ) {
  10882. var d2 = s2;
  10883. if (d2 / 2 > h2 && (d2 = 2 * h2), (p2 += 2 * Math.asin(d2 / 2 / h2)) * at > l2 + (i3 - r3) / a2 * 360)
  10884. break;
  10885. var c2 = p2 * at, f2 = { x: t2 + h2 * Math.cos(p2), y: e3 + h2 * n3 / i3 * Math.sin(p2) };
  10886. u2.push(f2), h2 = r3 + c2 / 360 * a2;
  10887. }
  10888. return u2.shift(), u2;
  10889. }
  10890. function Lo(t2) {
  10891. if (!t2 || 0 == t2.length)
  10892. return "";
  10893. var e3 = wo(t2[0]);
  10894. if (t2 && t2.length > 0)
  10895. for (var i3 = 1; i3 < t2.length; i3++)
  10896. e3 += Co(t2[i3]);
  10897. return e3;
  10898. }
  10899. var jo = function(t2) {
  10900. function e3() {
  10901. var e4 = t2.call(this) || this;
  10902. return e4._distance = 0, e4.className = "Polyline", e4.element = e4.paper.add("path"), e4.shapeRendering = "auto", e4.fill = dn(), e4.strokeOpacity = 1, e4.applyTheme(), e4;
  10903. }
  10904. return C(e3, t2), e3.prototype.makePath = function() {
  10905. this._distance = 0;
  10906. var t3 = this.segments;
  10907. if (t3 && t3.length > 0) {
  10908. for (var e4 = "", i3 = 0, n3 = t3.length; i3 < n3; i3++) {
  10909. var r3 = t3[i3];
  10910. if (r3.length > 0) {
  10911. e4 += wo(r3[0]);
  10912. for (var s2 = 1; s2 < r3.length; s2++) {
  10913. var a2 = r3[s2];
  10914. e4 += Co(a2), this._distance += _t(r3[s2 - 1], a2);
  10915. }
  10916. }
  10917. }
  10918. this.path = e4;
  10919. }
  10920. this._realSegments = t3;
  10921. }, Object.defineProperty(e3.prototype, "segments", { get: function() {
  10922. return this.getPropertyValue("segments");
  10923. }, set: function(t3) {
  10924. this.setPropertyValue("segments", t3), this.makePath();
  10925. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "distance", { get: function() {
  10926. return this._distance;
  10927. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3) {
  10928. var e4 = 0;
  10929. t3 < 0 && (t3 = Math.abs(t3), e4 = 180);
  10930. var i3 = this._realSegments;
  10931. if (i3) {
  10932. for (var n3 = this.distance, r3 = 0, s2 = 0, a2 = 0, o3 = void 0, l2 = void 0, h2 = 0; h2 < i3.length; h2++) {
  10933. var p2 = i3[h2];
  10934. if (p2.length > 1) {
  10935. for (var u2 = 1; u2 < p2.length; u2++)
  10936. if (s2 = r3 / n3, a2 = (r3 += _t(o3 = p2[u2 - 1], l2 = p2[u2])) / n3, s2 <= t3 && a2 > t3) {
  10937. h2 = i3.length;
  10938. break;
  10939. }
  10940. } else
  10941. 1 == p2.length && (o3 = p2[0], l2 = p2[0], s2 = 0, a2 = 1);
  10942. }
  10943. if (o3 && l2) {
  10944. var d2 = St(o3, l2, (t3 - s2) / (a2 - s2));
  10945. return { x: d2.x, y: d2.y, angle: e4 + Dt(o3, l2) };
  10946. }
  10947. }
  10948. return { x: 0, y: 0, angle: 0 };
  10949. }, Object.defineProperty(e3.prototype, "realSegments", { get: function() {
  10950. return this._realSegments;
  10951. }, enumerable: true, configurable: true }), e3;
  10952. }(Za);
  10953. Ii.registeredClasses.Polyline = jo;
  10954. var Eo = function(t2) {
  10955. function e3() {
  10956. var e4 = t2.call(this) || this;
  10957. return e4.className = "Polyarc", e4.controlPointDistance = 0.5, e4.controlPointPosition = 0.5, e4.applyTheme(), e4;
  10958. }
  10959. return C(e3, t2), e3.prototype.makePath = function() {
  10960. this._distance = 0;
  10961. var t3 = this.segments;
  10962. if (t3 && t3.length > 0) {
  10963. var e4 = "";
  10964. this._realSegments = [];
  10965. for (var i3 = 0, n3 = t3.length; i3 < n3; i3++) {
  10966. var r3 = t3[i3], s2 = [];
  10967. if (this._realSegments.push(s2), r3.length > 0) {
  10968. e4 += wo(r3[0]);
  10969. for (var a2 = 1; a2 < r3.length; a2++) {
  10970. var o3 = r3[a2 - 1], l2 = r3[a2], h2 = _t(l2, o3), p2 = h2 * this.controlPointDistance, u2 = this.controlPointPosition, d2 = -Dt(o3, l2), c2 = { x: o3.x + (l2.x - o3.x) * u2 * 0.5 - p2 * dt(d2), y: o3.y + (l2.y - o3.y) * u2 * 0.5 - p2 * ft(d2) }, f2 = { x: o3.x + (l2.x - o3.x) * u2 * 1.5 - p2 * dt(d2), y: o3.y + (l2.y - o3.y) * u2 * 1.5 - p2 * ft(d2) };
  10971. e4 += So(l2, c2, f2);
  10972. var g2 = Math.ceil(h2), y2 = o3;
  10973. if (g2 > 0)
  10974. for (var m2 = 0; m2 <= g2; m2++) {
  10975. var v2 = Ft(o3, l2, c2, f2, m2 / g2);
  10976. s2.push(v2), this._distance += _t(y2, v2), y2 = v2;
  10977. }
  10978. else
  10979. s2.push(o3);
  10980. }
  10981. }
  10982. }
  10983. this.path = e4;
  10984. }
  10985. }, Object.defineProperty(e3.prototype, "controlPointPosition", { get: function() {
  10986. return this.getPropertyValue("controlPointPosition");
  10987. }, set: function(t3) {
  10988. this.setPropertyValue("controlPointPosition", t3), this.makePath();
  10989. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "controlPointDistance", { get: function() {
  10990. return this.getPropertyValue("controlPointDistance");
  10991. }, set: function(t3) {
  10992. this.setPropertyValue("controlPointDistance", t3), this.makePath();
  10993. }, enumerable: true, configurable: true }), e3;
  10994. }(jo);
  10995. Ii.registeredClasses.Polyarc = Eo;
  10996. var Ro = function(t2) {
  10997. function e3(e4) {
  10998. var i3 = t2.call(this) || this;
  10999. return i3._bboxes = [], i3.morphDuration = 800, i3.morphEasing = zr, i3.morphToSingle = true, i3.scaleRatio = 1, i3.className = "Morpher", i3.morphable = e4, i3.applyTheme(), i3;
  11000. }
  11001. return C(e3, t2), e3.prototype.morphToPolygon = function(t3, e4, i3) {
  11002. var n3 = this.morphable.currentPoints;
  11003. if (n3 && t3) {
  11004. this.sortPoints(n3), this.sortPoints(t3), this._morphFromPointsReal = [], this._morphToPointsReal = [], Z(e4) || (e4 = this.morphDuration), Z(i3) || (i3 = this.morphEasing), this._morphFromPointsReal = this.normalizePoints(t3, n3), this._morphToPointsReal = this.normalizePoints(n3, t3), this.morphable.currentPoints = this._morphFromPointsReal;
  11005. var r3 = new ys(this, { property: "morphProgress", from: 0, to: 1 }, e4, i3);
  11006. return this._disposers.push(r3), r3.start(), r3;
  11007. }
  11008. }, e3.prototype.normalizePoints = function(t3, e4) {
  11009. for (var i3 = 0, n3 = t3.length; i3 < n3; i3++) {
  11010. var r3 = t3[i3][0], s2 = t3[i3][1], a2 = q(Tt(r3)), o3 = a2.x + a2.width, l2 = a2.y + a2.height;
  11011. if (e4[i3] || (e4[i3] = []), r3 && !e4[i3][0] && (e4[i3][0] = [{ x: o3, y: l2 }, { x: o3, y: l2 }]), e4[i3][0]) {
  11012. e4[i3][0] = this.addPoints(e4[i3][0], r3.length);
  11013. for (var h2 = 1 / 0, p2 = 0, u2 = 0; u2 < e4[i3][0].length; u2++) {
  11014. var d2 = _t(e4[i3][0][u2], r3[0]);
  11015. d2 < h2 && (p2 = u2, h2 = d2);
  11016. }
  11017. var c2 = e4[i3][0].slice(0, p2), f2 = e4[i3][0].slice(p2);
  11018. e4[i3][0] = f2.concat(c2);
  11019. }
  11020. s2 && (e4[i3][1] || (e4[i3][1] = [{ x: o3, y: l2 }, { x: o3, y: l2 }]), e4[i3][1] = this.addPoints(e4[i3][1], s2.length));
  11021. }
  11022. return e4;
  11023. }, e3.prototype.sortPoints = function(t3) {
  11024. t3.sort(function(t4, e5) {
  11025. var i4 = q(Tt(t4[0])), n4 = q(Tt(e5[0]));
  11026. return i4.width * i4.height > n4.width * n4.height ? -1 : 1;
  11027. });
  11028. for (var e4 = [], i3 = 0, n3 = t3.length; i3 < n3; i3++) {
  11029. var r3 = t3[i3][0];
  11030. r3 && e4.push(q(Tt(r3)));
  11031. }
  11032. return At(e4);
  11033. }, e3.prototype.morphToCircle = function(t3, e4, i3) {
  11034. var n3 = this.morphable.points, r3 = this.sortPoints(n3);
  11035. this._morphFromPointsReal = [], this._morphToPointsReal = [], Z(e4) || (e4 = this.morphDuration), Z(i3) || (i3 = this.morphEasing);
  11036. for (var s2 = 0, a2 = n3.length; s2 < a2; s2++) {
  11037. var o3 = n3[s2][0], l2 = n3[s2][1];
  11038. if (this._morphFromPointsReal[s2] = [], this._morphToPointsReal[s2] = [], o3) {
  11039. var h2 = o3, p2 = o3, u2 = q(Tt(p2));
  11040. this.morphToSingle && (u2 = q(r3));
  11041. var d2 = u2.x + u2.width / 2, c2 = u2.y + u2.height / 2, f2 = t3;
  11042. tt(f2) || (f2 = Math.min(u2.width / 2, u2.height / 2)), h2 = [];
  11043. var g2 = Dt({ x: d2, y: c2 }, o3[0]), y2 = 100;
  11044. o3.length > y2 && (y2 = o3.length);
  11045. for (var m2 = 360 / ((y2 = (p2 = this.addPoints(o3, y2)).length) - 1), v2 = 0; v2 < y2; v2++) {
  11046. var b2 = m2 * v2 + g2, x2 = { x: d2 + f2 * ft(b2), y: c2 + f2 * dt(b2) };
  11047. h2[v2] = x2;
  11048. }
  11049. if (l2 && l2.length > 0)
  11050. for (var _2 = 0, P2 = l2.length; _2 < P2; _2++)
  11051. h2.push({ x: d2, y: c2 });
  11052. this._morphFromPointsReal[s2][0] = p2, this._morphToPointsReal[s2][0] = h2;
  11053. }
  11054. }
  11055. this.morphable.currentPoints = this._morphFromPointsReal;
  11056. var w2 = new ys(this, { property: "morphProgress", from: 0, to: 1 }, e4, i3);
  11057. return this._disposers.push(w2), w2.start(), w2;
  11058. }, e3.prototype.addPoints = function(t3, e4) {
  11059. for (var i3 = Math.round(e4 / t3.length), n3 = [], r3 = 0, s2 = t3.length; r3 < s2; r3++) {
  11060. var a2, o3 = t3[r3];
  11061. a2 = r3 == t3.length - 1 ? t3[0] : t3[r3 + 1], n3.push(o3);
  11062. for (var l2 = 1; l2 < i3; l2++) {
  11063. var h2 = l2 / i3, p2 = { x: o3.x + (a2.x - o3.x) * h2, y: o3.y + (a2.y - o3.y) * h2 };
  11064. n3.push(p2);
  11065. }
  11066. n3.length + t3.length - r3 == e4 && (i3 = 0);
  11067. }
  11068. if (n3.length < e4 && t3.length > 0) {
  11069. var u2 = t3[t3.length - 1];
  11070. for (l2 = n3.length; l2 < e4; l2++)
  11071. n3.push({ x: u2.x, y: u2.y });
  11072. }
  11073. return n3;
  11074. }, e3.prototype.morphToRectangle = function(t3, e4, i3, n3) {
  11075. var r3 = this.morphable.points;
  11076. this.sortPoints(r3), this._morphFromPointsReal = [], this._morphToPointsReal = [], Z(i3) || (i3 = this.morphDuration), Z(n3) || (n3 = this.morphEasing);
  11077. for (var s2 = 0, a2 = r3.length; s2 < a2; s2++) {
  11078. var o3 = r3[s2][0], l2 = r3[s2][1];
  11079. if (this._morphFromPointsReal[s2] = [], this._morphToPointsReal[s2] = [], o3) {
  11080. var h2 = o3, p2 = o3, u2 = this._bboxes[s2];
  11081. this.morphToSingle;
  11082. var d2 = u2.x, c2 = u2.y, f2 = t3, g2 = e4;
  11083. if (tt(f2) || (f2 = u2.width), tt(g2) || (g2 = u2.height), h2 = [{ x: d2, y: c2 }, { x: d2 + f2, y: c2 }, { x: d2 + f2, y: c2 + g2 }, { x: d2, y: c2 + g2 }], h2 = this.addPoints(h2, o3.length), o3.length < 4)
  11084. for (var y2 = o3.length; y2 < 4; y2++)
  11085. h2.push({ x: o3[y2].x, y: o3[y2].y });
  11086. if (l2 && l2.length > 0)
  11087. for (var m2 = u2.x + u2.width / 2, v2 = u2.y + u2.height / 2, b2 = 0, x2 = l2.length; b2 < x2; b2++)
  11088. h2.push({ x: m2, y: v2 });
  11089. this._morphFromPointsReal[s2][0] = p2, this._morphToPointsReal[s2][0] = h2;
  11090. }
  11091. }
  11092. this.morphable.currentPoints = this._morphFromPointsReal;
  11093. var _2 = new ys(this, { property: "morphProgress", from: 0, to: 1 }, i3, n3);
  11094. return this._disposers.push(_2), _2.start(), _2;
  11095. }, Object.defineProperty(e3.prototype, "morphProgress", { get: function() {
  11096. return this._morphProgress;
  11097. }, set: function(t3) {
  11098. this._morphProgress = t3;
  11099. var e4 = [];
  11100. if (null != t3) {
  11101. var i3 = this._morphFromPointsReal, n3 = this._morphToPointsReal;
  11102. if (null != i3 && null != n3)
  11103. for (var r3 = 0, s2 = i3.length; r3 < s2; r3++) {
  11104. var a2 = [];
  11105. e4.push(a2);
  11106. var o3 = i3[r3][0], l2 = i3[r3][1], h2 = n3[r3][0], p2 = n3[r3][1];
  11107. if (o3 && o3.length > 0 && h2 && h2.length > 0) {
  11108. for (var u2 = [], d2 = 0, c2 = o3.length; d2 < c2; d2++) {
  11109. var f2 = o3[d2], g2 = h2[d2], y2 = { x: f2.x + (g2.x * this.scaleRatio - f2.x) * t3, y: f2.y + (g2.y * this.scaleRatio - f2.y) * t3 };
  11110. u2.push(y2);
  11111. }
  11112. a2[0] = u2;
  11113. }
  11114. if (l2 && l2.length > 0 && p2 && p2.length > 0) {
  11115. for (var m2 = [], v2 = 0, b2 = l2.length; v2 < b2; v2++)
  11116. f2 = l2[v2], g2 = p2[v2], y2 = { x: f2.x + (g2.x * this.scaleRatio - f2.x) * t3, y: f2.y + (g2.y * this.scaleRatio - f2.y) * t3 }, m2.push(y2);
  11117. a2[1] = m2;
  11118. }
  11119. }
  11120. }
  11121. this.morphable.currentPoints = e4;
  11122. }, enumerable: true, configurable: true }), e3.prototype.morphBack = function(t3, e4) {
  11123. this._morphToPointsReal = this._morphFromPointsReal, this._morphFromPointsReal = this.morphable.currentPoints, Z(t3) || (t3 = this.morphDuration), Z(e4) || (e4 = this.morphEasing);
  11124. var i3 = new ys(this, { property: "morphProgress", from: 0, to: 1 }, t3, e4);
  11125. return this._disposers.push(i3), i3.start(), i3;
  11126. }, Object.defineProperty(e3.prototype, "animations", { get: function() {
  11127. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  11128. }, enumerable: true, configurable: true }), e3;
  11129. }(yn), Bo = function(t2) {
  11130. function e3() {
  11131. var e4 = t2.call(this) || this;
  11132. return e4.className = "Polygon", e4.element = e4.paper.add("path"), e4.shapeRendering = "auto", e4._currentPoints = [], e4.applyTheme(), e4;
  11133. }
  11134. return C(e3, t2), Object.defineProperty(e3.prototype, "points", { get: function() {
  11135. var t3 = this.getPropertyValue("points"), e4 = this.path;
  11136. if (e4 && (!t3 || 0 == t3.length)) {
  11137. for (var i3 = e4.slice(1, e4.length - 1).split("ZM"), n3 = 0; n3 < i3.length; n3++) {
  11138. var r3 = i3[n3];
  11139. if (r3.length > 0) {
  11140. var s2 = r3.split("M"), a2 = s2[0], o3 = s2[1];
  11141. if (a2 && a2.length > 0) {
  11142. var l2 = a2.split("L");
  11143. if (l2.length > 0) {
  11144. var h2 = [], p2 = [h2];
  11145. t3.push(p2);
  11146. for (var u2 = 0; u2 < l2.length; u2++) {
  11147. var d2 = l2[u2].split(",");
  11148. h2.push({ x: +d2[0], y: +d2[1] });
  11149. }
  11150. if (o3 && o3.length > 0) {
  11151. var c2 = o3.split("L");
  11152. if (c2.length > 0) {
  11153. var f2 = [];
  11154. for (p2.push(f2), u2 = c2.length - 1; u2 >= 0; u2--)
  11155. d2 = c2[u2].split(","), f2.push({ x: +d2[0], y: +d2[1] });
  11156. }
  11157. }
  11158. }
  11159. }
  11160. }
  11161. }
  11162. this.setPropertyValue("points", t3), this._currentPoints = t3;
  11163. }
  11164. return t3;
  11165. }, set: function(t3) {
  11166. this.setPropertyValue("points", t3, true), this._currentPoints = t3;
  11167. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "currentPoints", { get: function() {
  11168. return this._currentPoints && 0 != this._currentPoints.length || !this.path || (this._currentPoints = this.points), this._currentPoints;
  11169. }, set: function(t3) {
  11170. this._currentPoints != t3 && (this._currentPoints = t3, this.draw());
  11171. }, enumerable: true, configurable: true }), e3.prototype.draw = function() {
  11172. var e4, i3, n3, r3, s2 = "", a2 = this._currentPoints;
  11173. if (a2.length > 0) {
  11174. for (var o3 = 0, l2 = a2.length; o3 < l2; o3++) {
  11175. var h2 = a2[o3][0], p2 = a2[o3][1];
  11176. if (h2 && h2.length > 0) {
  11177. s2 += wo(d2 = h2[0]);
  11178. for (var u2 = 0; u2 < h2.length; u2++)
  11179. s2 += Co(d2 = h2[u2]), (!tt(i3) || i3 < d2.x) && (i3 = d2.x), (!tt(e4) || e4 > d2.x) && (e4 = d2.x), (!tt(n3) || n3 > d2.y) && (n3 = d2.y), (!tt(r3) || r3 < d2.y) && (r3 = d2.y);
  11180. }
  11181. if (p2 && p2.length > 0) {
  11182. var d2;
  11183. s2 += wo(d2 = p2[0]);
  11184. for (var c2 = 0, f2 = p2.length; c2 < f2; c2++)
  11185. s2 += Co(d2 = p2[c2]);
  11186. }
  11187. }
  11188. s2 && (s2 += " Z"), this.bbox.x = e4, this.bbox.y = n3, this.bbox.width = i3 - e4, this.bbox.height = r3 - n3, t2.prototype.setPath.call(this, s2);
  11189. }
  11190. }, e3.prototype.setPath = function(e4) {
  11191. return !!t2.prototype.setPath.call(this, e4) && (this.points = [], this._bbox = this.group.getBBox(), true);
  11192. }, e3.prototype.measureElement = function() {
  11193. }, Object.defineProperty(e3.prototype, "centerPoint", { get: function() {
  11194. return { x: this.bbox.x + this.bbox.width / 2, y: this.bbox.y + this.bbox.height / 2 };
  11195. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "morpher", { get: function() {
  11196. return this._morpher || (this._morpher = new Ro(this), this._disposers.push(this._morpher)), this._morpher;
  11197. }, enumerable: true, configurable: true }), e3;
  11198. }(Za);
  11199. Ii.registeredClasses.Polygon = Bo;
  11200. var Ho = function(t2) {
  11201. function e3() {
  11202. var e4 = t2.call(this) || this;
  11203. return e4.className = "Polyspline", e4.tensionX = 0.5, e4.tensionY = 0.5, e4.applyTheme(), e4;
  11204. }
  11205. return C(e3, t2), e3.prototype.makePath = function() {
  11206. this._distance = 0;
  11207. var t3 = this.segments, e4 = this.tensionX, i3 = this.tensionY;
  11208. if (this.allPoints = [], t3 && t3.length > 0) {
  11209. var n3 = "";
  11210. this._realSegments = [];
  11211. for (var r3 = 0, s2 = t3.length; r3 < s2; r3++) {
  11212. var a2 = t3[r3], o3 = [];
  11213. if (this._realSegments.push(o3), a2.length > 0) {
  11214. var l2 = a2[0], h2 = a2[a2.length - 1], p2 = false;
  11215. lt(l2.x, 3) == lt(h2.x) && lt(l2.y) == lt(h2.y) && (p2 = true), n3 += wo(a2[0]);
  11216. for (var u2 = 0; u2 < a2.length - 1; u2++) {
  11217. var d2 = a2[u2 - 1], c2 = a2[u2], f2 = a2[u2 + 1], g2 = a2[u2 + 2];
  11218. 0 === u2 ? d2 = a2[u2] : u2 == a2.length - 2 && (g2 = a2[u2 + 1]), g2 || (g2 = f2), 0 === u2 ? d2 = p2 ? a2[a2.length - 2] : a2[r3] : u2 == a2.length - 2 && (g2 = p2 ? a2[1] : a2[u2 + 1]);
  11219. var y2 = Mt(d2, c2, f2, 0, e4, i3), m2 = Lt(0, c2, f2, g2, e4, i3);
  11220. n3 += So(f2, y2, m2);
  11221. var v2 = 1.2 * Math.ceil(Ct(c2, f2, y2, m2, 20)), b2 = c2;
  11222. if (v2 > 0)
  11223. for (var x2 = 0; x2 <= v2; x2++) {
  11224. var _2 = Ft(c2, f2, y2, m2, x2 / v2);
  11225. if (_2.x != b2.x || _2.y != b2.y) {
  11226. o3.push(_2);
  11227. var P2 = lt(Dt(b2, _2), 5);
  11228. this._distance += _t(b2, _2), this.allPoints[Math.floor(this._distance)] = { x: _2.x, y: _2.y, angle: P2 }, b2 = _2;
  11229. }
  11230. }
  11231. else
  11232. o3.push(d2);
  11233. }
  11234. }
  11235. var w2 = this.allPoints;
  11236. if (w2.length > 1) {
  11237. for (var C2 = 0; C2 < w2.length; C2++)
  11238. if (!w2[C2]) {
  11239. if (C2 > 1)
  11240. w2[C2] = w2[C2 - 1];
  11241. else
  11242. for (var O2 = 1; O2 < w2.length; O2++)
  11243. if (w2[O2]) {
  11244. w2[C2] = w2[O2];
  11245. break;
  11246. }
  11247. }
  11248. }
  11249. }
  11250. this.path = n3;
  11251. }
  11252. }, e3.prototype.getClosestPointIndex = function(t3) {
  11253. var e4, i3 = this.allPoints, n3 = 1 / 0;
  11254. if (i3.length > 1)
  11255. for (var r3 = 1; r3 < i3.length; r3++) {
  11256. var s2 = _t(t3, i3[r3]);
  11257. s2 < n3 && (e4 = r3, n3 = s2);
  11258. }
  11259. return e4;
  11260. }, Object.defineProperty(e3.prototype, "tensionX", { get: function() {
  11261. return this.getPropertyValue("tensionX");
  11262. }, set: function(t3) {
  11263. this.setPropertyValue("tensionX", t3), this.makePath();
  11264. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tensionY", { get: function() {
  11265. return this.getPropertyValue("tensionY");
  11266. }, set: function(t3) {
  11267. this.setPropertyValue("tensionY", t3, true), this.makePath();
  11268. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  11269. var i3 = 0, n3 = this.allPoints, r3 = n3.length;
  11270. if (tt(t3) || (t3 = 0), r3 > 1) {
  11271. if (e4 && r3 > 3) {
  11272. if (t3 < 0) {
  11273. t3 < -0.01 && (t3 = -0.01);
  11274. var s2 = n3[0], a2 = n3[1];
  11275. return { x: o3 = s2.x - (s2.x - a2.x) * r3 * t3, y: l2 = s2.y - (s2.y - a2.y) * r3 * t3, angle: Dt(s2, a2) };
  11276. }
  11277. var o3, l2;
  11278. if (t3 > 1)
  11279. return t3 > 1.01 && (t3 = 1.01), s2 = n3[n3.length - 2], a2 = n3[n3.length - 3], { x: o3 = s2.x + (s2.x - a2.x) * r3 * (t3 - 1), y: l2 = s2.y + (s2.y - a2.y) * r3 * (t3 - 1), angle: Dt(s2, { x: o3, y: l2 }) };
  11280. if (1 == t3) {
  11281. var h2 = n3[n3.length - 1];
  11282. return { x: h2.x, y: h2.y, angle: h2.angle };
  11283. }
  11284. } else
  11285. t3 < 0 && (t3 = Math.abs(t3), i3 = 180), t3 >= 1 && (t3 = 0.9999999999999);
  11286. var p2;
  11287. return { x: (p2 = n3[Math.floor(t3 * r3)]).x, y: p2.y, angle: p2.angle + i3 };
  11288. }
  11289. return 1 == r3 ? { x: (p2 = n3[0]).x, y: p2.y, angle: p2.angle } : { x: 0, y: 0, angle: 0 };
  11290. }, e3;
  11291. }(jo);
  11292. Ii.registeredClasses.Polyspline = Ho;
  11293. var No = function(t2) {
  11294. function e3() {
  11295. var e4 = t2.call(this) || this;
  11296. return e4.className = "Slice", e4.setPropertyValue("cornerRadius", 0), e4.setPropertyValue("startAngle", 0), e4.setPercentProperty("innerRadius", 0), e4.setPercentProperty("radius", 0), e4.setPropertyValue("arc", 0), e4.setPropertyValue("shiftRadius", 0), e4.strokeOpacity = 1, e4.setPropertyValue("layout", "none"), e4.slice = e4.createChild(Za), e4.slice.isMeasured = false, e4._disposers.push(e4.slice), e4.applyTheme(), e4;
  11297. }
  11298. return C(e3, t2), e3.prototype.draw = function() {
  11299. t2.prototype.draw.call(this);
  11300. var e4 = this.radiusY;
  11301. this.radius > 0 && 0 == e4 && (e4 = 0.01), this.slice.path = ko(this.startAngle, this.arc, this.radius, this.pixelInnerRadius, e4, this.cornerRadius, this.innerCornerRadius), this.slice.invalidate(), this.shiftRadius = this.shiftRadius, this.realFill instanceof Sa && this.updateGradient(this.realFill), this.realStroke instanceof Sa && this.updateGradient(this.realStroke);
  11302. }, e3.prototype.updateGradient = function(t3) {
  11303. t3.element.attr({ gradientUnits: "userSpaceOnUse" }), t3.element.attr({ r: this.radius }), t3.cx = 0, t3.cy = 0, t3.element.attr({ radius: this.radius });
  11304. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  11305. return this.definedBBox ? this.definedBBox : this.isMeasured ? At([Bt(this.startAngle, this.startAngle + this.arc, this.pixelInnerRadius), Bt(this.startAngle, this.startAngle + this.arc, this.radius)]) : { x: 0, y: 0, width: 0, height: 0 };
  11306. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  11307. return this.getPropertyValue("startAngle");
  11308. }, set: function(t3) {
  11309. this.setPropertyValue("startAngle", Et(t3), true);
  11310. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "arc", { get: function() {
  11311. return this.getPropertyValue("arc");
  11312. }, set: function(t3) {
  11313. tt(t3) || (t3 = 0), this.setPropertyValue("arc", t3, true);
  11314. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  11315. var t3 = this.getPropertyValue("radius");
  11316. return tt(t3) || (t3 = 0), t3;
  11317. }, set: function(t3) {
  11318. this.setPropertyValue("radius", t3, true);
  11319. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radiusY", { get: function() {
  11320. var t3 = this.getPropertyValue("radiusY");
  11321. return tt(t3) || (t3 = this.radius), t3;
  11322. }, set: function(t3) {
  11323. this.setPropertyValue("radiusY", t3, true);
  11324. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  11325. return this.getPropertyValue("innerRadius");
  11326. }, set: function(t3) {
  11327. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  11328. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  11329. return Vn(this.innerRadius, this.radius);
  11330. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadius", { get: function() {
  11331. return this.getPropertyValue("cornerRadius");
  11332. }, set: function(t3) {
  11333. this.setPropertyValue("cornerRadius", t3, true);
  11334. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerCornerRadius", { get: function() {
  11335. return this.getPropertyValue("innerCornerRadius");
  11336. }, set: function(t3) {
  11337. this.setPropertyValue("innerCornerRadius", t3, true);
  11338. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "shiftRadius", { get: function() {
  11339. return this.getPropertyValue("shiftRadius");
  11340. }, set: function(t3) {
  11341. this.setPropertyValue("shiftRadius", t3), t3 = this.getPropertyValue("shiftRadius"), this.dx = t3 * this.radius * this.ix, this.dy = t3 * this.radiusY * this.iy;
  11342. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ix", { get: function() {
  11343. return ft(this.middleAngle);
  11344. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "iy", { get: function() {
  11345. return dt(this.middleAngle);
  11346. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "middleAngle", { get: function() {
  11347. return this.startAngle + this.arc / 2;
  11348. }, enumerable: true, configurable: true }), e3.prototype.getTooltipX = function() {
  11349. var t3 = this.getPropertyValue("tooltipX");
  11350. if (tt(t3))
  11351. return t3;
  11352. var e4 = 0.5;
  11353. t3 instanceof A && (e4 = t3.value);
  11354. var i3 = Vn(this.innerRadius, this.radius);
  11355. return this.ix * (i3 + (this.radius - i3) * e4);
  11356. }, e3.prototype.getTooltipY = function() {
  11357. var t3 = this.getPropertyValue("tooltipY");
  11358. if (tt(t3))
  11359. return t3;
  11360. var e4 = 0.5;
  11361. t3 instanceof A && (e4 = t3.value);
  11362. var i3 = Vn(this.innerRadius, this.radius);
  11363. return this.iy * (i3 + (this.radius - i3) * e4) + this.slice.dy;
  11364. }, e3;
  11365. }($a);
  11366. Ii.registeredClasses.Slice = No;
  11367. var Wo = function(t2) {
  11368. function e3() {
  11369. var e4 = t2.call(this) || this;
  11370. e4.className = "Preloader", e4.width = V(100), e4.height = V(100);
  11371. var i3 = new Ys(), n3 = e4.createChild($a);
  11372. n3.shouldClone = false;
  11373. var r3 = n3.createChild(No);
  11374. r3.shouldClone = false, r3.radius = 53, r3.arc = 360, r3.fill = i3.getFor("fill"), r3.fillOpacity = 0.8, r3.innerRadius = 42, r3.isMeasured = false, e4.backgroundSlice = r3;
  11375. var s2 = n3.createChild(No);
  11376. s2.shouldClone = false, s2.radius = 50, s2.innerRadius = 45, s2.fill = i3.getFor("alternativeBackground"), s2.fillOpacity = 0.2, s2.isMeasured = false, e4.progressSlice = s2;
  11377. var a2 = n3.createChild(co);
  11378. return a2.shouldClone = false, a2.horizontalCenter = "middle", a2.verticalCenter = "middle", a2.isMeasured = false, a2.fill = i3.getFor("text"), a2.align = "center", a2.valign = "middle", a2.textAlign = "middle", a2.fillOpacity = 0.4, e4.label = a2, e4.background.opacity = 1, e4.background.fill = i3.getFor("background"), e4.contentAlign = "center", e4.contentValign = "middle", e4.delay = 300, e4.states.create("hidden").properties.opacity = 0, e4.visible = false, e4.hide(0), e4.__disabled = true, e4._disposers.push(e4.backgroundSlice), e4._disposers.push(e4.progressSlice), e4._disposers.push(e4.label), e4._disposers.push(n3), e4;
  11379. }
  11380. return C(e3, t2), Object.defineProperty(e3.prototype, "progress", { get: function() {
  11381. return this.getPropertyValue("progress");
  11382. }, set: function(t3) {
  11383. var e4 = this;
  11384. this.__disabled = false, this.validateLayout(), this.setPropertyValue("progress", t3), this.progressSlice.arc = 360 * t3, this.label && (this.label.text = Math.round(100 * t3) + "%"), t3 >= 1 ? (this._started && (this._started = void 0), Ii.events.once("enterframe", function() {
  11385. var t4 = e4.hide();
  11386. t4 && !t4.isFinished() ? t4.events.once("animationended", function() {
  11387. e4.__disabled = true;
  11388. }) : e4.__disabled = true;
  11389. }), this.interactionsEnabled = false, this.setPropertyValue("progress", 0)) : t3 > 0 && (this.delay ? this._started ? this._started + this.delay <= new Date().getTime() && (this.__disabled = false, this.show(), this.interactionsEnabled = true) : this._started = new Date().getTime() : (this.__disabled = false, this.show(), this.interactionsEnabled = true));
  11390. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "delay", { get: function() {
  11391. return this.getPropertyValue("delay");
  11392. }, set: function(t3) {
  11393. this.setPropertyValue("delay", t3);
  11394. }, enumerable: true, configurable: true }), e3;
  11395. }($a);
  11396. Ii.registeredClasses.Preloader = Wo;
  11397. var Xo = function(t2) {
  11398. function e3() {
  11399. var e4 = t2.call(this) || this;
  11400. e4.className = "ResizeButton", e4.orientation = "horizontal", e4.layout = "absolute", e4.horizontalCenter = "middle", e4.verticalCenter = "middle", e4.draggable = true, e4.padding(8, 8, 8, 8), e4.background.cornerRadius(20, 20, 20, 20);
  11401. var i3 = new Za();
  11402. i3.element = e4.paper.add("path");
  11403. var n3 = wo({ x: -2, y: -6 });
  11404. return n3 += Co({ x: -2, y: 6 }), n3 += wo({ x: 2, y: -6 }), n3 += Co({ x: 2, y: 6 }), i3.path = n3, i3.pixelPerfect = true, i3.padding(0, 4, 0, 4), i3.stroke = new Ys().getFor("alternativeText"), i3.strokeOpacity = 0.7, e4.icon = i3, e4.label.dispose(), e4.label = void 0, e4.applyTheme(), e4;
  11405. }
  11406. return C(e3, t2), Object.defineProperty(e3.prototype, "orientation", { set: function(t3) {
  11407. var e4 = this.icon;
  11408. e4 && (e4.rotation = "horizontal" == t3 ? 0 : -90);
  11409. }, enumerable: true, configurable: true }), e3;
  11410. }(go);
  11411. Ii.registeredClasses.ResizeButton = Xo;
  11412. var Yo = function(t2) {
  11413. function e3() {
  11414. var e4 = t2.call(this) || this;
  11415. e4.className = "CloseButton", e4.padding(8, 8, 8, 8), e4.showSystemTooltip = true, e4.width = 30, e4.height = 30;
  11416. var i3 = new Ys();
  11417. e4.cursorOverStyle = Ia.pointer;
  11418. var n3 = e4.background;
  11419. n3.cornerRadius(20, 20, 20, 20);
  11420. var r3 = i3.getFor("background");
  11421. n3.fill = r3, n3.stroke = i3.getFor("primaryButton"), n3.strokeOpacity = 1, n3.strokeWidth = 1;
  11422. var s2 = i3.getFor("primaryButtonActive"), a2 = n3.states.getKey("hover");
  11423. a2.properties.strokeWidth = 3, a2.properties.fill = r3;
  11424. var o3 = n3.states.getKey("down");
  11425. o3.properties.stroke = s2, o3.properties.fill = r3;
  11426. var l2 = new Za();
  11427. return l2.element = e4.paper.add("path"), l2.stroke = n3.stroke, e4.icon = l2, e4.applyTheme(), e4;
  11428. }
  11429. return C(e3, t2), e3.prototype.validate = function() {
  11430. t2.prototype.validate.call(this);
  11431. var e4 = this.pixelWidth / 3, i3 = this.pixelHeight / 3, n3 = wo({ x: -e4 / 2, y: -i3 / 2 });
  11432. n3 += Co({ x: e4 / 2, y: i3 / 2 }), n3 += wo({ x: e4 / 2, y: -i3 / 2 }), n3 += Co({ x: -e4 / 2, y: i3 / 2 }), this.icon.path = n3, this.invalidateLayout();
  11433. }, e3.prototype.applyInternalDefaults = function() {
  11434. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Close"));
  11435. }, e3;
  11436. }(go);
  11437. Ii.registeredClasses.CloseButton = Yo;
  11438. var zo = function(t2) {
  11439. function e3() {
  11440. var e4 = t2.call(this) || this;
  11441. e4.className = "SwitchButton", e4.tooltipY = 0, e4.layout = "horizontal", e4.contentAlign = "center", e4.contentValign = "middle", e4.padding(8, 16, 8, 16), e4.setStateOnChildren = true, e4.states.create("active");
  11442. var i3 = new Ys(), n3 = new co();
  11443. n3.fillOpacity = 0.3, n3.states.create("active").properties.fillOpacity = 1, n3.isActive = true, e4.leftLabel = n3;
  11444. var r3 = new go(), s2 = new yo();
  11445. r3.contentValign = "none", r3.padding(0, 0, 0, 0), s2.radius = 10, r3.icon = s2, r3.icon.valign = "middle", r3.label = void 0;
  11446. var a2 = V(100);
  11447. r3.background.cornerRadius(a2, a2, a2, a2), r3.width = 3.5 * s2.radius, r3.height = 2.1 * s2.radius, r3.marginLeft = 8, r3.marginRight = 8, r3.togglable = true, s2.dx = 0.7 * -s2.radius, s2.fill = i3.getFor("primaryButton"), s2.states.create("hover").properties.fill = i3.getFor("primaryButtonHover");
  11448. var o3 = s2.states.create("active");
  11449. o3.properties.fill = i3.getFor("primaryButtonActive"), o3.properties.dx = 0.7 * s2.radius, e4.switchButton = r3, e4.events.on("toggled", function() {
  11450. e4.leftLabel.isActive = !e4.isActive, e4.rightLabel.isActive = e4.isActive;
  11451. });
  11452. var l2 = new co();
  11453. return l2.fillOpacity = 0.3, l2.states.create("active").properties.fillOpacity = 1, e4.rightLabel = l2, e4.role = "button", e4.focusable = true, l2.valign = "middle", n3.valign = "middle", r3.valign = "middle", e4.applyTheme(), e4;
  11454. }
  11455. return C(e3, t2), Object.defineProperty(e3.prototype, "leftLabel", { get: function() {
  11456. return this._leftLabel;
  11457. }, set: function(t3) {
  11458. this._leftLabel && this.removeDispose(this._leftLabel), this._leftLabel = t3, t3 && (t3.parent = this, t3.interactionsEnabled = false, t3.shouldClone = false, this._disposers.push(this._leftLabel));
  11459. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rightLabel", { get: function() {
  11460. return this._rightLabel;
  11461. }, set: function(t3) {
  11462. this._rightLabel && this.removeDispose(this._rightLabel), this._rightLabel = t3, t3 && (t3.parent = this, t3.interactionsEnabled = false, t3.shouldClone = false, this._disposers.push(this._rightLabel));
  11463. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "switch", { get: function() {
  11464. return this._switchButton;
  11465. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "switchButton", { get: function() {
  11466. return this._switchButton;
  11467. }, set: function(t3) {
  11468. this._switchButton && this.removeDispose(this._switchButton), this._switchButton = t3, t3 && (t3.parent = this, t3.shouldClone = false, this._disposers.push(this._switchButton));
  11469. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  11470. t2.prototype.copyFrom.call(this, e4), e4.leftLabel && this.leftLabel.copyFrom(e4.leftLabel), e4.rightLabel && this.rightLabel.copyFrom(e4.rightLabel), e4.switchButton && this.switchButton.copyFrom(e4.switchButton);
  11471. }, e3;
  11472. }($a);
  11473. Ii.registeredClasses.SwitchButton = zo;
  11474. var Uo = function(t2) {
  11475. function e3() {
  11476. var e4 = t2.call(this) || this;
  11477. e4._previousStart = 0, e4._previousEnd = 1, e4._prevStart = 0, e4._prevEnd = 1, e4._isBusy = false, e4._skipRangeEvents = false, e4.updateWhileMoving = true, e4.className = "Scrollbar", e4.minHeight = 12, e4.minWidth = 12, e4.animationDuration = 0, e4.animationEasing = zr, e4.margin(10, 10, 10, 10);
  11478. var i3 = new Ys(), n3 = e4.background;
  11479. return n3.cornerRadius(10, 10, 10, 10), n3.fill = i3.getFor("fill"), n3.fillOpacity = 0.5, e4.showSystemTooltip = true, e4.startGrip = new Xo(), e4.endGrip = new Xo(), e4.events.on("transformed", function() {
  11480. e4.updateThumb();
  11481. }, e4, false), e4.start = 0, e4.end = 1, e4.role = "scrollbar", e4.thumb.role = "slider", e4.thumb.readerLive = "polite", e4.startGrip.role = "slider", e4.endGrip.role = "slider", e4.events.once("inited", function() {
  11482. e4._previousStart = void 0, e4.dispatchRangeChange();
  11483. }, void 0, false), e4.hideGrips = false, e4.orientation = "horizontal", e4.setSVGAttribute({ "aria-valuemin": "0" }), e4.setSVGAttribute({ "aria-valuemax": "100" }), e4.applyTheme(), e4;
  11484. }
  11485. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  11486. t2.prototype.applyInternalDefaults.call(this), "horizontal" === this.orientation ? (Z(this.readerTitle) || (this.readerTitle = this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")), Z(this.thumb.readerDescription) || (this.thumb.readerDescription = this.language.translate("Use left and right arrows to move selection")), Z(this.startGrip.readerDescription) || (this.startGrip.readerDescription = this.language.translate("Use left and right arrows to move left selection")), Z(this.endGrip.readerDescription) || (this.endGrip.readerDescription = this.language.translate("Use left and right arrows to move right selection")), this.readerOrientation = "horizontal") : (Z(this.readerTitle) || (this.readerTitle = this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")), Z(this.thumb.readerDescription) || (this.thumb.readerDescription = this.language.translate("Use up and down arrows to move selection")), Z(this.startGrip.readerDescription) || (this.startGrip.readerDescription = this.language.translate("Use up and down arrows to move upper selection")), Z(this.endGrip.readerDescription) || (this.endGrip.readerDescription = this.language.translate("Use up and down arrows to move lower selection")), this.readerOrientation = "vertical"), this.readerControls = this.baseSprite.uidAttr();
  11487. }, e3.prototype.validateLayout = function() {
  11488. this.updateSize(), t2.prototype.validateLayout.call(this), this.updateExtremes();
  11489. }, e3.prototype.processBackground = function() {
  11490. t2.prototype.processBackground.call(this);
  11491. var e4 = this.background;
  11492. e4.clickable = true, e4.events.on("hit", this.handleBgHit, this, void 0);
  11493. }, e3.prototype.handleBgHit = function(t3) {
  11494. this.makeBusy();
  11495. var e4 = t3.spritePoint;
  11496. e4 = dr(e4, this.background, this);
  11497. var i3 = this.thumb;
  11498. if ("horizontal" == this.orientation) {
  11499. var n3 = e4.x - i3.pixelWidth / 2;
  11500. n3 = ut(n3, 0, this.innerWidth - i3.pixelWidth), this._thumbAnimation = i3.animate({ property: "x", to: n3 }, this.animationDuration, this.animationEasing);
  11501. } else {
  11502. var r3 = e4.y - i3.pixelHeight / 2;
  11503. r3 = ut(r3, 0, this.innerHeight - i3.pixelHeight), this._thumbAnimation = i3.animate({ property: "y", to: r3 }, this.animationDuration, this.animationEasing);
  11504. }
  11505. this.animationDuration > 0 ? this._thumbAnimation.events.on("animationended", this.makeUnbusy, this, false) : (this._thumb.validate(), this.makeUnbusy());
  11506. }, e3.prototype.makeBusy = function() {
  11507. this._isBusy = true, this._skipRangeEvents = false, this._unbusyTimeout && this.removeDispose(this._unbusyTimeout), this._unbusyTimeout = void 0, this.stopAnimations();
  11508. }, e3.prototype.stopAnimations = function() {
  11509. this._thumbAnimation && this._thumbAnimation.stop(true), this._zoomAnimation && this._zoomAnimation.stop(true);
  11510. }, e3.prototype.makeUnbusy = function() {
  11511. this._unbusyTimeout = this.setTimeout(this.makeUnbusyReal.bind(this), 1.1 * this.animationDuration);
  11512. }, e3.prototype.makeUnbusyReal = function() {
  11513. this._usingGrip = void 0, this._isBusy = false, this.updateWhileMoving || this.dispatchRangeChange();
  11514. }, e3.prototype.dispatchRangeChange = function() {
  11515. this._previousEnd == this.end && this._previousStart == this.start || (this._previousStart = this.start, this._previousEnd = this.end, this.dispatch("rangechanged"));
  11516. }, e3.prototype.updateThumb = function(t3) {
  11517. if (void 0 === t3 && (t3 = true), this.parent) {
  11518. var e4 = this.thumb, i3 = this.start, n3 = this.end, r3 = this.startGrip, s2 = this.endGrip;
  11519. if ("horizontal" == this.orientation) {
  11520. var a2 = this.innerWidth;
  11521. e4.width = a2 * (n3 - i3), e4.maxX = a2 - e4.pixelWidth, e4.x = i3 * a2, r3.moveTo({ x: e4.pixelX, y: 0 }, void 0, void 0, true), s2.moveTo({ x: e4.pixelX + e4.pixelWidth, y: 0 }, void 0, void 0, true), r3.readerTitle = this.language.translate("From %1", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * i3) + "%", position: i3 }).value), r3.readerValueNow = "" + Math.round(100 * i3), r3.readerValueText = r3.readerTitle, s2.readerTitle = this.language.translate("To %1", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * n3) + "%", position: n3 }).value), s2.readerValueNow = "" + Math.round(100 * n3), s2.readerValueText = s2.readerTitle;
  11522. } else {
  11523. var o3 = this.innerHeight;
  11524. e4.height = o3 * (n3 - i3), e4.maxY = o3 - e4.pixelHeight, e4.y = (1 - n3) * o3, r3.moveTo({ x: 0, y: e4.pixelY + e4.pixelHeight }, void 0, void 0, true), s2.moveTo({ x: 0, y: e4.pixelY }, void 0, void 0, true), r3.readerTitle = this.language.translate("To %1", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * (1 - i3)) + "%", position: 1 - i3 }).value), r3.readerValueNow = "" + Math.round(100 * i3), r3.readerValueText = r3.readerTitle, s2.readerTitle = this.language.translate("From %1", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * (1 - n3)) + "%", position: 1 - n3 }).value), s2.readerValueNow = "" + Math.round(100 * n3), s2.readerValueText = s2.readerTitle;
  11525. }
  11526. e4.readerTitle = this.language.translate("From %1 to %2", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * i3) + "%", position: i3 }).value, this.adapter.apply("positionValue", { value: Math.round(100 * n3) + "%", position: n3 }).value), e4.readerValueNow = "" + Math.round(100 * i3), e4.readerValueText = e4.readerTitle, this.readerValueNow = "" + Math.round(100 * i3), this.readerValueText = e4.readerTitle, !this._skipRangeEvents && this.updateWhileMoving && t3 && this.dispatchRangeChange();
  11527. }
  11528. }, e3.prototype.updateExtremes = function() {
  11529. var t3 = 0, e4 = 0, i3 = 0, n3 = 0;
  11530. "horizontal" == this.orientation ? (i3 = this.innerWidth, e4 = n3 = this.innerHeight / 2) : (n3 = this.innerHeight, t3 = i3 = this.innerWidth / 2);
  11531. var r3 = this.startGrip;
  11532. r3.minX = t3, r3.maxX = i3, r3.minY = e4, r3.maxY = n3;
  11533. var s2 = this.endGrip;
  11534. s2.minX = t3, s2.maxX = i3, s2.minY = e4, s2.maxY = n3;
  11535. var a2 = this.thumb;
  11536. a2.minX = t3, a2.maxX = i3, a2.minY = e4, a2.maxY = n3;
  11537. }, e3.prototype.updateSize = function() {
  11538. var t3 = this.orientation, e4 = this.startGrip;
  11539. e4 && (e4.orientation = t3), this.endGrip && (this.endGrip.orientation = t3);
  11540. var i3 = this.thumb;
  11541. i3 && ("horizontal" == t3 ? (tt(this._pixelWidth) || this.width instanceof A || (this.width = V(100)), Z(this.percentHeight) && (this.height = this.minHeight), i3.height = this.innerHeight, i3.verticalCenter = "middle", i3.horizontalCenter = "left") : (tt(this._pixelHeight) || this.height instanceof A || (this.height = V(100)), Z(this.percentWidth) && (this.width = this.minWidth), i3.width = this.innerWidth, i3.verticalCenter = "top", i3.horizontalCenter = "middle"));
  11542. }, Object.defineProperty(e3.prototype, "isBusy", { get: function() {
  11543. return this._isBusy;
  11544. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "start", { get: function() {
  11545. return Math.min(this.getPosition(this._start), this.getPosition(this._end));
  11546. }, set: function(t3) {
  11547. this._isBusy || (this.__start = t3);
  11548. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "__start", { get: function() {
  11549. return this._start;
  11550. }, set: function(t3) {
  11551. this._start = this.getPosition(t3), this.updateThumb();
  11552. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "end", { get: function() {
  11553. return Math.max(this.getPosition(this._start), this.getPosition(this._end));
  11554. }, set: function(t3) {
  11555. this._isBusy || (this.__end = t3);
  11556. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "__end", { get: function() {
  11557. return this._end;
  11558. }, set: function(t3) {
  11559. this._end = this.getPosition(t3), this.updateThumb();
  11560. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "range", { get: function() {
  11561. return { start: this.start, end: this.end, priority: this._usingGrip };
  11562. }, enumerable: true, configurable: true }), e3.prototype.skipRangeEvents = function() {
  11563. this._isBusy || (this._skipRangeEvents = true);
  11564. }, e3.prototype.fixRange = function(t3) {
  11565. t3.start == lt(this._start, 2) && t3.end == lt(this._end, 2) || (this._start = t3.start, this._end = t3.end, this._skipRangeEvents = true, this.updateThumb(), this._skipRangeEvents = false, this.thumb.validate(), this.thumb.background.validate());
  11566. }, e3.prototype.getPosition = function(t3) {
  11567. return ut(lt(t3, 4), 0, 1);
  11568. }, Object.defineProperty(e3.prototype, "orientation", { get: function() {
  11569. return this.getPropertyValue("orientation");
  11570. }, set: function(t3) {
  11571. this.setPropertyValue("orientation", t3) && ("horizontal" === t3 ? (this.startGrip.cursorOverStyle = Ia.horizontalResize, this.endGrip.cursorOverStyle = Ia.horizontalResize) : (this.startGrip.cursorOverStyle = Ia.verticalResize, this.endGrip.cursorOverStyle = Ia.verticalResize), this.updateByOrientation(), this.invalidate());
  11572. }, enumerable: true, configurable: true }), e3.prototype.updateByOrientation = function() {
  11573. }, Object.defineProperty(e3.prototype, "startGrip", { get: function() {
  11574. return this._startGrip;
  11575. }, set: function(t3) {
  11576. this._startGrip && this.removeDispose(this._startGrip), this._startGrip = t3, this.processGrip(t3);
  11577. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endGrip", { get: function() {
  11578. return this._endGrip;
  11579. }, set: function(t3) {
  11580. this._endGrip && this.removeDispose(this._endGrip), this._endGrip = t3, this.processGrip(t3);
  11581. }, enumerable: true, configurable: true }), e3.prototype.processGrip = function(t3) {
  11582. t3.parent = this, t3.isMeasured = false, t3.focusable = true, t3.shouldClone = false, t3.zIndex = 100, t3.events.on("drag", this.handleGripDrag, this, false), t3.events.on("dragstop", this.makeUnbusy, this, false), t3.events.on("down", this.makeBusy, this, false), t3.events.on("up", this.makeUnbusy, this, false), this._disposers.push(t3);
  11583. }, e3.prototype.handleGripDrag = function(t3) {
  11584. this.makeBusy(), t3.target === this._startGrip ? this._usingGrip = "start" : this._usingGrip = "end", "horizontal" == this.orientation ? (this._start = this.startGrip.pixelX / this.innerWidth, this._end = this.endGrip.pixelX / this.innerWidth) : (this._start = 1 - this.startGrip.pixelY / this.innerHeight, this._end = 1 - this.endGrip.pixelY / this.innerHeight), this.updateThumb();
  11585. }, Object.defineProperty(e3.prototype, "thumb", { get: function() {
  11586. if (!this._thumb) {
  11587. var t3 = new go();
  11588. t3.background.cornerRadius(10, 10, 10, 10), t3.padding(0, 0, 0, 0), this.thumb = t3;
  11589. }
  11590. return this._thumb;
  11591. }, set: function(t3) {
  11592. var e4 = this;
  11593. t3 && (this._thumb && this.removeDispose(this._thumb), this._thumb = t3, t3.parent = this, t3.isMeasured = false, t3.inert = true, t3.draggable = true, t3.clickable = true, t3.hoverable = true, t3.focusable = true, t3.shouldClone = false, t3.zIndex = 0, t3.cursorOverStyle = Ia.grab, t3.cursorDownStyle = Ia.grabbing, t3.events.on("dragstart", this.makeBusy, this, false), t3.events.on("dragstop", this.makeUnbusy, this, false), t3.events.on("positionchanged", this.handleThumbPosition, this, false), t3.events.on("sizechanged", this.handleThumbPosition, this, false), t3.events.on("doublehit", this.handleDoubleClick, this, false), this._disposers.push(ua().body.events.on("keyup", function(t4) {
  11594. $s.isKey(t4.event, ["space", "enter"]) && e4.thumb.isFocused && (t4.event.preventDefault(), e4.handleDoubleClick());
  11595. })), this._disposers.push(this._thumb));
  11596. }, enumerable: true, configurable: true }), e3.prototype.handleDoubleClick = function() {
  11597. this.makeBusy();
  11598. var t3 = 0, e4 = 1;
  11599. 0 != this.start || 1 != this.end ? (this._prevStart = this.start, this._prevEnd = this.end) : (t3 = this._prevStart, e4 = this._prevEnd);
  11600. var i3 = this.animate([{ property: "__start", to: t3 }, { property: "__end", to: e4 }], this.animationDuration, this.animationEasing);
  11601. i3 && !i3.isFinished() ? (i3.events.on("animationended", this.makeUnbusy, this, false), this._zoomAnimation = i3) : this.makeUnbusy();
  11602. }, e3.prototype.handleThumbPosition = function() {
  11603. var t3 = this.thumb;
  11604. if ("horizontal" == this.orientation) {
  11605. var e4 = this.innerWidth, i3 = t3.innerWidth, n3 = t3.pixelX;
  11606. this._start = n3 / e4, this._end = (n3 + i3) / e4, this.updateThumb();
  11607. } else {
  11608. var r3 = this.innerHeight, s2 = t3.innerHeight, a2 = t3.pixelY;
  11609. a2 + s2 > r3 && (a2 = r3 - s2, t3.y = a2), this._start = 1 - (a2 + s2) / r3, this._end = 1 - a2 / r3, this.updateThumb();
  11610. }
  11611. }, e3.prototype.createBackground = function() {
  11612. return new fo();
  11613. }, Object.defineProperty(e3.prototype, "hideGrips", { get: function() {
  11614. return this._hideGrips;
  11615. }, set: function(t3) {
  11616. var e4 = this;
  11617. this._hideGrips = t3, this._overDisposer && this.removeDispose(this._overDisposer), this._outDisposer && this.removeDispose(this._outDisposer), t3 ? (this._overDisposer = this.events.on("over", function() {
  11618. e4.startGrip.show(), e4.endGrip.show();
  11619. }, void 0, false), this._outDisposer = this.events.on("out", function() {
  11620. e4.startGrip.hide(), e4.endGrip.hide();
  11621. }, void 0, false), this.startGrip.hide(), this.endGrip.hide()) : (this.startGrip.show(), this.endGrip.show());
  11622. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animationDuration", { get: function() {
  11623. return this.getPropertyValue("animationDuration");
  11624. }, set: function(t3) {
  11625. this.setPropertyValue("animationDuration", t3);
  11626. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animationEasing", { get: function() {
  11627. return this.getPropertyValue("animationEasing");
  11628. }, set: function(t3) {
  11629. this.setPropertyValue("animationEasing", t3);
  11630. }, enumerable: true, configurable: true }), e3.prototype.asFunction = function(e4) {
  11631. return "animationEasing" == e4 || t2.prototype.asIs.call(this, e4);
  11632. }, e3;
  11633. }($a);
  11634. Ii.registeredClasses.Scrollbar = Uo;
  11635. var Go = function(t2) {
  11636. function e3() {
  11637. var e4 = t2.call(this) || this;
  11638. return e4.className = "Slider", e4.thumb.opacity = 0, e4.thumb.interactionsEnabled = false, e4.endGrip.opacity = 0, e4.endGrip.interactionsEnabled = false, e4.startGrip.events.on("drag", function() {
  11639. e4.endGrip.x = e4.startGrip.x, e4.endGrip.y = e4.startGrip.y;
  11640. }), e4.applyTheme(), e4;
  11641. }
  11642. return C(e3, t2), Object.defineProperty(e3.prototype, "__end", { get: function() {
  11643. return this._start;
  11644. }, set: function(t3) {
  11645. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "end", { get: function() {
  11646. return this._start;
  11647. }, set: function(t3) {
  11648. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "start", { get: function() {
  11649. return this._start;
  11650. }, set: function(t3) {
  11651. this._isBusy || (this.__start = t3);
  11652. }, enumerable: true, configurable: true }), e3;
  11653. }(Uo);
  11654. Ii.registeredClasses.Slider = Go;
  11655. var Ko = function(t2) {
  11656. function e3() {
  11657. var e4 = t2.call(this) || this;
  11658. e4.className = "TextLink", e4.selectable = true;
  11659. var i3 = new Ys();
  11660. return e4.fill = i3.getFor("primaryButton").brighten(0.3), e4.states.create("hover").properties.fill = i3.getFor("primaryButtonHover").brighten(0.3), e4.states.create("down").properties.fill = i3.getFor("primaryButtonDown").brighten(0.3), e4.cursorOverStyle = Ia.pointer, e4.applyTheme(), e4;
  11661. }
  11662. return C(e3, t2), e3;
  11663. }(co);
  11664. Ii.registeredClasses.TextLink = Ko;
  11665. var Zo = function(t2) {
  11666. function e3() {
  11667. var e4 = t2.call(this) || this;
  11668. return e4.properties = {}, e4.isTemplate = false, e4._scale = 1, e4._nonScaling = true, e4.className = "Filter", e4.filterPrimitives = new Fi(), e4.properties.filterUnits = "objectBoundingBox", e4.filterPrimitives.events.on("inserted", function(t3) {
  11669. e4._disposers.push(t3.newValue);
  11670. }), e4.width = 120, e4.height = 120, e4.applyTheme(), e4;
  11671. }
  11672. return C(e3, t2), e3.prototype.appendPrimitives = function(t3) {
  11673. ti(this.filterPrimitives.iterator(), function(e4) {
  11674. t3.add(e4);
  11675. });
  11676. }, e3.prototype.animate = function(t3, e4, i3) {
  11677. return new ys(this, t3, e4, i3).start();
  11678. }, Object.defineProperty(e3.prototype, "width", { get: function() {
  11679. return this.properties.width;
  11680. }, set: function(t3) {
  11681. this.properties.width = t3;
  11682. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "height", { get: function() {
  11683. return this.properties.height;
  11684. }, set: function(t3) {
  11685. this.properties.height = t3;
  11686. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  11687. var i3 = this;
  11688. t2.prototype.copyFrom.call(this, e4), Ne(e4.properties, function(t3, e5) {
  11689. i3[t3] = e5;
  11690. });
  11691. }, Object.defineProperty(e3.prototype, "paper", { get: function() {
  11692. return this._paper ? this._paper : wa();
  11693. }, set: function(t3) {
  11694. this._paper != t3 && (this._paper = t3);
  11695. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animations", { get: function() {
  11696. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  11697. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "scale", { get: function() {
  11698. return this._scale;
  11699. }, set: function(t3) {
  11700. this._scale = t3, this.updateScale();
  11701. }, enumerable: true, configurable: true }), e3.prototype.updateScale = function() {
  11702. }, Object.defineProperty(e3.prototype, "filterUnits", { get: function() {
  11703. return this.properties.filterUnits;
  11704. }, set: function(t3) {
  11705. this.properties.filterUnits = t3;
  11706. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nonScaling", { get: function() {
  11707. return this._nonScaling;
  11708. }, set: function(t3) {
  11709. this._nonScaling = t3, t3 || (this._scale = 1), this.updateScale();
  11710. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sprite", { set: function(t3) {
  11711. this.setSprite(t3);
  11712. }, enumerable: true, configurable: true }), e3.prototype.setSprite = function(t3) {
  11713. this._sprite && this._sprite != t3 && this._sprite.filters.removeValue(this), this._sprite = t3;
  11714. }, e3;
  11715. }(yn), qo = function(t2) {
  11716. function e3() {
  11717. var e4 = t2.call(this) || this;
  11718. return e4.className = "DropShadowFilter", e4.color = dn("#000"), e4.feGaussianBlur = e4.paper.add("feGaussianBlur"), e4.feGaussianBlur.attr({ result: "blurOut", in: "SourceGraphic" }), e4.filterPrimitives.push(e4.feGaussianBlur), e4.feOffset = e4.paper.add("feOffset"), e4.feOffset.attr({ result: "offsetBlur" }), e4.filterPrimitives.push(e4.feOffset), e4.feFlood = e4.paper.add("feFlood"), e4.feFlood.attr({ "flood-color": e4.color }), e4.filterPrimitives.push(e4.feFlood), e4.feComposite = e4.paper.add("feComposite"), e4.feComposite.attr({ in2: "offsetBlur", operator: "in" }), e4.filterPrimitives.push(e4.feComposite), e4.feMerge = e4.paper.addGroup("feMerge"), e4.feMerge.add(e4.paper.add("feMergeNode")), e4.feMerge.add(e4.paper.add("feMergeNode").attr({ in: "SourceGraphic" })), e4.filterPrimitives.push(e4.feMerge), e4.width = 200, e4.height = 200, e4.blur = 1.5, e4.dx = 3, e4.dy = 3, e4.opacity = 0.5, e4.applyTheme(), e4;
  11719. }
  11720. return C(e3, t2), Object.defineProperty(e3.prototype, "color", { get: function() {
  11721. return this.properties.color;
  11722. }, set: function(t3) {
  11723. this.properties.color = t3, this.feFlood && this.feFlood.attr({ "flood-color": t3 });
  11724. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "opacity", { get: function() {
  11725. return this.properties.opacity;
  11726. }, set: function(t3) {
  11727. this.properties.opacity = t3, this.feFlood.attr({ "flood-opacity": t3 });
  11728. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dx", { get: function() {
  11729. return this.properties.dx;
  11730. }, set: function(t3) {
  11731. this.properties.dx = t3, this.feOffset.attr({ dx: t3 / this.scale });
  11732. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dy", { get: function() {
  11733. return this.properties.dy;
  11734. }, set: function(t3) {
  11735. this.properties.dy = t3, this.feOffset.attr({ dy: t3 / this.scale });
  11736. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "blur", { get: function() {
  11737. return this.properties.blur;
  11738. }, set: function(t3) {
  11739. this.properties.blur = t3, this.feGaussianBlur.attr({ stdDeviation: t3 / this.scale });
  11740. }, enumerable: true, configurable: true }), e3.prototype.updateScale = function() {
  11741. this.dx = this.dx, this.dy = this.dy, this.blur = this.blur;
  11742. }, e3;
  11743. }(Zo);
  11744. Ii.registeredClasses.DropShadowFilter = qo;
  11745. var $o = function(t2) {
  11746. function e3() {
  11747. var e4 = t2.call(this) || this;
  11748. e4._boundingRect = { x: -4e4, y: -4e4, width: 8e4, height: 8e4 }, e4._pointTo = { x: 0, y: 0 }, e4.fitPointerToBounds = false, e4._verticalOrientation = "up", e4.fixDoc = true, e4.className = "Tooltip", e4.isMeasured = false, e4.getFillFromObject = true, e4.margin(5, 5, 5, 5), e4.defaultState.transitionDuration = 1, e4.hiddenState.transitionDuration = 1;
  11749. var i3 = e4.background;
  11750. i3.interactionsEnabled = false, i3.fillOpacity = 0.9, i3.strokeWidth = 1, i3.strokeOpacity = 1, i3.stroke = dn("#ffffff"), i3.cornerRadius = 3, i3.pointerLength = 6, i3.pointerBaseWidth = 10;
  11751. var n3 = new qo();
  11752. n3.dy = 1, n3.dx = 1, n3.opacity = 0.5, i3.filters.push(n3), e4.autoTextColor = true;
  11753. var r3 = e4.createChild(co);
  11754. return r3.shouldClone = false, e4.label = r3, r3.padding(7, 12, 4, 12), r3.interactionsEnabled = false, r3.horizontalCenter = "middle", r3.fill = dn("#ffffff"), e4._disposers.push(r3), e4.label.events.on("sizechanged", e4.drawBackground, e4), e4.label.zIndex = 1, e4.pointerOrientation = "vertical", e4.animationDuration = 0, e4.animationEasing = zr, e4.setPropertyValue("showInViewport", false), e4.role = "tooltip", e4.visible = false, e4.opacity = 0, e4.x = 0, e4.y = 0, e4.events.on("visibilitychanged", e4.handleVisibility, e4), e4.applyTheme(), e4;
  11755. }
  11756. return C(e3, t2), e3.prototype.handleVisibility = function() {
  11757. this.visible && this.label.invalidate();
  11758. }, Object.defineProperty(e3.prototype, "getStrokeFromObject", { get: function() {
  11759. return this.getPropertyValue("getStrokeFromObject");
  11760. }, set: function(t3) {
  11761. this.setPropertyValue("getStrokeFromObject", t3, true);
  11762. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "autoTextColor", { get: function() {
  11763. return this.getPropertyValue("autoTextColor");
  11764. }, set: function(t3) {
  11765. this.setPropertyValue("autoTextColor", t3, true);
  11766. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keepTargetHover", { get: function() {
  11767. return this.getPropertyValue("keepTargetHover");
  11768. }, set: function(t3) {
  11769. var e4 = this;
  11770. this.setPropertyValue("keepTargetHover", t3, true) && t3 && (this.hoverable = true, this.background.interactionsEnabled = true, this._disposers.push(this.events.on("over", function(t4) {
  11771. e4.targetSprite && e4.targetSprite.hoverable && (e4.targetSprite.isHover = true);
  11772. })), this._disposers.push(this.events.on("out", function(t4) {
  11773. e4.targetSprite && e4.targetSprite.hoverable && (e4.targetSprite.isHover = false);
  11774. })));
  11775. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showInViewport", { get: function() {
  11776. return this.getPropertyValue("showInViewport");
  11777. }, set: function(t3) {
  11778. this.setPropertyValue("showInViewport", t3);
  11779. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "getFillFromObject", { get: function() {
  11780. return this.getPropertyValue("getFillFromObject");
  11781. }, set: function(t3) {
  11782. this.setPropertyValue("getFillFromObject", t3, true);
  11783. }, enumerable: true, configurable: true }), e3.prototype.createBackground = function() {
  11784. return new _o();
  11785. }, Object.defineProperty(e3.prototype, "pointerOrientation", { get: function() {
  11786. return this.getPropertyValue("pointerOrientation");
  11787. }, set: function(t3) {
  11788. this.setPropertyValue("pointerOrientation", t3, true);
  11789. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animationDuration", { get: function() {
  11790. return this.getPropertyValue("animationDuration");
  11791. }, set: function(t3) {
  11792. this.setPropertyValue("animationDuration", t3);
  11793. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animationEasing", { get: function() {
  11794. return this.getPropertyValue("animationEasing");
  11795. }, set: function(t3) {
  11796. this.setPropertyValue("animationEasing", t3);
  11797. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "html", { get: function() {
  11798. return this.label.html;
  11799. }, set: function(t3) {
  11800. this.label.html != t3 && (this.label.html = t3, this.invalidate());
  11801. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "text", { get: function() {
  11802. return this.label.text;
  11803. }, set: function(t3) {
  11804. this.label.text != t3 && (this.label.text = t3, this.invalidate());
  11805. }, enumerable: true, configurable: true }), e3.prototype.draw = function() {
  11806. t2.prototype.draw.call(this);
  11807. var e4 = this.label;
  11808. e4.invalid && e4.validate();
  11809. var i3, n3, r3 = this._pointTo.x, s2 = this._pointTo.y, a2 = this._boundingRect, o3 = e4.measuredWidth, l2 = e4.measuredHeight, h2 = this.background.pointerLength;
  11810. if (this.ignoreBounds && (a2 = void 0), a2 && this.fixDoc && o3 > a2.width) {
  11811. vr({ x: a2.x, y: a2.y }, this.parent);
  11812. var p2 = vr({ x: a2.x + a2.width, y: a2.y + a2.height }, this.parent), u2 = document.body.offsetWidth;
  11813. document.body.offsetHeight, p2.x > u2 / 2 ? a2.x = a2.width - o3 : a2.width = a2.x + o3;
  11814. }
  11815. var d2 = this.pointerOrientation;
  11816. "horizontal" == d2 || "left" == d2 || "right" == d2 ? (n3 = -l2 / 2, i3 = "horizontal" == d2 ? a2 && r3 > a2.x + a2.width / 2 ? -o3 / 2 - h2 : o3 / 2 + h2 : "left" == d2 ? o3 / 2 + h2 : -o3 / 2 - h2) : (a2 && (i3 = ut(0, a2.x - r3 + o3 / 2, a2.x - r3 + a2.width - o3 / 2)), "vertical" == d2 ? a2 && s2 > a2.y + l2 + h2 ? (n3 = -l2 - h2, this._verticalOrientation = "up") : (n3 = h2, this._verticalOrientation = "down") : "down" == d2 ? (n3 = -l2 - h2, this._verticalOrientation = "up") : (n3 = h2, this._verticalOrientation = "down")), a2 && (n3 = ut(n3, a2.y - s2, a2.y + a2.height - l2 - s2)), e4.x = i3, e4.y = n3, this.drawBackground();
  11817. }, e3.prototype.updateBackground = function() {
  11818. this.group.addToBack(this.background.group);
  11819. }, e3.prototype.drawBackground = function() {
  11820. var t3 = this.label, e4 = this.background, i3 = t3.measuredWidth, n3 = t3.measuredHeight, r3 = this._boundingRect, s2 = i3, a2 = t3.pixelX - i3 / 2, o3 = n3, l2 = t3.pixelY, h2 = this._pointTo.x, p2 = this._pointTo.y, u2 = r3.x - h2, d2 = u2 + r3.width, c2 = r3.y - p2, f2 = c2 + r3.height;
  11821. e4.x = a2, e4.y = l2, e4.width = s2, e4.height = o3, this.fitPointerToBounds ? (e4.pointerX = ut(-e4.x, u2 - e4.x, d2 - e4.x), e4.pointerY = ut(-e4.y, c2 - e4.y, f2 - e4.y)) : (e4.pointerX = -e4.x, e4.pointerY = -e4.y), e4.validate();
  11822. }, e3.prototype.delayedPointTo = function(t3, e4) {
  11823. var i3 = this;
  11824. this._pointToDisposer && this._pointToDisposer.dispose(), this._pointToDisposer = Ii.events.once("exitframe", function() {
  11825. i3.pointTo(t3, e4);
  11826. }), this.addDisposer(this._pointToDisposer);
  11827. }, e3.prototype.pointTo = function(t3, e4) {
  11828. this._pointTo.x == t3.x && this._pointTo.y == t3.y || (this._pointTo = t3, this.invalidate(), !this.visible || e4 ? (this.moveTo(this._pointTo), this._animation && this._animation.kill()) : 0 == this.pixelX && 0 == this.pixelY ? this.moveTo(this._pointTo) : (this._animation && this._animation.kill(), this._animation = new ys(this, [{ property: "x", to: t3.x, from: this.pixelX }, { property: "y", to: t3.y, from: this.pixelY }], this.animationDuration, this.animationEasing).start()));
  11829. }, e3.prototype.setBounds = function(t3) {
  11830. var e4 = this._boundingRect;
  11831. e4.x == t3.x && e4.y == t3.y && e4.width == t3.width && e4.height == t3.height || (this._boundingRect = t3, this.invalidate());
  11832. }, Object.defineProperty(e3.prototype, "boundingContainer", { set: function(t3) {
  11833. this._boundingContainer = t3, t3.events.on("sizechanged", this.updateBounds, this), t3.events.on("positionchanged", this.updateBounds, this);
  11834. }, enumerable: true, configurable: true }), e3.prototype.updateBounds = function() {
  11835. var t3 = this._boundingContainer, e4 = fr({ x: t3.pixelX, y: t3.pixelY, width: t3.maxWidth, height: t3.maxHeight }, t3);
  11836. this.setBounds(e4);
  11837. }, Object.defineProperty(e3.prototype, "ignoreBounds", { get: function() {
  11838. return this.getPropertyValue("ignoreBounds");
  11839. }, set: function(t3) {
  11840. this.setPropertyValue("ignoreBounds", t3);
  11841. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalOrientation", { get: function() {
  11842. return this._verticalOrientation;
  11843. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltip", { get: function() {
  11844. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  11845. t2.prototype.copyFrom.call(this, e4), this.label.copyFrom(e4.label), e4._boundingRect && (this._boundingRect = e4._boundingRect);
  11846. }, e3.prototype.asFunction = function(e4) {
  11847. return "animationEasing" == e4 || t2.prototype.asIs.call(this, e4);
  11848. }, e3;
  11849. }($a);
  11850. Ii.registeredClasses.Tooltip = $o;
  11851. var Jo = function(t2) {
  11852. function e3() {
  11853. var e4 = t2.call(this) || this;
  11854. return e4.className = "Trapezoid", e4.element = e4.paper.add("path"), e4.topSide = V(100), e4.bottomSide = V(100), e4.leftSide = V(100), e4.rightSide = V(100), e4.isMeasured = false, e4.applyTheme(), e4;
  11855. }
  11856. return C(e3, t2), e3.prototype.draw = function() {
  11857. t2.prototype.draw.call(this);
  11858. var e4 = this.pixelWidth, i3 = this.pixelHeight, n3 = Vn(this.topSide, e4), r3 = Vn(this.bottomSide, e4), s2 = Vn(this.leftSide, i3), a2 = Vn(this.rightSide, i3), o3 = (e4 - n3) / 2, l2 = (i3 - s2) / 2, h2 = e4 - (e4 - n3) / 2, p2 = (i3 - a2) / 2, u2 = e4 - (e4 - r3) / 2, d2 = i3 - (i3 - a2) / 2, c2 = (e4 - r3) / 2, f2 = i3 - (i3 - s2) / 2, g2 = "", y2 = "", m2 = "", v2 = "";
  11859. if (Z(this.horizontalNeck)) {
  11860. var b2 = this.horizontalNeck.value;
  11861. g2 = Co({ x: e4 * b2, y: Math.max(l2, p2) }), m2 = Co({ x: e4 * b2, y: Math.min(d2, f2) });
  11862. }
  11863. if (Z(this.verticalNeck)) {
  11864. var x2 = this.verticalNeck.value;
  11865. y2 = Co({ x: Math.min(h2, u2), y: i3 * x2 }), v2 = Co({ x: Math.max(o3, c2), y: i3 * x2 });
  11866. }
  11867. var _2 = wo({ x: o3, y: l2 }) + g2 + Co({ x: h2, y: p2 }) + y2 + Co({ x: u2, y: d2 }) + m2 + Co({ x: c2, y: f2 }) + v2;
  11868. this.path = _2;
  11869. }, Object.defineProperty(e3.prototype, "topSide", { get: function() {
  11870. return this.getPropertyValue("topSide");
  11871. }, set: function(t3) {
  11872. this.setPercentProperty("topSide", t3, true, false, 10, false);
  11873. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bottomSide", { get: function() {
  11874. return this.getPropertyValue("bottomSide");
  11875. }, set: function(t3) {
  11876. this.setPercentProperty("bottomSide", t3, true, false, 10, false);
  11877. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "leftSide", { get: function() {
  11878. return this.getPropertyValue("leftSide");
  11879. }, set: function(t3) {
  11880. this.setPercentProperty("leftSide", t3, true, false, 10, false);
  11881. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rightSide", { get: function() {
  11882. return this.getPropertyValue("rightSide");
  11883. }, set: function(t3) {
  11884. this.setPercentProperty("rightSide", t3, true, false, 10, false);
  11885. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "horizontalNeck", { get: function() {
  11886. return this.getPropertyValue("horizontalNeck");
  11887. }, set: function(t3) {
  11888. this.setPropertyValue("horizontalNeck", t3, true);
  11889. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalNeck", { get: function() {
  11890. return this.getPropertyValue("verticalNeck");
  11891. }, set: function(t3) {
  11892. this.setPropertyValue("verticalNeck", t3, true);
  11893. }, enumerable: true, configurable: true }), e3;
  11894. }(Za);
  11895. Ii.registeredClasses.Trapezoid = Jo;
  11896. var Qo = function(t2) {
  11897. function e3() {
  11898. var e4 = t2.call(this) || this;
  11899. return e4.className = "Triangle", e4.element = e4.paper.add("path"), e4.direction = "top", e4.applyTheme(), e4;
  11900. }
  11901. return C(e3, t2), e3.prototype.draw = function() {
  11902. t2.prototype.draw.call(this);
  11903. var e4, i3 = this.pixelWidth, n3 = this.pixelHeight;
  11904. switch (this.direction) {
  11905. case "right":
  11906. e4 = wo({ x: 0, y: 0 }) + Co({ x: i3, y: n3 / 2 }) + Co({ x: 0, y: n3 }) + " Z";
  11907. break;
  11908. case "left":
  11909. e4 = wo({ x: i3, y: 0 }) + Co({ x: 0, y: n3 / 2 }) + Co({ x: i3, y: n3 }) + " Z";
  11910. break;
  11911. case "bottom":
  11912. e4 = wo({ x: 0, y: 0 }) + Co({ x: i3, y: 0 }) + Co({ x: i3 / 2, y: n3 }) + " Z";
  11913. break;
  11914. case "top":
  11915. e4 = wo({ x: i3 / 2, y: 0 }) + Co({ x: i3, y: n3 }) + Co({ x: 0, y: n3 }) + " Z";
  11916. }
  11917. this.path = e4;
  11918. }, Object.defineProperty(e3.prototype, "direction", { get: function() {
  11919. return this.getPropertyValue("direction");
  11920. }, set: function(t3) {
  11921. this.setPropertyValue("direction", t3, true);
  11922. }, enumerable: true, configurable: true }), e3;
  11923. }(Za);
  11924. Ii.registeredClasses.Triangle = Qo;
  11925. var tl = function() {
  11926. function t2(t3, e3) {
  11927. this._tensionX = t3, this._tensionY = e3;
  11928. }
  11929. return t2.prototype.smooth = function(t3) {
  11930. for (var e3 = t3.length - 1; e3 > 0; e3--) {
  11931. var i3 = t3[e3], n3 = t3[e3 - 1];
  11932. Math.abs(i3.x - n3.x) < 0.1 && Math.abs(i3.y - n3.y) < 0.1 && t3.splice(e3 - 1, 1);
  11933. }
  11934. var r3 = this._tensionX, s2 = this._tensionY;
  11935. if (t3.length < 3 || r3 >= 1 && s2 >= 1)
  11936. return Po(t3);
  11937. var a2 = t3[0], o3 = t3[t3.length - 1], l2 = false;
  11938. lt(a2.x, 3) == lt(o3.x) && lt(a2.y) == lt(o3.y) && (l2 = true);
  11939. for (var h2 = "", p2 = (e3 = 0, t3.length - 1); e3 < p2; e3++) {
  11940. i3 = t3[e3 - 1], n3 = t3[e3];
  11941. var u2 = t3[e3 + 1], d2 = t3[e3 + 2];
  11942. 0 === e3 ? i3 = l2 ? t3[t3.length - 2] : t3[e3] : e3 == t3.length - 2 && (d2 = l2 ? t3[1] : t3[e3 + 1]), h2 += So(u2, Mt(i3, n3, u2, 0, r3, s2), Lt(0, n3, u2, d2, r3, s2));
  11943. }
  11944. return h2;
  11945. }, t2;
  11946. }();
  11947. function el(t2, e3, i3, n3, r3, s2) {
  11948. var a2 = t2.x, o3 = t2.y, l2 = e3.x, h2 = e3.y, p2 = _t(t2, e3);
  11949. s2 && (i3 = p2 / Math.round(p2 / i3));
  11950. var u2 = Ii.getCache(Rn(["wavedLine", t2.x, e3.x, t2.y, e3.y, i3, n3]));
  11951. if (!u2) {
  11952. if (p2 > 0) {
  11953. var d2 = Math.atan2(h2 - o3, l2 - a2), c2 = Math.cos(d2), f2 = Math.sin(d2), g2 = i3 * c2, y2 = i3 * f2;
  11954. if (i3 <= 1 || n3 <= 1)
  11955. u2 = Co(e3);
  11956. else {
  11957. var m2 = Math.round(2 * p2 / i3), v2 = [], b2 = 1;
  11958. l2 < a2 && (b2 *= -1), h2 < o3 && (b2 *= -1);
  11959. for (var x2 = 0; x2 <= m2; x2++) {
  11960. var _2 = a2 + x2 * g2 / 2 + (b2 *= -1) * n3 / 2 * f2, P2 = o3 + x2 * y2 / 2 - b2 * n3 / 2 * c2;
  11961. v2.push({ x: _2, y: P2 });
  11962. }
  11963. u2 = new tl(r3, r3).smooth(v2);
  11964. }
  11965. } else
  11966. u2 = "";
  11967. Ii.setCache(Rn(["wavedLine", t2.x, e3.x, t2.y, e3.y, i3, n3]), u2);
  11968. }
  11969. return u2;
  11970. }
  11971. var il = function() {
  11972. function t2(t3, e3) {
  11973. this._reversed = t3, this._closed = e3.closed;
  11974. }
  11975. return t2.prototype._curve = function(t3, e3, i3, n3, r3, s2) {
  11976. var a2 = (e3 - t3) / 3;
  11977. return this._reversed ? So({ x: n3, y: e3 }, { x: i3 + a2 * r3, y: t3 + a2 }, { x: n3 - a2 * s2, y: e3 - a2 }) : So({ x: e3, y: n3 }, { x: t3 + a2, y: i3 + a2 * r3 }, { x: e3 - a2, y: n3 - a2 * s2 });
  11978. }, t2.prototype.smooth = function(t3) {
  11979. var e3 = this, i3 = NaN, n3 = NaN, r3 = NaN, s2 = NaN, a2 = NaN, o3 = 0, l2 = "";
  11980. switch (Ut(t3, function(t4) {
  11981. var h2 = t4.x, p2 = t4.y;
  11982. if (e3._reversed) {
  11983. var u2 = h2;
  11984. h2 = p2, p2 = u2;
  11985. }
  11986. var d2 = NaN;
  11987. if (h2 !== n3 || p2 !== s2) {
  11988. switch (o3) {
  11989. case 0:
  11990. o3 = 1, e3._reversed ? l2 += Co({ x: p2, y: h2 }) : l2 += Co({ x: h2, y: p2 });
  11991. break;
  11992. case 1:
  11993. o3 = 2;
  11994. break;
  11995. case 2:
  11996. o3 = 3, l2 += e3._curve(i3, n3, r3, s2, rl(i3, n3, r3, s2, d2 = sl(i3, n3, r3, s2, h2, p2)), d2);
  11997. break;
  11998. default:
  11999. l2 += e3._curve(i3, n3, r3, s2, a2, d2 = sl(i3, n3, r3, s2, h2, p2));
  12000. }
  12001. i3 = n3, n3 = h2, r3 = s2, s2 = p2, a2 = d2;
  12002. }
  12003. }), o3) {
  12004. case 2:
  12005. this._reversed ? l2 += Co({ x: s2, y: n3 }) : l2 += Co({ x: n3, y: s2 });
  12006. break;
  12007. case 3:
  12008. l2 += this._curve(i3, n3, r3, s2, a2, rl(i3, n3, r3, s2, a2));
  12009. }
  12010. return this._closed && (l2 += " Z"), l2;
  12011. }, t2;
  12012. }();
  12013. function nl(t2) {
  12014. return t2 < 0 ? -1 : 1;
  12015. }
  12016. function rl(t2, e3, i3, n3, r3) {
  12017. var s2 = e3 - t2;
  12018. return s2 ? (3 * (n3 - i3) / s2 - r3) / 2 : r3;
  12019. }
  12020. function sl(t2, e3, i3, n3, r3, s2) {
  12021. var a2 = e3 - t2, o3 = r3 - e3, l2 = (n3 - i3) / (a2 || o3 < 0 && -0), h2 = (s2 - n3) / (o3 || a2 < 0 && -0), p2 = (l2 * o3 + h2 * a2) / (a2 + o3);
  12022. return (nl(l2) + nl(h2)) * Math.min(Math.abs(l2), Math.abs(h2), 0.5 * Math.abs(p2)) || 0;
  12023. }
  12024. var al = function(t2) {
  12025. function e3(e4) {
  12026. return t2.call(this, false, e4) || this;
  12027. }
  12028. return C(e3, t2), e3;
  12029. }(il), ol = function(t2) {
  12030. function e3(e4) {
  12031. return t2.call(this, true, e4) || this;
  12032. }
  12033. return C(e3, t2), e3;
  12034. }(il), ll = function() {
  12035. function t2(t3) {
  12036. this._closed = t3.closed;
  12037. }
  12038. return t2.prototype.smooth = function(t3) {
  12039. var e3 = this, i3 = NaN, n3 = NaN, r3 = NaN, s2 = NaN, a2 = NaN, o3 = NaN, l2 = NaN, h2 = NaN, p2 = NaN, u2 = NaN, d2 = 0, c2 = "", f2 = function(t4, e4) {
  12040. c2 += So({ x: (i3 + 4 * n3 + t4) / 6, y: (o3 + 4 * l2 + e4) / 6 }, { x: (2 * i3 + n3) / 3, y: (2 * o3 + l2) / 3 }, { x: (i3 + 2 * n3) / 3, y: (o3 + 2 * l2) / 3 });
  12041. }, g2 = function(t4) {
  12042. var g3 = t4.x, y2 = t4.y;
  12043. switch (d2) {
  12044. case 0:
  12045. d2 = 1, e3._closed ? (r3 = g3, h2 = y2) : c2 += Co({ x: g3, y: y2 });
  12046. break;
  12047. case 1:
  12048. d2 = 2, e3._closed && (s2 = g3, p2 = y2);
  12049. break;
  12050. case 2:
  12051. if (d2 = 3, e3._closed) {
  12052. a2 = g3, u2 = y2, c2 += wo({ x: (i3 + 4 * n3 + g3) / 6, y: (o3 + 4 * l2 + y2) / 6 });
  12053. break;
  12054. }
  12055. c2 += Co({ x: (5 * i3 + n3) / 6, y: (5 * o3 + l2) / 6 });
  12056. default:
  12057. f2(g3, y2);
  12058. }
  12059. i3 = n3, n3 = g3, o3 = l2, l2 = y2;
  12060. };
  12061. if (Ut(t3, g2), this._closed)
  12062. switch (d2) {
  12063. case 1:
  12064. c2 += wo({ x: r3, y: h2 }), c2 += " Z";
  12065. break;
  12066. case 2:
  12067. c2 += wo({ x: (r3 + 2 * s2) / 3, y: (h2 + 2 * p2) / 3 }), c2 += Co({ x: (s2 + 2 * r3) / 3, y: (p2 + 2 * h2) / 3 }), c2 += " Z";
  12068. break;
  12069. case 3:
  12070. g2({ x: r3, y: h2 }), g2({ x: s2, y: p2 }), g2({ x: a2, y: u2 });
  12071. }
  12072. else {
  12073. switch (d2) {
  12074. case 3:
  12075. f2(n3, l2);
  12076. case 2:
  12077. c2 += Co({ x: n3, y: l2 });
  12078. }
  12079. c2 += " Z";
  12080. }
  12081. return c2;
  12082. }, t2;
  12083. }(), hl = function(t2) {
  12084. function e3() {
  12085. var e4 = t2.call(this) || this;
  12086. return e4.className = "WavedCircle", e4.element = e4.paper.add("path"), e4.waveLength = 16, e4.waveHeight = 4, e4.fill = void 0, e4.fillOpacity = 0, e4.tension = 0.8, e4.applyTheme(), e4;
  12087. }
  12088. return C(e3, t2), e3.prototype.draw = function() {
  12089. var t3 = "", e4 = this.pixelRadius;
  12090. e4 > 0 && (t3 = wo((i3 = this.getPoints(e4))[0]) + new tl(this.tension, this.tension).smooth(i3));
  12091. var i3, n3 = this.pixelInnerRadius;
  12092. n3 > 0 && ((i3 = this.getPoints(n3)).reverse(), t3 += wo(i3[0]) + new tl(this.tension, this.tension).smooth(i3)), this.path = t3;
  12093. }, e3.prototype.getPoints = function(t3) {
  12094. for (var e4 = t3 * Math.PI * 2, i3 = this.waveHeight / 2, n3 = e4 / Math.round(e4 / this.waveLength), r3 = n3 / 2, s2 = [], a2 = e4 / n3, o3 = 0; o3 <= a2; o3++) {
  12095. var l2 = o3 * n3 / e4 * 360, h2 = (o3 * n3 + r3) / e4 * 360;
  12096. s2.push({ x: (t3 - i3) * ft(l2), y: (t3 - i3) * dt(l2) }), s2.push({ x: (t3 + i3) * ft(h2), y: (t3 + i3) * dt(h2) });
  12097. }
  12098. return s2.pop(), s2;
  12099. }, Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  12100. return this.getPropertyValue("innerRadius");
  12101. }, set: function(t3) {
  12102. this.setPercentProperty("innerRadius", t3, true, false, 10, false), this.invalidate();
  12103. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  12104. return Vn(this.innerRadius, yt(this.innerWidth / 2, this.innerHeight / 2));
  12105. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "waveLength", { get: function() {
  12106. return this.getPropertyValue("waveLength");
  12107. }, set: function(t3) {
  12108. this.setPropertyValue("waveLength", t3), this.invalidate();
  12109. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "waveHeight", { get: function() {
  12110. return this.getPropertyValue("waveHeight");
  12111. }, set: function(t3) {
  12112. this.setPropertyValue("waveHeight", t3), this.invalidate();
  12113. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tension", { get: function() {
  12114. return this.getPropertyValue("tension");
  12115. }, set: function(t3) {
  12116. this.setPropertyValue("tension", t3), this.invalidate();
  12117. }, enumerable: true, configurable: true }), e3;
  12118. }(yo);
  12119. Ii.registeredClasses.WavedCircle = hl;
  12120. var pl = function(t2) {
  12121. function e3() {
  12122. var e4 = t2.call(this) || this;
  12123. return e4.className = "WavedLine", e4.element = e4.paper.add("path"), e4.waveLength = 16, e4.waveHeight = 4, e4.tension = 0.8, e4.pixelPerfect = false, e4.fill = dn(), e4.applyTheme(), e4;
  12124. }
  12125. return C(e3, t2), e3.prototype.draw = function() {
  12126. var t3 = { x: this.x1, y: this.y1 }, e4 = { x: this.x2, y: this.y2 };
  12127. this.path = wo(t3) + el(t3, e4, this.waveLength, this.waveHeight, this.tension, true);
  12128. }, Object.defineProperty(e3.prototype, "waveLength", { get: function() {
  12129. return this.getPropertyValue("waveLength");
  12130. }, set: function(t3) {
  12131. this.setPropertyValue("waveLength", t3), this.invalidate();
  12132. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "waveHeight", { get: function() {
  12133. return this.getPropertyValue("waveHeight");
  12134. }, set: function(t3) {
  12135. this.setPropertyValue("waveHeight", t3), this.invalidate();
  12136. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tension", { get: function() {
  12137. return this.getPropertyValue("tension");
  12138. }, set: function(t3) {
  12139. this.setPropertyValue("tension", t3), this.invalidate();
  12140. }, enumerable: true, configurable: true }), e3;
  12141. }(bo), ul = function(t2) {
  12142. function e3() {
  12143. var e4 = t2.call(this) || this;
  12144. return e4.className = "WavedRectangle", e4.element = e4.paper.add("path"), e4.waveLength = 16, e4.waveHeight = 4, e4.tension = 0.8, e4.setPropertyValue("wavedLeft", true), e4.setPropertyValue("wavedRight", true), e4.setPropertyValue("wavedTop", true), e4.setPropertyValue("wavedBottom", true), e4.applyTheme(), e4;
  12145. }
  12146. return C(e3, t2), e3.prototype.draw = function() {
  12147. t2.prototype.draw.call(this);
  12148. var e4 = this.pixelWidth, i3 = this.pixelHeight;
  12149. if (e4 > 0 && i3 > 0) {
  12150. var n3 = { x: 0, y: 0 }, r3 = { x: e4, y: 0 }, s2 = { x: e4, y: i3 }, a2 = { x: 0, y: i3 }, o3 = Math.min(e4, this.waveLength), l2 = Math.min(i3, this.waveHeight), h2 = Math.min(i3, this.waveLength), p2 = Math.min(e4, this.waveHeight), u2 = "", d2 = "", c2 = "", f2 = "";
  12151. this.wavedTop && (u2 = el(n3, r3, o3, l2, this.tension, true)), this.wavedRight && (d2 = el(r3, s2, h2, p2, this.tension, true)), this.wavedBottom && (c2 = el(s2, a2, o3, l2, this.tension, true)), this.wavedLeft && (f2 = el(a2, n3, h2, p2, this.tension, true)), this.path = wo(n3) + u2 + Co(r3) + d2 + Co(s2) + c2 + Co(a2) + f2 + "z";
  12152. }
  12153. }, Object.defineProperty(e3.prototype, "waveLength", { get: function() {
  12154. return this.getPropertyValue("waveLength");
  12155. }, set: function(t3) {
  12156. this.setPropertyValue("waveLength", t3), this.invalidate();
  12157. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "waveHeight", { get: function() {
  12158. return this.getPropertyValue("waveHeight");
  12159. }, set: function(t3) {
  12160. this.setPropertyValue("waveHeight", t3), this.invalidate();
  12161. }, enumerable: true, configurable: true }), e3.prototype.setWavedSides = function(t3, e4, i3, n3) {
  12162. this.wavedTop = t3, this.wavedRight = e4, this.wavedBottom = i3, this.wavedLeft = n3;
  12163. }, Object.defineProperty(e3.prototype, "tension", { get: function() {
  12164. return this.getPropertyValue("tension");
  12165. }, set: function(t3) {
  12166. this.setPropertyValue("tension", t3), this.invalidate();
  12167. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wavedRight", { get: function() {
  12168. return this.getPropertyValue("wavedRight");
  12169. }, set: function(t3) {
  12170. this.setPropertyValue("wavedRight", t3, true);
  12171. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wavedLeft", { get: function() {
  12172. return this.getPropertyValue("wavedLeft");
  12173. }, set: function(t3) {
  12174. this.setPropertyValue("wavedLeft", t3, true);
  12175. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wavedTop", { get: function() {
  12176. return this.getPropertyValue("wavedTop");
  12177. }, set: function(t3) {
  12178. this.setPropertyValue("wavedTop", t3, true);
  12179. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wavedBottom", { get: function() {
  12180. return this.getPropertyValue("wavedBottom");
  12181. }, set: function(t3) {
  12182. this.setPropertyValue("wavedBottom", t3, true);
  12183. }, enumerable: true, configurable: true }), e3;
  12184. }(qa), dl = function(t2) {
  12185. function e3() {
  12186. var e4 = t2.call(this) || this;
  12187. e4.className = "ZoomOutButton", e4.padding(9, 9, 9, 9), e4.showSystemTooltip = true;
  12188. var i3 = new Ys(), n3 = e4.background;
  12189. n3.cornerRadius(20, 20, 20, 20), n3.fill = i3.getFor("primaryButton"), n3.stroke = i3.getFor("primaryButtonStroke"), n3.strokeOpacity = 0, n3.states.getKey("hover").properties.fill = i3.getFor("primaryButtonHover"), n3.states.getKey("down").properties.fill = i3.getFor("primaryButtonActive");
  12190. var r3 = new Za();
  12191. r3.element = e4.paper.add("path");
  12192. var s2 = wo({ x: 0, y: 0 });
  12193. return s2 += Co({ x: 11, y: 0 }), r3.path = s2, r3.pixelPerfect = true, r3.padding(8, 3, 8, 3), r3.stroke = i3.getFor("primaryButtonText"), e4.icon = r3, e4.applyTheme(), e4;
  12194. }
  12195. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  12196. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Zoom Out"));
  12197. }, e3;
  12198. }(go);
  12199. Ii.registeredClasses.ZoomOutButton = dl;
  12200. var cl = function(t2) {
  12201. function e3() {
  12202. var e4 = t2.call(this) || this;
  12203. e4.className = "PlayButton", e4.padding(12, 12, 12, 12), e4.showSystemTooltip = true;
  12204. var i3 = new Ys(), n3 = e4.background;
  12205. n3.cornerRadius(25, 25, 25, 25), n3.fill = i3.getFor("primaryButton"), n3.stroke = i3.getFor("primaryButtonStroke"), n3.strokeOpacity = 0, n3.states.getKey("hover").properties.fill = i3.getFor("primaryButtonHover"), n3.states.getKey("down").properties.fill = i3.getFor("primaryButtonActive");
  12206. var r3 = new Qo();
  12207. r3.direction = "right", r3.width = 9, r3.height = 11, r3.marginLeft = 1, r3.marginRight = 1, r3.horizontalCenter = "middle", r3.verticalCenter = "middle", r3.stroke = i3.getFor("primaryButtonText"), r3.fill = r3.stroke, e4.icon = r3;
  12208. var s2 = new fo();
  12209. s2.width = 11, s2.height = 11, s2.horizontalCenter = "middle", s2.verticalCenter = "middle", s2.cornerRadius(0, 0, 0, 0), s2.stroke = i3.getFor("primaryButtonText"), s2.fill = r3.stroke, e4.togglable = true;
  12210. var a2 = e4.states.create("active");
  12211. return a2.transitionDuration = 0, a2.properties.icon = s2, e4.defaultState.transitionDuration = 0, e4.applyTheme(), e4;
  12212. }
  12213. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  12214. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Play"));
  12215. }, e3;
  12216. }(go);
  12217. Ii.registeredClasses.PlayButton = cl;
  12218. var fl = function(t2) {
  12219. function e3() {
  12220. var e4 = t2.call(this) || this;
  12221. return e4.className = "ColorModifier", e4.applyTheme(), e4;
  12222. }
  12223. return C(e3, t2), e3.prototype.modify = function(t3) {
  12224. return t3;
  12225. }, e3;
  12226. }(yn);
  12227. Ii.registeredClasses.ColorModifier = fl;
  12228. var gl = function(t2) {
  12229. function e3() {
  12230. var e4 = t2.call(this) || this;
  12231. return e4.lightnesses = [], e4.brightnesses = [], e4.opacities = [], e4.offsets = [], e4.className = "GradientModifier", e4.applyTheme(), e4;
  12232. }
  12233. return C(e3, t2), Object.defineProperty(e3.prototype, "lightnesses", { get: function() {
  12234. return this._lightnesses;
  12235. }, set: function(t3) {
  12236. this._lightnesses = t3, this._brightnesses = [];
  12237. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "brightnesses", { get: function() {
  12238. return this._brightnesses;
  12239. }, set: function(t3) {
  12240. this._brightnesses = t3, this._lightnesses = [];
  12241. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "opacities", { get: function() {
  12242. return this._opacities;
  12243. }, set: function(t3) {
  12244. this._opacities = t3;
  12245. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "offsets", { get: function() {
  12246. return this._offsets;
  12247. }, set: function(t3) {
  12248. this._offsets = t3;
  12249. }, enumerable: true, configurable: true }), e3.prototype.modify = function(t3) {
  12250. this.gradient.clear();
  12251. var e4 = 0;
  12252. this.opacities && (e4 = gt(e4, this.opacities.length)), this.lightnesses && (e4 = gt(e4, this.lightnesses.length)), this.brightnesses && (e4 = gt(e4, this.brightnesses.length));
  12253. for (var i3, n3, r3 = 1, s2 = 0; s2 < e4; s2++) {
  12254. var a2 = t3;
  12255. this.opacities && tt(this.opacities[s2]) && (r3 = this.opacities[s2]), this.lightnesses && tt(this.lightnesses[s2]) && (i3 = this.lightnesses[s2], n3 = void 0), this.brightnesses && tt(this.brightnesses[s2]) && (n3 = this.brightnesses[s2], i3 = void 0), tt(n3) ? a2 = t3.brighten(this.brightnesses[s2]) : tt(i3) && (a2 = t3.lighten(this.lightnesses[s2]));
  12256. var o3 = this.offsets[s2];
  12257. this.gradient.addColor(a2, r3, o3);
  12258. }
  12259. return this.gradient;
  12260. }, e3.prototype.copyFrom = function(e4) {
  12261. t2.prototype.copyFrom.call(this, e4), this._offsets = e4.offsets, this._brightnesses = e4.brightnesses, this._lightnesses = e4.lightnesses, this._opacities = e4.opacities;
  12262. }, e3;
  12263. }(fl);
  12264. Ii.registeredClasses.GradientModifier = gl;
  12265. var yl = function(t2) {
  12266. function e3() {
  12267. var e4 = t2.call(this) || this;
  12268. return e4.className = "LinearGradientModifier", e4.gradient = new Oa(), e4.applyTheme(), e4;
  12269. }
  12270. return C(e3, t2), e3.prototype.copyFrom = function(e4) {
  12271. t2.prototype.copyFrom.call(this, e4), this.gradient = e4.gradient.clone();
  12272. }, e3;
  12273. }(gl);
  12274. Ii.registeredClasses.LinearGradientModifier = yl;
  12275. var ml = function(t2) {
  12276. function e3() {
  12277. var e4 = t2.call(this) || this;
  12278. return e4.className = "Cone", e4.angle = 30, e4.radius = V(100), e4.topRadius = V(100), e4.top = e4.createChild(mo), e4.top.shouldClone = false, e4.bottom = e4.createChild(mo), e4.bottom.shouldClone = false, e4.body = e4.createChild(Za), e4.body.shouldClone = false, e4.body.setElement(e4.paper.add("path")), e4.layout = "none", e4.bodyFillModifier = new yl(), e4.bodyFillModifier.lightnesses = [0, -0.25, 0], e4.body.fillModifier = e4.bodyFillModifier, e4.applyTheme(), e4;
  12279. }
  12280. return C(e3, t2), e3.prototype.draw = function() {
  12281. t2.prototype.draw.call(this), Ue(this, this.top, Ka), Ue(this, this.bottom, Ka), Ue(this, this.body, Ka);
  12282. var e4, i3, n3, r3 = this.innerWidth, s2 = this.innerHeight, a2 = this.bottom, o3 = this.top, l2 = this.angle;
  12283. "horizontal" == this.orientation ? (e4 = s2 / 2, a2.y = s2 / 2, o3.y = s2 / 2, o3.x = r3, i3 = (90 - l2) / 90, n3 = 0, this.bodyFillModifier.gradient.rotation = 90) : (i3 = 0, n3 = (90 - l2) / 90, e4 = r3 / 2, a2.y = s2, a2.x = r3 / 2, o3.x = r3 / 2, this.bodyFillModifier.gradient.rotation = 0);
  12284. var h2, p2 = this.radius.value * e4, u2 = this.topRadius.value * e4;
  12285. a2.radius = p2 - p2 * i3, a2.radiusY = p2 - p2 * n3, o3.radius = u2 - u2 * i3, o3.radiusY = u2 - u2 * n3, h2 = "horizontal" == this.orientation ? wo({ x: 0, y: s2 / 2 - a2.radiusY }) + Do(-90, -180, a2.radius, a2.radiusY) + Co({ x: r3, y: s2 / 2 + o3.radiusY }) + Do(90, 180, o3.radius, o3.radiusY) + " Z" : wo({ x: r3 / 2 - o3.radius, y: 0 }) + Do(180, -180, o3.radius, o3.radiusY) + Co({ x: r3 / 2 + a2.radius, y: s2 }) + Do(0, 180, a2.radius, a2.radiusY) + " Z", this.body.path = h2;
  12286. }, Object.defineProperty(e3.prototype, "angle", { get: function() {
  12287. return this.getPropertyValue("angle");
  12288. }, set: function(t3) {
  12289. this.setPropertyValue("angle", t3, true);
  12290. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  12291. return this.getPropertyValue("radius");
  12292. }, set: function(t3) {
  12293. this.setPropertyValue("radius", t3, true);
  12294. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "topRadius", { get: function() {
  12295. return this.getPropertyValue("topRadius");
  12296. }, set: function(t3) {
  12297. this.setPropertyValue("topRadius", t3, true);
  12298. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  12299. return this.getPropertyValue("orientation");
  12300. }, set: function(t3) {
  12301. this.setPropertyValue("orientation", t3, true);
  12302. }, enumerable: true, configurable: true }), e3;
  12303. }($a), vl = function(t2) {
  12304. function e3() {
  12305. var e4 = t2.call(this) || this;
  12306. return e4.className = "LightenFilter", e4.feColorMatrix = e4.paper.add("feColorMatrix"), e4.feColorMatrix.attr({ type: "matrix" }), e4.filterPrimitives.push(e4.feColorMatrix), e4.lightness = 0, e4.applyTheme(), e4;
  12307. }
  12308. return C(e3, t2), Object.defineProperty(e3.prototype, "lightness", { get: function() {
  12309. return this.properties.lightness;
  12310. }, set: function(t3) {
  12311. this.properties.lightness = t3;
  12312. var e4 = t3 + 1;
  12313. this.feColorMatrix.attr({ values: e4 + " 0 0 0 0 0 " + e4 + " 0 0 0 0 0 " + e4 + " 0 0 0 0 0 1 0" });
  12314. }, enumerable: true, configurable: true }), e3;
  12315. }(Zo);
  12316. Ii.registeredClasses.LightenFilter = vl;
  12317. var bl = function(t2) {
  12318. function e3() {
  12319. var e4 = t2.call(this) || this;
  12320. e4.angle = 30, e4.depth = 30, e4.className = "Rectangle3D", e4.layout = "none";
  12321. var i3 = e4.createChild(Za);
  12322. i3.shouldClone = false, i3.setElement(e4.paper.add("path")), i3.isMeasured = false, e4.sideBack = i3, e4._disposers.push(e4.sideBack);
  12323. var n3 = e4.createChild(Za);
  12324. n3.shouldClone = false, n3.setElement(e4.paper.add("path")), n3.isMeasured = false, e4.sideBottom = n3, e4._disposers.push(e4.sideBottom);
  12325. var r3 = e4.createChild(Za);
  12326. r3.shouldClone = false, r3.setElement(e4.paper.add("path")), r3.isMeasured = false, e4.sideLeft = r3, e4._disposers.push(e4.sideLeft);
  12327. var s2 = e4.createChild(Za);
  12328. s2.shouldClone = false, s2.setElement(e4.paper.add("path")), s2.isMeasured = false, e4.sideRight = s2, e4._disposers.push(e4.sideRight);
  12329. var a2 = e4.createChild(Za);
  12330. a2.shouldClone = false, a2.setElement(e4.paper.add("path")), a2.isMeasured = false, e4.sideTop = a2, e4._disposers.push(e4.sideTop);
  12331. var o3 = e4.createChild(Za);
  12332. return o3.shouldClone = false, o3.setElement(e4.paper.add("path")), o3.isMeasured = false, e4.sideFront = o3, e4._disposers.push(e4.sideFront), e4.applyTheme(), e4;
  12333. }
  12334. return C(e3, t2), e3.prototype.draw = function() {
  12335. t2.prototype.draw.call(this);
  12336. var e4 = this.innerWidth, i3 = this.innerHeight, n3 = this.depth, r3 = this.angle, s2 = dt(r3), a2 = ft(r3), o3 = { x: 0, y: 0 }, l2 = { x: e4, y: 0 }, h2 = { x: e4, y: i3 }, p2 = { x: 0, y: i3 }, u2 = { x: n3 * a2, y: -n3 * s2 }, d2 = { x: n3 * a2 + e4, y: -n3 * s2 }, c2 = { x: n3 * a2 + e4, y: -n3 * s2 + i3 }, f2 = { x: n3 * a2, y: -n3 * s2 + i3 };
  12337. this.sideFront.path = wo(o3) + Co(l2) + Co(h2) + Co(p2) + " Z", this.sideBack.path = wo(u2) + Co(d2) + Co(c2) + Co(f2) + " Z", this.sideLeft.path = wo(o3) + Co(u2) + Co(f2) + Co(p2) + " Z", this.sideRight.path = wo(l2) + Co(d2) + Co(c2) + Co(h2) + " Z", this.sideBottom.path = wo(p2) + Co(f2) + Co(c2) + Co(h2) + " Z", this.sideTop.path = wo(o3) + Co(u2) + Co(d2) + Co(l2) + " Z";
  12338. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  12339. return this.getPropertyValue("depth");
  12340. }, set: function(t3) {
  12341. this.setPropertyValue("depth", t3, true);
  12342. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  12343. return this.getPropertyValue("angle");
  12344. }, set: function(t3) {
  12345. this.setPropertyValue("angle", t3, true);
  12346. }, enumerable: true, configurable: true }), e3.prototype.setFill = function(e4) {
  12347. var i3;
  12348. if (t2.prototype.setFill.call(this, e4), et(e4) && !("r" in e4) || (e4 = gn(e4)), e4 instanceof un)
  12349. i3 = e4.hex;
  12350. else if (e4 instanceof Oa || e4 instanceof Sa)
  12351. i3 = e4.stops.getIndex(0).color.hex;
  12352. else {
  12353. var n3 = new vl();
  12354. n3.lightness = -0.2, this.sideBack.filters.push(n3);
  12355. var r3 = n3.clone();
  12356. r3.lightness = -0.4, this.sideLeft.filters.push(r3);
  12357. var s2 = n3.clone();
  12358. s2.lightness = -0.2, this.sideRight.filters.push(s2);
  12359. var a2 = n3.clone();
  12360. a2.lightness = -0.1, this.sideTop.filters.push(a2);
  12361. var o3 = n3.clone();
  12362. o3.lightness = -0.5, this.sideBottom.filters.push(o3);
  12363. }
  12364. i3 && (this.sideBack.fill = dn(i3).lighten(-0.2), this.sideLeft.fill = dn(i3).lighten(-0.4), this.sideRight.fill = dn(i3).lighten(-0.2), this.sideTop.fill = dn(i3).lighten(-0.1), this.sideBottom.fill = dn(i3).lighten(-0.5));
  12365. }, e3.prototype.copyFrom = function(e4) {
  12366. t2.prototype.copyFrom.call(this, e4), this.sideBack.copyFrom(e4.sideBack), this.sideLeft.copyFrom(e4.sideLeft), this.sideRight.copyFrom(e4.sideRight), this.sideTop.copyFrom(e4.sideTop), this.sideBottom.copyFrom(e4.sideBottom);
  12367. }, e3;
  12368. }($a), xl = function(t2) {
  12369. function e3() {
  12370. var e4 = t2.call(this) || this;
  12371. e4.className = "Slice3D", e4.layout = "none";
  12372. var i3 = e4.createChild(Za);
  12373. e4.edge = i3, i3.shouldClone = false, i3.isMeasured = false, i3.toBack(), e4.angle = 30, e4.depth = 20;
  12374. var n3 = e4.createChild(Za);
  12375. e4.sideA = n3, n3.shouldClone = false, n3.isMeasured = false;
  12376. var r3 = e4.createChild(Za);
  12377. return e4.sideB = r3, r3.shouldClone = false, r3.isMeasured = false, e4.applyTheme(), e4;
  12378. }
  12379. return C(e3, t2), e3.prototype.setFill = function(e4) {
  12380. var i3;
  12381. if (t2.prototype.setFill.call(this, e4), e4 instanceof un)
  12382. i3 = e4.hex;
  12383. else if (e4 instanceof Oa || e4 instanceof Sa)
  12384. i3 = e4.stops.getIndex(0).color.hex;
  12385. else {
  12386. var n3 = new vl();
  12387. n3.lightness = -0.25, this.edge.filters.push(n3), this.sideA.filters.push(n3.clone()), this.sideB.filters.push(n3.clone());
  12388. }
  12389. if (i3) {
  12390. var r3 = dn(i3).lighten(-0.25);
  12391. this.edge.fill = r3, this.sideA.fill = r3, this.sideB.fill = r3, this.edge.stroke = r3, this.sideA.stroke = r3, this.sideB.stroke = r3;
  12392. }
  12393. }, e3.prototype.draw = function() {
  12394. if (this.cornerRadius = 0, this.innerCornerRadius = 0, t2.prototype.draw.call(this), 0 !== this.arc && this.radius > 0 && this.depth > 0) {
  12395. this.sideB.show(0), this.sideA.show(0), this.edge.show(0);
  12396. for (var e4 = this.startAngle, i3 = this.arc, n3 = this.pixelInnerRadius || 0, r3 = this.radiusY || 0, s2 = this.radius, a2 = e4 + i3, o3 = r3 / s2 * n3, l2 = { x: ft(e4) * n3, y: dt(e4) * o3 }, h2 = { x: ft(e4) * s2, y: dt(e4) * r3 }, p2 = { x: ft(a2) * s2, y: dt(a2) * r3 }, u2 = { x: ft(a2) * n3, y: dt(a2) * o3 }, d2 = this.depth, c2 = { x: l2.x, y: l2.y - d2 }, f2 = { x: h2.x, y: h2.y - d2 }, g2 = { x: p2.x, y: p2.y - d2 }, y2 = { x: u2.x, y: u2.y - d2 }, m2 = "", v2 = Math.ceil(i3 / 5), b2 = i3 / v2, x2 = e4, _2 = f2, P2 = 0; P2 < v2; P2++)
  12397. if ((x2 += b2) > 0 && x2 < 180) {
  12398. m2 += wo(_2);
  12399. var w2 = { x: ft(x2) * s2, y: dt(x2) * r3 - d2 };
  12400. m2 += Co({ x: _2.x, y: _2.y + d2 }), m2 += To({ x: w2.x, y: w2.y + d2 }, s2, r3, true), m2 += Co(w2), m2 += To(_2, s2, r3), m2 += "z", _2 = w2;
  12401. } else
  12402. m2 += wo(_2), m2 += To(w2 = { x: ft(x2) * s2, y: dt(x2) * r3 - d2 }, s2, r3, true), m2 += Co({ x: w2.x, y: w2.y + d2 }), m2 += To({ x: _2.x, y: _2.y + d2 }, s2, r3), m2 += Co(_2), m2 += "z", _2 = w2;
  12403. for (_2 = c2, x2 = e4, P2 = 0; P2 < v2; P2++)
  12404. (x2 += b2) > 0 && x2 < 180 ? (m2 += wo(_2), w2 = { x: ft(x2) * n3, y: dt(x2) * o3 - d2 }, m2 += Co({ x: _2.x, y: _2.y + d2 }), m2 += To({ x: w2.x, y: w2.y + d2 }, n3, o3, true), m2 += Co(w2), m2 += To(_2, n3, o3), m2 += "z", _2 = w2) : (m2 += wo(_2), m2 += To(w2 = { x: ft(x2) * n3, y: dt(x2) * o3 - d2 }, n3, o3, true), m2 += Co({ x: w2.x, y: w2.y + d2 }), m2 += To({ x: _2.x, y: _2.y + d2 }, n3, o3), m2 += Co(_2), m2 += "z", _2 = w2);
  12405. this.edge.path = m2, this.sideA.path = wo(l2) + Co(h2) + Co(f2) + Co(c2) + " Z", this.sideB.path = wo(p2) + Co(u2) + Co(y2) + Co(g2) + " Z", this.startAngle < 90 ? this.sideA.toBack() : this.sideA.toFront(), this.startAngle + this.arc > 90 ? this.sideB.toBack() : this.sideB.toFront(), this.slice.dy = -d2;
  12406. } else
  12407. this.sideA.hide(0), this.sideB.hide(0), this.edge.hide(0);
  12408. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  12409. return this.getPropertyValue("depth");
  12410. }, set: function(t3) {
  12411. this.setPropertyValue("depth", t3, true);
  12412. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  12413. var t3 = this.getPropertyValue("angle");
  12414. return tt(t3) || (t3 = 0), t3;
  12415. }, set: function(t3) {
  12416. this.setPropertyValue("angle", t3, true);
  12417. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radiusY", { get: function() {
  12418. var t3 = this.getPropertyValue("radiusY");
  12419. return tt(t3) || (t3 = this.radius - this.radius * this.angle / 90), t3;
  12420. }, set: function(t3) {
  12421. this.setPropertyValue("radiusY", t3, true);
  12422. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  12423. t2.prototype.copyFrom.call(this, e4), this.edge.copyFrom(e4.edge), this.sideA.copyFrom(e4.sideA), this.sideB.copyFrom(e4.sideB);
  12424. }, e3;
  12425. }(No), _l = function(t2) {
  12426. function e3() {
  12427. var e4 = t2.call(this) || this;
  12428. return e4.className = "RadialGradientModifier", e4.gradient = new Sa(), e4.applyTheme(), e4;
  12429. }
  12430. return C(e3, t2), e3.prototype.copyFrom = function(e4) {
  12431. t2.prototype.copyFrom.call(this, e4), this.gradient = e4.gradient.clone();
  12432. }, e3;
  12433. }(gl);
  12434. Ii.registeredClasses.RadialGradientModifier = _l;
  12435. var Pl = function(t2) {
  12436. function e3() {
  12437. var e4 = t2.call(this) || this;
  12438. return e4.properties.gap = 0, e4._line = e4.paper.add("path"), e4.addElement(e4._line), e4;
  12439. }
  12440. return C(e3, t2), e3.prototype.draw = function() {
  12441. if (t2.prototype.draw.call(this), Math.round(this.rotation / 90) != this.rotation / 90 && (this.properties.shapeRendering = "auto"), this._line) {
  12442. var e4 = this.width, i3 = this.height, n3 = "";
  12443. if (this.gap)
  12444. for (var r3 = this.gap + this.strokeWidth, s2 = this.height / r3, a2 = -s2 / 2; a2 < 1.5 * s2; a2++)
  12445. Math.round(this.rotation / 90) != this.rotation / 90 ? (n3 += wo({ x: -e4, y: (a2 + 0.5) * r3 }) + Co({ x: 2 * e4, y: (a2 + 0.5) * r3 }), this.properties.rotationX = this.width / 2, this.properties.rotationY = this.height / 2) : n3 += wo({ x: -e4, y: a2 * r3 }) + Co({ x: 2 * e4, y: a2 * r3 });
  12446. else
  12447. Math.round(this.rotation / 90) != this.rotation / 90 ? (n3 = wo({ x: -e4, y: i3 / 2 }) + Co({ x: 2 * e4, y: i3 / 2 }), this.properties.rotationX = this.width / 2, this.properties.rotationY = this.height / 2) : n3 = wo({ x: 0, y: 0 }) + Co({ x: e4, y: 0 });
  12448. this._line.attr({ d: n3 });
  12449. }
  12450. }, Object.defineProperty(e3.prototype, "gap", { get: function() {
  12451. return this.properties.gap;
  12452. }, set: function(t3) {
  12453. this.properties.gap = t3, this.draw();
  12454. }, enumerable: true, configurable: true }), e3;
  12455. }(Ca);
  12456. Ii.registeredClasses.LinePattern = Pl;
  12457. var wl = function(t2) {
  12458. function e3() {
  12459. var e4 = t2.call(this) || this;
  12460. return e4.properties.radius = 2, e4._circle = e4.paper.add("circle"), e4.addElement(e4._circle), e4.shapeRendering = "auto", e4;
  12461. }
  12462. return C(e3, t2), e3.prototype.draw = function() {
  12463. t2.prototype.draw.call(this), this._circle && this._circle.attr({ r: this.radius, cx: this.width / 2, cy: this.height / 2 });
  12464. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  12465. return this.properties.radius;
  12466. }, set: function(t3) {
  12467. this.properties.radius = t3, this.draw();
  12468. }, enumerable: true, configurable: true }), e3;
  12469. }(Ca);
  12470. Ii.registeredClasses.CirclePattern = wl;
  12471. var Cl = function(t2) {
  12472. function e3() {
  12473. var e4 = t2.call(this) || this;
  12474. return e4.rectHeight = 1, e4.rectWidth = 1, e4._rect = e4.paper.add("rect"), e4.addElement(e4._rect), e4;
  12475. }
  12476. return C(e3, t2), e3.prototype.draw = function() {
  12477. t2.prototype.draw.call(this), this.properties.rotationX = this.width / 2, this.properties.rotationY = this.height / 2, this._rect && this._rect.attr({ width: this.rectWidth, height: this.rectHeight, x: (this.width - this.rectWidth) / 2, y: (this.height - this.rectHeight) / 2 });
  12478. }, Object.defineProperty(e3.prototype, "rectWidth", { get: function() {
  12479. return this.properties.rectWidth;
  12480. }, set: function(t3) {
  12481. this.properties.rectWidth = t3, this.draw();
  12482. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rectHeight", { get: function() {
  12483. return this.properties.rectHeight;
  12484. }, set: function(t3) {
  12485. this.properties.rectHeight = t3, this.draw();
  12486. }, enumerable: true, configurable: true }), e3;
  12487. }(Ca);
  12488. Ii.registeredClasses.RectPattern = Cl;
  12489. var Ol = function(t2) {
  12490. function e3() {
  12491. var e4 = t2.call(this) || this;
  12492. return e4.className = "ColorizeFilter", e4.feColorMatrix = e4.paper.add("feColorMatrix"), e4.feColorMatrix.attr({ type: "matrix" }), e4.filterPrimitives.push(e4.feColorMatrix), e4.intensity = 1, e4.applyTheme(), e4;
  12493. }
  12494. return C(e3, t2), e3.prototype.applyFilter = function() {
  12495. var t3, e4, i3, n3 = this.intensity, r3 = 1 - n3, s2 = this.color;
  12496. s2 && s2.rgb ? (t3 = s2.rgb.r / 255 * n3, e4 = s2.rgb.g / 255 * n3, i3 = s2.rgb.b / 255 * n3) : (t3 = 0, e4 = 0, i3 = 0), this.feColorMatrix.attr({ values: r3 + " 0 0 0 " + t3 + " 0 " + r3 + " 0 0 " + e4 + " 0 0 " + r3 + " 0 " + i3 + " 0 0 0 1 0" });
  12497. }, Object.defineProperty(e3.prototype, "color", { get: function() {
  12498. return this.properties.color;
  12499. }, set: function(t3) {
  12500. this.properties.color = t3, this.applyFilter();
  12501. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "intensity", { get: function() {
  12502. return this.properties.intensity;
  12503. }, set: function(t3) {
  12504. this.properties.intensity = t3, this.applyFilter();
  12505. }, enumerable: true, configurable: true }), e3;
  12506. }(Zo);
  12507. Ii.registeredClasses.ColorizeFilter = Ol;
  12508. var Sl = function(t2) {
  12509. function e3() {
  12510. var e4 = t2.call(this) || this;
  12511. return e4.className = "DesaturateFilter", e4.feColorMatrix = e4.paper.add("feColorMatrix"), e4.feColorMatrix.attr({ type: "saturate" }), e4.filterPrimitives.push(e4.feColorMatrix), e4.width = 120, e4.height = 120, e4.saturation = 0, e4.applyTheme(), e4;
  12512. }
  12513. return C(e3, t2), Object.defineProperty(e3.prototype, "saturation", { get: function() {
  12514. return this.properties.saturation;
  12515. }, set: function(t3) {
  12516. this.properties.saturation = t3, this.feColorMatrix.attr({ values: t3.toString() });
  12517. }, enumerable: true, configurable: true }), e3;
  12518. }(Zo);
  12519. Ii.registeredClasses.DesaturateFilter = Sl;
  12520. var Il = function(t2) {
  12521. function e3() {
  12522. var e4 = t2.call(this) || this;
  12523. return e4.className = "BlurFilter", e4.feGaussianBlur = e4.paper.add("feGaussianBlur"), e4.feGaussianBlur.attr({ result: "blurOut", in: "SourceGraphic" }), e4.filterPrimitives.push(e4.feGaussianBlur), e4.width = 200, e4.height = 200, e4.blur = 1.5, e4.applyTheme(), e4;
  12524. }
  12525. return C(e3, t2), Object.defineProperty(e3.prototype, "blur", { get: function() {
  12526. return this.properties.blur;
  12527. }, set: function(t3) {
  12528. this.properties.blur = t3, this.feGaussianBlur.attr({ stdDeviation: t3 / this.scale });
  12529. }, enumerable: true, configurable: true }), e3;
  12530. }(Zo);
  12531. Ii.registeredClasses.BlurFilter = Il;
  12532. var Dl = function(t2) {
  12533. function e3() {
  12534. var e4 = t2.call(this) || this;
  12535. return e4.className = "FocusFilter", e4.feFlood = e4.paper.add("feFlood"), e4.feFlood.attr({ "flood-color": new Ys().getFor("primaryButtonHover"), result: "base" }), e4.filterPrimitives.push(e4.feFlood), e4.feMorphology = e4.paper.add("feMorphology"), e4.feMorphology.attr({ result: "bigger", in: "SourceGraphic", operator: "dilate", radius: "2" }), e4.filterPrimitives.push(e4.feMorphology), e4.feColorMatrix = e4.paper.add("feColorMatrix"), e4.feColorMatrix.attr({ result: "mask", in: "bigger", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" }), e4.filterPrimitives.push(e4.feColorMatrix), e4.feComposite = e4.paper.add("feComposite"), e4.feComposite.attr({ result: "drop", in: "base", in2: "mask", operator: "in" }), e4.filterPrimitives.push(e4.feComposite), e4.feBlend = e4.paper.add("feBlend"), e4.feBlend.attr({ in: "SourceGraphic", in2: "drop", mode: "normal" }), e4.filterPrimitives.push(e4.feBlend), e4.width = 130, e4.height = 130, e4.applyTheme(), e4;
  12536. }
  12537. return C(e3, t2), Object.defineProperty(e3.prototype, "stroke", { get: function() {
  12538. return this.properties.stroke;
  12539. }, set: function(t3) {
  12540. this.properties.stroke = t3, this.feFlood.attr({ "flood-color": t3 });
  12541. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeWidth", { get: function() {
  12542. return this.properties.strokeWidth;
  12543. }, set: function(t3) {
  12544. this.properties.strokeWidth = t3, this.feMorphology.attr({ radius: t3 });
  12545. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "opacity", { get: function() {
  12546. return this.properties.opacity;
  12547. }, set: function(t3) {
  12548. this.properties.opacity = t3, this.feColorMatrix.attr({ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 " + t3 + " 0" });
  12549. }, enumerable: true, configurable: true }), e3.prototype.setSprite = function(e4) {
  12550. this._sprite && this._sprite != e4 && this._sprite.group.removeStyle("outline"), e4.group.addStyle({ outline: "none" }), t2.prototype.setSprite.call(this, e4);
  12551. }, e3;
  12552. }(Zo), kl = function(t2) {
  12553. function e3() {
  12554. var e4 = t2.call(this) || this;
  12555. return e4._list = [], e4._currentStep = 0, e4._startIndex = 0, e4._currentPass = 0, e4.baseColor = new un({ r: 103, g: 183, b: 220 }), e4.stepOptions = {}, e4.passOptions = { brighten: -0.2 }, e4.step = 1, e4.minColors = 20, e4.minLightness = 0.2, e4.maxLightness = 0.9, e4.shuffle = false, e4.wrap = true, e4.reuse = false, e4.saturation = 1, e4.className = "ColorSet", e4.applyTheme(), e4;
  12556. }
  12557. return C(e3, t2), Object.defineProperty(e3.prototype, "list", { get: function() {
  12558. return this._list || this.generate(this.minColors), this._list;
  12559. }, set: function(t3) {
  12560. this._list = t3, this.reset();
  12561. }, enumerable: true, configurable: true }), e3.prototype.getReusableColor = function(t3) {
  12562. if (0 == this._list.length)
  12563. return this.generate(1), this.list[0];
  12564. var e4 = t3 - Math.floor(t3 / this._list.length) * this.list.length;
  12565. return this.list[e4];
  12566. }, e3.prototype.next = function() {
  12567. var t3;
  12568. return this.list.length <= this._currentStep ? this.reuse ? t3 = this.getReusableColor(this._currentStep) : (this.generate(gt(this.minColors, this._currentStep + 1)), t3 = this.list[this._currentStep]) : t3 = this.list[this._currentStep], this._currentStep += this.step, t3.saturate(this.saturation);
  12569. }, e3.prototype.getIndex = function(t3) {
  12570. var e4;
  12571. return this.list.length <= t3 ? this.reuse ? e4 = this.getReusableColor(t3) : (this.generate(this.minColors), e4 = this.getIndex(t3)) : e4 = this.list[t3], e4.saturate(this.saturation);
  12572. }, e3.prototype.reset = function() {
  12573. this._currentStep = this._startIndex;
  12574. }, Object.defineProperty(e3.prototype, "currentStep", { get: function() {
  12575. return this._currentStep;
  12576. }, set: function(t3) {
  12577. this._currentStep = t3;
  12578. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startIndex", { get: function() {
  12579. return this._startIndex;
  12580. }, set: function(t3) {
  12581. this._startIndex = t3, this.reset();
  12582. }, enumerable: true, configurable: true }), e3.prototype.generate = function(t3) {
  12583. var e4 = on(q(this.currentColor.rgb)), i3 = Z(this.stepOptions.hue) ? this.stepOptions.hue : 1 / t3, n3 = { brighten: 0, lighten: 0, hue: e4.h, lightness: e4.l, saturation: e4.s }, r3 = [], s2 = 0 == this.list.length ? 0 : 1;
  12584. if (this.reuse)
  12585. for (var a2 = s2; a2 <= t3; a2++)
  12586. r3.push(on(q(this._list[a2].rgb)).h);
  12587. else
  12588. for (a2 = s2; a2 <= t3; a2++) {
  12589. var o3 = e4.h + i3 * a2;
  12590. this.wrap && o3 > 1 && (o3 -= 1), r3.push(o3);
  12591. }
  12592. for (this.shuffle && r3.sort(function(t4, e5) {
  12593. return Math.random() - 0.5;
  12594. }), a2 = 0; a2 < t3; a2++) {
  12595. this.reuse ? e4 = on(q(this._list[a2].rgb)) : e4.h = r3.shift(), this.applyStepOptions(e4, n3, a2, this._currentPass);
  12596. var l2 = dn(an(e4)), h2 = (this.stepOptions.brighten || 0) * a2 + (this.passOptions.brighten || 0) * this._currentPass;
  12597. 0 != h2 && (h2 = this.wrap ? hr(h2, this.minLightness, this.maxLightness) : lr(h2, this.minLightness, this.maxLightness), l2 = l2.brighten(h2));
  12598. var p2 = (this.stepOptions.lighten || 0) * a2 + (this.passOptions.lighten || 0) * this._currentPass;
  12599. 0 != p2 && (p2 = this.wrap ? hr(p2, this.minLightness, this.maxLightness) : lr(p2, this.minLightness, this.maxLightness), l2 = l2.lighten(p2)), this._list.push(l2);
  12600. }
  12601. this._currentPass++;
  12602. }, Object.defineProperty(e3.prototype, "currentColor", { get: function() {
  12603. return 0 == this._list.length ? this.baseColor.saturate(this.saturation) : this._list[this._list.length - 1].saturate(this.saturation);
  12604. }, enumerable: true, configurable: true }), e3.prototype.applyStepOptions = function(t3, e4, i3, n3) {
  12605. t3.l = e4.lightness + (this.stepOptions.lightness || 0) * i3 + (this.passOptions.lightness || 0) * n3, this.wrap ? (t3.l > 1 ? t3.l = t3.l - Math.floor(t3.l) : t3.l < 0 && (t3.l = -(t3.l - Math.floor(t3.l))), t3.l = hr(t3.l, this.minLightness, this.maxLightness)) : (t3.l > 1 ? t3.l = 1 : t3.l < 0 && (t3.l = 0), t3.l = lr(t3.l, this.minLightness, this.maxLightness));
  12606. }, e3.prototype.processConfig = function(e4) {
  12607. if (e4) {
  12608. if (Z(e4.list) && it(e4.list))
  12609. for (var i3 = 0, n3 = e4.list.length; i3 < n3; i3++)
  12610. e4.list[i3] instanceof un || (e4.list[i3] = dn(e4.list[i3]));
  12611. !Z(e4.baseColor) || e4.baseColor instanceof un || (e4.baseColor = dn(e4.baseColor));
  12612. }
  12613. t2.prototype.processConfig.call(this, e4);
  12614. }, e3;
  12615. }(yn);
  12616. Ii.registeredClasses.ColorSet = kl;
  12617. var Tl = function(t2) {
  12618. function e3() {
  12619. var e4 = t2.call(this) || this;
  12620. e4._list = [], e4._currentStep = 0, e4._startIndex = 0, e4._currentPass = 0, e4.baseColor = new un({ r: 103, g: 183, b: 220 }), e4.className = "PatternSet";
  12621. var i3 = new Ys();
  12622. return e4.list = [e4.getLinePattern(1e3, 45, 1, 6), e4.getRectPattern(10, 0, 4), e4.getLinePattern(1e3, -45, 1, 6), e4.getCirclePattern(11, 2, true), e4.getLinePattern(6, 90, 1), e4.getRectPattern(12, 45, 6, true), e4.getLinePattern(6, 0, 1), e4.getRectPattern(7, 0, 4), e4.getLinePattern(1e3, 45, 2, 3, "4,2"), e4.getCirclePattern(9, 3, false), e4.getLinePattern(1e3, -45, 2, 3, "4,2"), e4.getRectPattern(10, 45, Math.sqrt(50)), e4.getLinePattern(1e3, -45, 2, 1), e4.getRectPattern(10, 0, 9), e4.getLinePattern(1e3, 45, 2, 1), e4.getLinePattern(1e3, 0, 3, 1), e4.getRectPattern(10, 45, 10), e4.getLinePattern(1e3, 90, 3, 1)], e4.baseColor = i3.getFor("stroke"), e4.applyTheme(), e4;
  12623. }
  12624. return C(e3, t2), e3.prototype.getLinePattern = function(t3, e4, i3, n3, r3) {
  12625. var s2 = new Pl();
  12626. return s2.width = t3, s2.height = t3, s2.stroke = this.baseColor, s2.gap = n3, s2.strokeDasharray = r3, s2.strokeWidth = i3, s2.rotation = e4, s2;
  12627. }, e3.prototype.getRectPattern = function(t3, e4, i3, n3) {
  12628. var r3 = new Cl();
  12629. return r3.width = t3, r3.height = t3, r3.rectWidth = i3, r3.rectHeight = i3, n3 ? (r3.stroke = this.baseColor, r3.strokeWidth = 1, r3.fillOpacity = 0) : (r3.fill = this.baseColor, r3.strokeWidth = 0), 0 != e4 && (r3.shapeRendering = "auto"), r3.rotation = e4, r3;
  12630. }, e3.prototype.getCirclePattern = function(t3, e4, i3) {
  12631. var n3 = new wl();
  12632. return n3.width = t3, n3.height = t3, n3.shapeRendering = "auto", n3.radius = e4, i3 ? (n3.stroke = this.baseColor, n3.strokeWidth = 1, n3.fillOpacity = 0) : (n3.fill = this.baseColor, n3.strokeWidth = 0), n3;
  12633. }, Object.defineProperty(e3.prototype, "list", { get: function() {
  12634. return this._list;
  12635. }, set: function(t3) {
  12636. this._list = t3, this.reset();
  12637. }, enumerable: true, configurable: true }), e3.prototype.next = function() {
  12638. var t3 = this.getIndex(this.currentStep);
  12639. return this._currentStep++, t3;
  12640. }, e3.prototype.getIndex = function(t3) {
  12641. for (; this.list.length <= t3; )
  12642. this.generatePatterns();
  12643. return this.list[t3].clone();
  12644. }, e3.prototype.generatePatterns = function() {
  12645. var t3 = this.list.length / (this._currentPass + 1);
  12646. this._currentPass++;
  12647. for (var e4 = 0; e4 < t3; e4++)
  12648. this.list.push(this.list[e4].clone());
  12649. }, e3.prototype.reset = function() {
  12650. this._currentStep = this._startIndex;
  12651. }, Object.defineProperty(e3.prototype, "currentStep", { get: function() {
  12652. return this._currentStep;
  12653. }, set: function(t3) {
  12654. this._currentStep = t3;
  12655. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startIndex", { get: function() {
  12656. return this._startIndex;
  12657. }, set: function(t3) {
  12658. this._startIndex = t3, this.reset();
  12659. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  12660. t2.prototype.processConfig.call(this, e4);
  12661. }, e3;
  12662. }(yn);
  12663. Ii.registeredClasses.PatternSet = Tl;
  12664. var Al = function() {
  12665. function t2() {
  12666. this._disposed = false, this._disposers = [];
  12667. }
  12668. return t2.prototype.init = function() {
  12669. }, t2.prototype.isDisposed = function() {
  12670. return this._disposed;
  12671. }, t2.prototype.dispose = function() {
  12672. if (!this._disposed) {
  12673. this._disposed = true;
  12674. var t3 = this._disposers;
  12675. for (this._disposers = null; 0 !== t3.length; )
  12676. t3.shift().dispose();
  12677. }
  12678. }, t2;
  12679. }(), Vl = function(t2) {
  12680. function e3() {
  12681. var e4 = t2.call(this) || this;
  12682. e4.className = "AmChartsLogo", e4.valign = "bottom", e4.opacity = 0.3, e4.defaultState.properties.opacity = 0.4, e4.url = "https://www.amcharts.com/", e4.urlTarget = "_blank", e4.showSystemTooltip = true, e4.readerTitle = "Chart created using amCharts library", e4.width = 66, e4.height = 21, e4.background.opacity = 0;
  12683. var i3 = dn("#474758");
  12684. "#ffffff" == new Ys().getFor("background").alternative.hex && (i3 = dn("#ffffff"));
  12685. var n3 = new Oa();
  12686. n3.addColor(i3), n3.addColor(i3, 1, 0.75), n3.addColor(dn("#3cabff"), 1, 0.755), n3.rotation = -10;
  12687. var r3 = n3, s2 = e4.createChild(Ho);
  12688. s2.shouldClone = false, s2.isMeasured = false, s2.segments = [[{ x: 15, y: 15 }, { x: 27, y: 15 }, { x: 36, y: 6 }, { x: 40.5, y: 10.5 }, { x: 45, y: 6 }, { x: 54, y: 15 }, { x: 60, y: 15 }]], s2.strokeWidth = 6 * 0.3, s2.tensionX = 0.8, s2.tensionY = 1, s2.stroke = dn("#3cabff");
  12689. var a2 = e4.createChild(Ho);
  12690. a2.shouldClone = false, a2.isMeasured = false, a2.segments = [[{ x: 6, y: 15 }, { x: 15, y: 15 }, { x: 27, y: 12 * 0.3 }, { x: 39.9, y: 15 }, { x: 51, y: 15 }, { x: 60, y: 15 }]], a2.strokeWidth = 6 * 0.3, a2.tensionX = 0.75, a2.tensionY = 1, a2.stroke = r3, e4._disposers.push(a2);
  12691. var o3 = new Sl();
  12692. e4.filters.push(o3);
  12693. var l2 = new Sl();
  12694. l2.saturation = 1;
  12695. var h2 = e4.states.create("hover");
  12696. return h2.properties.opacity = 1, h2.filters.push(l2), e4.applyTheme(), e4;
  12697. }
  12698. return C(e3, t2), e3;
  12699. }($a);
  12700. function Fl(t2, e3) {
  12701. var i3 = _s(t2), n3 = false;
  12702. if (i3 || ((i3 = document.createElement("div")).style.width = "200px", i3.style.height = "200px", i3.style.top = "0", i3.style.left = "0", i3.style.visibility = "hidden", i3.style.position = "absolute", document.body.appendChild(i3), n3 = true), i3) {
  12703. i3.innerHTML = "";
  12704. var r3 = new xa(i3), s2 = new _a(r3.SVGContainer, "svg-" + (ba.length - 1)), a2 = new $a();
  12705. a2.htmlContainer = i3, a2.svgContainer = r3, a2.width = V(100), a2.height = V(100), a2.background.fillOpacity = 0, a2.paper = s2, s2.append(a2.group), n3 && Rs(function() {
  12706. a2.moveHtmlContainer(t2);
  12707. }), a2.relativeWidth = 1, a2.relativeHeight = 1, r3.container = a2;
  12708. var o3 = a2.createChild(e3);
  12709. o3.topParent = a2;
  12710. var l2 = o3.uid;
  12711. Ii.invalidSprites[l2] = [], Ii.invalidDatas[l2] = [], Ii.invalidPositions[l2] = [], Ii.invalidLayouts[l2] = [], a2.baseId = l2, o3.isBaseSprite = true, o3.focusFilter = new Dl(), Ii.baseSprites.push(o3), Ii.baseSpritesByUid[l2] = o3, o3.maskRectangle = { x: 0, y: 0, width: Math.max(r3.width || 0, 0), height: Math.max(r3.height || 0, 0) }, a2.events.on("maxsizechanged", function(t3) {
  12712. 0 != t3.previousWidth && 0 != t3.previousHeight || a2.deepInvalidate(), o3.maskRectangle && (o3.maskRectangle = { x: 0, y: 0, width: Math.max(r3.width || 0, 0), height: Math.max(r3.height || 0, 0) });
  12713. });
  12714. var h2 = null, p2 = function() {
  12715. o3.isDisposed() ? h2 = null : null == Vs(o3.dom) ? (ls.autoDispose ? (a2.htmlContainer = void 0, r3.htmlElement = void 0, o3.dispose()) : fa("Chart was not disposed", o3.uid), h2 = null) : h2 = window.setTimeout(p2, 1e3);
  12716. };
  12717. p2(), o3.addDisposer(new ye(function() {
  12718. null !== h2 && clearTimeout(h2), ee(Ii.baseSprites, o3), Ii.baseSpritesByUid[o3.uid] = void 0;
  12719. })), o3.addDisposer(a2);
  12720. var u2 = a2.createChild($a);
  12721. u2.topParent = a2, u2.width = V(100), u2.height = V(100), u2.isMeasured = false, a2.tooltipContainer = u2, o3.tooltip = new $o(), o3.tooltip.hide(0), o3.tooltip.setBounds({ x: 0, y: 0, width: u2.maxWidth, height: u2.maxHeight }), u2.events.on("maxsizechanged", function() {
  12722. q(o3.tooltip).setBounds({ x: 0, y: 0, width: u2.maxWidth, height: u2.maxHeight });
  12723. }, void 0, false);
  12724. var d2 = new Wo();
  12725. if (d2.events.on("inited", function() {
  12726. d2.__disabled = true;
  12727. }, void 0, false), a2.preloader = d2, o3 instanceof $a && !o3.hasLicense()) {
  12728. var c2 = u2.createChild(Vl);
  12729. u2.events.on("maxsizechanged", function(t3) {
  12730. u2.maxWidth <= 100 || u2.maxHeight <= 50 ? c2.hide() : (c2.isHidden || c2.isHiding) && c2.show();
  12731. }, void 0, false), o3.logo = c2, c2.align = "left", c2.valign = "bottom";
  12732. }
  12733. if (o3.numberFormatter, a2.isStandaloneInstance = true, ls.onlyShowOnViewport)
  12734. if (Ns(i3, ls.viewportTarget))
  12735. ls.queue && Ll(o3);
  12736. else {
  12737. o3.__disabled = true, o3.tooltipContainer.__disabled = true;
  12738. var f2 = [xs(window, "DOMContentLoaded", function() {
  12739. El(o3);
  12740. }), xs(window, "load", function() {
  12741. El(o3);
  12742. }), xs(window, "resize", function() {
  12743. El(o3);
  12744. }), xs(window, "scroll", function() {
  12745. El(o3);
  12746. })];
  12747. if (ls.viewportTarget)
  12748. for (var g2 = it(ls.viewportTarget) ? ls.viewportTarget : ls.viewportTarget ? [ls.viewportTarget] : [], y2 = 0; y2 < g2.length; y2++) {
  12749. var m2 = g2[y2];
  12750. f2.push(xs(m2, "resize", function() {
  12751. El(o3);
  12752. })), f2.push(xs(m2, "scroll", function() {
  12753. El(o3);
  12754. }));
  12755. }
  12756. var v2 = new me(f2);
  12757. o3.addDisposer(v2), o3.vpDisposer = v2;
  12758. }
  12759. else
  12760. ls.queue && Ll(o3);
  12761. return o3;
  12762. }
  12763. throw Qa.log("html container not found"), new Error("html container not found");
  12764. }
  12765. function Ml() {
  12766. for (; 0 !== Ii.baseSprites.length; )
  12767. Ii.baseSprites.pop().dispose();
  12768. }
  12769. function Ll(t2) {
  12770. -1 == Ii.queue.indexOf(t2) && (t2.__disabled = true, t2.tooltipContainer.__disabled = true, t2.events.disableType("appeared"), 0 == Ii.queue.length && (Ii.events.once("exitframe", function() {
  12771. Rl(t2);
  12772. }), Qa.requestFrame()), t2.addDisposer(new ye(function() {
  12773. jl(t2);
  12774. })), Ii.queue.push(t2));
  12775. }
  12776. function jl(t2) {
  12777. var e3 = Ii.queue.indexOf(t2);
  12778. if (e3 >= 0) {
  12779. Ii.queue.splice(Ii.queue.indexOf(t2), 1);
  12780. var i3 = Ii.queue[e3];
  12781. i3 && Rl(i3);
  12782. }
  12783. }
  12784. function El(t2) {
  12785. t2.__disabled && Ns(t2.htmlContainer, ls.viewportTarget) && (t2.vpDisposer && t2.vpDisposer.dispose(), Ll(t2));
  12786. }
  12787. function Rl(t2) {
  12788. t2 && t2.tooltipContainer && (t2.__disabled = false, t2.tooltipContainer.__disabled = false, t2.events.enableType("appeared"), t2.dispatch("removedfromqueue"), t2.showOnInit && t2.events.on("appeared", function() {
  12789. jl(t2);
  12790. }), t2.vpDisposer && t2.vpDisposer.dispose(), t2 instanceof $a && t2.invalidateLabels(), t2.tooltipContainer && t2.tooltipContainer.invalidateLayout(), t2 instanceof uo ? (t2.invalidateData(), t2.reinit(), t2.events.once("datavalidated", function() {
  12791. t2.showOnInit ? t2.appear() : jl(t2);
  12792. })) : (t2.reinit(), t2.events.once("inited", function() {
  12793. jl(t2);
  12794. }), t2.showOnInit && t2.appear()));
  12795. }
  12796. function Bl(t2, e3) {
  12797. var i3;
  12798. Q(e3) && (Z(Ii.registeredClasses[e3]) ? e3 = Ii.registeredClasses[e3] : (e3 = Ii.registeredClasses.Container, i3 = new Error("Class [" + e3 + "] is not loaded.")));
  12799. var n3 = Fl(t2, e3);
  12800. return i3 && n3.raiseCriticalError(i3), n3;
  12801. }
  12802. function Hl(t2, e3, i3) {
  12803. var n3, r3;
  12804. Z(i3) || (i3 = t2.type, delete t2.type), Z(e3) || (e3 = t2.container, delete t2.container), Q(i3) && Z(Ii.registeredClasses[i3]) ? n3 = Ii.registeredClasses[i3] : "function" != typeof i3 ? (n3 = $a, r3 = new Error("Class [" + i3 + "] is not loaded.")) : n3 = i3;
  12805. var s2 = Fl(e3, n3);
  12806. return r3 ? s2.raiseCriticalError(r3) : s2.config = t2, s2;
  12807. }
  12808. function Nl(t2, e3) {
  12809. for (var i3 = [], n3 = 2; n3 < arguments.length; n3++)
  12810. i3[n3 - 2] = arguments[n3];
  12811. return new Promise(function(n4, r3) {
  12812. Ii.deferred.push({ scope: e3, callback: t2, args: i3, resolve: n4 }), 1 == Ii.deferred.length && Wl();
  12813. });
  12814. }
  12815. function Wl() {
  12816. var t2, e3 = Ii.deferred[0];
  12817. if (e3) {
  12818. var i3 = (t2 = e3.callback).call.apply(t2, T([e3.scope], e3.args));
  12819. i3.events.on("ready", function() {
  12820. e3.resolve(i3), Ii.deferred.shift(), ls.deferredDelay ? setTimeout(Wl, ls.deferredDelay) : Wl();
  12821. });
  12822. }
  12823. }
  12824. function Xl(t2) {
  12825. -1 === Ii.themes.indexOf(t2) && Ii.themes.push(t2);
  12826. }
  12827. function Yl(t2) {
  12828. ee(Ii.themes, t2);
  12829. }
  12830. function zl() {
  12831. Ii.themes = [];
  12832. }
  12833. function Ul(t2) {
  12834. ls.licenses.push(t2);
  12835. }
  12836. var Gl = function(t2) {
  12837. function e3() {
  12838. var e4 = t2.call(this) || this;
  12839. e4.className = "Grip";
  12840. var i3 = new Ys();
  12841. e4.layout = "absolute", e4.padding(10, 10, 10, 10), e4.margin(3, 3, 3, 3), e4.background.fillOpacity = 0.3, e4.background.cornerRadius(10, 10, 10, 10);
  12842. var n3 = new Za();
  12843. n3.element = e4.paper.add("path");
  12844. var r3 = wo({ x: -6, y: 0 });
  12845. return r3 += Co({ x: 6, y: 0 }), r3 += wo({ x: -8, y: -6 }), r3 += Co({ x: 0, y: -12 }), r3 += Co({ x: 8, y: -6 }), r3 += wo({ x: -8, y: 6 }), r3 += Co({ x: 0, y: 12 }), r3 += Co({ x: 8, y: 6 }), n3.path = r3, n3.strokeWidth = 2, n3.fillOpacity = 0, n3.pixelPerfect = true, n3.padding(0, 4, 0, 4), n3.stroke = i3.getFor("text"), n3.strokeOpacity = 0.7, n3.align = "center", n3.valign = "middle", e4.icon = n3, e4.label.dispose(), e4.label = void 0, e4.position = "right", e4.autoHideDelay = 3e3, e4.events.on("shown", function(t3) {
  12846. e4._autoHideTimeout && e4._autoHideTimeout.dispose(), e4.autoHideDelay && (e4._autoHideTimeout = e4.setTimeout(function() {
  12847. e4.hide();
  12848. }, e4.autoHideDelay));
  12849. }), e4.events.on("down", function(t3) {
  12850. e4._autoHideTimeout && e4._autoHideTimeout.dispose();
  12851. }), e4.events.on("out", function(t3) {
  12852. e4.autoHideDelay && (e4._autoHideTimeout = e4.setTimeout(function() {
  12853. e4.hide();
  12854. }, e4.autoHideDelay));
  12855. }), e4.applyTheme(), e4;
  12856. }
  12857. return C(e3, t2), Object.defineProperty(e3.prototype, "position", { get: function() {
  12858. return this.getPropertyValue("position");
  12859. }, set: function(t3) {
  12860. if (this.setPropertyValue("position", t3))
  12861. switch (t3) {
  12862. case "left":
  12863. this.align = "left", this.valign = "middle", this.horizontalCenter = "left", this.verticalCenter = "middle", this.icon.rotation = 0, this.width = void 0, this.height = V(30);
  12864. break;
  12865. case "right":
  12866. this.align = "right", this.valign = "middle", this.horizontalCenter = "right", this.verticalCenter = "middle", this.icon.rotation = 0, this.width = void 0, this.height = V(30);
  12867. break;
  12868. case "top":
  12869. this.align = "center", this.valign = "top", this.horizontalCenter = "middle", this.verticalCenter = "top", this.icon.rotation = 90, this.width = V(30), this.height = void 0;
  12870. break;
  12871. case "bottom":
  12872. this.align = "center", this.valign = "bottom", this.horizontalCenter = "middle", this.verticalCenter = "bottom", this.icon.rotation = 90, this.width = V(30), this.height = void 0;
  12873. break;
  12874. default:
  12875. this.align = "center", this.valign = "middle", this.horizontalCenter = "middle", this.verticalCenter = "middle", this.icon.rotation = 90, this.width = V(30), this.height = void 0;
  12876. }
  12877. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "autoHideDelay", { get: function() {
  12878. return this.getPropertyValue("autoHideDelay");
  12879. }, set: function(t3) {
  12880. this.setPropertyValue("autoHideDelay", t3);
  12881. }, enumerable: true, configurable: true }), e3;
  12882. }(go);
  12883. Ii.registeredClasses.Grip = Gl;
  12884. var Kl = function(t2) {
  12885. function e3() {
  12886. var e4 = t2.call(this) || this;
  12887. return e4.className = "ChartDataItem", e4.applyTheme(), e4;
  12888. }
  12889. return C(e3, t2), e3;
  12890. }(po), Zl = function(t2) {
  12891. function e3() {
  12892. var i3 = t2.call(this) || this;
  12893. if (i3._legend = new ve(), i3.constructor === e3)
  12894. throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");
  12895. i3.className = "Chart";
  12896. var n3 = new co();
  12897. i3.titles = new Mi(n3), i3._disposers.push(new Ai(i3.titles)), i3._disposers.push(n3), i3.width = V(100), i3.height = V(100), i3.layout = "vertical";
  12898. var r3 = i3.createChild($a);
  12899. r3.shouldClone = false, r3.layout = "vertical", r3.width = V(100), r3.height = V(100), i3.chartAndLegendContainer = r3;
  12900. var s2 = r3.createChild($a);
  12901. return s2.shouldClone = false, s2.width = V(100), s2.height = V(100), i3.chartContainer = s2, i3.showOnInit = true, i3._disposers.push(i3._legend), i3.titles.events.on("inserted", function(t3) {
  12902. i3.processTitle(t3), i3.updateReaderTitleReferences();
  12903. }, i3, false), i3.titles.events.on("removed", function(t3) {
  12904. i3.updateReaderTitleReferences();
  12905. }, i3, false), i3.role = "region", i3.defaultState.transitionDuration = 1, i3.applyTheme(), i3;
  12906. }
  12907. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  12908. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Chart"));
  12909. }, e3.prototype.draw = function() {
  12910. this.fixLayout(), t2.prototype.draw.call(this);
  12911. }, e3.prototype.fixLayout = function() {
  12912. var t3 = this.legend;
  12913. if (t3) {
  12914. var e4 = this.chartAndLegendContainer, i3 = this.chartContainer;
  12915. switch (i3.x = void 0, i3.y = void 0, "absolute" != t3.position && (t3.x = void 0, t3.y = void 0), t3.position) {
  12916. case "left":
  12917. e4.layout = "horizontal", t3.toBack();
  12918. break;
  12919. case "right":
  12920. e4.layout = "horizontal", t3.toFront();
  12921. break;
  12922. case "top":
  12923. e4.layout = "vertical", t3.toBack();
  12924. break;
  12925. case "bottom":
  12926. e4.layout = "vertical", t3.toFront();
  12927. break;
  12928. case "absolute":
  12929. t3.isMeasured = false;
  12930. }
  12931. }
  12932. }, e3.prototype.feedLegend = function() {
  12933. }, e3.prototype.processTitle = function(t3) {
  12934. var e4 = t3.newValue;
  12935. return e4.parent = this, e4.toBack(), e4.shouldClone = false, e4.align = "center", e4.uidAttr(), e4;
  12936. }, e3.prototype.updateReaderTitleReferences = function() {
  12937. if (this.titles.length) {
  12938. var t3 = [];
  12939. ti(this.titles.iterator(), function(e4) {
  12940. t3.push(e4.uid);
  12941. }), this.setSVGAttribute({ "aria-labelledby": t3.join(" ") });
  12942. } else
  12943. this.removeSVGAttribute("aria-labelledby");
  12944. }, Object.defineProperty(e3.prototype, "legend", { get: function() {
  12945. return this._legend.get();
  12946. }, set: function(t3) {
  12947. this.setLegend(t3);
  12948. }, enumerable: true, configurable: true }), e3.prototype.setLegend = function(t3) {
  12949. var e4 = this;
  12950. this._legend.get() !== t3 && (t3 ? (t3.parent = this.chartAndLegendContainer, this._legend.set(t3, t3.events.on("propertychanged", function(t4) {
  12951. "position" == t4.property && e4.fixLayout();
  12952. }, void 0, false)), t3.addDisposer(new ye(function() {
  12953. e4.legend = void 0;
  12954. }))) : this._legend.reset(), this.feedLegend());
  12955. }, e3.prototype.dispose = function() {
  12956. this.legend && this.legend.dispose(), t2.prototype.dispose.call(this);
  12957. }, e3.prototype.processConfig = function(e4) {
  12958. e4 && Z(e4.legend) && !Z(e4.legend.type) && (e4.legend.type = "Legend"), t2.prototype.processConfig.call(this, e4);
  12959. }, e3.prototype.copyFrom = function(e4) {
  12960. this.titles.copyFrom(e4.titles), this.chartContainer.copyFrom(e4.chartContainer), e4.legend && (this.legend = e4.legend.clone(), this.legend.removeChildren()), t2.prototype.copyFrom.call(this, e4);
  12961. }, Object.defineProperty(e3.prototype, "dragGrip", { get: function() {
  12962. var t3 = this;
  12963. if (!this._dragGrip) {
  12964. var e4 = this.tooltipContainer.createChild(Gl);
  12965. e4.align = "right", e4.valign = "middle", e4.hide(0), e4.events.on("down", function(e5) {
  12966. e5.touch && (t3.interactionsEnabled = false);
  12967. }), e4.events.on("up", function(e5) {
  12968. t3.interactionsEnabled = true;
  12969. }), this.events.on("down", function(t4) {
  12970. t4.touch && e4.show();
  12971. }), this._dragGrip = e4;
  12972. }
  12973. return this._dragGrip;
  12974. }, set: function(t3) {
  12975. this._dragGrip = t3;
  12976. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "focusable", { get: function() {
  12977. return this.parent.focusable;
  12978. }, set: function(t3) {
  12979. this.parent.focusable = t3;
  12980. }, enumerable: true, configurable: true }), e3;
  12981. }(uo);
  12982. Ii.registeredClasses.Chart = Zl, lo.push({ relevant: ho.widthXS, state: function(t2, e3) {
  12983. if (t2 instanceof Zl) {
  12984. var i3 = t2.states.create(e3);
  12985. return t2.pixelPaddingLeft > 10 && (i3.properties.paddingLeft = 10), t2.pixelPaddingRight > 10 && (i3.properties.paddingRight = 10), i3;
  12986. }
  12987. return null;
  12988. } }), lo.push({ relevant: ho.heightXS, state: function(t2, e3) {
  12989. if (t2 instanceof Zl) {
  12990. var i3 = t2.states.create(e3);
  12991. return t2.pixelPaddingTop > 10 && (i3.properties.paddingTop = 10), t2.pixelPaddingBottom > 10 && (i3.properties.paddingBottom = 10), i3;
  12992. }
  12993. return null;
  12994. } }), lo.push({ relevant: ho.widthXXS, state: function(t2, e3) {
  12995. if (t2 instanceof Zl) {
  12996. var i3 = t2.states.create(e3);
  12997. return i3.properties.paddingLeft = 0, i3.properties.paddingRight = 0, i3;
  12998. }
  12999. return null;
  13000. } }), lo.push({ relevant: ho.heightXXS, state: function(t2, e3) {
  13001. if (t2 instanceof Zl) {
  13002. var i3 = t2.states.create(e3);
  13003. return i3.properties.paddingTop = 0, i3.properties.paddingBottom = 0, i3;
  13004. }
  13005. return null;
  13006. } });
  13007. var ql = function(t2) {
  13008. function e3() {
  13009. var e4 = t2.call(this) || this;
  13010. return e4.className = "Bullet", e4.isMeasured = false, e4.tooltipX = 0, e4.tooltipY = 0, e4.layout = "none", e4.applyOnClones = true, e4.copyToLegendMarker = true, e4.applyTheme(), e4;
  13011. }
  13012. return C(e3, t2), Object.defineProperty(e3.prototype, "locationX", { get: function() {
  13013. return this.getPropertyValue("locationX");
  13014. }, set: function(t3) {
  13015. if (this.setPropertyValue("locationX", t3)) {
  13016. var e4 = this.dataItem;
  13017. e4 && e4.component && e4.component.invalidate();
  13018. }
  13019. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "locationY", { get: function() {
  13020. return this.getPropertyValue("locationY");
  13021. }, set: function(t3) {
  13022. if (this.setPropertyValue("locationY", t3)) {
  13023. var e4 = this.dataItem;
  13024. e4 && e4.component && e4.component.invalidate();
  13025. }
  13026. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xField", { get: function() {
  13027. return this.getPropertyValue("xField");
  13028. }, set: function(t3) {
  13029. this.setPropertyValue("xField", t3, true);
  13030. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yField", { get: function() {
  13031. return this.getPropertyValue("yField");
  13032. }, set: function(t3) {
  13033. this.setPropertyValue("yField", t3, true);
  13034. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isDynamic", { get: function() {
  13035. return this.getPropertyValue("isDynamic");
  13036. }, set: function(t3) {
  13037. this.setPropertyValue("isDynamic", t3, true);
  13038. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "copyToLegendMarker", { get: function() {
  13039. return this.getPropertyValue("copyToLegendMarker");
  13040. }, set: function(t3) {
  13041. this.setPropertyValue("copyToLegendMarker", t3);
  13042. }, enumerable: true, configurable: true }), e3;
  13043. }($a);
  13044. Ii.registeredClasses.Bullet = ql, lo.push({ relevant: ho.isXS, state: function(t2, e3) {
  13045. if (t2 instanceof ql) {
  13046. var i3 = t2.states.create(e3);
  13047. return i3.properties.disabled = true, i3;
  13048. }
  13049. return null;
  13050. } });
  13051. var $l = function(t2) {
  13052. function e3() {
  13053. var e4 = t2.call(this) || this;
  13054. return e4.childrenCreated = false, e4.className = "LegendDataItem", e4.applyTheme(), e4;
  13055. }
  13056. return C(e3, t2), Object.defineProperty(e3.prototype, "label", { get: function() {
  13057. var t3 = this;
  13058. if (!this._label) {
  13059. var e4 = this.component.labels.create();
  13060. this._label = e4, this.addSprite(e4), this._disposers.push(e4), e4.parent = this.itemContainer, this._disposers.push(new ye(function() {
  13061. Z(t3.component) && t3.component.labels.removeValue(e4);
  13062. }));
  13063. }
  13064. return this._label;
  13065. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "color", { get: function() {
  13066. return this.properties.color;
  13067. }, set: function(t3) {
  13068. this.setProperty("color", t3);
  13069. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valueLabel", { get: function() {
  13070. var t3 = this;
  13071. if (!this._valueLabel) {
  13072. var e4 = this.component.valueLabels.create();
  13073. this._valueLabel = e4, this.addSprite(e4), this._disposers.push(e4), e4.parent = this.itemContainer, this._disposers.push(new ye(function() {
  13074. Z(t3.component) && t3.component.valueLabels.removeValue(e4);
  13075. }));
  13076. }
  13077. return this._valueLabel;
  13078. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "itemContainer", { get: function() {
  13079. var t3 = this;
  13080. if (!this._itemContainer) {
  13081. var e4 = this.component, i3 = e4.itemContainers.create();
  13082. i3.parent = e4, this._itemContainer = i3, this.addSprite(i3), this._disposers.push(i3), i3.togglable && i3.events.on("toggled", function(t4) {
  13083. e4.toggleDataItem(t4.target.dataItem);
  13084. }, void 0, false), i3.focusable && (i3.events.on("hit", function(t4) {
  13085. e4.focusedItem = void 0;
  13086. }, void 0, false), i3.events.on("focus", function(t4) {
  13087. e4.focusedItem = t4.target.dataItem;
  13088. }, void 0, false), i3.events.on("blur", function(t4) {
  13089. e4.focusedItem = void 0;
  13090. }, void 0, false)), this._disposers.push(new ye(function() {
  13091. Z(t3.component) && t3.component.itemContainers.removeValue(i3);
  13092. })), this.dataContext.uidAttr && (i3.readerControls = this.dataContext.uidAttr(), i3.readerLabelledBy = this.dataContext.uidAttr());
  13093. var n3 = this.dataContext;
  13094. if ((n3 instanceof po || n3 instanceof Za) && !n3.isDisposed()) {
  13095. var r3 = function(t4) {
  13096. i3.readerChecked = t4.visible, i3.events.disableType("toggled"), i3.isActive = !t4.visible, i3.events.enableType("toggled");
  13097. };
  13098. n3.addDisposer(new ye(function() {
  13099. t3.component && t3.component.dataItems.remove(t3);
  13100. })), n3 instanceof Za ? (i3.addDisposer(n3.events.on("visibilitychanged", r3, void 0, false)), i3.addDisposer(n3.events.on("hidden", function(t4) {
  13101. i3.readerChecked = false, i3.events.disableType("toggled"), i3.isActive = true, i3.events.enableType("toggled");
  13102. }, void 0, false)), i3.addDisposer(n3.events.on("shown", function(t4) {
  13103. i3.readerChecked = true, i3.events.disableType("toggled"), i3.isActive = false, i3.events.enableType("toggled");
  13104. }, void 0, false))) : i3.addDisposer(n3.events.on("visibilitychanged", r3, void 0, false));
  13105. }
  13106. }
  13107. return this._itemContainer;
  13108. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "marker", { get: function() {
  13109. var t3 = this;
  13110. if (!this._marker) {
  13111. var e4 = this.component.markers.create();
  13112. this._marker = e4, e4.parent = this.itemContainer, this.addSprite(e4), this._disposers.push(e4), this._disposers.push(new ye(function() {
  13113. Z(t3.component) && t3.component.markers.removeValue(e4);
  13114. }));
  13115. }
  13116. return this._marker;
  13117. }, enumerable: true, configurable: true }), e3;
  13118. }(po), Jl = function() {
  13119. this.createMarker = true;
  13120. }, Ql = function(t2) {
  13121. function e3() {
  13122. var e4 = t2.call(this) || this;
  13123. e4.className = "Legend", e4.layout = "grid", e4.setPropertyValue("useDefaultMarker", false), e4.setPropertyValue("scrollable", false), e4.setPropertyValue("contentAlign", "center");
  13124. var i3 = new $a();
  13125. i3.applyOnClones = true, i3.padding(8, 0, 8, 0), i3.margin(0, 10, 0, 10), i3.layout = "horizontal", i3.clickable = true, i3.focusable = true, i3.role = "switch", i3.togglable = true, i3.cursorOverStyle = Ia.pointer, i3.background.fillOpacity = 0, e4.itemContainers = new Mi(i3), e4._disposers.push(new Ai(e4.itemContainers)), e4._disposers.push(e4.itemContainers.template), e4._disposers.push(ua().body.events.on("keyup", function(t3) {
  13126. if ($s.isKey(t3.event, "enter") && e4.focusedItem) {
  13127. var i4 = e4.focusedItem, n4 = i4.itemContainer;
  13128. n4.togglable ? e4.toggleDataItem(i4) : n4.clickable && n4.events.isEnabled("hit") && (n4.dispatchImmediately("hit", { event: t3 }), e4.focusedItem = i4);
  13129. }
  13130. }, e4));
  13131. var n3 = new Ys(), r3 = new $a();
  13132. r3.width = 23, r3.height = 23, r3.interactionsEnabled = false, r3.applyOnClones = true, r3.setStateOnChildren = true, r3.background.fillOpacity = 0, r3.background.strokeOpacity = 0, r3.propertyFields.fill = "fill", r3.valign = "middle";
  13133. var s2 = n3.getFor("disabledBackground");
  13134. r3.events.on("childadded", function(t3) {
  13135. var e5 = t3.newValue.states.create("active");
  13136. e5.properties.stroke = s2, e5.properties.fill = s2;
  13137. }), e4.markers = new Mi(r3), e4._disposers.push(new Ai(e4.markers)), e4._disposers.push(e4.markers.template);
  13138. var a2 = r3.createChild(fo);
  13139. a2.width = V(100), a2.height = V(100), a2.applyOnClones = true, a2.propertyFields.fill = "fill", a2.strokeOpacity = 0;
  13140. var o3 = new co();
  13141. o3.text = "{name}", o3.margin(0, 5, 0, 5), o3.valign = "middle", o3.applyOnClones = true, o3.states.create("active").properties.fill = n3.getFor("disabledBackground"), e4.labels = new Mi(o3), e4._disposers.push(new Ai(e4.labels)), e4._disposers.push(e4.labels.template), o3.interactionsEnabled = false, o3.truncate = true, o3.fullWords = false;
  13142. var l2 = new co();
  13143. return l2.margin(0, 5, 0, 0), l2.valign = "middle", l2.width = 50, l2.align = "right", l2.textAlign = "end", l2.applyOnClones = true, l2.states.create("active").properties.fill = n3.getFor("disabledBackground"), l2.interactionsEnabled = false, e4.valueLabels = new Mi(l2), e4._disposers.push(new Ai(e4.valueLabels)), e4._disposers.push(e4.valueLabels.template), e4.position = "bottom", i3.states.create("active"), i3.setStateOnChildren = true, e4.role = "group", e4.events.on("layoutvalidated", e4.handleScrollbar, e4, false), e4.applyTheme(), e4;
  13144. }
  13145. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  13146. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Legend"));
  13147. }, e3.prototype.createDataItem = function() {
  13148. return new $l();
  13149. }, e3.prototype.validateDataElements = function() {
  13150. this.scrollbar && (this.scrollbar.start = 0, this.scrollbar.end = 1), t2.prototype.validateDataElements.call(this);
  13151. }, e3.prototype.validateDataElement = function(e4) {
  13152. t2.prototype.validateDataElement.call(this, e4);
  13153. var i3 = e4.itemContainer, n3 = e4.marker;
  13154. e4.label;
  13155. var r3 = e4.valueLabel;
  13156. i3.readerChecked = e4.dataContext.visible, e4.dataContext.legendDataItem = e4;
  13157. var s2 = e4.label.maxWidth;
  13158. e4.label.width instanceof A || (e4.label.width = void 0), s2 > 0 && (e4.label.maxWidth = s2), "right" == r3.align && (r3.width = void 0);
  13159. var a2 = e4.dataContext.legendSettings, o3 = e4.dataContext;
  13160. !o3.createLegendMarker || this.useDefaultMarker && o3 instanceof Za ? this.markers.template.propertyFields.fill = void 0 : e4.childrenCreated || (o3.createLegendMarker(n3), e4.childrenCreated = true), o3.updateLegendValue && o3.updateLegendValue(), o3.component && o3.component.updateLegendValue && o3.component.updateLegendValue(o3), r3.invalid && r3.validate(), "" == r3.text || null == r3.text ? r3.__disabled = true : r3.__disabled = false, !a2 || null == a2.itemValueText && null == a2.valueText || (r3.__disabled = false);
  13161. var l2 = e4.dataContext.visible;
  13162. void 0 === l2 && (l2 = true), l2 = z(l2), e4.dataContext.visible = l2, i3.events.disableType("toggled"), i3.isActive = !l2, i3.isActive ? i3.setState("active", 0) : i3.setState("default", 0), i3.events.enableType("toggled");
  13163. }, e3.prototype.afterDraw = function() {
  13164. var e4 = this, i3 = this.getPropertyValue("maxWidth"), n3 = 0;
  13165. this.labels.each(function(t3) {
  13166. t3.invalid && (t3.maxWidth = void 0, t3.validate()), t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight > n3 && (n3 = t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight);
  13167. });
  13168. var r3 = 0;
  13169. this.valueLabels.each(function(t3) {
  13170. t3.invalid && t3.validate(), t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight > r3 && (r3 = t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight);
  13171. });
  13172. var s2 = 0;
  13173. this.markers.each(function(t3) {
  13174. t3.invalid && t3.validate(), t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight > s2 && (s2 = t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight);
  13175. });
  13176. var a2, o3 = this.itemContainers.template, l2 = o3.pixelMarginRight + o3.pixelMarginLeft, h2 = n3 + r3 + s2;
  13177. tt(i3) ? ((i3 -= l2) > h2 && (i3 = h2), a2 = i3 - s2 - r3) : a2 = n3, this.labels.each(function(t3) {
  13178. ("right" == e4.valueLabels.template.align || t3.measuredWidth > a2) && (t3.width instanceof A || (t3.width = Math.min(t3.maxWidth, a2 - t3.pixelMarginLeft - t3.pixelMarginRight), t3.maxWidth = t3.width));
  13179. }), "right" == this.valueLabels.template.align && this.valueLabels.each(function(t3) {
  13180. t3.width = r3 - t3.pixelMarginRight - t3.pixelMarginLeft;
  13181. }), t2.prototype.afterDraw.call(this);
  13182. }, e3.prototype.handleScrollbar = function() {
  13183. var t3 = this.scrollbar;
  13184. this.scrollable && t3 && (t3.height = this.measuredHeight, t3.x = this.measuredWidth - t3.pixelWidth - t3.pixelMarginLeft, this.contentHeight > this.measuredHeight ? (t3.visible = true, t3.thumb.height = t3.height * this.measuredHeight / this.contentHeight, this.paddingRight = t3.pixelWidth + t3.pixelMarginLeft + +t3.pixelMarginRight) : t3.visible = false, t3.handleThumbPosition(), this.updateMasks());
  13185. }, Object.defineProperty(e3.prototype, "position", { get: function() {
  13186. return this.getPropertyValue("position");
  13187. }, set: function(t3) {
  13188. this.setPropertyValue("position", t3) && ("left" == t3 || "right" == t3 ? (this.margin(10, 5, 10, 10), this.valign = "middle", this.contentAlign = "none", this.valueLabels.template.align = "right", tt(this.maxColumns) || (this.maxColumns = 1), this.width = void 0, this.maxWidth = 220) : (this.maxColumns = void 0, this.width = V(100), this.valueLabels.template.align = "left"), this.invalidate());
  13189. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "useDefaultMarker", { get: function() {
  13190. return this.getPropertyValue("useDefaultMarker");
  13191. }, set: function(t3) {
  13192. this.setPropertyValue("useDefaultMarker", t3, true);
  13193. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "scrollable", { get: function() {
  13194. return this.getPropertyValue("scrollable");
  13195. }, set: function(t3) {
  13196. if (this.setPropertyValue("scrollable", t3, true))
  13197. if (t3) {
  13198. var e4 = this.createChild(Uo);
  13199. this.scrollbar = e4, e4.isMeasured = false, e4.orientation = "vertical", e4.endGrip.__disabled = true, e4.startGrip.__disabled = true, e4.visible = false, e4.marginLeft = 5, this._mouseWheelDisposer = this.events.on("wheel", this.handleWheel, this, false), this._disposers.push(this._mouseWheelDisposer), this._disposers.push(e4.events.on("rangechanged", this.updateMasks, this, false));
  13200. } else
  13201. this._mouseWheelDisposer && (this._mouseWheelDisposer.dispose(), this.scrollbar && (this.scrollbar.dispose(), this.scrollbar = void 0));
  13202. }, enumerable: true, configurable: true }), e3.prototype.handleWheel = function(t3) {
  13203. var e4 = t3.shift.y, i3 = this.scrollbar;
  13204. if (i3) {
  13205. var n3 = e4 / 1e3 * this.measuredHeight / this.contentHeight, r3 = i3.end - i3.start;
  13206. e4 > 0 ? (i3.start = gt(0, i3.start - n3), i3.end = i3.start + r3) : (i3.end = yt(1, i3.end - n3), i3.start = i3.end - r3);
  13207. }
  13208. }, e3.prototype.updateMasks = function() {
  13209. var t3 = this;
  13210. this.scrollbar && this.itemContainers.each(function(e4) {
  13211. e4.dy = -t3.scrollbar.thumb.pixelY * t3.contentHeight / t3.measuredHeight, e4.maskRectangle = { x: 0, y: -e4.dy, width: t3.measuredWidth, height: t3.measuredHeight };
  13212. });
  13213. }, e3.prototype.toggleDataItem = function(t3) {
  13214. var e4 = t3.dataContext;
  13215. !e4.visible || e4.isHiding || e4 instanceof Za && e4.isHidden ? (t3.color = t3.colorOrig, e4.appeared = true, t3.itemContainer.isActive = false, true === e4.hidden && (e4.hidden = false), e4.show ? e4.show() : e4.visible = true, this.svgContainer.readerAlert(this.language.translate("%1 shown", this.language.locale, t3.label.readerTitle))) : (t3.itemContainer.isActive = true, e4.appeared = true, e4.hide ? e4.hide() : e4.visible = false, this.svgContainer.readerAlert(this.language.translate("%1 hidden", this.language.locale, t3.label.readerTitle)), t3.color = new Ys().getFor("disabledBackground"));
  13216. }, Object.defineProperty(e3.prototype, "preloader", { get: function() {
  13217. }, enumerable: true, configurable: true }), e3.prototype.handleDataItemPropertyChange = function(t3, e4) {
  13218. t3.valueLabel.invalidate(), t3.label.invalidate();
  13219. }, e3;
  13220. }(uo);
  13221. Ii.registeredClasses.Legend = Ql, lo.push({ relevant: ho.widthXS, state: function(t2, e3) {
  13222. if (t2 instanceof Ql && ("left" == t2.position || "right" == t2.position)) {
  13223. var i3 = t2.states.create(e3);
  13224. return i3.properties.position = "bottom", i3;
  13225. }
  13226. return null;
  13227. } }), lo.push({ relevant: ho.heightXS, state: function(t2, e3) {
  13228. if (t2 instanceof Ql && ("top" == t2.position || "bottom" == t2.position)) {
  13229. var i3 = t2.states.create(e3);
  13230. return i3.properties.position = "right", i3;
  13231. }
  13232. return null;
  13233. } }), lo.push({ relevant: ho.isXS, state: function(t2, e3) {
  13234. if (t2 instanceof Ql) {
  13235. var i3 = t2.states.create(e3);
  13236. return i3.properties.disabled = true, i3;
  13237. }
  13238. return null;
  13239. } });
  13240. var th = function(t2) {
  13241. function e3() {
  13242. var e4 = t2.call(this) || this;
  13243. return e4.className = "SeriesDataItem", e4.values.value = {}, e4.values.value = {}, e4.applyTheme(), e4;
  13244. }
  13245. return C(e3, t2), Object.defineProperty(e3.prototype, "bullets", { get: function() {
  13246. return this._bullets || (this._bullets = new Pi(), this._disposers.push(new _i(this._bullets))), this._bullets;
  13247. }, enumerable: true, configurable: true }), e3.prototype.dispose = function() {
  13248. this.bullets.clear(), t2.prototype.dispose.call(this);
  13249. }, Object.defineProperty(e3.prototype, "value", { get: function() {
  13250. return this.values.value.value;
  13251. }, set: function(t3) {
  13252. this.setValue("value", t3);
  13253. }, enumerable: true, configurable: true }), e3;
  13254. }(po), eh = function(t2) {
  13255. function e3() {
  13256. var i3 = t2.call(this) || this;
  13257. if (i3._ignoreMinMax = false, i3._showBullets = true, i3.legendSettings = new Jl(), i3._tmin = new Pi(), i3._tmax = new Pi(), i3._smin = new Pi(), i3._smax = new Pi(), i3.dataItemsByAxis = new Pi(), i3.skipFocusThreshold = 20, i3._itemReaderTextChanged = false, i3.calculatePercent = false, i3.usePercentHack = true, i3.autoDispose = true, i3.simplifiedProcessing = false, i3.constructor === e3)
  13258. throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");
  13259. i3.className = "Series", i3.isMeasured = false, i3.layout = "none", i3.shouldClone = false, i3.setPropertyValue("hidden", false), i3.axisRanges = new Fi(), i3.axisRanges.events.on("inserted", i3.processAxisRange, i3, false), i3.minBulletDistance = 0, i3.mainContainer = i3.createChild($a), i3.mainContainer.shouldClone = false, i3.mainContainer.mask = i3.createChild(Za), i3._disposers.push(i3.mainContainer);
  13260. var n3 = i3.mainContainer.createChild($a);
  13261. return i3._shouldBeReady.push(n3), n3.shouldClone = false, n3.layout = "none", n3.virtualParent = i3, i3._disposers.push(n3), i3.bulletsContainer = n3, i3.tooltip = new $o(), i3.tooltip.virtualParent = i3, i3._disposers.push(i3.tooltip), i3.hiddenState.transitionEasing = Yr, i3.dataItem = i3.createDataItem(), i3._disposers.push(i3.dataItem), i3.dataItem.component = i3, i3.role = "group", i3.applyTheme(), i3;
  13262. }
  13263. return C(e3, t2), e3.prototype.applyTheme = function() {
  13264. t2.prototype.applyTheme.call(this), ls.autoSetClassName && this.bulletsContainer && (this.bulletsContainer.className = this.className + "-bullets", this.bulletsContainer.setClassName());
  13265. }, e3.prototype.applyInternalDefaults = function() {
  13266. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Series"));
  13267. }, e3.prototype.createDataItem = function() {
  13268. return new th();
  13269. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  13270. return this._chart;
  13271. }, set: function(t3) {
  13272. this._chart = t3;
  13273. }, enumerable: true, configurable: true }), e3.prototype.positionBullet = function(t3) {
  13274. }, e3.prototype.processBullet = function(t3) {
  13275. var e4 = this, i3 = t3.newValue;
  13276. i3.isTemplate = true, this.events.once("datavalidated", function(t4) {
  13277. e4.itemsFocusable() && (i3.focusable = true);
  13278. }), this.invalidate();
  13279. }, e3.prototype.removeBullet = function(t3) {
  13280. var e4 = t3.oldValue;
  13281. this.dataItems.each(function(t4) {
  13282. var i3 = t4.bullets.getKey(e4.uid);
  13283. i3 && i3.dispose();
  13284. }), this.invalidate();
  13285. }, e3.prototype.validateDataItems = function() {
  13286. t2.prototype.validateDataItems.call(this), this.processValues(false);
  13287. }, e3.prototype.getFirstValue = function(t3, e4) {
  13288. for (var i3 = e4; i3 >= 0; i3--) {
  13289. var n3 = this.dataItems.getIndex(i3).getActualWorkingValue(t3);
  13290. if (tt(n3))
  13291. return n3;
  13292. }
  13293. return null;
  13294. }, e3.prototype.getAbsoluteFirstValue = function(t3) {
  13295. for (var e4 = 0; e4 < this.dataItems.length; e4++) {
  13296. var i3 = this.dataItems.getIndex(e4).values[t3].value;
  13297. if (tt(i3))
  13298. return i3;
  13299. }
  13300. return null;
  13301. }, e3.prototype.rangeChangeUpdate = function() {
  13302. t2.prototype.rangeChangeUpdate.call(this), this.processValues(true);
  13303. }, e3.prototype.processValues = function(t3) {
  13304. var e4 = this;
  13305. if (!this.simplifiedProcessing) {
  13306. var i3 = this.dataItems, n3 = {}, r3 = {}, s2 = {}, a2 = {}, o3 = {}, l2 = {}, h2 = {}, p2 = {}, u2 = {}, d2 = {}, c2 = gt(0, this.startIndex);
  13307. c2 = yt(c2, this.dataItems.length);
  13308. var f2 = yt(this.endIndex, this.dataItems.length);
  13309. if (tt(c2) || (c2 = 0), tt(f2) || (f2 = this.dataItems.length), c2 > 0) {
  13310. var g2 = i3.getIndex(c2 - 1);
  13311. Ne(g2.values, function(t4, e5) {
  13312. var i4 = g2.getActualWorkingValue(t4);
  13313. tt(i4) && (p2[t4] = i4);
  13314. });
  13315. }
  13316. for (var y2 = function(t4) {
  13317. var f3 = i3.getIndex(t4);
  13318. Ne(f3.values, function(t5, i4) {
  13319. var g3 = f3.getActualWorkingValue(t5);
  13320. if (tt(g3)) {
  13321. tt(n3[t5]) || (n3[t5] = 0), n3[t5]++, tt(r3[t5]) || (r3[t5] = 0), r3[t5] += g3, tt(s2[t5]) || (s2[t5] = 0), s2[t5] += Math.abs(g3), tt(l2[t5]) || (l2[t5] = g3), h2[t5] = g3, tt(a2[t5]) ? a2[t5] > g3 && (a2[t5] = g3) : a2[t5] = g3, tt(o3[t5]) ? o3[t5] < g3 && (o3[t5] = g3) : o3[t5] = g3, tt(u2[t5]) || (u2[t5] = e4.getFirstValue(t5, c2)), tt(d2[t5]) || (d2[t5] = e4.getAbsoluteFirstValue(t5)), f3.setCalculatedValue(t5, g3 - u2[t5], "change"), f3.setCalculatedValue(t5, (g3 - u2[t5]) / u2[t5] * 100, "changePercent"), f3.setCalculatedValue(t5, g3 - d2[t5], "startChange"), f3.setCalculatedValue(t5, (g3 - d2[t5]) / d2[t5] * 100, "startChangePercent");
  13322. var y3 = p2[t5];
  13323. tt(y3) || (y3 = g3), f3.setCalculatedValue(t5, g3 - y3, "previousChange"), f3.setCalculatedValue(t5, (g3 - y3) / y3 * 100, "previousChangePercent"), p2[t5] = g3;
  13324. }
  13325. });
  13326. }, m2 = c2; m2 < f2; m2++)
  13327. y2(m2);
  13328. if (this.calculatePercent) {
  13329. var v2 = function(t4) {
  13330. var n4 = i3.getIndex(t4);
  13331. Ne(n4.values, function(t5) {
  13332. var i4 = s2[t5], r4 = n4.getActualWorkingValue(t5);
  13333. if (tt(r4))
  13334. if (i4 > 0) {
  13335. e4.usePercentHack && r4 == i4 && (i4 = n4.values[t5].value);
  13336. var a3 = r4 / i4 * 100;
  13337. n4.setCalculatedValue(t5, a3, "percent");
  13338. } else
  13339. n4.setCalculatedValue(t5, 0, "percent");
  13340. });
  13341. };
  13342. for (m2 = c2; m2 < f2; m2++)
  13343. v2(m2);
  13344. }
  13345. if (c2 > 0) {
  13346. var b2 = i3.getIndex(c2 - 1);
  13347. Ne(b2.values, function(t4) {
  13348. var e5 = b2.values[t4].value;
  13349. b2.setCalculatedValue(t4, e5 - l2[t4], "change"), b2.setCalculatedValue(t4, (e5 - l2[t4]) / l2[t4] * 100, "changePercent");
  13350. });
  13351. }
  13352. var x2 = this.dataItem;
  13353. Ne(x2.values, function(t4) {
  13354. x2.setCalculatedValue(t4, r3[t4], "sum"), x2.setCalculatedValue(t4, s2[t4], "absoluteSum"), x2.setCalculatedValue(t4, r3[t4] / n3[t4], "average"), x2.setCalculatedValue(t4, l2[t4], "open"), x2.setCalculatedValue(t4, h2[t4], "close"), x2.setCalculatedValue(t4, a2[t4], "low"), x2.setCalculatedValue(t4, o3[t4], "high"), x2.setCalculatedValue(t4, n3[t4], "count");
  13355. });
  13356. }
  13357. }, e3.prototype.validate = function() {
  13358. Ir() && this.filters.clear(), ti(this.axisRanges.iterator(), function(t3) {
  13359. t3.validate();
  13360. }), t2.prototype.validate.call(this);
  13361. var e4 = this.bulletsContainer;
  13362. if (e4.fill = this.fill, e4.stroke = this.stroke, e4.x = this.pixelX, e4.y = this.pixelY, this.bulletsContainer.children.length > 0)
  13363. if (this._showBullets) {
  13364. for (var i3 = 0; i3 < this.startIndex; i3++)
  13365. (n3 = this.dataItems.getIndex(i3)) && n3.bullets.each(function(t3, e5) {
  13366. e5.__disabled = true;
  13367. });
  13368. for (i3 = this.dataItems.length - 1; i3 > this.endIndex; i3--) {
  13369. var n3;
  13370. (n3 = this.dataItems.getIndex(i3)) && n3.bullets.each(function(t3, e5) {
  13371. e5.__disabled = true;
  13372. });
  13373. }
  13374. } else
  13375. this.bulletsContainer.children.each(function(t3) {
  13376. t3.__disabled = true;
  13377. });
  13378. this.updateTooltipBounds();
  13379. }, e3.prototype.updateTooltipBounds = function() {
  13380. if (this.topParent) {
  13381. var t3 = { x: 0, y: 0, width: this.topParent.maxWidth, height: this.topParent.maxHeight };
  13382. this.tooltip.setBounds(t3);
  13383. }
  13384. }, e3.prototype.shouldCreateBullet = function(t3, e4) {
  13385. return true;
  13386. }, e3.prototype.validateDataElement = function(e4) {
  13387. var i3 = this;
  13388. t2.prototype.validateDataElement.call(this, e4), this._showBullets ? (this.isHidden || (this.bulletsContainer.visible = true), this.bullets.each(function(t3) {
  13389. var n3 = e4.bullets.getKey(t3.uid);
  13390. if (i3.shouldCreateBullet(e4, t3)) {
  13391. if (!n3) {
  13392. var r3 = t3.propertyFields.disabled, s2 = e4.dataContext;
  13393. r3 && s2 && false === s2[r3] ? (t3.applyOnClones = false, t3.disabled = false, n3 = t3.clone(), t3.disabled = true, t3.applyOnClones = true) : n3 = t3.clone(), n3.shouldClone = false, e4.addSprite(n3), i3.visible && !i3.isHiding || n3.hide(0);
  13394. }
  13395. var a2 = n3.dataItem;
  13396. if (a2 != e4) {
  13397. a2 && a2.bullets.setKey(t3.uid, void 0);
  13398. var o3 = i3.itemReaderText;
  13399. n3 instanceof ql && (o3 || (o3 = "{" + n3.xField + "}: {" + n3.yField + "}"), n3.isDynamic && (e4.events.on("workingvaluechanged", n3.deepInvalidate, n3, false), i3.dataItem.events.on("workingvaluechanged", n3.deepInvalidate, n3, false)), n3.deepInvalidate()), n3.focusable && (n3.events.on("focus", function(t4) {
  13400. n3.readerTitle = i3.populateString(o3, n3.dataItem);
  13401. }, void 0, false), n3.events.on("blur", function(t4) {
  13402. n3.readerTitle = "";
  13403. }, void 0, false)), n3.hoverable && (n3.events.on("over", function(t4) {
  13404. n3.readerTitle = i3.populateString(o3, n3.dataItem);
  13405. }, void 0, false), n3.events.on("out", function(t4) {
  13406. n3.readerTitle = "";
  13407. }, void 0, false));
  13408. }
  13409. n3.parent = i3.bulletsContainer, e4.bullets.setKey(t3.uid, n3), n3.maxWidth = e4.itemWidth, n3.maxHeight = e4.itemHeight, n3.__disabled = false, i3.positionBullet(n3);
  13410. } else
  13411. n3 && (n3.__disabled = true);
  13412. })) : this.bulletsContainer.visible = false;
  13413. }, e3.prototype.handleDataItemWorkingValueChange = function(t3, e4) {
  13414. this.dataRangeInvalid || this.invalidateProcessedData();
  13415. }, Object.defineProperty(e3.prototype, "ignoreMinMax", { get: function() {
  13416. return this._ignoreMinMax;
  13417. }, set: function(t3) {
  13418. this._ignoreMinMax = t3, this.invalidateDataItems();
  13419. }, enumerable: true, configurable: true }), e3.prototype.createMask = function() {
  13420. }, e3.prototype.processAxisRange = function(t3) {
  13421. this.rangesContainer || (this.rangesContainer = this.createChild($a), this.rangesContainer.shouldClone = false, this.rangesContainer.isMeasured = false);
  13422. var e4 = t3.newValue;
  13423. e4 && (e4.contents.parent = this.rangesContainer, e4.isRange = true, e4.events.on("valuechanged", this.invalidateDataItems, this, false));
  13424. }, e3.prototype.getAxisField = function(t3) {
  13425. }, e3.prototype.showTooltipAtPosition = function(t3, e4) {
  13426. }, Object.defineProperty(e3.prototype, "minBulletDistance", { get: function() {
  13427. return this.getPropertyValue("minBulletDistance");
  13428. }, set: function(t3) {
  13429. this.setPropertyValue("minBulletDistance", t3, true);
  13430. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bullets", { get: function() {
  13431. return this._bullets || (this._bullets = new Mi(new ql()), this._bullets.template.virtualParent = this, this._bullets.events.on("inserted", this.processBullet, this, false), this._bullets.events.on("removed", this.removeBullet, this, false), this._disposers.push(new Ai(this._bullets)), this._disposers.push(this._bullets.template)), this._bullets;
  13432. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3) {
  13433. }, Object.defineProperty(e3.prototype, "hiddenInLegend", { get: function() {
  13434. return this.getPropertyValue("hiddenInLegend");
  13435. }, set: function(t3) {
  13436. this.setPropertyValue("hiddenInLegend", t3) && this.chart && this.chart.feedLegend();
  13437. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "name", { get: function() {
  13438. return this.getPropertyValue("name");
  13439. }, set: function(t3) {
  13440. this.setPropertyValue("name", t3);
  13441. var e4 = this.legendDataItem;
  13442. e4 && (e4.component.invalidate(), e4.component.invalidateRawData()), this.readerTitle = t3;
  13443. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "itemReaderText", { get: function() {
  13444. var t3 = this._itemReaderText;
  13445. return t3 || (this.tooltipText ? t3 = $n(this.tooltipText) : this.tooltipHTML && (t3 = $n(this.tooltipHTML))), this._adapterO ? this._adapterO.apply("itemReaderText", t3) : t3;
  13446. }, set: function(t3) {
  13447. this._itemReaderText = t3, this._itemReaderTextChanged = true;
  13448. }, enumerable: true, configurable: true }), e3.prototype.itemsFocusable = function() {
  13449. return !(this.dataItems.length >= this.skipFocusThreshold);
  13450. }, Object.defineProperty(e3.prototype, "legendDataItem", { get: function() {
  13451. return this._legendDataItem;
  13452. }, set: function(t3) {
  13453. this._legendDataItem = t3, this._legendDataItem.itemContainer.deepInvalidate();
  13454. }, enumerable: true, configurable: true }), e3.prototype.updateLegendValue = function(t3, e4) {
  13455. if (this.legendDataItem) {
  13456. var i3 = this.legendSettings, n3 = this.legendDataItem, r3 = n3.label, s2 = n3.valueLabel;
  13457. t3 && !t3.isDisposed() || e4 ? (s2 && (i3.itemValueText && (s2.text = i3.itemValueText), s2.dataItem = t3), r3 && (i3.itemLabelText && (r3.text = i3.itemLabelText), r3.dataItem = t3)) : (r3 && ((i3.labelText || null != i3.itemLabelText) && (r3.text = i3.labelText), r3.dataItem = this.dataItem), s2 && ((i3.valueText || null != i3.itemValueText) && (s2.text = i3.valueText), s2.dataItem = this.dataItem));
  13458. }
  13459. }, e3.prototype.copyFrom = function(e4) {
  13460. this.bullets.copyFrom(e4.bullets), this.bulletsContainer.copyFrom(e4.bulletsContainer), this.calculatePercent = e4.calculatePercent, this.usePercentHack = e4.usePercentHack, this.simplifiedProcessing = e4.simplifiedProcessing, t2.prototype.copyFrom.call(this, e4);
  13461. }, e3.prototype.raiseCriticalError = function(t3) {
  13462. this._chart && this._chart.modal && (this._chart.modal.content = this._chart.adapter.apply("criticalError", t3).message, this._chart.modal.closable = false, ls.suppressErrors || this._chart.modal.open(), this._chart.disabled = true), ls.verbose && console.log(t3);
  13463. }, e3.prototype.applyFilters = function() {
  13464. var e4 = this;
  13465. t2.prototype.applyFilters.call(this), this.bulletsContainer.filters.clear(), ti(this.filters.iterator(), function(t3) {
  13466. e4.bulletsContainer.filters.push(t3.clone());
  13467. });
  13468. }, Object.defineProperty(e3.prototype, "heatRules", { get: function() {
  13469. var t3 = this;
  13470. return this._heatRules || (this._heatRules = new Fi(), this._heatRules.events.on("inserted", function(e4) {
  13471. var i3 = e4.newValue, n3 = i3.target;
  13472. if (n3) {
  13473. var r3 = i3.dataField;
  13474. Z(r3) || (r3 = "value");
  13475. var s2 = t3.dataItem, a2 = i3.property, o3 = U(i3.minValue), l2 = U(i3.maxValue);
  13476. tt(o3) || tt(l2) || t3.dataItem.events.on("calculatedvaluechanged", function(e5) {
  13477. e5.property == r3 && ti(t3.dataItems.iterator(), function(t4) {
  13478. var e6 = false;
  13479. Ut(t4.sprites, function(t5) {
  13480. if (t5.clonedFrom == n3) {
  13481. var i4 = t5;
  13482. i4[a2] = i4[a2], e6 = true;
  13483. }
  13484. }), e6 || Ut(t4.sprites, function(t5) {
  13485. t5 instanceof $a && ti(t5.children.iterator(), function(t6) {
  13486. if (t6.className == n3.className) {
  13487. var e7 = t6;
  13488. e7[a2] = e7[a2];
  13489. } else
  13490. t6 instanceof $a && t6.deepInvalidate();
  13491. });
  13492. });
  13493. });
  13494. }), t3.dataItems.template.events.on("workingvaluechanged", function(t4) {
  13495. if (t4.property == r3) {
  13496. var e5 = t4.target, i4 = false;
  13497. Ut(e5.sprites, function(t5) {
  13498. if (t5.clonedFrom == n3) {
  13499. var e6 = t5;
  13500. e6[a2] = e6[a2], i4 = true;
  13501. }
  13502. }), i4 || Ut(e5.sprites, function(t5) {
  13503. t5 instanceof $a && ti(t5.children.iterator(), function(t6) {
  13504. if (t6.className == n3.className) {
  13505. var e6 = t6;
  13506. e6[a2] = e6[a2];
  13507. } else
  13508. t6 instanceof $a && t6.deepInvalidate();
  13509. });
  13510. });
  13511. }
  13512. }), n3.adapter.add(a2, function(t4, e5, n4) {
  13513. var a3 = U(i3.minValue), o4 = U(i3.maxValue), l3 = i3.min, h2 = i3.max;
  13514. if (e5 instanceof Za) {
  13515. var p2 = e5.propertyFields[n4];
  13516. if (p2 && e5.dataItem) {
  13517. var u2 = e5.dataItem.dataContext;
  13518. if (u2 && Z(u2[p2]))
  13519. return t4;
  13520. }
  13521. }
  13522. var d2 = e5.dataItem;
  13523. if (tt(a3) || (a3 = s2.values[r3].low), tt(o4) || (o4 = s2.values[r3].high), d2 && d2.values[r3]) {
  13524. var c2 = d2.getActualWorkingValue(r3);
  13525. if (Z(l3) && Z(h2) && tt(a3) && tt(o4) && tt(c2)) {
  13526. var f2 = void 0;
  13527. if (f2 = i3.logarithmic ? (Math.log(c2) * Math.LOG10E - Math.log(a3) * Math.LOG10E) / (Math.log(o4) * Math.LOG10E - Math.log(a3) * Math.LOG10E) : (c2 - a3) / (o4 - a3), !tt(c2) || tt(f2) && Math.abs(f2) != 1 / 0 || (f2 = 0.5), tt(l3))
  13528. return l3 + (h2 - l3) * f2;
  13529. if (l3 instanceof un)
  13530. return new un(Qi(l3.rgb, h2.rgb, f2));
  13531. }
  13532. }
  13533. return t4;
  13534. });
  13535. }
  13536. })), this._heatRules;
  13537. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  13538. var i3;
  13539. if (e4) {
  13540. if (Z(e4.bullets) && it(e4.bullets))
  13541. for (var n3 = 0, r3 = e4.bullets.length; n3 < r3; n3++) {
  13542. var s2 = e4.bullets[n3];
  13543. Z(s2.type) || (s2.type = "Bullet");
  13544. }
  13545. Z(e4.heatRules) && it(e4.heatRules) && (i3 = e4.heatRules, delete e4.heatRules);
  13546. }
  13547. if (t2.prototype.processConfig.call(this, e4), i3) {
  13548. for (n3 = 0, r3 = i3.length; n3 < r3; n3++) {
  13549. var a2 = i3[n3], o3 = this;
  13550. if (Z(a2.target) && Q(a2.target))
  13551. if (this.map.hasKey(a2.target))
  13552. o3 = this.map.getKey(a2.target);
  13553. else
  13554. for (var l2 = a2.target.split("."), h2 = 0; h2 < l2.length; h2++)
  13555. if (o3 instanceof Fi) {
  13556. var p2 = o3.getIndex(U(l2[h2]));
  13557. o3 = p2 || o3[l2[h2]];
  13558. } else {
  13559. var u2 = l2[h2].match(/^(.*)\[([0-9]+)\]/);
  13560. o3 = u2 ? o3[u2[1]] instanceof Fi ? o3[u2[1]].getIndex(U(u2[2])) : o3[u2[1]][U(u2[2])] : o3[l2[h2]];
  13561. }
  13562. a2.target = o3, Z(a2.min) && (a2.min = this.maybeColorOrPercent(a2.min)), Z(a2.max) && (a2.max = this.maybeColorOrPercent(a2.max));
  13563. }
  13564. t2.prototype.processConfig.call(this, { heatRules: i3 });
  13565. }
  13566. }, e3.prototype.configOrder = function(e4, i3) {
  13567. return e4 == i3 ? 0 : "heatRules" == e4 ? 1 : "heatRules" == i3 ? -1 : t2.prototype.configOrder.call(this, e4, i3);
  13568. }, e3.prototype.setVisibility = function(e4) {
  13569. t2.prototype.setVisibility.call(this, e4), this.bulletsContainer.visible = e4;
  13570. }, e3;
  13571. }(uo);
  13572. Ii.registeredClasses.Series = eh, Ii.registeredClasses.SeriesDataItem = th;
  13573. var ih = function(t2) {
  13574. function e3() {
  13575. var e4 = t2.call(this) || this;
  13576. return e4.className = "SerialChartDataItem", e4.applyTheme(), e4;
  13577. }
  13578. return C(e3, t2), e3;
  13579. }(Kl), nh = function(t2) {
  13580. function e3() {
  13581. var e4 = t2.call(this) || this;
  13582. e4.className = "SerialChart", e4.colors = new kl(), e4._usesData = false;
  13583. var i3 = e4.chartContainer.createChild($a);
  13584. i3.shouldClone = false, i3.width = V(100), i3.height = V(100), i3.isMeasured = false, i3.layout = "none", i3.zIndex = 2, e4.seriesContainer = i3;
  13585. var n3 = e4.chartContainer.createChild($a);
  13586. return n3.shouldClone = false, n3.width = V(100), n3.height = V(100), n3.isMeasured = false, n3.zIndex = 3, n3.layout = "none", e4.bulletsContainer = n3, e4.applyTheme(), e4;
  13587. }
  13588. return C(e3, t2), e3.prototype.dispose = function() {
  13589. t2.prototype.dispose.call(this), this.colors && this.colors.dispose(), this.patterns && this.patterns.dispose();
  13590. }, e3.prototype.applyInternalDefaults = function() {
  13591. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Serial chart"));
  13592. }, Object.defineProperty(e3.prototype, "series", { get: function() {
  13593. return this._series || (this._series = new Mi(this.createSeries()), this._series.events.on("inserted", this.handleSeriesAdded, this, false), this._series.events.on("removed", this.handleSeriesRemoved, this, false), this._disposers.push(new Ai(this._series, false)), this._disposers.push(this._series.template)), this._series;
  13594. }, enumerable: true, configurable: true }), e3.prototype.handleSeriesRemoved = function(t3) {
  13595. var e4 = t3.oldValue;
  13596. this.dataUsers.removeValue(e4), this.dataUsers.each(function(t4) {
  13597. t4.invalidateDataItems();
  13598. }), e4.autoDispose ? e4.dispose() : (e4.parent = void 0, e4.bulletsContainer.parent = void 0);
  13599. var i3 = this.legend;
  13600. if (i3) {
  13601. for (var n3 = this.legend.dataItems, r3 = n3.length - 1; r3 >= 0; r3--) {
  13602. var s2 = n3.getIndex(r3);
  13603. s2 && s2.dataContext == e4 && i3.dataItems.remove(s2);
  13604. }
  13605. for (r3 = i3.data.length - 1; r3 >= 0; r3--) {
  13606. var a2 = i3.data[r3];
  13607. a2 && a2 == e4 && ee(i3.data, a2);
  13608. }
  13609. }
  13610. }, e3.prototype.handleSeriesAdded = function(t3) {
  13611. var e4 = this, i3 = t3.newValue;
  13612. i3.isDisposed() || (i3.chart = this, i3.parent = this.seriesContainer, i3.bulletsContainer.parent = this.bulletsContainer, this._dataUsers.moveValue(i3), i3.addDisposer(new ye(function() {
  13613. e4.dataUsers.removeValue(i3);
  13614. })), this.handleSeriesAdded2(i3), this.handleLegendSeriesAdded(i3));
  13615. }, e3.prototype.handleLegendSeriesAdded = function(t3) {
  13616. t3.hiddenInLegend || this.legend && this.legend.addData(t3);
  13617. }, e3.prototype.handleSeriesAdded2 = function(t3) {
  13618. var e4 = this;
  13619. this.dataInvalid || this._disposers.push(Ii.events.once("exitframe", function() {
  13620. t3.data && 0 != t3.data.length || (t3.data = e4.data, t3.showOnInit && (t3.reinit(), t3.setPropertyValue("showOnInit", false), t3.showOnInit = true), t3.isDisposed() || t3.events.once("datavalidated", function() {
  13621. t3.data == e4.data && (t3._data = []);
  13622. }));
  13623. }));
  13624. }, e3.prototype.feedLegend = function() {
  13625. var t3 = this.legend;
  13626. if (t3) {
  13627. var e4 = [];
  13628. ti(this.series.iterator(), function(t4) {
  13629. t4.hiddenInLegend || e4.push(t4);
  13630. }), t3.dataFields.name = "name", t3.data = e4;
  13631. }
  13632. }, e3.prototype.createSeries = function() {
  13633. return new eh();
  13634. }, Object.defineProperty(e3.prototype, "colors", { get: function() {
  13635. return this.getPropertyValue("colors");
  13636. }, set: function(t3) {
  13637. this.setPropertyValue("colors", t3, true);
  13638. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "patterns", { get: function() {
  13639. return this.getPropertyValue("patterns");
  13640. }, set: function(t3) {
  13641. this.setPropertyValue("patterns", t3, true);
  13642. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  13643. t2.prototype.copyFrom.call(this, e4), this.series.copyFrom(e4.series);
  13644. }, e3.prototype.appear = function() {
  13645. t2.prototype.appear.call(this), this.series.each(function(t3) {
  13646. t3.showOnInit && t3.inited && t3.appear();
  13647. });
  13648. }, e3;
  13649. }(Zl);
  13650. Ii.registeredClasses.SerialChart = nh;
  13651. var rh = function(t2) {
  13652. function e3() {
  13653. var e4 = t2.call(this) || this;
  13654. e4._axis = new ve(), e4.dataItems = new Fi(), e4.className = "AxisBreak", e4.breakSize = 0.01, e4.marginLeft = -5, e4.marginRight = -5, e4.marginTop = -5, e4.marginBottom = -5;
  13655. var i3 = new Ys(), n3 = new pl();
  13656. n3.fill = i3.getFor("background"), n3.stroke = dn(), n3.fillOpacity = 0.9, n3.zIndex = 0, e4._fillShape = n3;
  13657. var r3 = new pl();
  13658. r3.fill = dn(), r3.stroke = i3.getFor("grid"), r3.strokeOpacity = 0.3, r3.zIndex = 1, e4._startLine = r3;
  13659. var s2 = new pl();
  13660. return s2.fill = dn(), s2.stroke = dn("#000000"), s2.strokeOpacity = 0.3, s2.zIndex = 2, e4._endLine = s2, e4._disposers.push(e4._axis), e4.applyTheme(), e4;
  13661. }
  13662. return C(e3, t2), e3.prototype.dispose = function() {
  13663. t2.prototype.dispose.call(this), this._fillShape && this._fillShape.dispose(), this._startLine && this._startLine.dispose(), this._endLine && this._endLine.dispose();
  13664. }, Object.defineProperty(e3.prototype, "startLine", { get: function() {
  13665. return this._startLine;
  13666. }, set: function(t3) {
  13667. this._startLine && this._startLine.dispose(), this._startLine = t3, this.addBreakSprite(t3);
  13668. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLine", { get: function() {
  13669. return this._endLine;
  13670. }, set: function(t3) {
  13671. this._endLine && this._endLine.dispose(), this._endLine = t3, this.addBreakSprite(t3);
  13672. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fillShape", { get: function() {
  13673. return this._fillShape;
  13674. }, set: function(t3) {
  13675. this._fillShape && this._fillShape.dispose(), this._fillShape = t3, this.addBreakSprite(t3);
  13676. }, enumerable: true, configurable: true }), e3.prototype.addBreakSprite = function(t3) {
  13677. t3.parent = this, t3.isMeasured = false, this._disposers.push(t3);
  13678. }, Object.defineProperty(e3.prototype, "axis", { get: function() {
  13679. return this._axis.get();
  13680. }, set: function(t3) {
  13681. if (this._axis.get() !== t3) {
  13682. this._axis.set(t3, t3.renderer.gridContainer.events.on("transformed", this.invalidate, this, false)), t3.renderer.createBreakSprites(this);
  13683. var e4 = t3.axisBreaks.template;
  13684. this.startLine.copyFrom(e4.startLine), this.endLine.copyFrom(e4.endLine), this.fillShape.copyFrom(e4.fillShape);
  13685. }
  13686. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "breakSize", { get: function() {
  13687. return this.getPropertyValue("breakSize");
  13688. }, set: function(t3) {
  13689. this.setPropertyValue("breakSize", t3) && this.axis && (this.axis.invalidate(), this.axis.invalidateSeries());
  13690. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startPoint", { get: function() {
  13691. var t3 = this.axis.renderer;
  13692. if (t3)
  13693. return t3.positionToPoint(this.startPosition);
  13694. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPoint", { get: function() {
  13695. var t3 = this.axis.renderer;
  13696. if (t3)
  13697. return t3.positionToPoint(this.endPosition);
  13698. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startPosition", { get: function() {
  13699. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPosition", { get: function() {
  13700. }, enumerable: true, configurable: true }), e3.prototype.draw = function() {
  13701. t2.prototype.draw.call(this), this.axis && this.axis.renderer.updateBreakElement(this);
  13702. }, Object.defineProperty(e3.prototype, "startValue", { get: function() {
  13703. return this.getPropertyValue("startValue");
  13704. }, set: function(t3) {
  13705. this.setPropertyValue("startValue", t3) && this.axis && (this.axis.invalidate(), this.axis.invalidateSeries());
  13706. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endValue", { get: function() {
  13707. return this.getPropertyValue("endValue");
  13708. }, set: function(t3) {
  13709. this.setPropertyValue("endValue", t3) && this.axis && (this.axis.invalidate(), this.axis.invalidateSeries());
  13710. }, enumerable: true, configurable: true }), e3;
  13711. }($a);
  13712. Ii.registeredClasses.AxisBreak = rh;
  13713. var sh, ah = function(t2) {
  13714. function e3() {
  13715. var e4 = t2.call(this) || this;
  13716. return e4.className = "AxisDataItem", e4.applyTheme(), e4;
  13717. }
  13718. return C(e3, t2), Object.defineProperty(e3.prototype, "grid", { get: function() {
  13719. if (!this._grid) {
  13720. var t3 = this.component;
  13721. if (t3) {
  13722. var e4, i3 = void 0;
  13723. if (this.isRange) {
  13724. if ((i3 = t3.axisRanges.template.grid).disabled)
  13725. return;
  13726. e4 = i3.clone();
  13727. } else {
  13728. if ((i3 = t3.renderer.grid.template).disabled)
  13729. return;
  13730. e4 = t3.renderer.grid.create(), this._disposers.push(new ye(function() {
  13731. t3.renderer.grid.removeValue(e4);
  13732. }));
  13733. }
  13734. this.grid = e4, e4.shouldClone = false, this._disposers.push(e4), e4.axis = this.component;
  13735. }
  13736. }
  13737. return this._grid;
  13738. }, set: function(t3) {
  13739. this._grid && this._grid != t3 && (ee(this.sprites, this._grid), this._grid.dataItem = void 0), t3 && (t3.dataItem && t3.dataItem != this && (ee(t3.dataItem.sprites, t3), t3.dataItem.grid = void 0), this.addSprite(t3)), this._grid = t3;
  13740. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tick", { get: function() {
  13741. if (!this._tick) {
  13742. var t3 = this.component;
  13743. if (t3) {
  13744. var e4, i3 = void 0;
  13745. if (this.isRange) {
  13746. if ((i3 = t3.axisRanges.template.tick).disabled)
  13747. return;
  13748. e4 = i3.clone();
  13749. } else {
  13750. if ((i3 = t3.renderer.ticks.template).disabled)
  13751. return;
  13752. e4 = t3.renderer.ticks.create(), this._disposers.push(new ye(function() {
  13753. t3.renderer.ticks.removeValue(e4);
  13754. }));
  13755. }
  13756. this.tick = e4, e4.axis = this.component, e4.shouldClone = false, this._disposers.push(e4);
  13757. }
  13758. }
  13759. return this._tick;
  13760. }, set: function(t3) {
  13761. this._tick && this._tick != t3 && (ee(this.sprites, this._tick), this._tick.dataItem = void 0), t3 && (t3.dataItem && t3.dataItem != this && (ee(t3.dataItem.sprites, t3), t3.dataItem.tick = void 0), this.addSprite(t3)), this._tick = t3;
  13762. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  13763. if (!this._label) {
  13764. var t3 = this.component;
  13765. if (t3) {
  13766. var e4, i3 = void 0;
  13767. if (this.isRange) {
  13768. if ((i3 = t3.axisRanges.template.label).disabled)
  13769. return;
  13770. e4 = i3.clone();
  13771. } else {
  13772. if ((i3 = t3.renderer.labels.template).disabled)
  13773. return;
  13774. e4 = t3.renderer.labels.create(), this._disposers.push(new ye(function() {
  13775. t3.renderer.labels.removeValue(e4);
  13776. }));
  13777. }
  13778. this._disposers.push(e4), this.label = e4, e4.shouldClone = false, e4.axis = this.component, e4.virtualParent = t3;
  13779. }
  13780. }
  13781. return this._label;
  13782. }, set: function(t3) {
  13783. this._label && this._label != t3 && (ee(this.sprites, this._label), this._label.dataItem = void 0), t3 && (t3.dataItem && t3.dataItem != this && (ee(t3.dataItem.sprites, t3), t3.dataItem.label = void 0), this.addSprite(t3)), this._label = t3;
  13784. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "axisFill", { get: function() {
  13785. if (!this._axisFill) {
  13786. var t3 = this.component;
  13787. if (t3) {
  13788. var e4, i3 = void 0;
  13789. if (this.isRange) {
  13790. if (i3 = t3.axisRanges.template.axisFill, !this.isTemplate && i3.disabled)
  13791. return;
  13792. e4 = i3.clone();
  13793. } else {
  13794. if ((i3 = t3.renderer.axisFills.template).disabled)
  13795. return;
  13796. e4 = t3.renderer.axisFills.create(), this._disposers.push(new ye(function() {
  13797. t3.renderer.axisFills.removeValue(e4);
  13798. }));
  13799. }
  13800. this.axisFill = e4, e4.shouldClone = false, this._disposers.push(e4);
  13801. }
  13802. }
  13803. return this._axisFill;
  13804. }, set: function(t3) {
  13805. this._axisFill && this._axisFill != t3 && (ee(this.sprites, this._axisFill), this._axisFill.dataItem = void 0), t3 && (t3.dataItem && t3.dataItem != this && (ee(t3.dataItem.sprites, t3), t3.dataItem.axisFill = void 0), t3.axis = this.component, this.addSprite(t3)), this._axisFill = t3;
  13806. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "text", { get: function() {
  13807. return this._text;
  13808. }, set: function(t3) {
  13809. this._text = t3, this._label && (this._label.text = t3);
  13810. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mask", { get: function() {
  13811. return this._mask;
  13812. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "contents", { get: function() {
  13813. if (!this._contents) {
  13814. var t3 = new $a();
  13815. this.addSprite(t3), t3.isMeasured = false, this._contents = t3;
  13816. var e4 = this.component;
  13817. if (e4) {
  13818. var i3 = e4.renderer.createFill(this.component);
  13819. i3.disabled = false, i3.axis = e4, this.addSprite(i3), this._mask = i3, t3.mask = i3;
  13820. }
  13821. }
  13822. return this._contents;
  13823. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "axisBreak", { get: function() {
  13824. return this._axisBreak;
  13825. }, set: function(t3) {
  13826. this._axisBreak && this._axisBreak.dataItems.removeValue(this), t3 && t3.dataItems.push(this), this._axisBreak = t3;
  13827. }, enumerable: true, configurable: true }), e3.prototype.validate = function() {
  13828. this.component && this.component.validateDataElement(this);
  13829. }, e3.prototype.appendChildren = function() {
  13830. this.component && this.component.appendDataItem(this);
  13831. }, e3.prototype.hasProperty = function(e4) {
  13832. return "component" == e4 || t2.prototype.hasProperty.call(this, e4);
  13833. }, e3.prototype.copyFrom = function(e4) {
  13834. t2.prototype.copyFrom.call(this, e4), this.text = e4.text, e4.bullet && (this.bullet = e4.bullet.clone()), this.minPosition = e4.minPosition, this.maxPosition = e4.maxPosition;
  13835. }, e3.prototype.setVisibility = function(e4, i3) {
  13836. t2.prototype.setVisibility.call(this, e4, i3), this._contents && (this._contents.visible = e4);
  13837. }, Object.defineProperty(e3.prototype, "bullet", { get: function() {
  13838. return this._bullet;
  13839. }, set: function(t3) {
  13840. this._bullet && this._bullet != t3 && (ee(this.sprites, this._bullet), this._bullet.dataItem = void 0), this._bullet = t3, t3 && this.addSprite(t3);
  13841. }, enumerable: true, configurable: true }), e3;
  13842. }(po);
  13843. !function(t2) {
  13844. t2[t2.Start = 0] = "Start", t2[t2.Middle = 0.5] = "Middle", t2[t2.End = 1] = "End";
  13845. }(sh || (sh = {}));
  13846. var oh = function(t2) {
  13847. function e3() {
  13848. var i3 = t2.call(this) || this;
  13849. if (i3._gridCount = 10, i3._series = new Fi(), i3.autoDispose = true, i3._axisItemCount = 0, i3.constructor === e3)
  13850. throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");
  13851. i3.hideTooltipWhileZooming = true, i3.minWidth = 1e-4, i3.minHeight = 1e-4, i3.className = "Axis", i3.shouldClone = false, i3.setPropertyValue("cursorTooltipEnabled", true), i3.toggleZoomOutButton = true, i3.zoomable = true;
  13852. var n3 = new Ys();
  13853. i3.title = new co(), i3.title.shouldClone = false, i3._disposers.push(i3.title), i3.setPropertyValue("startLocation", 0), i3.setPropertyValue("endLocation", 1), i3._dataItemsIterator = new mi(i3.dataItems, function() {
  13854. return i3.dataItems.create();
  13855. }), i3._dataItemsIterator.createNewItems = true;
  13856. var r3 = new $o();
  13857. i3._disposers.push(r3), r3.label.padding(5, 10, 5, 10), r3.background.pointerLength = 5, r3.fitPointerToBounds = true, r3.background.filters.clear(), r3.virtualParent = i3;
  13858. var s2 = r3.background;
  13859. return s2.cornerRadius = 0, s2.fill = n3.getFor("alternativeBackground"), s2.stroke = s2.fill, s2.strokeWidth = 1, s2.fillOpacity = 1, r3.label.fill = n3.getFor("alternativeText"), i3.tooltip = r3, i3.readerHidden = true, i3.events.on("rangechangestarted", function() {
  13860. i3.series.each(function(t3) {
  13861. t3.hideTooltipWhileZooming && (t3.tooltip.hide(), t3.tooltip.preventShow = true);
  13862. }), i3.hideTooltipWhileZooming && (i3.tooltip.hide(), i3.tooltip.preventShow = true);
  13863. }, void 0, false), i3.events.on("rangechangeended", function() {
  13864. i3.series.each(function(t3) {
  13865. t3.hideTooltipWhileZooming && (t3.tooltip.hide(), t3.tooltip.preventShow = false);
  13866. }), i3.hideTooltipWhileZooming && (i3.tooltip.hide(), i3.tooltip.preventShow = false);
  13867. }, void 0, false), i3.applyTheme(), i3;
  13868. }
  13869. return C(e3, t2), e3.prototype.fillRule = function(t3, e4) {
  13870. tt(e4) || (e4 = t3.index), e4 / 2 == Math.round(e4 / 2) ? (t3.axisFill.__disabled = true, t3.axisFill.opacity = 0) : (t3.axisFill.opacity = 1, t3.axisFill.__disabled = false);
  13871. }, e3.prototype.createDataItem = function() {
  13872. return new ah();
  13873. }, e3.prototype.invalidateLayout = function() {
  13874. t2.prototype.invalidateLayout.call(this), ti(this.series.iterator(), function(t3) {
  13875. t3.invalidateLayout();
  13876. });
  13877. }, e3.prototype.invalidateSeries = function() {
  13878. ti(this.series.iterator(), function(t3) {
  13879. t3.invalidate();
  13880. });
  13881. }, e3.prototype.validateDataElements = function() {
  13882. this._axisItemCount = 0, this.ghostLabel && (this.renderer.updateLabelElement(this.ghostLabel, this.start, this.end), this.ghostLabel.validate());
  13883. }, e3.prototype.updateGridCount = function() {
  13884. if (this.renderer) {
  13885. var t3 = this.axisLength / this.renderer.minGridDistance;
  13886. t3 != this._gridCount && (this._gridCount = t3, this.clearCache());
  13887. }
  13888. }, e3.prototype.validateLayout = function() {
  13889. this.axisFullLength = this.axisLength / (this.end - this.start), t2.prototype.validateLayout.call(this), this.updateGridCount();
  13890. var e4 = this.renderer;
  13891. e4 && (e4.updateAxisLine(), e4.updateTooltip(), e4.updateBaseGridElement()), this._prevLength != this.axisLength && (this.dispatchImmediately("lengthchanged"), this._prevLength = this.axisLength);
  13892. }, e3.prototype.initRenderer = function() {
  13893. }, e3.prototype.appendDataItem = function(t3) {
  13894. var e4 = this.renderer, i3 = t3.tick;
  13895. i3 && (i3.above ? i3.parent = e4.bulletsContainer : i3.parent = e4.gridContainer), t3.label && (t3.label.parent = e4);
  13896. var n3 = t3.axisFill;
  13897. n3 && (n3.above ? n3.parent = e4.bulletsContainer : n3.parent = e4.gridContainer);
  13898. var r3 = t3.grid;
  13899. r3 && (r3.above ? r3.parent = e4.bulletsContainer : r3.parent = e4.gridContainer), t3.bullet && (t3.bullet.parent = e4.bulletsContainer);
  13900. }, e3.prototype.validate = function() {
  13901. t2.prototype.validate.call(this), this.validateLayout(), this.renderer.updateGridContainer();
  13902. }, e3.prototype.validateAxisRanges = function() {
  13903. var t3 = this;
  13904. ti(this.axisRanges.iterator(), function(e4) {
  13905. t3.appendDataItem(e4), t3.validateDataElement(e4), e4.grid && e4.grid.validate(), e4.tick && e4.tick.validate(), e4.axisFill && e4.axisFill.validate(), e4.label && e4.label.validate();
  13906. });
  13907. }, e3.prototype.validateBreaks = function() {
  13908. this._axisBreaks && ti(this._axisBreaks.iterator(), function(t3) {
  13909. t3.invalidate();
  13910. });
  13911. }, e3.prototype.processBreak = function(t3) {
  13912. var e4 = t3.newValue;
  13913. e4.parent = this.renderer.breakContainer, e4.axis = this;
  13914. }, e3.prototype.registerSeries = function(t3) {
  13915. var e4 = this;
  13916. return this.series.moveValue(t3), new me([new ye(function() {
  13917. e4.series.removeValue(t3);
  13918. }), this.events.on("lengthchanged", t3.invalidate, t3, false), this.events.on("lengthchanged", t3.createMask, t3, false), this.events.on("startchanged", t3.invalidate, t3, false), this.events.on("endchanged", t3.invalidate, t3, false)]);
  13919. }, Object.defineProperty(e3.prototype, "renderer", { get: function() {
  13920. return this._renderer;
  13921. }, set: function(t3) {
  13922. if (t3 != this._renderer) {
  13923. this._renderer = t3, t3.chart = this.chart, t3.axis = this, t3.parent = this, this.title.parent = this, this.initRenderer(), this._disposers.push(t3.gridContainer.events.on("maxsizechanged", this.invalidate, this, false));
  13924. var e4 = this.renderer.labels.create();
  13925. this._disposers.push(e4), e4.dataItem = this.dataItems.template.clone(), e4.text = "L", e4.parent = this.renderer, e4.shouldClone = false, e4.fillOpacity = 0, e4.opacity = 0, e4.strokeOpacity = 0, e4.interactionsEnabled = false, e4.validate(), this.ghostLabel = e4, this.events.on("beforedatavalidated", function() {
  13926. e4.text = "L";
  13927. }, void 0, false);
  13928. }
  13929. }, enumerable: true, configurable: true }), e3.prototype.positionToAngle = function(t3) {
  13930. return this.renderer.positionToAngle(t3);
  13931. }, e3.prototype.pointToPosition = function(t3) {
  13932. return this.renderer.pointToPosition(t3);
  13933. }, e3.prototype.positionToCoordinate = function(t3) {
  13934. return this.renderer.positionToCoordinate(t3);
  13935. }, e3.prototype.getAnyRangePath = function(t3, e4) {
  13936. return this.renderer.getPositionRangePath(t3, e4);
  13937. }, e3.prototype.anyToPosition = function(t3) {
  13938. return 0;
  13939. }, e3.prototype.anyToPoint = function(t3) {
  13940. return { x: 0, y: 0, angle: 0 };
  13941. }, e3.prototype.getPositionRangePath = function(t3, e4) {
  13942. return this.renderer ? this.renderer.getPositionRangePath(t3, e4) : "";
  13943. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  13944. return this.renderer ? this.renderer.axisLength : 0;
  13945. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorTooltipEnabled", { get: function() {
  13946. return this.getPropertyValue("cursorTooltipEnabled");
  13947. }, set: function(t3) {
  13948. this.setPropertyValue("cursorTooltipEnabled", t3) && (t3 && this.renderer ? this.renderer.updateTooltip() : this.tooltip && this.tooltip.hide(0));
  13949. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "toggleZoomOutButton", { get: function() {
  13950. return this.getPropertyValue("toggleZoomOutButton");
  13951. }, set: function(t3) {
  13952. this.setPropertyValue("toggleZoomOutButton", t3);
  13953. }, enumerable: true, configurable: true }), e3.prototype.hideTooltip = function(e4) {
  13954. t2.prototype.hideTooltip.call(this, e4), this._tooltipPosition = void 0;
  13955. }, e3.prototype.showTooltipAtPosition = function(t3, e4) {
  13956. var i3 = this._tooltip;
  13957. if (!i3 || this.dataItems.length <= 0)
  13958. this._tooltipPosition = void 0;
  13959. else {
  13960. if (e4 || (t3 = this.toAxisPosition(t3)), !tt(t3) || t3 < this.start || t3 > this.end)
  13961. return i3.hide(0), void (this._tooltipPosition = void 0);
  13962. var n3 = this.renderer;
  13963. i3.parent || (i3.parent = this.tooltipContainer);
  13964. var r3 = n3.tooltipLocation, s2 = this.getCellStartPosition(t3), a2 = this.getCellEndPosition(t3);
  13965. if ("fixed" == this.tooltipPosition && (t3 = s2 + (a2 - s2) * r3), t3 = ut(t3, this.start, this.end), this._tooltipPosition != t3) {
  13966. this._tooltipPosition = t3;
  13967. var o3 = n3.tooltipLocation2, l2 = n3.positionToPoint(s2, o3), h2 = n3.positionToPoint(a2, o3);
  13968. this.currentItemStartPoint = l2, this.currentItemEndPoint = h2, n3.fullWidthTooltip && (i3.width = h2.x - l2.x, i3.height = h2.y - l2.y);
  13969. var p2 = ur(n3.positionToPoint(t3, o3), this.renderer.line);
  13970. i3.text = this.getTooltipText(t3), i3.text && (i3.delayedPointTo(p2), i3.show());
  13971. }
  13972. this.cursorTooltipEnabled && !this.tooltip.disabled || i3.hide(0);
  13973. }
  13974. }, e3.prototype.toAxisPosition = function(t3) {
  13975. if (null != (t3 = this.renderer.toAxisPosition(t3)))
  13976. return t3 *= this.end - this.start, this.renderer.inversed ? this.end - t3 : this.start + t3;
  13977. }, e3.prototype.toGlobalPosition = function(t3) {
  13978. return this.renderer.inversed ? t3 = this.end - t3 : t3 -= this.start, t3 / (this.end - this.start);
  13979. }, e3.prototype.getTooltipText = function(t3) {
  13980. }, e3.prototype.updateTooltip = function(t3, e4) {
  13981. var i3 = this._tooltip;
  13982. i3 && (i3.fixDoc = false, i3.pointerOrientation = t3, i3.setBounds(fr(e4, this.renderer.line)));
  13983. }, e3.prototype.roundPosition = function(t3, e4, i3) {
  13984. return t3;
  13985. }, e3.prototype.getCellStartPosition = function(t3) {
  13986. return t3;
  13987. }, e3.prototype.getCellEndPosition = function(t3) {
  13988. return t3;
  13989. }, Object.defineProperty(e3.prototype, "axisRanges", { get: function() {
  13990. if (!this._axisRanges) {
  13991. var t3 = this.createDataItem();
  13992. t3.isRange = true, t3.axisFill = this.renderer.axisFills.template.clone(), t3.grid = this.renderer.grid.template.clone(), t3.tick = this.renderer.ticks.template.clone(), t3.label = this.renderer.labels.template.clone(), t3.isTemplate = true, t3.component = this, t3.axisFill.disabled = false, t3.tick.disabled = false, t3.grid.disabled = false, t3.label.disabled = false, this._axisRanges = new Mi(t3), this._axisRanges.events.on("inserted", this.processAxisRange, this, false), this._disposers.push(new Ai(this._axisRanges)), this._disposers.push(this._axisRanges.template);
  13993. }
  13994. return this._axisRanges;
  13995. }, enumerable: true, configurable: true }), e3.prototype.processAxisRange = function(t3) {
  13996. var e4 = t3.newValue;
  13997. e4.component = this, e4.isRange = true;
  13998. }, Object.defineProperty(e3.prototype, "axisBreaks", { get: function() {
  13999. return this._axisBreaks || (this._axisBreaks = new Ri(this.createAxisBreak(), function(t3, e4) {
  14000. return Bi(t3.adjustedStartValue, e4.adjustedStartValue);
  14001. }), this._axisBreaks.events.on("inserted", this.processBreak, this, false), this._disposers.push(new Ai(this._axisBreaks)), this._disposers.push(this._axisBreaks.template)), this._axisBreaks;
  14002. }, enumerable: true, configurable: true }), e3.prototype.createAxisBreak = function() {
  14003. return new rh();
  14004. }, Object.defineProperty(e3.prototype, "series", { get: function() {
  14005. return this._series || (this._series = new Fi()), this._series;
  14006. }, enumerable: true, configurable: true }), e3.prototype.processSeriesDataItems = function() {
  14007. }, e3.prototype.processSeriesDataItem = function(t3, e4) {
  14008. }, e3.prototype.postProcessSeriesDataItems = function(t3) {
  14009. }, e3.prototype.postProcessSeriesDataItem = function(t3) {
  14010. }, e3.prototype.updateAxisBySeries = function() {
  14011. }, e3.prototype.hideUnusedDataItems = function() {
  14012. var t3 = this, e4 = this._dataItemsIterator;
  14013. e4.createNewItems = false, ti(e4.iterator(), function(e5) {
  14014. t3.validateDataElement(e5), e5.__disabled = true;
  14015. }), e4.clear(), e4.createNewItems = true;
  14016. }, e3.prototype.getSeriesDataItem = function(t3, e4, i3) {
  14017. }, e3.prototype.getAngle = function(t3, e4, i3, n3, r3) {
  14018. }, e3.prototype.getX = function(t3, e4, i3, n3, r3) {
  14019. }, e3.prototype.getPositionX = function(t3, e4, i3, n3, r3) {
  14020. }, e3.prototype.getY = function(t3, e4, i3, n3, r3) {
  14021. }, e3.prototype.getPositionY = function(t3, e4, i3, n3, r3) {
  14022. }, Object.defineProperty(e3.prototype, "basePoint", { get: function() {
  14023. return { x: 0, y: 0 };
  14024. }, enumerable: true, configurable: true }), e3.prototype.dataChangeUpdate = function() {
  14025. }, e3.prototype.seriesDataChangeUpdate = function(t3) {
  14026. }, e3.prototype.adjustDifference = function(t3, e4) {
  14027. var i3 = e4 - t3;
  14028. if (tt(i3))
  14029. return this._axisBreaks && Qe(this._axisBreaks.iterator(), function(n3) {
  14030. var r3 = n3.adjustedStartValue, s2 = n3.adjustedEndValue;
  14031. if (tt(r3) && tt(s2)) {
  14032. if (r3 > e4)
  14033. return false;
  14034. if (s2 >= t3 && tt(r3) && tt(s2)) {
  14035. var a2 = n3.breakSize, o3 = xt({ start: r3, end: s2 }, { start: t3, end: e4 });
  14036. o3 && (i3 -= (o3.end - o3.start) * (1 - a2));
  14037. }
  14038. return true;
  14039. }
  14040. }), i3;
  14041. }, e3.prototype.isInBreak = function(t3) {
  14042. if (this._axisBreaks)
  14043. return li(this._axisBreaks.iterator(), function(e4) {
  14044. return t3 >= e4.adjustedStartValue && t3 <= e4.adjustedEndValue;
  14045. });
  14046. }, e3.prototype.fixAxisBreaks = function() {
  14047. var t3 = this;
  14048. if (this._axisBreaks) {
  14049. var e4 = this._axisBreaks;
  14050. if (e4.length > 0) {
  14051. Ut(Je(e4.iterator()), function(e5) {
  14052. var i4 = yt(e5.startValue, e5.endValue), n4 = gt(e5.startValue, e5.endValue);
  14053. e5.adjustedStartValue = i4, e5.adjustedEndValue = n4, t3._axisBreaks.update(e5);
  14054. });
  14055. var i3 = e4.first, n3 = Math.min(i3.startValue, i3.endValue);
  14056. ti(e4.iterator(), function(t4) {
  14057. var e5 = t4.adjustedStartValue, i4 = t4.adjustedEndValue;
  14058. e5 < n3 && (e5 = n3, i4 < n3 && (i4 = n3)), t4.adjustedStartValue = e5, t4.adjustedEndValue = i4;
  14059. });
  14060. }
  14061. }
  14062. }, Object.defineProperty(e3.prototype, "startIndex", { get: function() {
  14063. return 0;
  14064. }, set: function(t3) {
  14065. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endIndex", { get: function() {
  14066. return this.dataItems.length;
  14067. }, set: function(t3) {
  14068. }, enumerable: true, configurable: true }), e3.prototype.getPositionLabel = function(t3) {
  14069. return Math.round(100 * t3) + "%x";
  14070. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  14071. return this._chart;
  14072. }, set: function(t3) {
  14073. this._chart = t3;
  14074. }, enumerable: true, configurable: true }), e3.prototype.createSeriesRange = function(t3) {
  14075. var e4 = this.axisRanges.create();
  14076. return e4.component = this, e4.axisFill = this.renderer.axisFills.template.clone(), e4.axisFill.disabled = false, e4.axisFill.fillOpacity = 0, e4.grid = this.renderer.grid.template.clone(), e4.grid.disabled = true, e4.tick = this.renderer.ticks.template.clone(), e4.tick.disabled = true, e4.label = this.renderer.labels.template.clone(), e4.label.disabled = true, e4.addDisposer(new ye(function() {
  14077. t3.axisRanges.removeValue(e4);
  14078. })), t3.axisRanges.push(e4), e4;
  14079. }, e3.prototype.copyFrom = function(e4) {
  14080. t2.prototype.copyFrom.call(this, e4), this.renderer ? this.renderer.copyFrom(e4.renderer) : e4.renderer && (this.renderer = e4.renderer.clone(), this._disposers.push(this.renderer)), e4.title && (this.title ? this.title.copyFrom(e4.title) : (this.title = e4.title.clone(), this.title.parent = this), this._disposers.push(this.title));
  14081. }, e3.prototype.resetIterators = function() {
  14082. this._dataItemsIterator.reset();
  14083. }, e3.prototype.processConfig = function(e4) {
  14084. if (e4 && Z(e4.axisRanges) && it(e4.axisRanges))
  14085. for (var i3 = 0, n3 = e4.axisRanges.length; i3 < n3; i3++) {
  14086. var r3 = e4.axisRanges[i3];
  14087. Z(r3.series) && Q(r3.series) && this.map.hasKey(r3.series) && (e4.axisRanges[i3] = this.createSeriesRange(this.map.getKey(r3.series)), delete r3.series, e4.axisRanges[i3].config = r3);
  14088. }
  14089. t2.prototype.processConfig.call(this, e4);
  14090. }, e3.prototype.configOrder = function(e4, i3) {
  14091. return e4 == i3 ? 0 : "title" == e4 ? 1 : "title" == i3 || "component" == e4 ? -1 : "component" == i3 ? 1 : t2.prototype.configOrder.call(this, e4, i3);
  14092. }, Object.defineProperty(e3.prototype, "startLocation", { get: function() {
  14093. return this.getPropertyValue("startLocation");
  14094. }, set: function(t3) {
  14095. this.setPropertyValue("startLocation", t3, true);
  14096. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLocation", { get: function() {
  14097. return this.getPropertyValue("endLocation");
  14098. }, set: function(t3) {
  14099. this.setPropertyValue("endLocation", t3, true);
  14100. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14101. var i3 = t2.prototype.setDisabled.call(this, e4);
  14102. return this.renderer && (this.renderer.gridContainer.disabled = e4), i3;
  14103. }, Object.defineProperty(e3.prototype, "title", { get: function() {
  14104. return this._title;
  14105. }, set: function(t3) {
  14106. this._title && this._title != t3 && this._title.dispose(), t3 && (this._title = t3, t3.parent = this, t3.shouldClone = false);
  14107. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hideTooltipWhileZooming", { get: function() {
  14108. return this.getPropertyValue("hideTooltipWhileZooming");
  14109. }, set: function(t3) {
  14110. this.setPropertyValue("hideTooltipWhileZooming", t3);
  14111. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "zoomable", { get: function() {
  14112. return this.getPropertyValue("zoomable");
  14113. }, set: function(t3) {
  14114. this.setPropertyValue("zoomable", t3);
  14115. }, enumerable: true, configurable: true }), e3;
  14116. }(uo);
  14117. Ii.registeredClasses.Axis = oh, Ii.registeredClasses.AxisDataItem = ah, lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  14118. if (t2 instanceof oh && t2.tooltip) {
  14119. var i3 = t2.states.create(e3);
  14120. return i3.properties.cursorTooltipEnabled = false, i3;
  14121. }
  14122. return null;
  14123. } });
  14124. var lh = function(t2) {
  14125. function e3() {
  14126. var e4 = t2.call(this) || this;
  14127. e4.className = "AxisLine", e4.element = e4.paper.add("path");
  14128. var i3 = new Ys();
  14129. return e4.stroke = i3.getFor("grid"), e4.strokeOpacity = 0.15, e4.pixelPerfect = true, e4.fill = dn(), e4.applyTheme(), e4.interactionsEnabled = false, e4;
  14130. }
  14131. return C(e3, t2), e3;
  14132. }(Za);
  14133. Ii.registeredClasses.AxisLine = lh;
  14134. var hh = function(t2) {
  14135. function e3(e4) {
  14136. var i3 = t2.call(this) || this;
  14137. i3.axis = e4, i3.element = i3.paper.add("path"), i3.className = "AxisFill", i3.isMeasured = false, i3.location = 0, i3.above = false;
  14138. var n3 = new Ys();
  14139. return i3.fill = n3.getFor("alternativeBackground"), i3.fillOpacity = 0, i3.applyTheme(), i3;
  14140. }
  14141. return C(e3, t2), e3.prototype.setDisabled = function(e4) {
  14142. var i3 = t2.prototype.setDisabled.call(this, e4);
  14143. return this.axis && this.axis.invalidateDataItems(), i3;
  14144. }, e3.prototype.draw = function() {
  14145. t2.prototype.draw.call(this), this.__disabled || this.disabled || this.axis && tt(this.startPosition) && tt(this.endPosition) && (this.fillPath = this.axis.getPositionRangePath(this.startPosition, this.endPosition), this.path = this.fillPath, this.isMeasured && this.measure());
  14146. }, Object.defineProperty(e3.prototype, "startPosition", { get: function() {
  14147. return this.getPropertyValue("startPosition");
  14148. }, set: function(t3) {
  14149. this.setPropertyValue("startPosition", t3), this.invalidate();
  14150. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPosition", { get: function() {
  14151. return this.getPropertyValue("endPosition");
  14152. }, set: function(t3) {
  14153. this.setPropertyValue("endPosition", t3), this.invalidate();
  14154. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "location", { get: function() {
  14155. return this.getPropertyValue("location");
  14156. }, set: function(t3) {
  14157. this.setPropertyValue("location", t3, true);
  14158. }, enumerable: true, configurable: true }), e3.prototype.setPath = function(t3) {
  14159. return !!this.setPropertyValue("path", t3) && (this.element.attr({ d: t3 }), true);
  14160. }, Object.defineProperty(e3.prototype, "above", { get: function() {
  14161. return this.getPropertyValue("above");
  14162. }, set: function(t3) {
  14163. this.setPropertyValue("above", t3, true);
  14164. }, enumerable: true, configurable: true }), e3;
  14165. }(Za);
  14166. Ii.registeredClasses.AxisFill = hh;
  14167. var ph = function(t2) {
  14168. function e3() {
  14169. var e4 = t2.call(this) || this;
  14170. e4.className = "Grid", e4.element = e4.paper.add("path"), e4.location = 0.5, e4.isMeasured = false, e4.above = false;
  14171. var i3 = new Ys();
  14172. return e4.stroke = i3.getFor("grid"), e4.pixelPerfect = true, e4.strokeOpacity = 0.15, e4.fill = dn(), e4.applyTheme(), e4;
  14173. }
  14174. return C(e3, t2), Object.defineProperty(e3.prototype, "location", { get: function() {
  14175. return this.getPropertyValue("location");
  14176. }, set: function(t3) {
  14177. this.setPropertyValue("location", t3, true);
  14178. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "above", { get: function() {
  14179. return this.getPropertyValue("above");
  14180. }, set: function(t3) {
  14181. this.setPropertyValue("above", t3, true);
  14182. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14183. var i3 = t2.prototype.setDisabled.call(this, e4);
  14184. return this.axis && this.axis.invalidateDataItems(), i3;
  14185. }, e3;
  14186. }(Za);
  14187. Ii.registeredClasses.Grid = ph, lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  14188. if (t2 instanceof ph) {
  14189. var i3 = t2.states.create(e3);
  14190. return i3.properties.disabled = true, i3;
  14191. }
  14192. return null;
  14193. } });
  14194. var uh = function(t2) {
  14195. function e3() {
  14196. var e4 = t2.call(this) || this;
  14197. return e4.className = "AxisLabel", e4.isMeasured = false, e4.padding(10, 10, 10, 10), e4.location = 0.5, e4.applyTheme(), e4;
  14198. }
  14199. return C(e3, t2), Object.defineProperty(e3.prototype, "location", { get: function() {
  14200. return this.getPropertyValue("location");
  14201. }, set: function(t3) {
  14202. this.setPropertyValue("location", t3, true);
  14203. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inside", { get: function() {
  14204. return this.getPropertyValue("inside");
  14205. }, set: function(t3) {
  14206. this.setPropertyValue("inside", t3, true);
  14207. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14208. var i3 = t2.prototype.setDisabled.call(this, e4);
  14209. return this.axis && this.axis.invalidateDataItems(), i3;
  14210. }, e3;
  14211. }(co);
  14212. Ii.registeredClasses.AxisLabel = uh;
  14213. var dh = function(t2) {
  14214. function e3() {
  14215. var e4 = t2.call(this) || this;
  14216. e4.className = "Tick";
  14217. var i3 = new Ys();
  14218. return e4.fillOpacity = 0, e4.length = 6, e4.strokeOpacity = 0.2, e4.stroke = i3.getFor("grid"), e4.isMeasured = false, e4.nonScalingStroke = true, e4.applyTheme(), e4;
  14219. }
  14220. return C(e3, t2), Object.defineProperty(e3.prototype, "length", { get: function() {
  14221. return this.disabled ? 0 : this.getPropertyValue("length");
  14222. }, set: function(t3) {
  14223. this.setPropertyValue("length", t3, true);
  14224. }, enumerable: true, configurable: true }), e3;
  14225. }(Za);
  14226. Ii.registeredClasses.Tick = dh;
  14227. var ch = function(t2) {
  14228. function e3() {
  14229. var e4 = t2.call(this) || this;
  14230. return e4.className = "AxisTick", e4.element = e4.paper.add("path"), e4.location = 0.5, e4.above = false, e4.isMeasured = false, e4.pixelPerfect = true, e4.strokeOpacity = 0, e4.length = 5, e4.applyTheme(), e4;
  14231. }
  14232. return C(e3, t2), Object.defineProperty(e3.prototype, "location", { get: function() {
  14233. return this.getPropertyValue("location");
  14234. }, set: function(t3) {
  14235. this.setPropertyValue("location", t3, true);
  14236. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inside", { get: function() {
  14237. return this.getPropertyValue("inside");
  14238. }, set: function(t3) {
  14239. this.setPropertyValue("inside", t3, true);
  14240. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "above", { get: function() {
  14241. return this.getPropertyValue("above");
  14242. }, set: function(t3) {
  14243. this.setPropertyValue("above", t3, true);
  14244. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14245. var i3 = t2.prototype.setDisabled.call(this, e4);
  14246. return this.axis && this.axis.invalidateDataItems(), i3;
  14247. }, e3;
  14248. }(dh);
  14249. Ii.registeredClasses.AxisTick = ch;
  14250. var fh = function(t2) {
  14251. function e3() {
  14252. var e4 = t2.call(this) || this;
  14253. e4._chart = new ve(), e4.className = "AxisRenderer", e4.minGridDistance = 50, e4.inside = false, e4.inversed = false, e4.tooltipLocation = 0.5, e4.fullWidthTooltip = false, e4.cellStartLocation = 0, e4.cellEndLocation = 1, e4.minLabelPosition = 0, e4.maxLabelPosition = 1, e4.shouldClone = false;
  14254. var i3 = e4.createChild($a);
  14255. i3.shouldClone = false, i3.layout = "none", i3.virtualParent = e4, i3.width = V(100), i3.height = V(100), e4.gridContainer = i3, i3.events.on("maxsizechanged", function() {
  14256. e4.inited && e4.invalidateAxisItems();
  14257. }, e4, false);
  14258. var n3 = e4.createChild($a);
  14259. n3.shouldClone = false, n3.isMeasured = false, n3.layout = "none", n3.width = V(100), n3.height = V(100), e4.breakContainer = n3;
  14260. var r3 = e4.createChild($a);
  14261. r3.shouldClone = false, r3.isMeasured = false, r3.layout = "none", r3.width = V(100), r3.height = V(100), e4.bulletsContainer = r3, e4.line = e4.createChild(lh), e4.line.shouldClone = false, e4.line.strokeOpacity = 0;
  14262. var s2 = e4.createChild(ph);
  14263. s2.shouldClone = false, e4.baseGrid = s2;
  14264. var a2 = e4._disposers;
  14265. return a2.push(s2), a2.push(e4.line), a2.push(i3), a2.push(n3), a2.push(r3), a2.push(e4._chart), e4.ticks.template.disabled = true, e4.axisFills.template.disabled = true, e4.axisFills.template.interactionsEnabled = false, e4.applyTheme(), e4;
  14266. }
  14267. return C(e3, t2), Object.defineProperty(e3.prototype, "axis", { get: function() {
  14268. return this._axis;
  14269. }, set: function(t3) {
  14270. this.setAxis(t3);
  14271. }, enumerable: true, configurable: true }), e3.prototype.setAxis = function(t3) {
  14272. this._axis = t3, this.baseGrid.parent = t3, this.line.parent = t3, this.gridContainer.bind("opacity", t3);
  14273. }, e3.prototype.processRenderer = function() {
  14274. this.events.on("sizechanged", this.updateTooltip, this, false), this.events.on("positionchanged", this.updateTooltip, this, false), this.labels.template.inside = this.inside, this.ticks.template.inside = this.inside;
  14275. }, e3.prototype.updateTooltip = function() {
  14276. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  14277. return 0;
  14278. }, enumerable: true, configurable: true }), e3.prototype.positionItem = function(t3, e4) {
  14279. t3 && t3.moveTo(e4);
  14280. }, e3.prototype.positionToPoint = function(t3, e4) {
  14281. return { x: 0, y: 0 };
  14282. }, e3.prototype.positionToAngle = function(t3) {
  14283. return 0;
  14284. }, e3.prototype.positionToCoordinate = function(t3) {
  14285. var e4 = this.axis, i3 = e4.axisFullLength;
  14286. return e4.renderer.inversed ? (e4.end - t3) * i3 : (t3 - e4.start) * i3;
  14287. }, e3.prototype.updateGridContainer = function() {
  14288. }, e3.prototype.getHeight = function() {
  14289. var t3 = this.gridContainer;
  14290. return t3.parent ? t3.parent.pixelHeight : this.gridContainer.pixelHeight || 0;
  14291. }, e3.prototype.getWidth = function() {
  14292. var t3 = this.gridContainer;
  14293. return t3.parent ? t3.parent.pixelWidth : this.gridContainer.pixelWidth || 0;
  14294. }, e3.prototype.coordinateToPosition = function(t3, e4) {
  14295. var i3 = this.axis, n3 = i3.axisFullLength;
  14296. return lt(i3.renderer.inversed ? i3.end - t3 / n3 : t3 / n3 + i3.start, 5);
  14297. }, e3.prototype.pointToPosition = function(t3) {
  14298. return 0;
  14299. }, e3.prototype.getPositionRangePath = function(t3, e4) {
  14300. return "";
  14301. }, e3.prototype.invalidateAxisItems = function() {
  14302. var t3 = this.axis;
  14303. t3 && t3.invalidateDataItems();
  14304. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  14305. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  14306. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  14307. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  14308. }, e3.prototype.updateFillElement = function(t3, e4, i3) {
  14309. t3.startPosition = e4, t3.endPosition = i3;
  14310. }, e3.prototype.updateAxisLine = function() {
  14311. }, e3.prototype.updateBaseGridElement = function() {
  14312. }, e3.prototype.updateBreakElement = function(t3) {
  14313. this.positionItem(t3.startLine, t3.startPoint), this.toggleVisibility(t3.startLine, t3.startPosition, 0, 1), this.positionItem(t3.endLine, t3.endPoint), this.toggleVisibility(t3.endLine, t3.endPosition, 0, 1);
  14314. }, Object.defineProperty(e3.prototype, "minGridDistance", { get: function() {
  14315. return this.getPropertyValue("minGridDistance");
  14316. }, set: function(t3) {
  14317. this.setPropertyValue("minGridDistance", t3) && this.axis && this.axis.invalidateDataItems();
  14318. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "chart", { get: function() {
  14319. return this._chart.get();
  14320. }, set: function(t3) {
  14321. this._chart.set(t3, null);
  14322. }, enumerable: true, configurable: true }), e3.prototype.toggleVisibility = function(t3, e4, i3, n3) {
  14323. var r3 = this.axis, s2 = t3.dataItem;
  14324. s2 && s2 instanceof ah && (tt(s2.minPosition) && (i3 = s2.minPosition), tt(s2.maxPosition) && (n3 = s2.maxPosition));
  14325. var a2 = r3.start + (r3.end - r3.start) * (i3 - 1e-4), o3 = r3.start + (r3.end - r3.start) * (n3 + 1e-4);
  14326. t3.disabled || (t3.__disabled = e4 < a2 || e4 > o3);
  14327. }, e3.prototype.createBreakSprites = function(t3) {
  14328. }, Object.defineProperty(e3.prototype, "axisFills", { get: function() {
  14329. if (!this._axisFills) {
  14330. var t3 = this.createFill(this.axis);
  14331. this._axisFills = new Mi(t3), t3.applyOnClones = true, t3.events.on("enabled", this.invalidateAxisItems, this, false), this._disposers.push(new Ai(this._axisFills)), this._disposers.push(this._axisFills.template);
  14332. }
  14333. return this._axisFills;
  14334. }, enumerable: true, configurable: true }), e3.prototype.createFill = function(t3) {
  14335. return new hh(t3);
  14336. }, Object.defineProperty(e3.prototype, "grid", { get: function() {
  14337. if (!this._grid) {
  14338. var t3 = this.createGrid();
  14339. this._grid = new Mi(t3), t3.applyOnClones = true, t3.events.on("enabled", this.invalidateAxisItems, this, false), this._disposers.push(new Ai(this._grid)), this._disposers.push(this._grid.template);
  14340. }
  14341. return this._grid;
  14342. }, enumerable: true, configurable: true }), e3.prototype.createGrid = function() {
  14343. return new ph();
  14344. }, Object.defineProperty(e3.prototype, "ticks", { get: function() {
  14345. if (!this._ticks) {
  14346. var t3 = this.createTick();
  14347. t3.applyOnClones = true, t3.isMeasured = false, t3.events.on("enabled", this.invalidateAxisItems, this, false), this._ticks = new Mi(t3), this._disposers.push(new Ai(this._ticks)), this._disposers.push(this._ticks.template);
  14348. }
  14349. return this._ticks;
  14350. }, enumerable: true, configurable: true }), e3.prototype.createTick = function() {
  14351. return new ch();
  14352. }, Object.defineProperty(e3.prototype, "labels", { get: function() {
  14353. if (!this._labels) {
  14354. var t3 = this.createLabel();
  14355. this._labels = new Mi(t3), t3.applyOnClones = true, t3.events.on("enabled", this.invalidateAxisItems, this, false), this._disposers.push(new Ai(this._labels)), this._disposers.push(this._labels.template);
  14356. }
  14357. return this._labels;
  14358. }, enumerable: true, configurable: true }), e3.prototype.createLabel = function() {
  14359. return new uh();
  14360. }, Object.defineProperty(e3.prototype, "inside", { get: function() {
  14361. return this.getPropertyValue("inside");
  14362. }, set: function(t3) {
  14363. this.setPropertyValue("inside", t3) && this.axis && this.axis.invalidate(), t3 ? (this.width = 0, this.height = 0) : (this.width = void 0, this.height = void 0);
  14364. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "opposite", { get: function() {
  14365. return this.getPropertyValue("opposite");
  14366. }, set: function(t3) {
  14367. this.setPropertyValue("opposite", t3);
  14368. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fullWidthTooltip", { get: function() {
  14369. return this.getPropertyValue("fullWidthTooltip");
  14370. }, set: function(t3) {
  14371. this.setPropertyValue("fullWidthTooltip", t3);
  14372. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipLocation", { get: function() {
  14373. return this.getPropertyValue("tooltipLocation");
  14374. }, set: function(t3) {
  14375. this.setPropertyValue("tooltipLocation", t3);
  14376. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipLocation2", { get: function() {
  14377. return this.getPropertyValue("tooltipLocation2");
  14378. }, set: function(t3) {
  14379. this.setPropertyValue("tooltipLocation2", t3);
  14380. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cellStartLocation", { get: function() {
  14381. return this.getPropertyValue("cellStartLocation");
  14382. }, set: function(t3) {
  14383. this.setPropertyValue("cellStartLocation", t3) && this.axis && this.axis.invalidateSeries();
  14384. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cellEndLocation", { get: function() {
  14385. return this.getPropertyValue("cellEndLocation");
  14386. }, set: function(t3) {
  14387. this.setPropertyValue("cellEndLocation", t3) && this.axis && this.axis.invalidateSeries();
  14388. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inversed", { get: function() {
  14389. return this.getPropertyValue("inversed");
  14390. }, set: function(t3) {
  14391. this.setPropertyValue("inversed", t3);
  14392. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minLabelPosition", { get: function() {
  14393. return this.getPropertyValue("minLabelPosition");
  14394. }, set: function(t3) {
  14395. this.setPropertyValue("minLabelPosition", t3, true);
  14396. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxLabelPosition", { get: function() {
  14397. return this.getPropertyValue("maxLabelPosition");
  14398. }, set: function(t3) {
  14399. this.setPropertyValue("maxLabelPosition", t3, true);
  14400. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  14401. t2.prototype.copyFrom.call(this, e4), this.grid.template.copyFrom(e4.grid.template), this.ticks.template.copyFrom(e4.ticks.template), this.labels.template.copyFrom(e4.labels.template), this.axisFills.template.copyFrom(e4.axisFills.template), this.line.copyFrom(e4.line), this.baseGrid.copyFrom(e4.baseGrid);
  14402. }, e3.prototype.toAxisPosition = function(t3) {
  14403. return t3;
  14404. }, e3.prototype.setVisibility = function(e4) {
  14405. t2.prototype.setVisibility.call(this, e4), this.bulletsContainer.visible = e4;
  14406. }, e3;
  14407. }($a);
  14408. Ii.registeredClasses.AxisRenderer = fh;
  14409. var gh = function(t2) {
  14410. function e3() {
  14411. var e4 = t2.call(this) || this;
  14412. return e4.className = "AxisBullet", e4.location = 0.5, e4.isMeasured = false, e4.applyTheme(), e4;
  14413. }
  14414. return C(e3, t2), Object.defineProperty(e3.prototype, "location", { get: function() {
  14415. return this.getPropertyValue("location");
  14416. }, set: function(t3) {
  14417. this.setPropertyValue("location", t3, true);
  14418. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14419. var i3 = t2.prototype.setDisabled.call(this, e4);
  14420. return this.axis && this.axis.invalidateDataItems(), i3;
  14421. }, e3;
  14422. }($a);
  14423. Ii.registeredClasses.AxisBullet = gh;
  14424. var yh = function(t2) {
  14425. function e3() {
  14426. var e4 = t2.call(this) || this;
  14427. return e4.className = "AxisRendererY", e4.minGridDistance = 40, e4.opposite = false, e4.height = V(100), e4.labels.template.verticalCenter = "middle", e4.applyTheme(), e4;
  14428. }
  14429. return C(e3, t2), e3.prototype.setAxis = function(e4) {
  14430. t2.prototype.setAxis.call(this, e4), e4.layout = "horizontal";
  14431. }, e3.prototype.updateGridContainer = function() {
  14432. var t3 = this.axis;
  14433. if (t3) {
  14434. var e4 = this.gridContainer;
  14435. e4.y = t3.pixelY, e4.height = t3.axisLength;
  14436. }
  14437. }, e3.prototype.toAxisPosition = function(t3) {
  14438. var e4 = this.axis;
  14439. if (e4) {
  14440. var i3 = 1 - t3, n3 = e4.relativePositionSprite, r3 = e4.pixelY;
  14441. if (n3 ? r3 = dr({ x: 0, y: this.pixelY }, this.parent, n3).y : n3 = e4.parent, n3)
  14442. return 1 - (i3 - r3 / n3.innerHeight) / (e4.axisLength / n3.innerHeight);
  14443. }
  14444. return t3;
  14445. }, e3.prototype.processRenderer = function() {
  14446. t2.prototype.processRenderer.call(this);
  14447. var e4 = this.axis;
  14448. if (e4) {
  14449. var i3 = e4.title;
  14450. i3.valign = "middle", e4.height instanceof A || (e4.height = V(100)), this.opposite ? (i3.rotation = 90, this.line.toBack(), i3.toFront()) : (i3.rotation = -90, i3.toBack(), this.line.toFront());
  14451. }
  14452. }, e3.prototype.updateTooltip = function() {
  14453. if (this.axis) {
  14454. var t3 = 2e3, e4 = 0, i3 = t3, n3 = this.axisLength;
  14455. this.opposite ? this.inside && (e4 = -2e3, i3 = t3) : this.inside || (e4 = -2e3, i3 = t3), this.axis.updateTooltip("horizontal", { x: e4, y: 0, width: i3, height: n3 });
  14456. }
  14457. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  14458. var t3 = this.axis;
  14459. return t3.measuredHeight - t3.pixelPaddingTop - t3.pixelPaddingBottom || 0;
  14460. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  14461. return { x: 0, y: this.positionToCoordinate(t3) };
  14462. }, e3.prototype.pointToPosition = function(t3) {
  14463. return this.coordinateToPosition(t3.y, t3.x);
  14464. }, e3.prototype.coordinateToPosition = function(t3, e4) {
  14465. var i3 = this.axis, n3 = i3.axisFullLength;
  14466. return lt(i3.renderer.inversed ? 1 - i3.start - t3 / n3 : t3 / n3 + (1 - i3.end), 5);
  14467. }, e3.prototype.getPositionRangePath = function(t3, e4) {
  14468. var i3 = ut(this.positionToCoordinate(t3), 0, this.axisLength), n3 = ut(this.positionToCoordinate(e4), 0, this.axisLength), r3 = Math.abs(n3 - i3), s2 = this.getWidth();
  14469. return Vo({ x: 0, y: Math.min(i3, n3), width: s2, height: r3 }, true);
  14470. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  14471. e4 += (i3 - e4) * t3.location;
  14472. var n3 = this.positionToPoint(e4);
  14473. t3.path = wo({ x: 0, y: 0 }) + Co({ x: this.getWidth(), y: 0 }), this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  14474. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  14475. e4 += (i3 - e4) * t3.location;
  14476. var n3 = this.positionToPoint(e4), r3 = t3.length;
  14477. try {
  14478. this.axis.title.measuredWidth;
  14479. } catch (t4) {
  14480. }
  14481. n3.x = dr({ x: this.line.pixelX, y: 0 }, this.line.parent, this.gridContainer).x, this.opposite ? r3 *= t3.inside ? -1 : 1 : r3 *= t3.inside ? 1 : -1, t3.path = wo({ x: 0, y: 0 }) + Co({ x: r3, y: 0 }), this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  14482. }, e3.prototype.updateAxisLine = function() {
  14483. this.line.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: this.axisLength });
  14484. }, e3.prototype.updateBaseGridElement = function() {
  14485. t2.prototype.updateBaseGridElement.call(this);
  14486. var e4 = this.axis, i3 = this.getWidth(), n3 = this.axisLength, r3 = e4.basePoint.y, s2 = this.baseGrid;
  14487. if (r3 < -0.2 || r3 > n3 + 0.2)
  14488. s2.hide(0);
  14489. else {
  14490. var a2 = dr({ x: 0, y: 0 }, this.gridContainer, s2.parent).x;
  14491. s2.path = wo({ x: 0, y: 0 }) + Co({ x: i3, y: 0 }), s2.moveTo({ x: a2, y: r3 }), s2.show(0);
  14492. }
  14493. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  14494. Z(n3) || (n3 = t3.location), e4 += (i3 - e4) * n3, t3.isMeasured = !t3.inside;
  14495. var r3, s2 = this.positionToPoint(e4), a2 = 0, o3 = this.gridContainer.maxWidth;
  14496. this.opposite ? (t3.inside ? (r3 = "right", "left" == t3.align && (a2 = -o3, r3 = "left"), "center" == t3.align && (a2 = -o3 / 2, r3 = "middle")) : r3 = "left", s2.x = 0 + a2) : (t3.inside ? (r3 = "left", "right" == t3.align && (a2 = o3, r3 = "right"), "center" == t3.align && (a2 = o3 / 2, r3 = "middle")) : r3 = "right", s2.x = this.measuredWidth + a2), 0 == t3.rotation && (t3.horizontalCenter = r3), this.positionItem(t3, s2), this.toggleVisibility(t3, e4, this.minLabelPosition, this.maxLabelPosition);
  14497. }, e3.prototype.updateBreakElement = function(e4) {
  14498. t2.prototype.updateBreakElement.call(this, e4);
  14499. var i3 = e4.startLine, n3 = e4.endLine, r3 = e4.fillShape, s2 = e4.startPoint, a2 = e4.endPoint, o3 = e4.pixelMarginLeft, l2 = this.getWidth() - e4.pixelMarginLeft - e4.pixelMarginRight;
  14500. s2.y = ut(s2.y, -1, this.axisLength + 1), a2.y = ut(a2.y, -1, this.axisLength + 1), s2.y == a2.y && (s2.y < 0 || s2.y > this.axisLength) ? e4.fillShape.__disabled = true : e4.fillShape.__disabled = false;
  14501. var h2 = Math.abs(l2 - o3);
  14502. i3.x = o3, i3.height = 0, i3.width = h2, n3.x = o3, n3.height = 0, n3.width = h2, r3.width = h2, r3.height = Math.abs(a2.y - s2.y), r3.x = o3, r3.y = a2.y;
  14503. }, e3.prototype.createBreakSprites = function(t3) {
  14504. t3.startLine = new pl(), t3.endLine = new pl();
  14505. var e4 = new ul();
  14506. e4.setWavedSides(true, false, true, false), t3.fillShape = e4;
  14507. }, e3.prototype.positionToCoordinate = function(t3) {
  14508. var e4 = this.axis, i3 = e4.axisFullLength;
  14509. return e4.renderer.inversed ? (t3 - e4.start) * i3 : (e4.end - t3) * i3;
  14510. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  14511. var n3 = 0.5;
  14512. t3 instanceof gh && (n3 = t3.location), e4 += (i3 - e4) * n3;
  14513. var r3 = this.positionToPoint(e4);
  14514. r3.x = dr({ x: this.line.pixelX, y: 0 }, this.line.parent, this.gridContainer).x, this.positionItem(t3, r3), this.toggleVisibility(t3, e4, 0, 1);
  14515. }, e3;
  14516. }(fh);
  14517. Ii.registeredClasses.AxisRendererY = yh, lo.push({ relevant: ho.widthS, state: function(t2, e3) {
  14518. if (t2 instanceof yh) {
  14519. var i3 = t2.states.create(e3);
  14520. return i3.properties.inside = true, i3.properties.maxLabelPosition = 0.9, i3.properties.minLabelPosition = 0.1, i3;
  14521. }
  14522. return null;
  14523. } }), lo.push({ relevant: ho.widthXS, state: function(t2, e3) {
  14524. if (t2 instanceof yh) {
  14525. var i3 = t2.states.create(e3);
  14526. return i3.properties.disabled = true, i3;
  14527. }
  14528. return null;
  14529. } });
  14530. var mh = function(t2) {
  14531. function e3() {
  14532. var e4 = t2.call(this) || this;
  14533. return e4.className = "ValueAxisBreak", e4.applyTheme(), e4;
  14534. }
  14535. return C(e3, t2), Object.defineProperty(e3.prototype, "startPosition", { get: function() {
  14536. if (this.axis)
  14537. return this.axis.valueToPosition(this.adjustedStartValue);
  14538. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPosition", { get: function() {
  14539. if (this.axis)
  14540. return this.axis.valueToPosition(this.adjustedEndValue);
  14541. }, enumerable: true, configurable: true }), e3;
  14542. }(rh);
  14543. Ii.registeredClasses.ValueAxisBreak = mh;
  14544. var vh = function(t2) {
  14545. function e3() {
  14546. var e4 = t2.call(this) || this;
  14547. return e4.className = "ValueAxisDataItem", e4.values.value = {}, e4.values.endValue = {}, e4.applyTheme(), e4;
  14548. }
  14549. return C(e3, t2), Object.defineProperty(e3.prototype, "value", { get: function() {
  14550. return this.values.value.value;
  14551. }, set: function(t3) {
  14552. this.setValue("value", t3);
  14553. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endValue", { get: function() {
  14554. return this.values.endValue.value;
  14555. }, set: function(t3) {
  14556. this.setValue("endValue", t3);
  14557. }, enumerable: true, configurable: true }), e3;
  14558. }(ah), bh = function(t2) {
  14559. function e3() {
  14560. var e4 = t2.call(this) || this;
  14561. return e4._stepDecimalPlaces = 0, e4._prevStepDecimalPlaces = 0, e4._adjustLabelPrecision = true, e4._baseValue = 0, e4._adjustedStart = 0, e4._adjustedEnd = 1, e4._extremesChanged = false, e4._deltaMinMax = 1, e4._dsc = false, e4.calculateTotals = false, e4.className = "ValueAxis", e4.axisFieldName = "value", e4.setPropertyValue("maxZoomFactor", 1e3), e4.setPropertyValue("extraMin", 0), e4.setPropertyValue("extraMax", 0), e4.setPropertyValue("strictMinMax", false), e4.setPropertyValue("maxPrecision", Number.MAX_VALUE), e4.setPropertyValue("adjustLabelPrecision", true), e4.setPropertyValue("extraTooltipPrecision", 0), e4.keepSelection = false, e4.includeRangesInMinMax = false, e4.applyTheme(), e4;
  14562. }
  14563. return C(e3, t2), e3.prototype.fillRule = function(t3) {
  14564. var e4 = t3.value, i3 = t3.component;
  14565. t3.axisFill.disabled || (lt(e4 / i3.step / 2, 5) == Math.round(e4 / i3.step / 2) ? t3.axisFill.__disabled = true : t3.axisFill.__disabled = false);
  14566. }, e3.prototype.createDataItem = function() {
  14567. return new vh();
  14568. }, e3.prototype.createAxisBreak = function() {
  14569. return new mh();
  14570. }, e3.prototype.dataChangeUpdate = function() {
  14571. this.clearCache(), this.keepSelection ? (0 != this._start && this.dispatchImmediately("startchanged"), 1 != this._end && this.dispatchImmediately("endchanged"), 0 == this._start && 1 == this._end || this.dispatchImmediately("startendchanged")) : 0 == this._start && 1 == this._end || (this._start = 0, this._end = 1, this.dispatchImmediately("startendchanged")), this._maxZoomed = this._maxDefined, this._minZoomed = this._minDefined, this._maxAdjusted = this._maxDefined, this._minAdjusted = this._minDefined;
  14572. }, e3.prototype.processSeriesDataItems = function() {
  14573. if (this.calculateTotals) {
  14574. var t3 = this.series.getIndex(0), e4 = t3.startIndex;
  14575. if (t3.dataItems.length > 0) {
  14576. e4 > 0 && e4--;
  14577. var i3 = t3.endIndex;
  14578. i3 < t3.dataItems.length && i3++;
  14579. for (var n3 = function(t4) {
  14580. var e5 = {}, i4 = {};
  14581. r3.series.each(function(n4) {
  14582. if (!n4.excludeFromTotal) {
  14583. var r4 = n4.dataItems.getIndex(t4);
  14584. r4 && Ne(r4.values, function(t5) {
  14585. var n5 = r4.values[t5].workingValue;
  14586. tt(n5) && (tt(e5[t5]) ? e5[t5] += Math.abs(n5) : e5[t5] = Math.abs(n5), tt(i4[t5]) ? i4[t5] += n5 : i4[t5] = n5);
  14587. });
  14588. }
  14589. }), r3.series.each(function(n4) {
  14590. if (!n4.excludeFromTotal) {
  14591. var r4 = n4.dataItems.getIndex(t4);
  14592. r4 && Ne(r4.values, function(t5) {
  14593. var n5 = r4.values[t5].workingValue;
  14594. tt(n5) && (r4.setCalculatedValue(t5, e5[t5], "total"), r4.setCalculatedValue(t5, 100 * n5 / e5[t5], "totalPercent"), r4.setCalculatedValue(t5, i4[t5], "sum"));
  14595. });
  14596. }
  14597. });
  14598. }, r3 = this, s2 = e4; s2 < i3; ++s2)
  14599. n3(s2);
  14600. }
  14601. }
  14602. }, e3.prototype.validate = function() {
  14603. this.axisLength <= 0 || (t2.prototype.validate.call(this), this.getMinMax(), tt(this._minAdjusted) || this.dataItems.each(function(t3) {
  14604. t3.value = null;
  14605. }), this.fixAxisBreaks(), this.calculateZoom(), this.validateAxisElements(), this.validateAxisRanges(), this.validateBreaks(), this.hideUnusedDataItems(), this.renderer.invalidateLayout());
  14606. }, e3.prototype.calculateZoom = function() {
  14607. if (tt(this.min) && tt(this.max)) {
  14608. var t3 = this.positionToValue(this.start), e4 = this.positionToValue(this.end), i3 = this.adjustDifference(t3, e4), n3 = this.adjustMinMax(t3, e4, i3, this._gridCount, true), r3 = _r(n3.step);
  14609. this._stepDecimalPlaces = r3, t3 = lt(t3, r3), e4 = lt(e4, r3);
  14610. var s2 = (n3 = this.adjustMinMax(t3, e4, i3, this._gridCount, true)).step;
  14611. if (this.syncWithAxis) {
  14612. var a2 = this.getCache(t3 + "-" + e4);
  14613. tt(a2) && (s2 = a2);
  14614. } else
  14615. t3 = n3.min, e4 = n3.max;
  14616. (this._minZoomed != t3 || this._maxZoomed != e4 || this._step != s2 || this._dsc) && (this._dsc = false, this._minZoomed = t3, this._maxZoomed = e4, this._step = s2, this.dispatchImmediately("selectionextremeschanged"));
  14617. }
  14618. }, e3.prototype.fixSmallStep = function(t3) {
  14619. return 1 + t3 == 1 ? (t3 *= 2, this.fixSmallStep(t3)) : t3;
  14620. }, e3.prototype.validateAxisElements = function() {
  14621. var t3 = this;
  14622. if (tt(this.max) && tt(this.min)) {
  14623. var e4 = this.minZoomed - 2 * this._step;
  14624. this.logarithmic ? Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E > 1 ? e4 = Math.pow(10, Math.log(this.min) * Math.LOG10E) : 0 == (e4 = Math.floor(this.minZoomed / this._step) * this._step) && (e4 = this.minZoomed) : e4 = Math.floor(e4 / this._step) * this._step;
  14625. var i3 = this._maxZoomed + this._step;
  14626. this.resetIterators();
  14627. var n3 = this._dataItemsIterator;
  14628. if (0 == this._step)
  14629. return;
  14630. this._step = this.fixSmallStep(this._step);
  14631. var r3 = 0, s2 = this._prevStepDecimalPlaces != this._stepDecimalPlaces;
  14632. for (this._prevStepDecimalPlaces = this._stepDecimalPlaces; e4 <= i3; ) {
  14633. if (!this.isInBreak(e4)) {
  14634. var a2 = n3.find(function(t4) {
  14635. return t4.value === e4;
  14636. });
  14637. a2.__disabled && (a2.__disabled = false), this.appendDataItem(a2), a2.axisBreak = void 0, (a2.value != e4 || s2) && (a2.value = e4, a2.text = this.formatLabel(e4), a2.label && a2.label.invalid && a2.label.validate(), a2.value >= this.min && a2.value <= this.max && a2.label && ("Y" == this.axisLetter && a2.label.measuredWidth > this.ghostLabel.measuredWidth || "X" == this.axisLetter && a2.label.measuredHeight > this.ghostLabel.measuredHeight) && (this.ghostLabel.text = a2.label.currentText, this.ghostLabel.validate())), this.validateDataElement(a2);
  14638. }
  14639. r3++;
  14640. var o3 = e4;
  14641. this.logarithmic && Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E > 1 ? e4 = Math.pow(10, Math.log(this.min) * Math.LOG10E + r3) : e4 += this._step;
  14642. var l2 = Math.pow(10, Math.floor(Math.log(Math.abs(this._step)) * Math.LOG10E));
  14643. if (l2 < 1) {
  14644. var h2 = Math.round(Math.abs(Math.log(Math.abs(l2)) * Math.LOG10E)) + 2;
  14645. if (h2 = Math.min(13, h2), o3 == (e4 = lt(e4, h2))) {
  14646. e4 = i3;
  14647. break;
  14648. }
  14649. }
  14650. }
  14651. var p2 = this._axisBreaks;
  14652. if (p2) {
  14653. var u2 = this.renderer;
  14654. ti(p2.iterator(), function(e5) {
  14655. if (e5.breakSize > 0 && _t(e5.startPoint, e5.endPoint) > u2.minGridDistance)
  14656. for (var i4 = e5.adjustedMin; i4 <= e5.adjustedMax; ) {
  14657. if (i4 >= e5.adjustedStartValue && i4 <= e5.adjustedEndValue) {
  14658. var r4 = n3.find(function(t4) {
  14659. return t4.value === i4;
  14660. });
  14661. r4.__disabled && (r4.__disabled = false), t3.appendDataItem(r4), r4.axisBreak = e5, r4.value != i4 && (r4.value = i4, r4.text = t3.formatLabel(i4), r4.label && r4.label.invalid && r4.label.validate()), t3.validateDataElement(r4);
  14662. }
  14663. i4 += e5.adjustedStep;
  14664. }
  14665. });
  14666. }
  14667. }
  14668. }, e3.prototype.validateDataElement = function(e4) {
  14669. t2.prototype.validateDataElement.call(this, e4), e4.itemIndex = this._axisItemCount, this._axisItemCount++;
  14670. var i3 = this.renderer, n3 = e4.value, r3 = e4.endValue, s2 = this.valueToPosition(n3);
  14671. e4.position = s2;
  14672. var a2 = s2, o3 = this.valueToPosition(n3 + this._step);
  14673. tt(r3) && (o3 = a2 = this.valueToPosition(r3)), e4.point = i3.positionToPoint(s2);
  14674. var l2 = e4.tick;
  14675. l2 && !l2.disabled && i3.updateTickElement(l2, s2, a2);
  14676. var h2 = e4.grid;
  14677. h2 && !h2.disabled && i3.updateGridElement(h2, s2, a2);
  14678. var p2 = e4.label;
  14679. p2 && !p2.disabled && i3.updateLabelElement(p2, s2, a2);
  14680. var u2 = e4.axisFill;
  14681. u2 && !u2.disabled && (i3.updateFillElement(u2, s2, o3), e4.isRange || this.fillRule(e4)), e4.bullet && i3.updateBullet(e4.bullet, s2, a2);
  14682. var d2 = e4.mask;
  14683. d2 && i3.updateFillElement(d2, s2, o3);
  14684. }, e3.prototype.formatLabel = function(t3) {
  14685. return this.adjustLabelPrecision && 0 != t3 ? this.numberFormatter.format(t3, void 0, this._stepDecimalPlaces) : this.numberFormatter.format(t3);
  14686. }, Object.defineProperty(e3.prototype, "basePoint", { get: function() {
  14687. var t3 = this.baseValue, e4 = this.valueToPosition(t3);
  14688. return this.renderer.positionToPoint(e4);
  14689. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "baseValue", { get: function() {
  14690. var t3 = this._baseValue;
  14691. return this.logarithmic && (t3 = this.min), this._adapterO ? this._adapterO.apply("baseValue", t3) : t3;
  14692. }, set: function(t3) {
  14693. this._baseValue = t3, this.invalidateLayout(), this.invalidateSeries();
  14694. }, enumerable: true, configurable: true }), e3.prototype.anyToPosition = function(t3) {
  14695. return this.valueToPosition(t3);
  14696. }, e3.prototype.valueToPoint = function(t3) {
  14697. var e4 = this.valueToPosition(t3), i3 = this.renderer.positionToPoint(e4), n3 = this.renderer.positionToAngle(e4);
  14698. return { x: i3.x, y: i3.y, angle: n3 };
  14699. }, e3.prototype.anyToPoint = function(t3) {
  14700. return this.valueToPoint(t3);
  14701. }, e3.prototype.valueToPosition = function(t3) {
  14702. if (tt(t3)) {
  14703. var e4 = this.min, i3 = this.max;
  14704. if (tt(e4) && tt(i3)) {
  14705. var n3 = this._difference, r3 = this._axisBreaks;
  14706. r3 && r3.length > 0 && Qe(r3.iterator(), function(n4) {
  14707. var r4 = n4.adjustedStartValue, s3 = n4.adjustedEndValue;
  14708. if (tt(r4) && tt(s3)) {
  14709. if (t3 < r4)
  14710. return false;
  14711. if (vt({ start: r4, end: s3 }, { start: e4, end: i3 })) {
  14712. r4 = Math.max(r4, e4), s3 = Math.min(s3, i3);
  14713. var a3 = n4.breakSize;
  14714. t3 > s3 ? e4 += (s3 - r4) * (1 - a3) : t3 < r4 || (t3 = r4 + (t3 - r4) * a3);
  14715. }
  14716. }
  14717. return true;
  14718. });
  14719. var s2 = void 0;
  14720. if (this.logarithmic) {
  14721. var a2 = this.treatZeroAs;
  14722. tt(a2) && t3 <= a2 && (t3 = a2), s2 = (Math.log(t3) * Math.LOG10E - Math.log(this.min) * Math.LOG10E) / (Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E);
  14723. } else
  14724. s2 = (t3 - e4) / n3;
  14725. return s2;
  14726. }
  14727. }
  14728. return 0;
  14729. }, e3.prototype.invalidateLabels = function() {
  14730. t2.prototype.invalidateLabels.call(this), this.dataItems && (this.dataItems.each(function(t3) {
  14731. t3.value = void 0;
  14732. }), this.invalidate());
  14733. }, e3.prototype.positionToValue = function(t3) {
  14734. var e4 = this.min, i3 = this.max;
  14735. if (tt(e4) && tt(i3)) {
  14736. var n3 = i3 - e4, r3 = null, s2 = this._axisBreaks;
  14737. return s2 && s2.length > 0 && Qe(s2.iterator(), function(s3) {
  14738. var a2 = s3.startPosition, o3 = s3.endPosition, l2 = s3.adjustedStartValue, h2 = s3.adjustedEndValue;
  14739. if (tt(l2) && tt(h2)) {
  14740. if (l2 > i3)
  14741. return false;
  14742. if (vt({ start: l2, end: h2 }, { start: e4, end: i3 })) {
  14743. l2 = gt(l2, e4), h2 = yt(h2, i3);
  14744. var p2 = s3.breakSize;
  14745. if (n3 -= (h2 - l2) * (1 - p2), t3 > o3)
  14746. e4 += (h2 - l2) * (1 - p2);
  14747. else if (!(t3 < a2))
  14748. return r3 = l2 + (t3 - a2) / (o3 - a2) * (h2 - l2), false;
  14749. }
  14750. return true;
  14751. }
  14752. }), tt(r3) || (r3 = this.logarithmic ? Math.pow(Math.E, (t3 * (Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E) + Math.log(this.min) * Math.LOG10E) / Math.LOG10E) : t3 * n3 + e4), r3;
  14753. }
  14754. }, e3.prototype.xToValue = function(t3) {
  14755. return this.positionToValue(this.pointToPosition({ x: t3, y: 0 }));
  14756. }, e3.prototype.yToValue = function(t3) {
  14757. return this.positionToValue(this.pointToPosition({ x: 0, y: t3 }));
  14758. }, e3.prototype.pointToPosition = function(t3) {
  14759. return this.renderer instanceof yh ? 1 - this.renderer.pointToPosition(t3) : this.renderer.pointToPosition(t3);
  14760. }, e3.prototype.animateMinMax = function(t3, e4) {
  14761. return this.animate([{ property: "_minAdjusted", from: this._minAdjusted, to: t3 }, { property: "_maxAdjusted", from: this._maxAdjusted, to: e4 }], this.rangeChangeDuration, this.rangeChangeEasing);
  14762. }, e3.prototype.getMinMax = function() {
  14763. var t3 = this;
  14764. this.updateGridCount();
  14765. var e4 = Number.POSITIVE_INFINITY, i3 = Number.NEGATIVE_INFINITY;
  14766. if (tt(this._minDefined) && tt(this._maxDefined) || (this.series.each(function(n4) {
  14767. if (!n4.ignoreMinMax) {
  14768. var r4 = n4.min(t3);
  14769. tt(r4) && r4 < e4 && (e4 = r4);
  14770. var s3 = n4.max(t3);
  14771. tt(s3) && s3 > i3 && (i3 = s3);
  14772. }
  14773. }), this.includeRangesInMinMax && this.axisRanges.each(function(t4) {
  14774. if (!t4.ignoreMinMax) {
  14775. var n4 = yt(t4.value, t4.endValue), r4 = gt(t4.value, t4.endValue);
  14776. (n4 < e4 || !tt(e4)) && (e4 = n4), (r4 > i3 || !tt(i3)) && (i3 = r4);
  14777. }
  14778. })), this.logarithmic) {
  14779. var n3 = this.treatZeroAs;
  14780. tt(n3) && e4 <= 0 && (e4 = n3), e4 <= 0 && this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."), true);
  14781. }
  14782. if (0 == e4 && 0 == i3 && (i3 = 0.9, e4 = -0.9), tt(this._minDefined) && (e4 = this._minDefined), tt(this._maxDefined) && (i3 = this._maxDefined), this._adapterO && (e4 = this._adapterO.apply("min", e4)), this._adapterO && (i3 = this._adapterO.apply("max", i3)), tt(e4) && tt(i3)) {
  14783. this._minReal = e4, this._maxReal = i3, e4 == Number.POSITIVE_INFINITY && (e4 = void 0), i3 == Number.NEGATIVE_INFINITY && (i3 = void 0);
  14784. var r3 = this.adjustDifference(e4, i3);
  14785. if (e4 = this.fixMin(e4), (i3 = this.fixMax(i3)) - e4 <= 1 / Math.pow(10, 15)) {
  14786. if (i3 - e4 != 0)
  14787. this._deltaMinMax = (i3 - e4) / 2;
  14788. else {
  14789. var s2 = Math.log(Math.abs(i3)) * Math.LOG10E, a2 = Math.pow(10, Math.floor(s2));
  14790. a2 /= 10, this._deltaMinMax = a2;
  14791. }
  14792. e4 -= this._deltaMinMax, i3 += this._deltaMinMax;
  14793. }
  14794. e4 -= (i3 - e4) * this.extraMin, i3 += (i3 - e4) * this.extraMax;
  14795. var o3 = this.strictMinMax;
  14796. tt(this._maxDefined) && (o3 = true);
  14797. var l2 = this.adjustMinMax(e4, i3, r3, this._gridCount, o3);
  14798. if (e4 = l2.min, r3 = (i3 = l2.max) - e4, l2 = this.adjustMinMax(e4, i3, i3 - e4, this._gridCount, true), e4 = l2.min, i3 = l2.max, this.strictMinMax && (e4 = tt(this._minDefined) ? this._minDefined : this._minReal, (i3 = tt(this._maxDefined) ? this._maxDefined : this._maxReal) - e4 <= 1e-8 && (e4 -= this._deltaMinMax, i3 += this._deltaMinMax), e4 -= (i3 - e4) * this.extraMin, i3 += (i3 - e4) * this.extraMax), this._adapterO && (e4 = this._adapterO.apply("min", e4)), this._adapterO && (i3 = this._adapterO.apply("max", i3)), this._step = l2.step, tt(e4) || tt(i3) || (this.start = 0, this.end = 1, this.renderer.labels.each(function(t4) {
  14799. t4.dataItem.text = "";
  14800. })), (this._minAdjusted != e4 || this._maxAdjusted != i3) && tt(e4) && tt(i3)) {
  14801. var h2 = this._minMaxAnimation;
  14802. if (this._extremesChanged && tt(this._minAdjusted) && tt(this._maxAdjusted) && this.inited) {
  14803. if (h2 && !h2.isFinished() && this._finalMax == i3 && this._finalMin == e4)
  14804. return;
  14805. this._finalMin = e4, this._finalMax = i3, (h2 = this.animateMinMax(e4, i3)) && !h2.isFinished() ? (h2.events.on("animationprogress", this.validateDataItems, this), h2.events.on("animationended", function() {
  14806. t3.series.each(function(t4) {
  14807. t4.validate();
  14808. }), t3.validateDataItems(), t3.handleSelectionExtremesChange();
  14809. }), this._minMaxAnimation = h2) : this.series.each(function(t4) {
  14810. t4.invalidate();
  14811. }), this.validateDataItems(), this.dispatchImmediately("extremeschanged"), this.handleSelectionExtremesChange();
  14812. } else {
  14813. if (h2 && !h2.isFinished() && this._finalMax == i3 && this._finalMin == e4)
  14814. return;
  14815. this._minAdjusted = e4, this._maxAdjusted = i3, this._finalMin = e4, this._finalMax = i3, this.invalidateDataItems(), this.dispatchImmediately("extremeschanged");
  14816. }
  14817. }
  14818. this._extremesChanged = false, this._difference = this.adjustDifference(e4, i3);
  14819. }
  14820. }, e3.prototype.fixMin = function(t3) {
  14821. return t3;
  14822. }, e3.prototype.fixMax = function(t3) {
  14823. return t3;
  14824. }, e3.prototype.adjustMinMax = function(t3, e4, i3, n3, r3) {
  14825. n3 <= 1 && (n3 = 1), n3 = Math.round(n3);
  14826. var s2 = t3, a2 = e4;
  14827. 0 === i3 && (i3 = Math.abs(e4));
  14828. var o3 = Math.log(Math.abs(i3)) * Math.LOG10E, l2 = Math.pow(10, Math.floor(o3)), h2 = l2 /= 10;
  14829. r3 && (h2 = 0), this.logarithmic ? (t3 <= 0 && (t3 = this.baseValue), t3 == 1 / 0 && (t3 = 1), e4 == -1 / 0 && (e4 = 10), this.strictMinMax ? (this._minDefined > 0 && (t3 = this._minDefined), this._maxDefined) : (t3 = Math.pow(10, Math.floor(Math.log(Math.abs(t3)) * Math.LOG10E)), e4 = Math.pow(10, Math.ceil(Math.log(Math.abs(e4)) * Math.LOG10E)))) : (r3 ? (t3 = Math.floor(t3 / l2) * l2, e4 = Math.ceil(e4 / l2) * l2) : (t3 = Math.ceil(t3 / l2) * l2 - h2, e4 = Math.floor(e4 / l2) * l2 + h2), t3 < 0 && s2 >= 0 && (t3 = 0), e4 > 0 && a2 <= 0 && (e4 = 0)), o3 = Math.log(Math.abs(i3)) * Math.LOG10E, l2 = Math.pow(10, Math.floor(o3)), l2 /= 10;
  14830. var p2 = Math.ceil(i3 / n3 / l2) * l2, u2 = Math.pow(10, Math.floor(Math.log(Math.abs(p2)) * Math.LOG10E)), d2 = Math.ceil(p2 / u2);
  14831. d2 > 5 ? d2 = 10 : d2 <= 5 && d2 > 2 && (d2 = 5), p2 = Math.ceil(p2 / (u2 * d2)) * u2 * d2, this.maxPrecision < Number.MAX_VALUE && p2 != ht(p2, this.maxPrecision) && (p2 = ht(p2, this.maxPrecision));
  14832. var c2 = 0;
  14833. if (u2 < 1 && (p2 = lt(p2, c2 = Math.round(Math.abs(Math.log(Math.abs(u2)) * Math.LOG10E)) + 1)), !this.logarithmic) {
  14834. var f2 = Math.floor(t3 / p2);
  14835. t3 = lt(p2 * f2, c2);
  14836. var g2 = void 0;
  14837. (g2 = r3 ? Math.floor(e4 / p2) : Math.ceil(e4 / p2)) == f2 && g2++, (e4 = lt(p2 * g2, c2)) < a2 && (e4 += p2), t3 > s2 && (t3 -= p2);
  14838. }
  14839. return { min: t3, max: e4, step: p2 };
  14840. }, Object.defineProperty(e3.prototype, "min", { get: function() {
  14841. var t3 = this._minAdjusted;
  14842. return tt(t3) || (t3 = this._minDefined), t3;
  14843. }, set: function(t3) {
  14844. this._minDefined != t3 && (this._minDefined = t3, this.invalidate());
  14845. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minDefined", { get: function() {
  14846. return this._minDefined;
  14847. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxDefined", { get: function() {
  14848. return this._maxDefined;
  14849. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "extraMin", { get: function() {
  14850. return this.getPropertyValue("extraMin");
  14851. }, set: function(t3) {
  14852. this.setPropertyValue("extraMin", t3) && this.invalidateDataItems();
  14853. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "extraMax", { get: function() {
  14854. return this.getPropertyValue("extraMax");
  14855. }, set: function(t3) {
  14856. this.setPropertyValue("extraMax", t3) && this.invalidateDataItems();
  14857. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "step", { get: function() {
  14858. return this._step;
  14859. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "max", { get: function() {
  14860. var t3 = this._maxAdjusted;
  14861. return tt(t3) || (t3 = this._maxDefined), t3;
  14862. }, set: function(t3) {
  14863. this._maxDefined != t3 && (this._maxDefined = t3, this.invalidate());
  14864. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "adjustLabelPrecision", { get: function() {
  14865. return this.getPropertyValue("adjustLabelPrecision");
  14866. }, set: function(t3) {
  14867. this.setPropertyValue("adjustLabelPrecision", t3) && this.invalidate();
  14868. }, enumerable: true, configurable: true }), e3.prototype.registerSeries = function(e4) {
  14869. return new me([t2.prototype.registerSeries.call(this, e4), e4.events.on("extremeschanged", this.handleExtremesChange, this, false), e4.events.on("selectionextremeschanged", this.handleSelectionExtremesChange, this, false), this.events.on("extremeschanged", e4.invalidate, e4, false)]);
  14870. }, e3.prototype.handleSelectionExtremesChange = function() {
  14871. var t3, e4, i3 = this, n3 = true;
  14872. if (ti(this.series.iterator(), function(r4) {
  14873. if (!r4.ignoreMinMax && !r4.isHidden && !r4.outOfRange) {
  14874. r4.visible && !r4.isHiding && (n3 = false);
  14875. var s3 = r4.selectionMin(i3), a3 = r4.selectionMax(i3);
  14876. tt(s3) && (!tt(t3) || s3 < t3) && (t3 = s3), tt(a3) && (!tt(e4) || a3 > e4) && (e4 = a3);
  14877. }
  14878. }), this.includeRangesInMinMax && this.axisRanges.each(function(i4) {
  14879. if (!i4.ignoreMinMax) {
  14880. var n4 = yt(i4.value, i4.endValue), r4 = gt(i4.value, i4.endValue);
  14881. n4 < t3 && (t3 = n4), r4 > e4 && (e4 = r4);
  14882. }
  14883. }), tt(this._minDefined) ? t3 = this.strictMinMax ? this._minDefined : this.min : this.strictMinMax && (t3 = this._minReal), tt(this._maxDefined) ? e4 = this.strictMinMax ? this._maxDefined : this.max : this.strictMinMax && (e4 = this._maxReal), t3 == e4) {
  14884. t3 -= this._deltaMinMax, e4 += this._deltaMinMax;
  14885. var r3 = this.adjustMinMax(t3, e4, 0, this._gridCount, this.strictMinMax);
  14886. t3 = r3.min, e4 = r3.max;
  14887. }
  14888. var s2 = this.adjustDifference(t3, e4), a2 = this.adjustMinMax(t3, e4, s2, this._gridCount);
  14889. t3 = a2.min, e4 = a2.max, t3 -= (e4 - t3) * this.extraMin, e4 += (e4 - t3) * this.extraMax, t3 = ut(t3, this.min, this.max), e4 = ut(e4, this.min, this.max), s2 = this.adjustDifference(t3, e4), a2 = this.adjustMinMax(t3, e4, s2, this._gridCount, true), t3 = a2.min, e4 = a2.max, this.strictMinMax && (t3 = gt(t3, this._minDefined), e4 = yt(e4, this._maxDefined));
  14890. var o3 = a2.step;
  14891. this.syncWithAxis && (a2 = this.syncAxes(t3, e4, o3), t3 = a2.min, e4 = a2.max, this.invalidate()), o3 = a2.step, this._difference = this.adjustDifference(this.min, this.max);
  14892. var l2 = this.valueToPosition(t3), h2 = this.valueToPosition(e4);
  14893. n3 && !this.syncWithAxis && (l2 = 0, h2 = 1);
  14894. var p2 = 0;
  14895. this.syncWithAxis ? (p2 = 5, this.setCache(t3 + "-" + e4, o3)) : (this._step == o3 && this._minZoomed == t3 && this._maxZoomed == e4 || (this._dsc = true), this._step = o3, this._minZoomed = t3, this._maxZoomed = e4), this.keepSelection || this.zoom({ start: l2, end: h2 }, false, false, p2);
  14896. }, Object.defineProperty(e3.prototype, "strictMinMax", { get: function() {
  14897. return this.getPropertyValue("strictMinMax");
  14898. }, set: function(t3) {
  14899. this.setPropertyValue("strictMinMax", t3) && this.invalidate();
  14900. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "logarithmic", { get: function() {
  14901. return this.getPropertyValue("logarithmic");
  14902. }, set: function(t3) {
  14903. this.setPropertyValue("logarithmic", t3) && (this.invalidate(), this.series.each(function(t4) {
  14904. t4.invalidateDataItems();
  14905. }));
  14906. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keepSelection", { get: function() {
  14907. return this.getPropertyValue("keepSelection");
  14908. }, set: function(t3) {
  14909. this.setPropertyValue("keepSelection", t3);
  14910. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "includeRangesInMinMax", { get: function() {
  14911. return this.getPropertyValue("includeRangesInMinMax");
  14912. }, set: function(t3) {
  14913. this.setPropertyValue("includeRangesInMinMax", t3);
  14914. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxPrecision", { get: function() {
  14915. return this.getPropertyValue("maxPrecision");
  14916. }, set: function(t3) {
  14917. this.setPropertyValue("maxPrecision", t3) && this.invalidate();
  14918. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "extraTooltipPrecision", { get: function() {
  14919. return this.getPropertyValue("extraTooltipPrecision");
  14920. }, set: function(t3) {
  14921. this.setPropertyValue("extraTooltipPrecision", t3) && this.invalidate();
  14922. }, enumerable: true, configurable: true }), e3.prototype.handleExtremesChange = function() {
  14923. var t3 = this;
  14924. this._extremesChanged = true, this.getMinMax(), this.ghostLabel && this.dataItems.each(function(e4) {
  14925. e4.label && e4.label.pixelWidth > 0 && (t3.ghostLabel.text = e4.label.currentText);
  14926. });
  14927. }, e3.prototype.getX = function(t3, e4, i3, n3, r3) {
  14928. return this.renderer.positionToPoint(this.getPositionX(t3, e4, i3, n3, r3)).x;
  14929. }, e3.prototype.getPositionX = function(t3, e4, i3, n3, r3) {
  14930. var s2 = t3.getWorkingValue(e4);
  14931. Z(n3) || (n3 = "valueX");
  14932. var a2 = t3.getValue(n3, "stack");
  14933. tt(s2) || (s2 = this.baseValue, this.logarithmic && a2 > 0 && (s2 = 0));
  14934. var o3 = this.valueToPosition(s2 + a2);
  14935. return r3 && (o3 = ut(o3, r3.start, r3.end)), o3;
  14936. }, e3.prototype.getY = function(t3, e4, i3, n3, r3) {
  14937. return this.renderer.positionToPoint(this.getPositionY(t3, e4, i3, n3, r3)).y;
  14938. }, e3.prototype.getPositionY = function(t3, e4, i3, n3, r3) {
  14939. var s2 = t3.getWorkingValue(e4);
  14940. Z(n3) || (n3 = "valueY");
  14941. var a2 = t3.getValue(n3, "stack");
  14942. tt(s2) || (s2 = this.baseValue, this.logarithmic && a2 > 0 && (s2 = 0));
  14943. var o3 = this.valueToPosition(s2 + a2);
  14944. return r3 && (o3 = ut(o3, r3.start, r3.end)), o3;
  14945. }, e3.prototype.getAngle = function(t3, e4, i3, n3, r3) {
  14946. var s2 = t3.getWorkingValue(e4), a2 = t3.getValue(n3, "stack");
  14947. tt(s2) || (s2 = this.baseValue);
  14948. var o3 = this.valueToPosition(s2 + a2);
  14949. return r3 && (o3 = ut(o3, r3.start, r3.end)), this.positionToAngle(o3);
  14950. }, e3.prototype.getAnyRangePath = function(t3, e4, i3) {
  14951. var n3 = this.valueToPosition(t3), r3 = this.valueToPosition(e4);
  14952. return this.getPositionRangePath(n3, r3);
  14953. }, e3.prototype.getTooltipText = function(t3) {
  14954. var e4 = lt(this.positionToValue(t3), this._stepDecimalPlaces + this.extraTooltipPrecision), i3 = this.tooltip.numberFormatter.format(e4);
  14955. return this._adapterO ? this._adapterO.apply("getTooltipText", i3) : i3;
  14956. }, e3.prototype.zoomToValues = function(t3, e4, i3, n3) {
  14957. var r3 = (t3 - this.min) / (this.max - this.min), s2 = (e4 - this.min) / (this.max - this.min);
  14958. this.zoom({ start: r3, end: s2 }, i3, n3);
  14959. }, Object.defineProperty(e3.prototype, "minZoomed", { get: function() {
  14960. return this.syncWithAxis ? this._minZoomed : gt(this.min, this._minZoomed);
  14961. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxZoomed", { get: function() {
  14962. return this.syncWithAxis ? this._maxZoomed : yt(this.max, this._maxZoomed);
  14963. }, enumerable: true, configurable: true }), e3.prototype.fixAxisBreaks = function() {
  14964. var e4 = this;
  14965. t2.prototype.fixAxisBreaks.call(this);
  14966. var i3 = this._axisBreaks;
  14967. i3 && i3.length > 0 && i3.each(function(t3) {
  14968. var i4 = t3.adjustedStartValue, n3 = t3.adjustedEndValue, r3 = n3 - i4, s2 = Math.ceil(r3 * t3.breakSize) * e4._gridCount / (e4.max - e4.min), a2 = e4.adjustMinMax(i4, n3, r3, s2, true);
  14969. t3.adjustedStep = a2.step, t3.adjustedMin = a2.min, t3.adjustedMax = a2.max;
  14970. }), this._difference = this.adjustDifference(this.min, this.max);
  14971. }, e3.prototype.getPositionLabel = function(t3) {
  14972. var e4 = this.positionToValue(t3);
  14973. return this.numberFormatter.format(e4);
  14974. }, e3.prototype.showTooltipAt = function(t3) {
  14975. this.showTooltipAtPosition(this.valueToPosition(t3));
  14976. }, e3.prototype.copyFrom = function(e4) {
  14977. t2.prototype.copyFrom.call(this, e4), this.min = e4.min, this.max = e4.max, this.calculateTotals = e4.calculateTotals, this._baseValue = e4.baseValue;
  14978. }, Object.defineProperty(e3.prototype, "syncWithAxis", { get: function() {
  14979. return this.getPropertyValue("syncWithAxis");
  14980. }, set: function(t3) {
  14981. var e4 = this;
  14982. this.setPropertyValue("syncWithAxis", t3, true) && t3 && (this._disposers.push(t3.events.on("extremeschanged", this.handleSelectionExtremesChange, this, false)), this._disposers.push(t3.events.on("selectionextremeschanged", this.handleSelectionExtremesChange, this, false)), this._disposers.push(t3.events.on("startendchanged", this.handleSelectionExtremesChange, this, false)), this.events.on("shown", this.handleSelectionExtremesChange, this, false), this.events.on("maxsizechanged", function() {
  14983. e4.clearCache(), e4._disposers.push(Ii.events.once("exitframe", function() {
  14984. e4.handleSelectionExtremesChange();
  14985. }));
  14986. }, this, false));
  14987. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "treatZeroAs", { get: function() {
  14988. return this.getPropertyValue("treatZeroAs");
  14989. }, set: function(t3) {
  14990. this.setPropertyValue("treatZeroAs", t3, true);
  14991. }, enumerable: true, configurable: true }), e3.prototype.syncAxes = function(t3, e4, i3) {
  14992. var n3 = this.syncWithAxis;
  14993. if (n3) {
  14994. tt(t3) || (t3 = this.min), tt(e4) || (e4 = this.max), tt(i3) || (i3 = this._step);
  14995. var r3 = Math.round((n3.maxZoomed - n3.minZoomed) / n3.step), s2 = Math.round((e4 - t3) / i3);
  14996. if (tt(r3) && tt(s2))
  14997. for (var a2 = false, o3 = 0, l2 = 0.01 * (e4 - t3), h2 = t3, p2 = e4, u2 = i3; 1 != a2; )
  14998. if (a2 = this.checkSync(h2, p2, u2, r3), ++o3 > 1e3 && (a2 = true), a2)
  14999. t3 = h2, e4 = p2, i3 = u2;
  15000. else {
  15001. o3 / 3 == Math.round(o3 / 3) ? (h2 = t3 - l2 * o3, t3 >= 0 && h2 < 0 && (h2 = 0)) : (p2 = e4 + l2 * o3) <= 0 && p2 > 0 && (p2 = 0);
  15002. var d2 = this.adjustMinMax(h2, p2, p2 - h2, this._gridCount, true);
  15003. h2 = d2.min, p2 = d2.max, u2 = d2.step;
  15004. }
  15005. }
  15006. return { min: t3, max: e4, step: i3 };
  15007. }, e3.prototype.checkSync = function(t3, e4, i3, n3) {
  15008. for (var r3 = (e4 - t3) / i3, s2 = 1; s2 < n3; s2++)
  15009. if (lt(r3 / s2, 1) == n3 || r3 * s2 == n3)
  15010. return true;
  15011. return false;
  15012. }, e3.prototype.processConfig = function(e4) {
  15013. e4 && Z(e4.syncWithAxis) && Q(e4.syncWithAxis) && (this.map.hasKey(e4.syncWithAxis) ? e4.syncWithAxis = this.map.getKey(e4.syncWithAxis) : (this.processingErrors.push('[ValueAxis] No axis with id "' + e4.syncWithAxis + '" found for `syncWithAxis`'), delete e4.xAxis)), t2.prototype.processConfig.call(this, e4);
  15014. }, e3;
  15015. }(oh);
  15016. Ii.registeredClasses.ValueAxis = bh, Ii.registeredClasses.ValueAxisDataItem = vh;
  15017. var xh = function(t2) {
  15018. function e3() {
  15019. var e4 = t2.call(this) || this;
  15020. return e4.className = "DateAxisBreak", e4.applyTheme(), e4;
  15021. }
  15022. return C(e3, t2), Object.defineProperty(e3.prototype, "startDate", { get: function() {
  15023. return this.getPropertyValue("startDate");
  15024. }, set: function(t3) {
  15025. this.setPropertyValue("startDate", t3) && (this.startValue = t3.getTime(), this.axis && (this.axis.invalidate(), this.axis.invalidateSeries()));
  15026. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endDate", { get: function() {
  15027. return this.getPropertyValue("endDate");
  15028. }, set: function(t3) {
  15029. this.setPropertyValue("endDate", t3) && (this.endValue = t3.getTime(), this.axis && (this.axis.invalidate(), this.axis.invalidateSeries()));
  15030. }, enumerable: true, configurable: true }), e3;
  15031. }(mh);
  15032. Ii.registeredClasses.DateAxisBreak = xh;
  15033. var _h = function(t2) {
  15034. function e3() {
  15035. var e4 = t2.call(this) || this;
  15036. return e4.className = "DateAxisDataItem", e4.applyTheme(), e4.values.date = {}, e4.values.endDate = {}, e4;
  15037. }
  15038. return C(e3, t2), Object.defineProperty(e3.prototype, "date", { get: function() {
  15039. return this.dates.date;
  15040. }, set: function(t3) {
  15041. this.setDate("date", t3), this.value = t3.getTime();
  15042. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endDate", { get: function() {
  15043. return this.dates.endDate;
  15044. }, set: function(t3) {
  15045. this.setDate("endDate", t3), this.endValue = t3.getTime();
  15046. }, enumerable: true, configurable: true }), e3;
  15047. }(vh), Ph = function(t2) {
  15048. function e3() {
  15049. var e4 = t2.call(this) || this;
  15050. return e4._gapBreaks = false, e4.gridIntervals = new Fi(), e4.groupIntervals = new Fi(), e4.dateFormats = new Pi(), e4.periodChangeDateFormats = new Pi(), e4._baseIntervalReal = { timeUnit: "day", count: 1 }, e4._prevSeriesTime = {}, e4._minDifference = {}, e4._firstWeekDay = 1, e4.groupMin = {}, e4.groupMax = {}, e4.className = "DateAxis", e4.setPropertyValue("markUnitChange", true), e4.snapTooltip = true, e4.tooltipPosition = "pointer", e4.setPropertyValue("groupData", false), e4.groupCount = 200, e4.events.on("parentset", e4.getDFFormatter, e4, false), e4.gridIntervals.pushAll([{ timeUnit: "millisecond", count: 1 }, { timeUnit: "millisecond", count: 5 }, { timeUnit: "millisecond", count: 10 }, { timeUnit: "millisecond", count: 50 }, { timeUnit: "millisecond", count: 100 }, { timeUnit: "millisecond", count: 500 }, { timeUnit: "second", count: 1 }, { timeUnit: "second", count: 5 }, { timeUnit: "second", count: 10 }, { timeUnit: "second", count: 30 }, { timeUnit: "minute", count: 1 }, { timeUnit: "minute", count: 5 }, { timeUnit: "minute", count: 10 }, { timeUnit: "minute", count: 15 }, { timeUnit: "minute", count: 30 }, { timeUnit: "hour", count: 1 }, { timeUnit: "hour", count: 3 }, { timeUnit: "hour", count: 6 }, { timeUnit: "hour", count: 12 }, { timeUnit: "day", count: 1 }, { timeUnit: "day", count: 2 }, { timeUnit: "day", count: 3 }, { timeUnit: "day", count: 4 }, { timeUnit: "day", count: 5 }, { timeUnit: "week", count: 1 }, { timeUnit: "month", count: 1 }, { timeUnit: "month", count: 2 }, { timeUnit: "month", count: 3 }, { timeUnit: "month", count: 6 }, { timeUnit: "year", count: 1 }, { timeUnit: "year", count: 2 }, { timeUnit: "year", count: 5 }, { timeUnit: "year", count: 10 }, { timeUnit: "year", count: 50 }, { timeUnit: "year", count: 100 }, { timeUnit: "year", count: 200 }, { timeUnit: "year", count: 500 }, { timeUnit: "year", count: 1e3 }, { timeUnit: "year", count: 2e3 }, { timeUnit: "year", count: 5e3 }, { timeUnit: "year", count: 1e4 }, { timeUnit: "year", count: 1e5 }]), e4.groupIntervals.pushAll([{ timeUnit: "millisecond", count: 1 }, { timeUnit: "millisecond", count: 10 }, { timeUnit: "millisecond", count: 100 }, { timeUnit: "second", count: 1 }, { timeUnit: "second", count: 10 }, { timeUnit: "minute", count: 1 }, { timeUnit: "minute", count: 10 }, { timeUnit: "hour", count: 1 }, { timeUnit: "day", count: 1 }, { timeUnit: "week", count: 1 }, { timeUnit: "month", count: 1 }, { timeUnit: "year", count: 1 }]), e4.axisFieldName = "date", e4.applyTheme(), e4;
  15051. }
  15052. return C(e3, t2), e3.prototype.fillRule = function(t3) {
  15053. var e4 = t3.value, i3 = t3.component, n3 = i3._gridInterval, r3 = ta(n3.timeUnit, n3.count);
  15054. Math.round((e4 - i3.min) / r3) / 2 == Math.round(Math.round((e4 - i3.min) / r3) / 2) ? t3.axisFill.__disabled = true : t3.axisFill.__disabled = false;
  15055. }, e3.prototype.applyInternalDefaults = function() {
  15056. t2.prototype.applyInternalDefaults.call(this), this.dateFormats.hasKey("millisecond") || this.dateFormats.setKey("millisecond", this.language.translate("_date_millisecond")), this.dateFormats.hasKey("second") || this.dateFormats.setKey("second", this.language.translate("_date_second")), this.dateFormats.hasKey("minute") || this.dateFormats.setKey("minute", this.language.translate("_date_minute")), this.dateFormats.hasKey("hour") || this.dateFormats.setKey("hour", this.language.translate("_date_hour")), this.dateFormats.hasKey("day") || this.dateFormats.setKey("day", this.language.translate("_date_day")), this.dateFormats.hasKey("week") || this.dateFormats.setKey("week", this.language.translate("_date_day")), this.dateFormats.hasKey("month") || this.dateFormats.setKey("month", this.language.translate("_date_month")), this.dateFormats.hasKey("year") || this.dateFormats.setKey("year", this.language.translate("_date_year")), this.periodChangeDateFormats.hasKey("millisecond") || this.periodChangeDateFormats.setKey("millisecond", this.language.translate("_date_millisecond")), this.periodChangeDateFormats.hasKey("second") || this.periodChangeDateFormats.setKey("second", this.language.translate("_date_second")), this.periodChangeDateFormats.hasKey("minute") || this.periodChangeDateFormats.setKey("minute", this.language.translate("_date_minute")), this.periodChangeDateFormats.hasKey("hour") || this.periodChangeDateFormats.setKey("hour", this.language.translate("_date_day")), this.periodChangeDateFormats.hasKey("day") || this.periodChangeDateFormats.setKey("day", this.language.translate("_date_day")), this.periodChangeDateFormats.hasKey("week") || this.periodChangeDateFormats.setKey("week", this.language.translate("_date_day")), this.periodChangeDateFormats.hasKey("month") || this.periodChangeDateFormats.setKey("month", this.language.translate("_date_month") + " " + this.language.translate("_date_year"));
  15057. }, e3.prototype.createDataItem = function() {
  15058. return new _h();
  15059. }, e3.prototype.createAxisBreak = function() {
  15060. return new xh();
  15061. }, e3.prototype.validateDataItems = function() {
  15062. var e4 = this.start, i3 = this.end, n3 = this.baseDuration, r3 = (this.max - this.min) / n3;
  15063. this._firstWeekDay = this.getFirstWeekDay(), this.getDFFormatter(), t2.prototype.validateDataItems.call(this);
  15064. var s2 = ta(this.mainBaseInterval.timeUnit, this.mainBaseInterval.count);
  15065. this.maxZoomFactor = Math.max(1, (this.max - this.min) / s2), this._deltaMinMax = this.baseDuration / 2, e4 += (i3 - e4) * (1 - r3 / ((this.max - this.min) / n3)), this.zoom({ start: e4, end: i3 }, false, true);
  15066. }, e3.prototype.handleSelectionExtremesChange = function() {
  15067. }, e3.prototype.calculateZoom = function() {
  15068. var e4 = this;
  15069. t2.prototype.calculateZoom.call(this);
  15070. var i3 = this.adjustDifference(this._minZoomed, this._maxZoomed), n3 = false;
  15071. if (this.groupData && Z(i3)) {
  15072. var r3 = this.mainBaseInterval, s2 = i3 + (this.startLocation + (1 - this.endLocation)) * this.baseDuration, a2 = void 0;
  15073. this.groupInterval ? a2 = O({}, this.groupInterval) : ta((a2 = this.chooseInterval(0, s2, this.groupCount, this.groupIntervals)).timeUnit, a2.count) < ta(r3.timeUnit, r3.count) && (a2 = O({}, r3)), this._groupInterval = a2;
  15074. var o3 = a2.timeUnit + a2.count;
  15075. this._currentDataSetId != o3 && (this._currentDataSetId = o3, this.dispatch("groupperiodchanged")), this.series.each(function(t3) {
  15076. t3.baseAxis == e4 && t3.setDataSet(e4._currentDataSetId) && (n3 = true);
  15077. });
  15078. }
  15079. var l2 = this.chooseInterval(0, i3, this._gridCount);
  15080. ta(l2.timeUnit, l2.count) < this.baseDuration && (l2 = O({}, this.baseInterval)), this._gridInterval = l2, this._nextGridUnit = Qs(l2.timeUnit), this._intervalDuration = ta(l2.timeUnit, l2.count), this._gridDate = aa(new Date(this.minZoomed - ta(l2.timeUnit, l2.count)), l2.timeUnit, l2.count, this._firstWeekDay, this._df.utc, new Date(this.min), this._df.timezoneMinutes, this._df.timezone), ti(this.series.iterator(), function(t3) {
  15081. if (t3.baseAxis == e4) {
  15082. var i4 = t3.getAxisField(e4), r4 = aa(new Date(e4._minZoomed + 0.05 * e4.baseDuration), e4.baseInterval.timeUnit, e4.baseInterval.count, e4._firstWeekDay, e4._df.utc, void 0, e4._df.timezoneMinutes, e4._df.timezone).getTime(), s3 = r4.toString(), a3 = t3.dataItemsByAxis.getKey(e4.uid).getKey(s3 + t3.currentDataSetId), o4 = 0;
  15083. 0 != e4.start && (o4 = a3 ? (a3 = e4.findFirst(a3, r4, i4)).index : t3.dataItems.findClosestIndex(e4._minZoomed, function(t4) {
  15084. return t4[i4];
  15085. }, "left"));
  15086. var l3 = e4.baseInterval, h2 = sa(aa(new Date(e4._maxZoomed), l3.timeUnit, l3.count, e4._firstWeekDay, e4._df.utc, void 0, e4._df.timezoneMinutes, e4._df.timezone), l3.timeUnit, l3.count, e4._df.utc).getTime(), p2 = h2.toString(), u2 = t3.dataItemsByAxis.getKey(e4.uid).getKey(p2 + t3.currentDataSetId), d2 = t3.dataItems.length;
  15087. 1 != e4.end && (u2 ? d2 = u2.index : (h2 -= 1, d2 = t3.dataItems.findClosestIndex(h2, function(t4) {
  15088. return t4[i4];
  15089. }, "right"), d2++)), t3.max(e4) < r4 ? (t3.startIndex = t3.dataItems.length, t3.endIndex = t3.dataItems.length, t3.outOfRange = true) : t3.min(e4) > h2 ? (t3.startIndex = 0, t3.endIndex = 0, t3.outOfRange = true) : (t3.outOfRange = false, t3.startIndex = o4, t3.endIndex = d2), !n3 && t3.dataRangeInvalid && t3.validateDataRange();
  15090. }
  15091. });
  15092. }, e3.prototype.findFirst = function(t3, e4, i3) {
  15093. var n3 = t3.index;
  15094. if (n3 > 0) {
  15095. var r3 = t3.component.dataItems.getIndex(n3 - 1), s2 = r3[i3];
  15096. return !s2 || s2.getTime() < e4 ? t3 : this.findFirst(r3, e4, i3);
  15097. }
  15098. return t3;
  15099. }, e3.prototype.validateData = function() {
  15100. t2.prototype.validateData.call(this), tt(this.baseInterval.count) || (this.baseInterval.count = 1);
  15101. }, Object.defineProperty(e3.prototype, "minDifference", { get: function() {
  15102. var t3 = this, e4 = Number.MAX_VALUE;
  15103. return this.series.each(function(i3) {
  15104. e4 > t3._minDifference[i3.uid] && (e4 = t3._minDifference[i3.uid]);
  15105. }), e4 != Number.MAX_VALUE && 0 != e4 || (e4 = ta("day")), e4;
  15106. }, enumerable: true, configurable: true }), e3.prototype.seriesDataChangeUpdate = function(t3) {
  15107. this._minDifference[t3.uid] = Number.MAX_VALUE;
  15108. }, e3.prototype.postProcessSeriesDataItems = function(t3) {
  15109. var e4 = this;
  15110. this._firstWeekDay = this.getFirstWeekDay(), t3 ? this.seriesGroupUpdate(t3) : this.series.each(function(t4) {
  15111. e4.seriesGroupUpdate(t4);
  15112. }), this.addEmptyUnitsBreaks();
  15113. }, e3.prototype.seriesGroupUpdate = function(t3) {
  15114. var e4 = this;
  15115. JSON.stringify(t3._baseInterval[this.uid]) != JSON.stringify(this.mainBaseInterval) && (t3._baseInterval[this.uid] = this.mainBaseInterval, t3.mainDataSet.each(function(t4) {
  15116. e4.postProcessSeriesDataItem(t4);
  15117. }), this.groupData && this.groupSeriesData(t3));
  15118. }, e3.prototype.groupSeriesData = function(t3) {
  15119. var e4 = this;
  15120. if (t3.baseAxis == this && t3.dataItems.length > 0 && !t3.dataGrouped) {
  15121. t3.bulletsContainer.removeChildren();
  15122. var i3 = [], n3 = this.mainBaseInterval, r3 = ta(n3.timeUnit, n3.count);
  15123. this.groupIntervals.each(function(t4) {
  15124. var n4 = ta(t4.timeUnit, t4.count);
  15125. (n4 > r3 && n4 < e4.max - e4.min || e4.groupInterval) && i3.push(t4);
  15126. }), t3._dataSets && (t3._dataSets.each(function(t4, e5) {
  15127. e5.each(function(t5) {
  15128. t5.dispose();
  15129. }), e5.clear();
  15130. }), t3._dataSets.clear()), t3.dataGrouped = true, Ut(i3, function(i4) {
  15131. var n4 = "date" + e4.axisLetter, r4 = i4.timeUnit + i4.count, s2 = new Ei(t3.mainDataSet.template.clone());
  15132. t3.dataSets.setKey(r4, s2);
  15133. var a2, o3, l2 = t3.mainDataSet, h2 = Number.NEGATIVE_INFINITY, p2 = 0, u2 = [];
  15134. Ne(t3.dataFields, function(t4, e5) {
  15135. var i5 = t4;
  15136. i5 != n4 && -1 == i5.indexOf("Show") && u2.push(i5);
  15137. }), l2.each(function(r5) {
  15138. var l3 = r5.getDate(n4);
  15139. if (l3) {
  15140. var d2 = l3.getTime(), c2 = (o3 = aa(new Date(d2), i4.timeUnit, i4.count, e4._df.firstDayOfWeek, e4._df.utc, void 0, e4._df.timezoneMinutes, e4._df.timezone)).getTime();
  15141. h2 < c2 ? (a2 && t3._adapterO && Ut(u2, function(e5) {
  15142. a2.values[e5].value = t3._adapterO.apply("groupDataItem", { dataItem: a2, interval: i4, dataField: e5, date: o3, value: a2.values[e5].value }).value, a2.values[e5].workingValue = a2.values[e5].value;
  15143. }), (a2 = s2.create()).dataContext = {}, a2.setWorkingLocation("dateX", t3.dataItems.template.locations.dateX, 0), a2.setWorkingLocation("openDateX", t3.dataItems.template.locations.openDateX, 0), a2.setWorkingLocation("dateY", t3.dataItems.template.locations.dateY, 0), a2.setWorkingLocation("openDateY", t3.dataItems.template.locations.openDateY, 0), a2.component = t3, a2.setDate(n4, o3), a2._index = p2, p2++, Ut(u2, function(e5) {
  15144. var n5 = r5.values[e5];
  15145. if (n5) {
  15146. var s3 = n5.value;
  15147. t3._adapterO && (s3 = t3._adapterO.apply("groupValue", { dataItem: r5, interval: i4, dataField: e5, date: o3, value: s3 }).value);
  15148. var l4 = a2.values[e5];
  15149. tt(s3) ? (l4.value = s3, l4.workingValue = s3, l4.open = s3, l4.close = s3, l4.low = s3, l4.high = s3, l4.sum = s3, l4.average = s3, l4.count = 1) : l4.count = 0;
  15150. }
  15151. }), e4.postProcessSeriesDataItem(a2, i4), Ne(t3.propertyFields, function(t4, e5) {
  15152. var i5 = t4, n5 = r5.properties[t4];
  15153. Z(n5) && (a2.hasProperties = true, a2.setProperty(i5, n5));
  15154. }), a2.groupDataItems = [r5], h2 = c2) : a2 && (Ut(u2, function(e5) {
  15155. var n5 = t3.groupFields[e5], s3 = r5.values[e5];
  15156. if (s3) {
  15157. var l4 = s3.value;
  15158. if (t3._adapterO && (l4 = t3._adapterO.apply("groupValue", { dataItem: r5, interval: i4, dataField: e5, date: o3, value: l4 }).value), tt(l4)) {
  15159. var h3 = a2.values[e5];
  15160. tt(h3.open) || (h3.open = l4), h3.close = l4, (h3.low > l4 || !tt(h3.low)) && (h3.low = l4), (h3.high < l4 || !tt(h3.high)) && (h3.high = l4), tt(h3.sum) ? h3.sum += l4 : h3.sum = l4, h3.count++, h3.average = h3.sum / h3.count, tt(h3[n5]) && (h3.value = h3[n5], h3.workingValue = h3.value);
  15161. }
  15162. }
  15163. }), Sn(r5.properties, a2.properties), Ne(t3.propertyFields, function(t4, e5) {
  15164. var i5 = t4, n5 = r5.properties[t4];
  15165. Z(n5) && (a2.hasProperties = true, a2.setProperty(i5, n5));
  15166. }), a2.groupDataItems.push(r5));
  15167. }
  15168. a2 && Sn(r5.dataContext, a2.dataContext);
  15169. }), a2 && t3._adapterO && Ut(u2, function(e5) {
  15170. a2.values[e5].value = t3._adapterO.apply("groupDataItem", { dataItem: a2, interval: i4, dataField: e5, date: o3, value: a2.values[e5].value }).value, a2.values[e5].workingValue = a2.values[e5].value;
  15171. });
  15172. }), this.calculateZoom();
  15173. }
  15174. }, e3.prototype.getDFFormatter = function() {
  15175. this._df = this.dateFormatter;
  15176. }, e3.prototype.postProcessSeriesDataItem = function(t3, e4) {
  15177. var i3 = this, n3 = "";
  15178. e4 ? n3 = e4.timeUnit + e4.count : e4 = this.mainBaseInterval;
  15179. var r3 = t3.component.dataItemsByAxis.getKey(this.uid);
  15180. Ne(t3.dates, function(s2) {
  15181. var a2 = t3.getDate(s2).getTime(), o3 = aa(new Date(a2), e4.timeUnit, e4.count, i3._firstWeekDay, i3._df.utc, void 0, i3._df.timezoneMinutes, i3._df.timezone).getTime(), l2 = sa(new Date(o3), e4.timeUnit, e4.count, i3._df.utc);
  15182. t3.setCalculatedValue(s2, o3, "open"), t3.setCalculatedValue(s2, l2.getTime(), "close"), r3.setKey(o3 + n3, t3);
  15183. });
  15184. }, e3.prototype.addEmptyUnitsBreaks = function() {
  15185. var t3 = this;
  15186. if (this.skipEmptyPeriods && tt(this.min) && tt(this.max)) {
  15187. var e4 = this.baseInterval.timeUnit, i3 = this.baseInterval.count;
  15188. this._axisBreaks && this._axisBreaks.clear();
  15189. for (var n3 = aa(new Date(this.min), e4, i3, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), r3 = void 0, s2 = function() {
  15190. sa(n3, e4, i3, a2._df.utc);
  15191. var s3 = n3.getTime(), o3 = s3.toString();
  15192. pi(a2.series.iterator(), function(e5) {
  15193. return !!e5.dataItemsByAxis.getKey(t3.uid).getKey(o3 + e5.currentDataSetId);
  15194. }) ? r3 && (r3.endDate = new Date(s3 - 1), r3 = void 0) : r3 || ((r3 = a2.axisBreaks.create()).startDate = new Date(s3), a2._gapBreaks = true);
  15195. }, a2 = this; n3.getTime() < this.max - this.baseDuration; )
  15196. s2();
  15197. }
  15198. }, e3.prototype.fixAxisBreaks = function() {
  15199. var e4 = this;
  15200. t2.prototype.fixAxisBreaks.call(this);
  15201. var i3 = this._axisBreaks;
  15202. i3 && i3.length > 0 && i3.each(function(t3) {
  15203. var i4 = Math.ceil(e4._gridCount * (Math.min(e4.end, t3.endPosition) - Math.max(e4.start, t3.startPosition)) / (e4.end - e4.start));
  15204. t3.gridInterval = e4.chooseInterval(0, t3.adjustedEndValue - t3.adjustedStartValue, i4);
  15205. var n3 = aa(new Date(t3.adjustedStartValue), t3.gridInterval.timeUnit, t3.gridInterval.count, e4._firstWeekDay, e4._df.utc, void 0, e4._df.timezoneMinutes, e4._df.timezone);
  15206. n3.getTime() > t3.startDate.getTime() && sa(n3, t3.gridInterval.timeUnit, t3.gridInterval.count, e4._df.utc), t3.gridDate = n3;
  15207. });
  15208. }, e3.prototype.getFirstWeekDay = function() {
  15209. return this._df ? this._df.firstDayOfWeek : 1;
  15210. }, e3.prototype.getGridDate = function(t3, e4) {
  15211. var i3 = this._gridInterval.timeUnit, n3 = this._gridInterval.count;
  15212. aa(t3, i3, 1, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone);
  15213. var r3 = t3.getTime(), s2 = na(t3), a2 = sa(s2, i3, e4, this._df.utc).getTime(), o3 = this.isInBreak(a2);
  15214. o3 && o3.endDate && (aa(s2 = new Date(o3.endDate.getTime()), i3, n3, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), s2.getTime() < o3.endDate.getTime() && sa(s2, i3, n3, this._df.utc), a2 = s2.getTime());
  15215. var l2 = this.adjustDifference(r3, a2);
  15216. return Math.round(l2 / ta(i3)) < n3 ? this.getGridDate(t3, e4 + n3) : s2;
  15217. }, e3.prototype.getBreaklessDate = function(t3, e4, i3) {
  15218. var n3 = new Date(t3.endValue);
  15219. aa(n3, e4, i3, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), sa(n3, e4, i3, this._df.utc);
  15220. var r3 = n3.getTime();
  15221. return (t3 = this.isInBreak(r3)) ? this.getBreaklessDate(t3, e4, i3) : n3;
  15222. }, e3.prototype.validateAxisElements = function() {
  15223. var t3 = this;
  15224. if (tt(this.max) && tt(this.min)) {
  15225. this.calculateZoom();
  15226. var e4 = this._gridDate.getTime(), i3 = this._gridInterval.timeUnit, n3 = this._gridInterval.count, r3 = na(this._gridDate), s2 = this._dataItemsIterator;
  15227. this.resetIterators();
  15228. for (var a2 = function() {
  15229. var t4 = o3.getGridDate(na(r3), n3);
  15230. e4 = t4.getTime();
  15231. var a3 = na(t4);
  15232. a3 = sa(a3, i3, n3, o3._df.utc);
  15233. var l3 = o3.dateFormats.getKey(i3);
  15234. o3.markUnitChange && r3 && ra(t4, r3, o3._nextGridUnit, o3._df.utc) && "year" !== i3 && (l3 = o3.periodChangeDateFormats.getKey(i3));
  15235. var h2 = o3._df.format(t4, l3), p2 = s2.find(function(t5) {
  15236. return t5.text === h2;
  15237. });
  15238. p2.__disabled && (p2.__disabled = false), o3.appendDataItem(p2), p2.axisBreak = void 0, p2.date = t4, p2.endDate = a3, p2.text = h2, o3.validateDataElement(p2), r3 = t4;
  15239. }, o3 = this; e4 <= this._maxZoomed; )
  15240. a2();
  15241. var l2 = this.renderer;
  15242. this._axisBreaks && ti(this._axisBreaks.iterator(), function(e5) {
  15243. if (e5.breakSize > 0) {
  15244. var i4 = e5.gridInterval.timeUnit, n4 = e5.gridInterval.count;
  15245. if (_t(e5.startPoint, e5.endPoint) > 4 * l2.minGridDistance)
  15246. for (var r4, a3 = e5.gridDate.getTime(), o4 = 0, h2 = function() {
  15247. var l3 = na(e5.gridDate);
  15248. if (a3 = sa(l3, i4, n4 * o4, t3._df.utc).getTime(), o4++, a3 > e5.adjustedStartValue && a3 < e5.adjustedEndValue) {
  15249. var h3 = na(l3);
  15250. h3 = sa(h3, i4, n4, t3._df.utc);
  15251. var p2 = t3.dateFormats.getKey(i4);
  15252. t3.markUnitChange && r4 && ra(l3, r4, t3._nextGridUnit, t3._df.utc) && "year" !== i4 && (p2 = t3.periodChangeDateFormats.getKey(i4));
  15253. var u2 = t3._df.format(l3, p2), d2 = s2.find(function(t4) {
  15254. return t4.text === u2;
  15255. });
  15256. d2.__disabled && (d2.__disabled = false), t3.appendDataItem(d2), d2.axisBreak = e5, e5.dataItems.moveValue(d2), d2.date = l3, d2.endDate = h3, d2.text = u2, r4 = l3, t3.validateDataElement(d2);
  15257. }
  15258. }; a3 <= e5.adjustedMax; )
  15259. h2();
  15260. }
  15261. });
  15262. }
  15263. }, e3.prototype.validateDataElement = function(t3) {
  15264. if (t3.itemIndex = this._axisItemCount, this._axisItemCount++, tt(this.max) && tt(this.min)) {
  15265. var e4 = this.renderer, i3 = t3.value, n3 = t3.endValue;
  15266. tt(n3) || (n3 = i3);
  15267. var r3 = this.valueToPosition(i3), s2 = this.valueToPosition(n3), a2 = s2;
  15268. !t3.isRange && this._gridInterval.count > this.baseInterval.count && (s2 = r3 + (s2 - r3) / (this._gridInterval.count / this.baseInterval.count)), t3.position = r3;
  15269. var o3 = t3.tick;
  15270. o3 && !o3.disabled && e4.updateTickElement(o3, r3, s2);
  15271. var l2 = t3.grid;
  15272. l2 && !l2.disabled && e4.updateGridElement(l2, r3, s2);
  15273. var h2 = t3.axisFill;
  15274. h2 && !h2.disabled && (e4.updateFillElement(h2, r3, a2), t3.isRange || this.fillRule(t3));
  15275. var p2 = t3.mask;
  15276. p2 && e4.updateFillElement(p2, r3, s2), t3.bullet && e4.updateBullet(t3.bullet, r3, s2);
  15277. var u2 = t3.label;
  15278. if (u2 && !u2.disabled) {
  15279. var d2 = u2.location;
  15280. 0 == d2 && (d2 = 1 != this._gridInterval.count || "week" == this._gridInterval.timeUnit || t3.isRange ? 0 : 0.5), e4.updateLabelElement(u2, r3, s2, d2);
  15281. }
  15282. }
  15283. }, Object.defineProperty(e3.prototype, "baseDuration", { get: function() {
  15284. return ta(this.baseInterval.timeUnit, this.baseInterval.count);
  15285. }, enumerable: true, configurable: true }), e3.prototype.adjustMinMax = function(t3, e4) {
  15286. return { min: t3, max: e4, step: this.baseDuration };
  15287. }, e3.prototype.fixMin = function(t3) {
  15288. var e4 = this.baseInterval, i3 = aa(new Date(t3), e4.timeUnit, e4.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone).getTime();
  15289. return i3 + (sa(new Date(i3), e4.timeUnit, e4.count, this._df.utc).getTime() - i3) * this.startLocation;
  15290. }, e3.prototype.fixMax = function(t3) {
  15291. var e4 = this.baseInterval, i3 = aa(new Date(t3), e4.timeUnit, e4.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone).getTime();
  15292. return i3 + (sa(new Date(i3), e4.timeUnit, e4.count, this._df.utc).getTime() - i3) * this.endLocation;
  15293. }, e3.prototype.chooseInterval = function(t3, e4, i3, n3) {
  15294. n3 || (n3 = this.gridIntervals);
  15295. var r3 = n3.getIndex(t3), s2 = ta(r3.timeUnit, r3.count), a2 = n3.length - 1;
  15296. if (t3 >= a2)
  15297. return O({}, n3.getIndex(a2));
  15298. var o3 = Math.ceil(e4 / s2);
  15299. return e4 < s2 && t3 > 0 ? O({}, n3.getIndex(t3 - 1)) : o3 <= i3 ? O({}, n3.getIndex(t3)) : t3 + 1 < n3.length ? this.chooseInterval(t3 + 1, e4, i3, n3) : O({}, n3.getIndex(t3));
  15300. }, e3.prototype.formatLabel = function(t3) {
  15301. return this._df.format(t3);
  15302. }, e3.prototype.dateToPosition = function(t3) {
  15303. return this.valueToPosition(t3.getTime());
  15304. }, e3.prototype.anyToPosition = function(t3) {
  15305. return t3 instanceof Date ? this.dateToPosition(t3) : this.valueToPosition(t3);
  15306. }, e3.prototype.dateToPoint = function(t3) {
  15307. var e4 = this.dateToPosition(t3), i3 = this.renderer.positionToPoint(e4), n3 = this.renderer.positionToAngle(e4);
  15308. return { x: i3.x, y: i3.y, angle: n3 };
  15309. }, e3.prototype.anyToPoint = function(t3) {
  15310. return t3 instanceof Date ? this.dateToPoint(t3) : this.valueToPoint(t3);
  15311. }, e3.prototype.positionToDate = function(t3) {
  15312. return new Date(this.positionToValue(t3));
  15313. }, e3.prototype.getPositionX = function(t3, e4, i3, n3, r3) {
  15314. var s2 = this.getTimeByLocation(t3, e4, i3);
  15315. tt(s2) || (s2 = this.baseValue);
  15316. var a2 = this.valueToPosition(s2);
  15317. return r3 && (a2 = ut(a2, r3.start, r3.end)), a2;
  15318. }, e3.prototype.getPositionY = function(t3, e4, i3, n3, r3) {
  15319. var s2 = this.getTimeByLocation(t3, e4, i3), a2 = t3.getValue("valueX", "stack");
  15320. tt(s2) || (s2 = this.baseValue);
  15321. var o3 = this.valueToPosition(s2 + a2);
  15322. return r3 && (o3 = ut(o3, r3.start, r3.end)), o3;
  15323. }, e3.prototype.getAngle = function(t3, e4, i3, n3, r3) {
  15324. var s2 = this.getTimeByLocation(t3, e4, i3), a2 = t3.getValue(n3, "stack");
  15325. tt(s2) || (s2 = this.baseValue);
  15326. var o3 = this.valueToPosition(s2 + a2);
  15327. return r3 && (o3 = ut(o3, r3.start, r3.end)), this.positionToAngle(o3);
  15328. }, e3.prototype.getTimeByLocation = function(t3, e4, i3) {
  15329. if (Z(e4)) {
  15330. tt(i3) || tt(i3 = t3.workingLocations[e4]) || (i3 = 0);
  15331. var n3 = t3.values[e4].open, r3 = t3.values[e4].close, s2 = t3.values[e4].workingValue, a2 = t3.values[e4].value - s2;
  15332. return r3 -= a2, tt(n3 -= a2) && tt(r3) ? n3 + (r3 - n3) * i3 : void 0;
  15333. }
  15334. }, e3.prototype.processSeriesDataItem = function(t3, e4) {
  15335. var i3, n3 = t3.component, r3 = t3["date" + e4];
  15336. if (tt(this.timezoneOffset) ? (r3.setTime(r3.getTime() + 6e4 * (r3.getTimezoneOffset() - this.timezoneOffset)), t3.setValue("date" + e4, r3.getTime(), 0)) : Z(this.timezone) && (r3 = oa(r3, this.timezone), t3.setValue("date" + e4, r3.getTime(), 0), t3["date" + e4] = r3), r3) {
  15337. i3 = r3.getTime();
  15338. var s2, a2 = t3["openDate" + e4], o3 = this._prevSeriesTime[n3.uid];
  15339. if (a2 && (s2 = a2.getTime()), tt(s2)) {
  15340. var l2 = Math.abs(i3 - s2);
  15341. this._minDifference[n3.uid] > l2 && (this._minDifference[n3.uid] = l2);
  15342. }
  15343. var h2 = i3 - o3;
  15344. h2 > 0 && this._minDifference[n3.uid] > h2 && (this._minDifference[n3.uid] = h2), this._prevSeriesTime[n3.uid] = i3, n3._baseInterval[this.uid] && this.postProcessSeriesDataItem(t3);
  15345. }
  15346. }, e3.prototype.updateAxisBySeries = function() {
  15347. t2.prototype.updateAxisBySeries.call(this);
  15348. var e4 = this.chooseInterval(0, this.minDifference, 1);
  15349. this.minDifference >= ta("day", 27) && "week" == e4.timeUnit && (e4.timeUnit = "month", e4.count = 1), "month" == e4.timeUnit && (this.minDifference >= ta("day", 58) && 1 == e4.count && (e4.count = 2), this.minDifference >= ta("day", 87) && 2 == e4.count && (e4.count = 3), this.minDifference >= ta("day", 174) && 5 == e4.count && (e4.count = 6)), this.minDifference >= ta("hour", 23) && "hour" == e4.timeUnit && (e4.timeUnit = "day", e4.count = 1), this.minDifference >= ta("week", 1) - ta("hour", 1) && "day" == e4.timeUnit && (e4.timeUnit = "week", e4.count = 1), this.minDifference >= ta("year", 1) - ta("day", 1.01) && "month" == e4.timeUnit && (e4.timeUnit = "year", e4.count = 1), this._baseIntervalReal = e4, this._mainBaseInterval = e4;
  15350. }, Object.defineProperty(e3.prototype, "baseInterval", { get: function() {
  15351. return this._groupInterval ? this._groupInterval : this._baseInterval ? this._baseInterval : this._baseIntervalReal;
  15352. }, set: function(t3) {
  15353. JSON.stringify(this._baseInterval) != JSON.stringify(t3) && (this._baseInterval = t3, this._mainBaseInterval = t3, tt(t3.count) || (t3.count = 1), this.invalidate(), this.postProcessSeriesDataItems());
  15354. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mainBaseInterval", { get: function() {
  15355. return this._baseInterval ? this._baseInterval : this._mainBaseInterval ? this._mainBaseInterval : this._baseIntervalReal;
  15356. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "skipEmptyPeriods", { get: function() {
  15357. return this.getPropertyValue("skipEmptyPeriods");
  15358. }, set: function(t3) {
  15359. if (t3) {
  15360. var e4 = this.axisBreaks.template;
  15361. e4.startLine.disabled = true, e4.endLine.disabled = true, e4.fillShape.disabled = true, e4.breakSize = 0;
  15362. } else
  15363. this._gapBreaks && (this.axisBreaks.clear(), this._gapBreaks = false);
  15364. this.setPropertyValue("skipEmptyPeriods", t3) && (this.invalidate(), this.postProcessSeriesDataItems(), this.invalidateSeries());
  15365. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipDateFormat", { get: function() {
  15366. return this.getPropertyValue("tooltipDateFormat");
  15367. }, set: function(t3) {
  15368. this.setPropertyValue("tooltipDateFormat", t3);
  15369. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "markUnitChange", { get: function() {
  15370. return this.getPropertyValue("markUnitChange");
  15371. }, set: function(t3) {
  15372. this.setPropertyValue("markUnitChange", t3) && this.invalidateData();
  15373. }, enumerable: true, configurable: true }), e3.prototype.getTooltipText = function(t3) {
  15374. var e4, i3 = this.positionToDate(t3);
  15375. if (i3 = aa(i3, this.baseInterval.timeUnit, this.baseInterval.count, this._firstWeekDay, this._df.utc, new Date(this.min), this._df.timezoneMinutes, this._df.timezone), this.tooltipDate = i3, Z(this.tooltipDateFormat))
  15376. e4 = this._df.format(i3, this.tooltipDateFormat, -1 == ["day", "month", "week", "year"].indexOf(this.baseInterval.timeUnit));
  15377. else {
  15378. var n3 = this.dateFormats.getKey(this.baseInterval.timeUnit);
  15379. e4 = n3 ? this._df.format(i3, n3) : this.getPositionLabel(t3);
  15380. }
  15381. return this._adapterO ? this._adapterO.apply("getTooltipText", e4) : e4;
  15382. }, e3.prototype.roundPosition = function(t3, e4, i3) {
  15383. var n3 = this.baseInterval, r3 = n3.timeUnit, s2 = n3.count, a2 = this.positionToDate(t3);
  15384. if (aa(a2, r3, s2, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), e4 > 0 && sa(a2, r3, e4 * s2, this._df.utc), i3 > 0 && i3 < 1 && a2.setTime(a2.getTime() + this.baseDuration * i3), this.isInBreak(a2.getTime()))
  15385. for (; a2.getTime() < this.max && (sa(a2, r3, s2, this._df.utc), this.isInBreak(a2.getTime())); )
  15386. ;
  15387. return this.dateToPosition(a2);
  15388. }, e3.prototype.getCellStartPosition = function(t3) {
  15389. return this.roundPosition(t3, 0);
  15390. }, e3.prototype.getCellEndPosition = function(t3) {
  15391. return this.roundPosition(t3, 1);
  15392. }, e3.prototype.getSeriesDataItem = function(t3, e4, i3) {
  15393. var n3 = this.positionToValue(e4), r3 = n3 - ("Y" == this.axisLetter ? t3.dataItems.template.locations.dateY : t3.dataItems.template.locations.dateX) * this.baseDuration, s2 = aa(new Date(n3), this.baseInterval.timeUnit, this.baseInterval.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), a2 = aa(new Date(n3 + this.baseDuration), this.baseInterval.timeUnit, this.baseInterval.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone);
  15394. a2.getTime() > s2.getTime() && Math.abs(a2.getTime() - r3) < Math.abs(r3 - s2.getTime()) && (s2 = a2);
  15395. var o3, l2 = t3.dataItemsByAxis.getKey(this.uid).getKey(s2.getTime() + t3.currentDataSetId);
  15396. return !l2 && i3 && (o3 = "Y" == this.axisLetter ? "dateY" : "dateX", l2 = t3.dataItems.getIndex(t3.dataItems.findClosestIndex(s2.getTime(), function(t4) {
  15397. return t4[o3] ? t4[o3].getTime() : -1 / 0;
  15398. }, "any"))), l2;
  15399. }, e3.prototype.getPositionLabel = function(t3) {
  15400. var e4 = this.positionToDate(t3);
  15401. return this._df.format(e4, this.getCurrentLabelFormat());
  15402. }, e3.prototype.getCurrentLabelFormat = function() {
  15403. return this.dateFormats.getKey(this._gridInterval ? this._gridInterval.timeUnit : "day");
  15404. }, e3.prototype.initRenderer = function() {
  15405. t2.prototype.initRenderer.call(this);
  15406. var e4 = this.renderer;
  15407. e4 && (e4.ticks.template.location = 0, e4.grid.template.location = 0, e4.labels.template.location = 0, e4.baseGrid.disabled = true);
  15408. }, Object.defineProperty(e3.prototype, "basePoint", { get: function() {
  15409. return { x: 0, y: 0 };
  15410. }, enumerable: true, configurable: true }), e3.prototype.animateMinMax = function(t3, e4) {
  15411. var i3 = this, n3 = this.animate([{ property: "_minAdjusted", from: this._minAdjusted, to: t3 }, { property: "_maxAdjusted", from: this._maxAdjusted, to: e4 }], this.rangeChangeDuration, this.rangeChangeEasing);
  15412. return n3.events.on("animationprogress", function() {
  15413. i3.dispatch("extremeschanged");
  15414. }), n3;
  15415. }, e3.prototype.handleExtremesChange = function() {
  15416. if (t2.prototype.handleExtremesChange.call(this), this.groupData) {
  15417. var e4 = this.baseInterval.timeUnit + this.baseInterval.count;
  15418. this.groupMin[e4] = this._finalMin, this.groupMax[e4] = this._finalMax;
  15419. }
  15420. }, e3.prototype.zoomToDates = function(t3, e4, i3, n3, r3) {
  15421. t3 = this._df.parse(t3), e4 = this._df.parse(e4), this.zoomToValues(t3.getTime(), e4.getTime(), i3, n3, r3);
  15422. }, e3.prototype.zoomToValues = function(t3, e4, i3, n3, r3) {
  15423. var s2 = this;
  15424. if (this.groupData) {
  15425. var a2 = this.adjustDifference(t3, e4), o3 = false;
  15426. e4 == this.max && (o3 = true);
  15427. var l2 = false;
  15428. if (t3 == this.min && (l2 = true), Z(a2)) {
  15429. var h2 = this.mainBaseInterval, p2 = this.chooseInterval(0, a2, this.groupCount, this.groupIntervals);
  15430. (p2.timeUnit == h2.timeUnit && p2.count < h2.count || ta(p2.timeUnit, 1) < ta(h2.timeUnit, 1)) && (p2 = O({}, h2));
  15431. var u2 = p2.timeUnit + p2.count, d2 = this.groupMin[u2], c2 = this.groupMax[u2];
  15432. tt(d2) && tt(c2) || (d2 = Number.POSITIVE_INFINITY, c2 = Number.NEGATIVE_INFINITY, this.series.each(function(t4) {
  15433. var e5 = t4.min(s2), i4 = t4.max(s2);
  15434. if (t4._dataSets) {
  15435. var n4 = t4._dataSets.getKey(p2.timeUnit + p2.count);
  15436. if (n4) {
  15437. var r4 = n4.getIndex(0), a3 = n4.getIndex(n4.length - 1);
  15438. r4 && (t4.xAxis == s2 ? e5 = r4.dateX.getTime() : t4.yAxis == s2 && (e5 = r4.dateY.getTime())), a3 && (t4.xAxis == s2 ? i4 = a3.dateX.getTime() : t4.yAxis == s2 && (i4 = a3.dateY.getTime()));
  15439. }
  15440. }
  15441. i4 = aa(sa(new Date(i4), p2.timeUnit, 1, s2._df.utc), p2.timeUnit, 1, s2._df.firstDayOfWeek, s2._df.utc, void 0, s2._df.timezoneMinutes, s2._df.timezone).getTime(), e5 < d2 && (d2 = e5), i4 > c2 && (c2 = i4);
  15442. }), this.groupMin[u2] = d2, this.groupMax[u2] = c2), t3 = ut(t3, d2, c2), e4 = ut(e4, d2, c2), r3 && (o3 && (t3 = ut(t3 = e4 - a2, d2, c2)), l2 && (e4 = ut(e4 = t3 + a2, d2, c2))), f2 = (t3 - d2) / (c2 - d2), g2 = (e4 - d2) / (c2 - d2), this.zoom({ start: f2, end: g2 }, i3, n3);
  15443. }
  15444. } else {
  15445. var f2 = this.valueToPosition(t3), g2 = this.valueToPosition(e4);
  15446. this.zoom({ start: f2, end: g2 }, i3, n3);
  15447. }
  15448. }, e3.prototype.asIs = function(e4) {
  15449. return "baseInterval" == e4 || t2.prototype.asIs.call(this, e4);
  15450. }, e3.prototype.copyFrom = function(e4) {
  15451. var i3 = this;
  15452. t2.prototype.copyFrom.call(this, e4), this.dateFormats = e4.dateFormats, this.periodChangeDateFormats = e4.periodChangeDateFormats, this.groupIntervals.clear(), e4.groupIntervals.each(function(t3) {
  15453. i3.groupIntervals.push(O({}, t3));
  15454. }), this.gridIntervals.clear(), e4.gridIntervals.each(function(t3) {
  15455. i3.gridIntervals.push(O({}, t3));
  15456. }), e4._baseInterval && (this.baseInterval = e4._baseInterval);
  15457. }, e3.prototype.showTooltipAtPosition = function(e4, i3) {
  15458. var n3 = this;
  15459. if (i3 || (e4 = this.toAxisPosition(e4)), this.snapTooltip) {
  15460. var r3, s2 = this.positionToDate(e4).getTime();
  15461. if (this.series.each(function(t3) {
  15462. if (t3.baseAxis == n3) {
  15463. var i4 = n3.getSeriesDataItem(t3, e4, true);
  15464. if (i4) {
  15465. var a3 = void 0;
  15466. t3.xAxis == n3 && (a3 = i4.dateX), t3.yAxis == n3 && (a3 = i4.dateY), r3 ? Math.abs(r3.getTime() - s2) > Math.abs(a3.getTime() - s2) && (r3 = a3) : r3 = a3;
  15467. }
  15468. }
  15469. }), r3) {
  15470. var a2 = r3.getTime();
  15471. r3 = aa(new Date(a2), this.baseInterval.timeUnit, this.baseInterval.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), a2 = r3.getTime();
  15472. var o3 = this.renderer.tooltipLocation;
  15473. 0 == o3 && (o3 = 1e-4), r3 = new Date(r3.getTime() + this.baseDuration * o3), e4 = this.dateToPosition(r3), this.chart.cursor && this.chart.cursor.snapToSeries || this.series.each(function(t3) {
  15474. var e5 = t3.dataItemsByAxis.getKey(n3.uid).getKey(a2 + t3.currentDataSetId), i4 = t3.showTooltipAtDataItem(e5);
  15475. i4 ? n3.chart._seriesPoints.push({ series: t3, point: i4 }) : (t3.tooltipText || t3.tooltipHTML) && t3.hideTooltip();
  15476. });
  15477. }
  15478. }
  15479. t2.prototype.showTooltipAtPosition.call(this, e4, true);
  15480. }, Object.defineProperty(e3.prototype, "snapTooltip", { get: function() {
  15481. return this.getPropertyValue("snapTooltip");
  15482. }, set: function(t3) {
  15483. this.setPropertyValue("snapTooltip", t3);
  15484. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "groupData", { get: function() {
  15485. return this.getPropertyValue("groupData");
  15486. }, set: function(t3) {
  15487. var e4 = this;
  15488. this.setPropertyValue("groupData", t3) && (this.series.each(function(i3) {
  15489. i3.setDataSet(""), t3 && !i3.dataGrouped && i3.inited && (i3._baseInterval[e4.uid] = e4.mainBaseInterval, e4.groupSeriesData(i3));
  15490. }), this._currentDataSetId = "", this._groupInterval = void 0, this.invalidate(), this.invalidateSeries());
  15491. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "groupInterval", { get: function() {
  15492. return this.getPropertyValue("groupInterval");
  15493. }, set: function(t3) {
  15494. this.setPropertyValue("groupInterval", t3) && (this.invalidate(), this.invalidateSeries());
  15495. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "groupCount", { get: function() {
  15496. return this.getPropertyValue("groupCount");
  15497. }, set: function(t3) {
  15498. this.setPropertyValue("groupCount", t3);
  15499. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "timezoneOffset", { get: function() {
  15500. return this.getPropertyValue("timezoneOffset");
  15501. }, set: function(t3) {
  15502. this.setPropertyValue("timezoneOffset", t3);
  15503. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "timezone", { get: function() {
  15504. return this.getPropertyValue("timezone");
  15505. }, set: function(t3) {
  15506. this.setPropertyValue("timezone", t3);
  15507. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "gridInterval", { get: function() {
  15508. return this._gridInterval;
  15509. }, enumerable: true, configurable: true }), e3.prototype.makeGap = function(t3, e4) {
  15510. var i3 = t3.component;
  15511. if (t3 && e4 && !i3.connect && tt(i3.autoGapCount) && i3.baseAxis == this) {
  15512. var n3 = t3.dates["date" + this.axisLetter], r3 = e4.dates["date" + this.axisLetter];
  15513. if (n3 && r3 && n3.getTime() - r3.getTime() > i3.autoGapCount * this.baseDuration)
  15514. return true;
  15515. }
  15516. return false;
  15517. }, Object.defineProperty(e3.prototype, "baseValue", { get: function() {
  15518. return this.min;
  15519. }, enumerable: true, configurable: true }), e3;
  15520. }(bh);
  15521. Ii.registeredClasses.DateAxis = Ph, Ii.registeredClasses.DateAxisDataItem = _h;
  15522. var wh = function(t2) {
  15523. function e3() {
  15524. var e4 = t2.call(this) || this;
  15525. return e4.className = "AxisRendererX", e4.minGridDistance = 120, e4.opposite = false, e4.rotation = 0, e4.width = V(100), e4.labels.template.horizontalCenter = "middle", e4.applyTheme(), e4;
  15526. }
  15527. return C(e3, t2), e3.prototype.setAxis = function(e4) {
  15528. t2.prototype.setAxis.call(this, e4), e4.layout = "vertical";
  15529. }, e3.prototype.updateGridContainer = function() {
  15530. var t3 = this.axis;
  15531. if (t3) {
  15532. var e4 = this.gridContainer;
  15533. e4.x = t3.pixelX, e4.width = t3.axisLength;
  15534. }
  15535. }, e3.prototype.processRenderer = function() {
  15536. t2.prototype.processRenderer.call(this);
  15537. var e4 = this.axis;
  15538. if (e4) {
  15539. e4.width instanceof A || (e4.width = V(100)), this.line;
  15540. var i3 = e4.title;
  15541. i3.rotation = 0, i3.align = "center", this.opposite ? (this.line.toFront(), i3.toBack()) : (i3.toFront(), this.toBack(), this.line.toBack());
  15542. }
  15543. }, e3.prototype.updateTooltip = function() {
  15544. if (this.axis) {
  15545. var t3 = 1e3, e4 = this.line.pixelX, i3 = this.line.pixelY, n3 = this.axisLength, r3 = t3;
  15546. this.opposite ? this.inside || (i3 = -1e3, r3 = t3) : this.inside && (i3 = -1e3, r3 = t3), this.axis.updateTooltip("vertical", { x: e4, y: i3, width: n3, height: r3 });
  15547. }
  15548. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  15549. Z(n3) || (n3 = t3.location), e4 += (i3 - e4) * n3;
  15550. var r3 = this.positionToPoint(e4);
  15551. t3.isMeasured = !t3.inside;
  15552. var s2, a2 = 0, o3 = this.gridContainer.maxHeight;
  15553. this.opposite ? (t3.inside ? (s2 = "top", "bottom" == t3.valign && (a2 = o3, s2 = "bottom"), "middle" == t3.valign && (a2 = o3 / 2, s2 = "middle")) : s2 = "bottom", r3.y = a2) : (t3.inside ? (s2 = "bottom", "top" == t3.valign && (a2 = -o3, s2 = "top"), "middle" == t3.valign && (a2 = -o3 / 2, s2 = "middle")) : s2 = "top", r3.y += a2), 0 == t3.rotation && (t3.verticalCenter = s2), this.positionItem(t3, r3), this.toggleVisibility(t3, e4, this.minLabelPosition, this.maxLabelPosition);
  15554. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  15555. var t3 = this.axis;
  15556. return t3.measuredWidth - t3.pixelPaddingRight - t3.pixelPaddingLeft || 0;
  15557. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  15558. return { x: this.positionToCoordinate(t3), y: 0 };
  15559. }, e3.prototype.pointToPosition = function(t3) {
  15560. return this.coordinateToPosition(t3.x, t3.y);
  15561. }, e3.prototype.getPositionRangePath = function(t3, e4) {
  15562. var i3 = ut(this.positionToCoordinate(t3), 0, this.axisLength), n3 = ut(this.positionToCoordinate(e4), 0, this.axisLength), r3 = Math.abs(n3 - i3), s2 = this.getHeight();
  15563. return Vo({ x: Math.min(i3, n3), y: 0, width: r3, height: s2 }, true);
  15564. }, e3.prototype.updateBreakElement = function(e4) {
  15565. t2.prototype.updateBreakElement.call(this, e4);
  15566. var i3 = e4.startLine, n3 = e4.endLine, r3 = e4.fillShape, s2 = e4.startPoint, a2 = e4.endPoint, o3 = e4.pixelMarginLeft, l2 = this.getHeight() - e4.pixelMarginTop - e4.pixelMarginBottom;
  15567. s2.x = ut(s2.x, -1, this.axisLength + 1), a2.x = ut(a2.x, -1, this.axisLength + 1), s2.x == a2.x && (s2.x < 0 || s2.x > this.axisLength) ? e4.fillShape.__disabled = true : e4.fillShape.__disabled = false, i3.y = o3, i3.width = 0, i3.height = l2, n3.y = o3, n3.width = 0, n3.height = l2, r3.height = l2, r3.width = Math.abs(a2.x - s2.x), r3.y = o3, r3.x = s2.x;
  15568. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  15569. e4 += (i3 - e4) * t3.location;
  15570. var n3 = this.positionToPoint(e4);
  15571. t3.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: this.getHeight() }), this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  15572. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  15573. e4 += (i3 - e4) * t3.location;
  15574. var n3 = this.positionToPoint(e4), r3 = t3.length;
  15575. n3.y = dr({ x: 0, y: this.line.pixelY }, this.line.parent, this.gridContainer).y, this.opposite ? r3 *= t3.inside ? 1 : -1 : r3 *= t3.inside ? -1 : 1, t3.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: r3 }), this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  15576. }, e3.prototype.updateAxisLine = function() {
  15577. this.line.path = wo({ x: 0, y: 0 }) + Co({ x: this.axisLength, y: 0 });
  15578. }, e3.prototype.updateBaseGridElement = function() {
  15579. t2.prototype.updateBaseGridElement.call(this);
  15580. var e4 = this.axis, i3 = this.getHeight(), n3 = this.axisLength, r3 = this.baseGrid, s2 = e4.basePoint.x;
  15581. if (s2 < -0.2 || s2 > n3 + 0.2)
  15582. r3.hide(0);
  15583. else {
  15584. var a2 = dr({ x: 0, y: 0 }, this.gridContainer, r3.parent).y;
  15585. r3.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: i3 }), r3.moveTo({ x: s2, y: a2 }), r3.show(0);
  15586. }
  15587. }, e3.prototype.createBreakSprites = function(t3) {
  15588. t3.startLine = new pl(), t3.endLine = new pl();
  15589. var e4 = new ul();
  15590. e4.setWavedSides(false, true, false, true), t3.fillShape = e4;
  15591. }, e3.prototype.toAxisPosition = function(t3) {
  15592. var e4 = t3, i3 = this.axis;
  15593. if (i3) {
  15594. var n3 = i3.relativePositionSprite, r3 = i3.pixelX;
  15595. if (n3 ? r3 = dr({ x: this.pixelX, y: 0 }, this.parent, n3).x : n3 = i3.parent, n3)
  15596. return (e4 - r3 / n3.innerWidth) / (i3.axisLength / n3.innerWidth);
  15597. }
  15598. return t3;
  15599. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  15600. var n3 = 0.5;
  15601. t3 instanceof gh && (n3 = t3.location), e4 += (i3 - e4) * n3;
  15602. var r3 = this.positionToPoint(e4);
  15603. r3.y = dr({ x: 0, y: this.line.pixelY }, this.line.parent, this.gridContainer).y, this.positionItem(t3, r3), this.toggleVisibility(t3, e4, 0, 1);
  15604. }, e3;
  15605. }(fh);
  15606. Ii.registeredClasses.AxisRendererX = wh, lo.push({ relevant: ho.heightXS, state: function(t2, e3) {
  15607. if (t2 instanceof wh) {
  15608. var i3 = t2.states.create(e3);
  15609. return i3.properties.inside = true, i3.properties.maxLabelPosition = 0.9, i3.properties.minLabelPosition = 0.1, i3;
  15610. }
  15611. return null;
  15612. } }), lo.push({ relevant: ho.heightXXS, state: function(t2, e3) {
  15613. if (t2 instanceof wh) {
  15614. var i3 = t2.states.create(e3);
  15615. return i3.properties.disabled = true, i3;
  15616. }
  15617. return null;
  15618. } });
  15619. var Ch = function(t2) {
  15620. function e3() {
  15621. var e4 = t2.call(this) || this;
  15622. return e4.className = "CategoryAxisBreak", e4.properties.startLocation = 0.5, e4.properties.endLocation = 0.5, e4.applyTheme(), e4;
  15623. }
  15624. return C(e3, t2), Object.defineProperty(e3.prototype, "startPosition", { get: function() {
  15625. if (this.axis)
  15626. return this.axis.indexToPosition(this.adjustedStartValue, this.startLocation);
  15627. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPosition", { get: function() {
  15628. if (this.axis)
  15629. return this.axis.indexToPosition(this.adjustedEndValue, this.endLocation);
  15630. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startCategory", { get: function() {
  15631. return this.getPropertyValue("startCategory");
  15632. }, set: function(t3) {
  15633. this.setPropertyValue("startCategory", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15634. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endCategory", { get: function() {
  15635. return this.getPropertyValue("endCategory");
  15636. }, set: function(t3) {
  15637. this.setPropertyValue("endCategory", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15638. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startValue", { get: function() {
  15639. var t3 = this.getPropertyValue("startCategory");
  15640. return t3 ? this.axis.categoryToIndex(t3) : this.getPropertyValue("startValue");
  15641. }, set: function(t3) {
  15642. this.setPropertyValue("startValue", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15643. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endValue", { get: function() {
  15644. var t3 = this.getPropertyValue("endCategory");
  15645. return t3 ? this.axis.categoryToIndex(t3) : this.getPropertyValue("endValue");
  15646. }, set: function(t3) {
  15647. this.setPropertyValue("endValue", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15648. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startLocation", { get: function() {
  15649. return this.getPropertyValue("startLocation");
  15650. }, set: function(t3) {
  15651. this.setPropertyValue("startLocation", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15652. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLocation", { get: function() {
  15653. return this.getPropertyValue("endLocation");
  15654. }, set: function(t3) {
  15655. this.setPropertyValue("endLocation", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15656. }, enumerable: true, configurable: true }), e3;
  15657. }(rh);
  15658. Ii.registeredClasses.CategoryAxisBreak = Ch;
  15659. var Oh = function(t2) {
  15660. function e3() {
  15661. var e4 = t2.call(this) || this;
  15662. return e4.seriesDataItems = {}, e4.className = "CategoryAxisDataItem", e4.text = "{category}", e4.locations.category = 0, e4.locations.endCategory = 1, e4.deltaPosition = 0, e4.applyTheme(), e4;
  15663. }
  15664. return C(e3, t2), Object.defineProperty(e3.prototype, "category", { get: function() {
  15665. return this._adapterO && this._adapterO.isEnabled("category") ? this._adapterO.apply("category", this.properties.category) : this.properties.category;
  15666. }, set: function(t3) {
  15667. var e4 = this.properties.category;
  15668. this.setProperty("category", t3), Z(e4) && e4 != t3 && this.component && this.component.validateDataElement(this);
  15669. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endCategory", { get: function() {
  15670. return this.properties.endCategory;
  15671. }, set: function(t3) {
  15672. this.setProperty("endCategory", t3);
  15673. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "deltaPosition", { get: function() {
  15674. return this.properties.deltaCoordinate;
  15675. }, set: function(t3) {
  15676. t3 != this.properties.deltaCoordinate && (this.setProperty("deltaCoordinate", t3), this.component && (this.component.invalidateDataItems(), this.component.invalidateSeries()));
  15677. }, enumerable: true, configurable: true }), e3;
  15678. }(ah), Sh = function(t2) {
  15679. function e3() {
  15680. var e4 = t2.call(this) || this;
  15681. e4.dataItemsByCategory = new Pi(), e4.className = "CategoryAxis", e4.axisFieldName = "category", e4._lastDataItem = e4.createDataItem(), e4._lastDataItem.component = e4, e4._disposers.push(e4._lastDataItem), e4.applyTheme();
  15682. var i3 = e4.dataItemsByCategory;
  15683. return e4.addDisposer(e4.mainDataSet.events.on("removed", function(t3) {
  15684. i3.removeKey(t3.oldValue.category);
  15685. })), e4;
  15686. }
  15687. return C(e3, t2), e3.prototype.createDataItem = function() {
  15688. return new Oh();
  15689. }, e3.prototype.createAxisBreak = function() {
  15690. return new Ch();
  15691. }, e3.prototype.processSeriesDataItem = function(e4, i3) {
  15692. t2.prototype.processSeriesDataItem.call(this, e4, i3);
  15693. var n3 = e4["category" + this.axisLetter];
  15694. if (Z(n3)) {
  15695. var r3 = this.dataItemsByCategory.getKey(n3);
  15696. if (r3) {
  15697. var s2 = e4.component.uid, a2 = r3.seriesDataItems[s2];
  15698. a2 || (a2 = [], r3.seriesDataItems[s2] = a2), a2.push(e4);
  15699. }
  15700. } else
  15701. e4.component.dataItems.remove(e4);
  15702. }, e3.prototype.validateDataRange = function() {
  15703. var i3 = this;
  15704. t2.prototype.validateDataRange.call(this), ti(this._series.iterator(), function(t3) {
  15705. if (t3.xAxis instanceof e3 && t3.yAxis instanceof e3)
  15706. t3.invalidateDataRange();
  15707. else {
  15708. var n3 = i3.positionToIndex(i3.start), r3 = i3.positionToIndex(i3.end);
  15709. r3 >= i3.dataItems.length && r3--;
  15710. for (var s2 = t3.uid, a2 = void 0, o3 = void 0, l2 = n3; l2 <= r3; l2++) {
  15711. var h2 = i3.dataItems.getIndex(l2);
  15712. if (h2) {
  15713. var p2 = h2.seriesDataItems[s2];
  15714. if (p2)
  15715. for (var u2 = 0; u2 < p2.length; u2++) {
  15716. var d2 = p2[u2];
  15717. if (d2) {
  15718. var c2 = d2.index;
  15719. (!tt(a2) || c2 < a2) && (a2 = c2), (!tt(o3) || c2 > o3) && (o3 = c2);
  15720. }
  15721. }
  15722. }
  15723. }
  15724. tt(a2) ? t3.startIndex = a2 : t3.start = i3.start, tt(o3) ? t3.endIndex = o3 + 1 : t3.end = i3.end, i3._axisBreaks && i3._axisBreaks.length > 0 && t3.invalidateDataRange();
  15725. }
  15726. });
  15727. }, e3.prototype.validate = function() {
  15728. var e4 = this;
  15729. t2.prototype.validate.call(this);
  15730. var i3 = this.dataItems.length, n3 = ut(Math.floor(this.start * i3 - 1), 0, i3), r3 = ut(Math.ceil(this.end * i3), 0, i3);
  15731. this.renderer.invalid && this.renderer.validate();
  15732. var s2 = this.renderer.axisLength / Math.max(this.renderer.minGridDistance, 1 / Number.MAX_SAFE_INTEGER), a2 = Math.min(this.dataItems.length, Math.ceil((r3 - n3) / s2));
  15733. if (this._startIndex = Math.floor(n3 / a2) * a2, this._endIndex = Math.ceil(this.end * i3), this.fixAxisBreaks(), this._startIndex == this._endIndex && this._endIndex++, this._frequency = a2, !(this.axisLength <= 0)) {
  15734. this.maxZoomFactor = this.dataItems.length, this.dataItems.length <= 0 && (this.maxZoomFactor = 1), this.resetIterators(), n3 = gt(0, this._startIndex - this._frequency), r3 = yt(this.dataItems.length, this._endIndex + this._frequency);
  15735. for (var o3 = 0, l2 = 0; l2 < n3; l2++)
  15736. (p2 = this.dataItems.getIndex(l2)).__disabled = true;
  15737. l2 = r3;
  15738. for (var h2 = this.dataItems.length; l2 < h2; l2++)
  15739. (p2 = this.dataItems.getIndex(l2)).__disabled = true;
  15740. for (l2 = n3; l2 < r3; l2++)
  15741. if (l2 < this.dataItems.length) {
  15742. var p2 = this.dataItems.getIndex(l2);
  15743. l2 / this._frequency == Math.round(l2 / this._frequency) ? (this.isInBreak(l2) || (this.appendDataItem(p2), this.validateDataElement(p2, o3)), o3++) : p2.__disabled = true;
  15744. }
  15745. this.appendDataItem(this._lastDataItem), this.validateDataElement(this._lastDataItem, o3 + 1, this.dataItems.length), this._axisBreaks && this._axisBreaks.each(function(t3) {
  15746. var i4 = t3.adjustedStartValue, n4 = t3.adjustedEndValue;
  15747. if (vt({ start: i4, end: n4 }, { start: e4._startIndex, end: e4._endIndex })) {
  15748. for (var r4 = i4; r4 <= n4; r4++)
  15749. (o4 = e4.dataItems.getIndex(r4)).__disabled = true;
  15750. var s3 = ut(Math.ceil(e4._frequency / t3.breakSize), 1, n4 - i4), a3 = 0;
  15751. if (t3.breakSize > 0)
  15752. for (r4 = i4; r4 <= n4; r4 += s3) {
  15753. var o4;
  15754. (o4 = e4.dataItems.getIndex(r4)).__disabled = false, e4.appendDataItem(o4), e4.validateDataElement(o4, a3), a3++;
  15755. }
  15756. }
  15757. }), this.validateBreaks(), this.validateAxisRanges(), this.ghostLabel.invalidate(), this.renderer.invalidateLayout();
  15758. }
  15759. }, e3.prototype.validateDataElement = function(e4, i3, n3) {
  15760. t2.prototype.validateDataElement.call(this, e4), e4.itemIndex = this._axisItemCount, this._axisItemCount++;
  15761. var r3 = this.renderer;
  15762. tt(n3) || (n3 = this.categoryToIndex(e4.category));
  15763. var s2 = this.categoryToIndex(e4.endCategory);
  15764. tt(s2) || (s2 = n3);
  15765. var a2, o3, l2, h2 = this.indexToPosition(n3, e4.locations.category), p2 = this.indexToPosition(s2, e4.locations.endCategory);
  15766. e4.position = h2, e4.isRange && (a2 = s2, o3 = this.indexToPosition(n3, e4.locations.category), l2 = this.indexToPosition(a2, e4.locations.endCategory)), e4.point = r3.positionToPoint(h2);
  15767. var u2 = e4.tick;
  15768. u2 && !u2.disabled && r3.updateTickElement(u2, h2, p2);
  15769. var d2 = e4.grid;
  15770. d2 && !d2.disabled && r3.updateGridElement(d2, h2, p2);
  15771. var c2 = e4.label;
  15772. c2 && !c2.disabled && (e4.isRange && null != c2.text || (e4.text = e4.text), r3.updateLabelElement(c2, h2, p2), (r3 instanceof yh && e4.label.measuredWidth > this.ghostLabel.measuredWidth || r3 instanceof wh && e4.label.measuredHeight > this.ghostLabel.measuredHeight) && (e4.label.html ? this.ghostLabel.html = e4.label.currentText : this.ghostLabel.text = e4.label.currentText));
  15773. var f2 = e4.axisFill;
  15774. f2 && !f2.disabled && (e4.isRange || (a2 = n3 + this._frequency, o3 = this.indexToPosition(n3, f2.location), l2 = this.indexToPosition(a2, f2.location)), r3.updateFillElement(f2, o3, l2), e4.isRange || this.fillRule(e4, i3)), e4.bullet && r3.updateBullet(e4.bullet, h2, p2);
  15775. var g2 = e4.mask;
  15776. g2 && r3.updateFillElement(g2, o3, l2);
  15777. }, e3.prototype.disposeData = function() {
  15778. this.dataItemsByCategory.clear(), t2.prototype.disposeData.call(this);
  15779. }, e3.prototype.processDataItem = function(e4, i3) {
  15780. e4 && (t2.prototype.processDataItem.call(this, e4, i3), Z(e4.category) && this.dataItemsByCategory.setKey(e4.category, e4));
  15781. }, e3.prototype.getDataItem = function(t3) {
  15782. var e4 = t3[this.dataFields.category];
  15783. if (Z(e4))
  15784. return this.dataItemsByCategory.getKey(e4) || this.dataItems.create();
  15785. }, e3.prototype.indexToPosition = function(t3, e4) {
  15786. tt(e4) || (e4 = 0.5);
  15787. var i3 = this.startIndex, n3 = this.endIndex, r3 = this.adjustDifference(i3, n3), s2 = this.startLocation;
  15788. r3 -= s2, r3 -= 1 - this.endLocation, this._axisBreaks && Qe(this._axisBreaks.iterator(), function(e5) {
  15789. var r4 = e5.adjustedStartValue, s3 = e5.adjustedEndValue;
  15790. if (t3 < i3 || !tt(r4) || !tt(s3))
  15791. return false;
  15792. if (vt({ start: r4, end: s3 }, { start: i3, end: n3 })) {
  15793. r4 = Math.max(i3, r4), s3 = Math.min(n3, s3);
  15794. var a3 = e5.breakSize;
  15795. t3 > s3 ? i3 += (s3 - r4) * (1 - a3) : t3 < r4 || (t3 = r4 + (t3 - r4) * a3);
  15796. }
  15797. return true;
  15798. });
  15799. var a2 = 0, o3 = this.dataItems.getIndex(t3);
  15800. return o3 && (a2 = o3.deltaPosition), lt(a2 + (t3 + e4 - s2 - i3) / r3, 5);
  15801. }, e3.prototype.categoryToPosition = function(t3, e4) {
  15802. var i3 = this.categoryToIndex(t3);
  15803. return this.indexToPosition(i3, e4);
  15804. }, e3.prototype.categoryToPoint = function(t3, e4) {
  15805. var i3 = this.categoryToPosition(t3, e4), n3 = this.renderer.positionToPoint(i3), r3 = this.renderer.positionToAngle(i3);
  15806. return { x: n3.x, y: n3.y, angle: r3 };
  15807. }, e3.prototype.anyToPoint = function(t3, e4) {
  15808. return this.categoryToPoint(t3, e4);
  15809. }, e3.prototype.anyToPosition = function(t3, e4) {
  15810. return this.categoryToPosition(t3, e4);
  15811. }, e3.prototype.categoryToIndex = function(t3) {
  15812. if (Z(t3)) {
  15813. var e4 = this.dataItemsByCategory.getKey(t3);
  15814. if (e4)
  15815. return e4.index;
  15816. }
  15817. }, e3.prototype.zoomToCategories = function(t3, e4) {
  15818. this.zoomToIndexes(this.categoryToIndex(t3), this.categoryToIndex(e4) + 1);
  15819. }, e3.prototype.getAnyRangePath = function(t3, e4, i3, n3) {
  15820. var r3 = this.categoryToPosition(t3, i3), s2 = this.categoryToPosition(e4, n3);
  15821. return this.getPositionRangePath(r3, s2);
  15822. }, e3.prototype.roundPosition = function(t3, e4) {
  15823. var i3 = this.positionToIndex(t3);
  15824. return this.indexToPosition(i3, e4);
  15825. }, e3.prototype.getFirstSeriesDataItem = function(t3, e4) {
  15826. for (var i3 = 0; i3 < t3.dataItems.length; i3++) {
  15827. var n3 = t3.dataItems.getIndex(i3);
  15828. if (t3.xAxis == this && n3.categoryX == e4)
  15829. return n3;
  15830. if (t3.yAxis == this && n3.categoryY == e4)
  15831. return n3;
  15832. }
  15833. }, e3.prototype.getLastSeriesDataItem = function(t3, e4) {
  15834. for (var i3 = t3.dataItems.length - 1; i3 >= 0; i3--) {
  15835. var n3 = t3.dataItems.getIndex(i3);
  15836. if (t3.xAxis == this && n3.categoryX == e4)
  15837. return n3;
  15838. if (t3.yAxis == this && n3.categoryY == e4)
  15839. return n3;
  15840. }
  15841. }, e3.prototype.getSeriesDataItemByCategory = function(t3, e4) {
  15842. var i3, n3 = this;
  15843. return e4.dataItems.each(function(r3) {
  15844. e4.xAxis == n3 ? r3.categoryX == t3 && (i3 = r3) : e4.yAxis == n3 && r3.categoryY == t3 && (i3 = r3);
  15845. }), i3;
  15846. }, e3.prototype.getSeriesDataItem = function(t3, e4, i3) {
  15847. var n3 = this;
  15848. if (tt(e4)) {
  15849. var r3 = this.positionToIndex(e4);
  15850. r3 >= this.dataItems.length && r3--;
  15851. var s2 = this.dataItems.getIndex(r3);
  15852. if (s2) {
  15853. var a2, o3 = s2.category, l2 = t3.dataItems.getIndex(r3);
  15854. if (l2) {
  15855. if (t3.xAxis == this && l2.categoryX == o3)
  15856. return l2;
  15857. if (t3.yAxis == this && l2.categoryY == o3)
  15858. return l2;
  15859. }
  15860. return t3.dataItems.each(function(e5) {
  15861. t3.xAxis == n3 && e5.categoryX == o3 && (a2 || (a2 = e5), Math.abs(r3 - a2.index) > Math.abs(r3 - e5.index) && (a2 = e5)), t3.yAxis == n3 && e5.categoryY == o3 && (a2 || (a2 = e5), Math.abs(r3 - a2.index) > Math.abs(r3 - e5.index) && (a2 = e5));
  15862. }), a2;
  15863. }
  15864. }
  15865. }, e3.prototype.getX = function(t3, e4, i3, n3, r3) {
  15866. var s2 = this.getPositionX(t3, e4, i3, n3, r3);
  15867. return M(s2) ? this.basePoint.x : this.renderer.positionToPoint(s2).x;
  15868. }, e3.prototype.getPositionX = function(t3, e4, i3, n3, r3) {
  15869. var s2;
  15870. return Z(e4) && (s2 = this.categoryToPosition(t3.categories[e4], i3)), r3 && (s2 = ut(s2, r3.start, r3.end)), s2;
  15871. }, e3.prototype.getY = function(t3, e4, i3, n3, r3) {
  15872. var s2 = this.getPositionY(t3, e4, i3, n3, r3);
  15873. return M(s2) ? this.basePoint.y : this.renderer.positionToPoint(s2).y;
  15874. }, e3.prototype.getPositionY = function(t3, e4, i3, n3, r3) {
  15875. var s2;
  15876. return Z(e4) && (s2 = this.categoryToPosition(t3.categories[e4], i3)), r3 && (s2 = ut(s2, r3.start, r3.end)), s2;
  15877. }, e3.prototype.getAngle = function(t3, e4, i3, n3, r3) {
  15878. var s2 = this.categoryToPosition(t3.categories[e4], i3);
  15879. return r3 && (s2 = ut(s2, r3.start, r3.end)), this.positionToAngle(s2);
  15880. }, e3.prototype.getCellStartPosition = function(t3) {
  15881. return this.roundPosition(t3, 0);
  15882. }, e3.prototype.getCellEndPosition = function(t3) {
  15883. return this.roundPosition(t3, 1);
  15884. }, e3.prototype.getTooltipText = function(t3) {
  15885. var e4 = this.dataItems.getIndex(this.positionToIndex(t3));
  15886. if (e4)
  15887. return this.tooltipDataItem = e4, this.tooltip.dataItem = e4, this.tooltipText ? this.tooltipText : this._adapterO ? this._adapterO.apply("getTooltipText", e4.category) : e4.category;
  15888. }, e3.prototype.positionToIndex = function(t3) {
  15889. (t3 = lt(t3, 10)) < 0 && (t3 = 0), t3 > 1 && (t3 = 1);
  15890. var e4 = this.startIndex, i3 = this.endIndex, n3 = i3 - e4 - this.startLocation - (1 - this.endLocation);
  15891. t3 += 1 / n3 * this.startLocation;
  15892. var r3 = null;
  15893. return this._axisBreaks && Qe(this._axisBreaks.iterator(), function(s2) {
  15894. var a2 = s2.startPosition, o3 = s2.endPosition, l2 = s2.adjustedStartValue, h2 = s2.adjustedEndValue;
  15895. l2 = gt(l2, e4), h2 = yt(h2, i3);
  15896. var p2 = s2.breakSize;
  15897. if (n3 -= (h2 - l2) * (1 - p2), t3 > o3)
  15898. e4 += (h2 - l2) * (1 - p2);
  15899. else if (!(t3 < a2)) {
  15900. var u2 = (t3 - a2) / (o3 - a2);
  15901. return r3 = l2 + Math.round(u2 * (h2 - l2)), false;
  15902. }
  15903. return true;
  15904. }), tt(r3) || (r3 = Math.floor(t3 * n3 + e4)), r3 >= this.dataItems.length && (r3 = this.dataItems.length - 1), r3;
  15905. }, e3.prototype.positionToCategory = function(t3) {
  15906. return this.getPositionLabel(t3);
  15907. }, e3.prototype.getPositionLabel = function(t3) {
  15908. var e4 = this.dataItems.getIndex(this.positionToIndex(t3));
  15909. if (e4)
  15910. return e4.category;
  15911. }, Object.defineProperty(e3.prototype, "basePoint", { get: function() {
  15912. return this.renderer.positionToPoint(1);
  15913. }, enumerable: true, configurable: true }), e3.prototype.initRenderer = function() {
  15914. t2.prototype.initRenderer.call(this), this.renderer.baseGrid.disabled = true;
  15915. }, Object.defineProperty(e3.prototype, "frequency", { get: function() {
  15916. return this._frequency;
  15917. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sortBySeries", { get: function() {
  15918. return this.getPropertyValue("sortBySeries");
  15919. }, set: function(t3) {
  15920. this.setPropertyValue("sortBySeries", t3, true);
  15921. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  15922. e4 && Z(e4.sortBySeries) && Q(e4.sortBySeries) && (this.map.hasKey(e4.sortBySeries) ? e4.sortBySeries = this.map.getKey(e4.sortBySeries) : (this.addDelayedMap("sortBySeries", e4.sortBySeries), delete e4.sortBySeries)), t2.prototype.processConfig.call(this, e4);
  15923. }, e3;
  15924. }(oh);
  15925. Ii.registeredClasses.CategoryAxis = Sh, Ii.registeredClasses.CategoryAxisDataItem = Oh;
  15926. var Ih = function(t2) {
  15927. function e3() {
  15928. var e4 = t2.call(this) || this;
  15929. return e4.className = "XYSeriesDataItem", e4.values.customValue = {}, e4.values.valueX = { stack: 0 }, e4.values.valueY = { stack: 0 }, e4.values.openValueX = {}, e4.values.openValueY = {}, e4.values.dateX = {}, e4.values.dateY = {}, e4.values.openDateX = {}, e4.values.openDateY = {}, e4.setLocation("dateX", 0.5, 0), e4.setLocation("dateY", 0.5, 0), e4.setLocation("categoryX", 0.5, 0), e4.setLocation("categoryY", 0.5, 0), e4.applyTheme(), e4;
  15930. }
  15931. return C(e3, t2), Object.defineProperty(e3.prototype, "valueX", { get: function() {
  15932. return this.values.valueX.value;
  15933. }, set: function(t3) {
  15934. this.setValue("valueX", t3);
  15935. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "customValue", { get: function() {
  15936. return this.values.customValue.value;
  15937. }, set: function(t3) {
  15938. this.setValue("customValue", t3);
  15939. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valueY", { get: function() {
  15940. return this.values.valueY.value;
  15941. }, set: function(t3) {
  15942. this.setValue("valueY", t3);
  15943. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateX", { get: function() {
  15944. return this.getDate("dateX");
  15945. }, set: function(t3) {
  15946. this.setDate("dateX", t3);
  15947. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateY", { get: function() {
  15948. return this.getDate("dateY");
  15949. }, set: function(t3) {
  15950. this.setDate("dateY", t3);
  15951. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "categoryX", { get: function() {
  15952. return this.categories.categoryX;
  15953. }, set: function(t3) {
  15954. this.setCategory("categoryX", t3);
  15955. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "categoryY", { get: function() {
  15956. return this.categories.categoryY;
  15957. }, set: function(t3) {
  15958. this.setCategory("categoryY", t3);
  15959. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openValueX", { get: function() {
  15960. return this.values.openValueX.value;
  15961. }, set: function(t3) {
  15962. this.setValue("openValueX", t3);
  15963. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openValueY", { get: function() {
  15964. return this.values.openValueY.value;
  15965. }, set: function(t3) {
  15966. this.setValue("openValueY", t3);
  15967. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openDateX", { get: function() {
  15968. return this.getDate("openDateX");
  15969. }, set: function(t3) {
  15970. this.setDate("openDateX", t3);
  15971. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openDateY", { get: function() {
  15972. return this.getDate("openDateY");
  15973. }, set: function(t3) {
  15974. this.setDate("openDateY", t3);
  15975. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openCategoryX", { get: function() {
  15976. return this.categories.openCategoryX;
  15977. }, set: function(t3) {
  15978. this.setCategory("openCategoryX", t3);
  15979. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openCategoryY", { get: function() {
  15980. return this.categories.openCategoryY;
  15981. }, set: function(t3) {
  15982. this.setCategory("openCategoryY", t3);
  15983. }, enumerable: true, configurable: true }), e3.prototype.getMin = function(t3, e4, i3) {
  15984. var n3, r3 = this;
  15985. return tt(i3) || (i3 = 0), Ut(t3, function(t4) {
  15986. var s2;
  15987. s2 = e4 ? r3.getWorkingValue(t4) : r3.getValue(t4), ((s2 += i3) < n3 || !tt(n3)) && (n3 = s2);
  15988. }), n3;
  15989. }, e3.prototype.getMax = function(t3, e4, i3) {
  15990. var n3, r3 = this;
  15991. return tt(i3) || (i3 = 0), Ut(t3, function(t4) {
  15992. var s2;
  15993. s2 = e4 ? r3.getWorkingValue(t4) : r3.getValue(t4), ((s2 += i3) > n3 || !tt(n3)) && (n3 = s2);
  15994. }), n3;
  15995. }, e3;
  15996. }(th), Dh = function(t2) {
  15997. function e3() {
  15998. var e4 = t2.call(this) || this;
  15999. return e4.groupFields = {}, e4._xAxis = new ve(), e4._yAxis = new ve(), e4._xValueFields = [], e4._yValueFields = [], e4._baseInterval = {}, e4.dataGrouped = false, e4.usesShowFields = false, e4._dataSetChanged = false, e4._maxxX = 1e5, e4._maxxY = 1e5, e4._propertiesChanged = false, e4.outOfRange = false, e4.className = "XYSeries", e4.isMeasured = false, e4.groupFields.valueX = "close", e4.groupFields.valueY = "close", e4.groupFields.customValue = "close", e4.groupFields.openValueX = "open", e4.groupFields.openValueY = "open", e4.cursorTooltipEnabled = true, e4.cursorHoverEnabled = true, e4.excludeFromTotal = false, e4.mainContainer.mask = new Za(), e4.mainContainer.mask.setElement(e4.paper.add("path")), e4.stacked = false, e4.snapTooltip = false, e4._showBullets = false, e4.tooltip.pointerOrientation = "horizontal", e4.properties.stackToNegative = true, e4.hideTooltipWhileZooming = true, e4.setPropertyValue("maskBullets", true), e4.tooltip.events.on("hidden", function() {
  16000. e4.returnBulletDefaultState();
  16001. }, void 0, false), e4._disposers.push(e4._xAxis), e4._disposers.push(e4._yAxis), e4.observe(Ka, function() {
  16002. e4.inited && (e4._propertiesChanged = true, e4.legendDataItem && (e4.legendDataItem.childrenCreated = false), e4.chart && e4.chart.legend && e4.chart.legend.invalidateDataItems(), e4.invalidate());
  16003. }, void 0, false), e4.applyTheme(), e4;
  16004. }
  16005. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  16006. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("X/Y Series"));
  16007. }, e3.prototype.createDataItem = function() {
  16008. return new Ih();
  16009. }, e3.prototype.resetExtremes = function() {
  16010. this._tmin.clear(), this._tmax.clear(), this._smin.clear(), this._smax.clear();
  16011. }, e3.prototype.dataChangeUpdate = function() {
  16012. this.dataGrouped = false, this._baseInterval = {}, this._currentDataSetId = "", this.resetExtremes(), this.xAxis && this.xAxis.seriesDataChangeUpdate(this), this.yAxis && this.yAxis.seriesDataChangeUpdate(this);
  16013. }, e3.prototype.validateData = function() {
  16014. this._baseInterval = {};
  16015. var e4 = this.dataFields;
  16016. if (e4.valueYShow || e4.openValueXShow || e4.openValueXShow || e4.openValueYShow ? this.usesShowFields = true : this.usesShowFields = false, this.defineFields(), this.data.length > 0 && this.dataChangeUpdate(), t2.prototype.validateData.call(this), this.updateItemReaderText(), this.chart && (!Z(this.dataFields[this._xField]) || !Z(this.dataFields[this._yField])))
  16017. throw Error('Data fields for series "' + (this.name ? this.name : this.uid) + '" are not properly defined.');
  16018. this.inited && this.isHidden && this.hide(0), this.dataGrouped = false;
  16019. }, e3.prototype.processDataItem = function(e4, i3) {
  16020. try {
  16021. t2.prototype.processDataItem.call(this, e4, i3), this.xAxis.processSeriesDataItem(e4, "X"), this.yAxis.processSeriesDataItem(e4, "Y"), this.setInitialWorkingValues(e4);
  16022. } catch (t3) {
  16023. this._chart && this._chart.raiseCriticalError(t3);
  16024. }
  16025. }, e3.prototype.updateDataItem = function(e4) {
  16026. t2.prototype.updateDataItem.call(this, e4), this.xAxis.processSeriesDataItem(e4, "X"), this.yAxis.processSeriesDataItem(e4, "Y");
  16027. }, e3.prototype.setInitialWorkingValues = function(t3) {
  16028. }, e3.prototype.disposeData = function() {
  16029. t2.prototype.disposeData.call(this);
  16030. var e4 = this.xAxis, i3 = this.yAxis;
  16031. if (e4) {
  16032. var n3 = this.dataItemsByAxis.getKey(e4.uid);
  16033. n3 && n3.clear(), e4 instanceof Sh && this.clearCatAxis(e4);
  16034. }
  16035. if (i3) {
  16036. var r3 = this.dataItemsByAxis.getKey(i3.uid);
  16037. r3 && r3.clear(), i3 instanceof Sh && this.clearCatAxis(i3);
  16038. }
  16039. }, e3.prototype.clearCatAxis = function(t3) {
  16040. var e4 = this.uid;
  16041. t3.dataItems.each(function(t4) {
  16042. t4.seriesDataItems[e4] && (t4.seriesDataItems[e4] = []);
  16043. });
  16044. }, e3.prototype.defineFields = function() {
  16045. var t3 = this.xAxis, e4 = this.yAxis;
  16046. if (t3 && e4) {
  16047. var i3 = t3.axisFieldName, n3 = i3 + "X", r3 = "open" + En(i3) + "X", s2 = e4.axisFieldName, a2 = s2 + "Y", o3 = "open" + En(s2) + "Y";
  16048. this._xField = n3, this._yField = a2, this.dataFields[r3] && (this._xOpenField = r3), this.dataFields[o3] && (this._yOpenField = o3), this.dataFields[o3] || this.baseAxis != e4 || (this._yOpenField = a2), this.dataFields[r3] || this.baseAxis != t3 || (this._xOpenField = n3), this.stacked && this.baseAxis == t3 && (this._xOpenField = n3), this.stacked && this.baseAxis == e4 && (this._yOpenField = a2), t3 instanceof Sh && e4 instanceof Sh && (this._yOpenField || (this._yOpenField = a2)), this._xValueFields = [], this._yValueFields = [], this.addValueField(t3, this._xValueFields, this._xField), this.addValueField(t3, this._xValueFields, this._xOpenField), this.addValueField(e4, this._yValueFields, this._yField), this.addValueField(e4, this._yValueFields, this._yOpenField);
  16049. }
  16050. }, e3.prototype.addValueField = function(t3, e4, i3) {
  16051. t3 instanceof bh && Z(this.dataFields[i3]) && -1 == e4.indexOf(i3) && e4.push(i3);
  16052. }, e3.prototype.setCategoryAxisField = function(t3, e4) {
  16053. Z(this.dataFields[t3]) || (this.dataFields[t3] = e4.dataFields.category);
  16054. }, e3.prototype.setDateAxisField = function(t3, e4) {
  16055. Z(this.dataFields[t3]) || (this.dataFields[t3] = e4.dataFields.date);
  16056. }, e3.prototype.afterDraw = function() {
  16057. t2.prototype.afterDraw.call(this), this.createMask();
  16058. }, e3.prototype.createMask = function() {
  16059. if (this.mainContainer.mask) {
  16060. var t3 = this.getMaskPath();
  16061. ti(this.axisRanges.iterator(), function(e4) {
  16062. e4.axisFill.fillPath && (e4.axisFill.validate(), t3 += e4.axisFill.fillPath);
  16063. }), this.mainContainer.mask.path = t3;
  16064. }
  16065. }, e3.prototype.getMaskPath = function() {
  16066. return this.xAxis && this.yAxis ? Vo({ x: 0, y: 0, width: this.xAxis.axisLength, height: this.yAxis.axisLength }) : "";
  16067. }, e3.prototype.getAxisField = function(t3) {
  16068. return t3 == this.xAxis ? this.xField : t3 == this.yAxis ? this.yField : void 0;
  16069. }, e3.prototype.validateDataItems = function() {
  16070. var e4 = this.chart;
  16071. e4 && (this._maxxX = gt(1e5, 2 * e4.plotContainer.maxWidth), this._maxxY = gt(1e5, 2 * e4.plotContainer.maxHeight));
  16072. var i3 = this.xAxis, n3 = this.yAxis;
  16073. i3 && n3 && (i3.updateAxisBySeries(), n3.updateAxisBySeries()), t2.prototype.validateDataItems.call(this), i3 && n3 && (i3.postProcessSeriesDataItems(this), n3.postProcessSeriesDataItems(this));
  16074. }, e3.prototype.validateDataRange = function() {
  16075. var e4 = this.xAxis, i3 = this.yAxis;
  16076. e4 && i3 && (e4.dataRangeInvalid && e4.validateDataRange(), i3.dataRangeInvalid && i3.validateDataRange()), t2.prototype.validateDataRange.call(this);
  16077. }, e3.prototype.validate = function() {
  16078. var e4 = this.xAxis, i3 = this.yAxis;
  16079. if (e4 && i3) {
  16080. e4.invalid && e4.validate(), i3.invalid && i3.validate(), this.y = i3.pixelY, this.x = e4.pixelX, this._showBullets = true;
  16081. var n3 = this.minBulletDistance;
  16082. tt(n3) && this.baseAxis.axisLength / (this.endIndex - this.startIndex) < n3 && (this._showBullets = false);
  16083. }
  16084. if (this.updateTooltip(), !(e4 instanceof Ph && e4.groupData && !this.dataGrouped || i3 instanceof Ph && i3.groupData && !this.dataGrouped)) {
  16085. t2.prototype.validate.call(this);
  16086. var r3 = this.chart, s2 = this.maskBullets;
  16087. r3 && s2 && "XYChart" == r3.className && ("vertical" != r3.leftAxesContainer.layout && "vertical" != r3.rightAxesContainer.layout || (this.yAxis ? this.bulletsContainer.mask = this.yAxis.renderer.gridContainer : this.bulletsContainer.mask = void 0), "horizontal" != r3.topAxesContainer.layout && "horizontal" != r3.bottomAxesContainer.layout || (this.xAxis ? this.bulletsContainer.mask = this.xAxis.renderer.gridContainer : this.bulletsContainer.mask = void 0));
  16088. }
  16089. }, Object.defineProperty(e3.prototype, "xAxis", { get: function() {
  16090. if (this.chart) {
  16091. if (!this._xAxis.get()) {
  16092. var t3 = this.chart.xAxes.getIndex(0);
  16093. if (!t3)
  16094. throw Error("There are no X axes on chart.");
  16095. this.xAxis = t3;
  16096. }
  16097. return this._xAxis.get();
  16098. }
  16099. }, set: function(t3) {
  16100. this.setXAxis(t3);
  16101. }, enumerable: true, configurable: true }), e3.prototype.setXAxis = function(t3) {
  16102. var e4 = this._xAxis.get();
  16103. e4 != t3 && (e4 && (this.dataItemsByAxis.removeKey(e4.uid), this._xAxis.dispose(), e4.series.removeValue(this)), this._xAxis.set(t3, t3.registerSeries(this)), this.dataItemsByAxis.setKey(t3.uid, new Pi()), this.invalidateData());
  16104. }, Object.defineProperty(e3.prototype, "yAxis", { get: function() {
  16105. if (this.chart) {
  16106. if (!this._yAxis.get()) {
  16107. var t3 = this.chart.yAxes.getIndex(0);
  16108. if (!t3)
  16109. throw Error("There are no Y axes on chart.");
  16110. this.yAxis = t3;
  16111. }
  16112. return this._yAxis.get();
  16113. }
  16114. }, set: function(t3) {
  16115. this.setYAxis(t3);
  16116. }, enumerable: true, configurable: true }), e3.prototype.setYAxis = function(t3) {
  16117. var e4 = this._yAxis.get();
  16118. e4 != t3 && (e4 && (this.dataItemsByAxis.removeKey(e4.uid), this._yAxis.dispose(), e4.series.removeValue(this)), this._yAxis.set(t3, t3.registerSeries(this)), t3.chart instanceof Ah && t3.chart.handleYAxisSet(this), this.dataItemsByAxis.setKey(t3.uid, new Pi()), this.invalidateData());
  16119. }, Object.defineProperty(e3.prototype, "baseAxis", { get: function() {
  16120. var t3 = this.xAxis, e4 = this.yAxis;
  16121. return !this._baseAxis && t3 && e4 && (e4 instanceof Ph && (this._baseAxis = e4), t3 instanceof Ph && (this._baseAxis = t3), e4 instanceof Sh && (this._baseAxis = e4), t3 instanceof Sh && (this._baseAxis = t3), this._baseAxis || (this._baseAxis = t3)), this._baseAxis;
  16122. }, set: function(t3) {
  16123. this._baseAxis != t3 && (this._baseAxis = t3, this.invalidate());
  16124. }, enumerable: true, configurable: true }), e3.prototype.addData = function(e4, i3, n3) {
  16125. t2.prototype.addData.call(this, e4, i3, n3), this.scrollbarSeries && (this.scrollbarSeries.addData(e4, i3, true), this.scrollbarSeries._parseDataFrom = this._parseDataFrom);
  16126. }, e3.prototype.setData = function(e4) {
  16127. t2.prototype.setData.call(this, e4), this.scrollbarSeries && this.scrollbarSeries.setData(e4);
  16128. }, e3.prototype.setDataSet = function(e4) {
  16129. var i3 = t2.prototype.setDataSet.call(this, e4);
  16130. if (i3) {
  16131. this._dataSetChanged = true;
  16132. var n3 = this.dataItems;
  16133. if (this.resetExtremes(), n3 && n3.length > 0) {
  16134. var r3 = this.xAxis, s2 = this.yAxis;
  16135. this._prevStartIndex = void 0, this._prevEndIndex = void 0, this._startIndex = void 0, this._endIndex = void 0, this.appeared || this.processValues(false), r3 instanceof Ph && r3 == this.baseAxis && (this._tmin.setKey(r3.uid, n3.getIndex(0).dateX.getTime()), this._tmax.setKey(r3.uid, n3.getIndex(n3.length - 1).dateX.getTime()), this.dispatch("extremeschanged")), s2 instanceof Ph && s2 == this.baseAxis && (this._tmin.setKey(s2.uid, n3.getIndex(0).dateY.getTime()), this._tmax.setKey(s2.uid, n3.getIndex(n3.length - 1).dateY.getTime()), this.dispatch("extremeschanged"));
  16136. }
  16137. }
  16138. return i3;
  16139. }, e3.prototype.processValues = function(e4) {
  16140. t2.prototype.processValues.call(this, e4);
  16141. var i3 = this.xAxis, n3 = this.yAxis;
  16142. if (i3 && n3) {
  16143. var r3 = this.dataItems, s2 = 1 / 0, a2 = -1 / 0, o3 = 1 / 0, l2 = -1 / 0, h2 = this.startIndex, p2 = this.endIndex, u2 = h2, d2 = p2;
  16144. e4 || (h2 = 0, p2 = this.dataItems.length);
  16145. for (var c2 = h2; c2 < p2; c2++) {
  16146. var f2 = r3.getIndex(c2);
  16147. this.getStackValue(f2, e4);
  16148. var g2 = f2.getValue("valueX", "stack"), y2 = f2.getValue("valueY", "stack");
  16149. s2 = yt(f2.getMin(this._xValueFields, e4, g2), s2), o3 = yt(f2.getMin(this._yValueFields, e4, y2), o3), a2 = gt(f2.getMax(this._xValueFields, e4, g2), a2), l2 = gt(f2.getMax(this._yValueFields, e4, y2), l2), this.stacked && (this.baseAxis == i3 && (y2 < o3 && (o3 = y2), y2 > l2 && (l2 = y2)), this.baseAxis == n3 && (g2 < s2 && (s2 = g2), g2 > a2 && (a2 = g2)));
  16150. }
  16151. i3.processSeriesDataItems(), n3.processSeriesDataItems();
  16152. var m2 = i3.uid, v2 = n3.uid;
  16153. if (this.xAxis instanceof bh && (s2 == 1 / 0 || a2 == -1 / 0))
  16154. return this._smin.setKey(m2, void 0), this._smax.setKey(m2, void 0), void this.dispatchImmediately("selectionextremeschanged");
  16155. if (this.yAxis instanceof bh && (o3 == 1 / 0 || l2 == -1 / 0))
  16156. return this._smin.setKey(v2, void 0), this._smax.setKey(v2, void 0), void this.dispatchImmediately("selectionextremeschanged");
  16157. if (!e4 && (this._tmin.getKey(m2) != s2 || this._tmax.getKey(m2) != a2 || this._tmin.getKey(v2) != o3 || this._tmax.getKey(v2) != l2)) {
  16158. this._tmin.setKey(m2, s2), this._tmax.setKey(m2, a2), this._tmin.setKey(v2, o3), this._tmax.setKey(v2, l2);
  16159. var b2 = this.stackedSeries;
  16160. b2 && (b2.isDisposed() ? this.stackedSeries = void 0 : b2.processValues(false)), this.dispatchImmediately("extremeschanged");
  16161. }
  16162. if (h2 != u2 || p2 != d2)
  16163. for (s2 = 1 / 0, a2 = -1 / 0, o3 = 1 / 0, l2 = -1 / 0, c2 = u2; c2 < d2; c2++)
  16164. f2 = r3.getIndex(c2), this.getStackValue(f2, e4), g2 = f2.getValue("valueX", "stack"), y2 = f2.getValue("valueY", "stack"), s2 = yt(f2.getMin(this._xValueFields, e4, g2), s2), o3 = yt(f2.getMin(this._yValueFields, e4, y2), o3), a2 = gt(f2.getMax(this._xValueFields, e4, g2), a2), l2 = gt(f2.getMax(this._yValueFields, e4, y2), l2), this.stacked && (this.baseAxis == i3 && (y2 < o3 && (o3 = y2), y2 > l2 && (l2 = y2)), this.baseAxis == n3 && (g2 < s2 && (s2 = g2), g2 > a2 && (a2 = g2)));
  16165. if (this.xAxis instanceof bh && (s2 == 1 / 0 || a2 == -1 / 0))
  16166. return this._smin.setKey(m2, void 0), this._smax.setKey(m2, void 0), void this.dispatchImmediately("selectionextremeschanged");
  16167. if (this.yAxis instanceof bh && (o3 == 1 / 0 || l2 == -1 / 0))
  16168. return this._smin.setKey(v2, void 0), this._smax.setKey(v2, void 0), void this.dispatchImmediately("selectionextremeschanged");
  16169. if ((this._smin.getKey(m2) != s2 || this._smax.getKey(m2) != a2 || this._smin.getKey(v2) != o3 || this._smax.getKey(v2) != l2) && (this._smin.setKey(m2, s2), this._smax.setKey(m2, a2), this._smin.setKey(v2, o3), this._smax.setKey(v2, l2), this.appeared || 0 != this.start || 1 != this.end || this.dataItems != this.mainDataSet)) {
  16170. var x2, _2, P2 = false;
  16171. n3 instanceof bh && !(n3 instanceof Ph) && ((!tt(x2 = this._tmin.getKey(v2)) || (this.usesShowFields || this._dataSetChanged || i3 instanceof Ph && i3.groupData && this.isShowing) && o3 < x2 || this.stackedSeries && !this.isHidden) && (this._tmin.setKey(v2, o3), P2 = true), (!tt(_2 = this._tmax.getKey(v2)) || (this.usesShowFields || this._dataSetChanged || i3 instanceof Ph && i3.groupData && this.isShowing) && l2 > _2 || this.stackedSeries && !this.isHidden) && (this._tmax.setKey(v2, l2), P2 = true)), i3 instanceof bh && !(i3 instanceof Ph) && ((!tt(x2 = this._tmin.getKey(m2)) || (this.usesShowFields || this._dataSetChanged || n3 instanceof Ph && n3.groupData && this.isShowing) && s2 < x2 || this.stackedSeries && !this.isHidden) && (this._tmin.setKey(m2, s2), P2 = true), (!tt(_2 = this._tmax.getKey(m2)) || (this.usesShowFields || this._dataSetChanged || n3 instanceof Ph && n3.groupData && this.isShowing) && a2 > _2 || this.stackedSeries && !this.isHidden) && (this._tmax.setKey(m2, a2), P2 = true)), P2 && this.dispatchImmediately("extremeschanged"), 0 == this.start && 1 == this.end && (this._dataSetChanged = false), this.dispatchImmediately("selectionextremeschanged");
  16172. }
  16173. !e4 && this.stacked && this.processValues(true);
  16174. }
  16175. }, e3.prototype.hideTooltip = function(e4) {
  16176. t2.prototype.hideTooltip.call(this, e4), this.returnBulletDefaultState(), this._prevTooltipDataItem = void 0;
  16177. }, e3.prototype.showTooltipAtPosition = function(t3, e4) {
  16178. var i3;
  16179. if (this.visible && !this.isHiding && !this.isShowing) {
  16180. var n3 = this._xAxis.get(), r3 = this._yAxis.get();
  16181. n3 == this.baseAxis && (i3 = n3.getSeriesDataItem(this, n3.toAxisPosition(t3), this.snapTooltip)), r3 == this.baseAxis && (i3 = r3.getSeriesDataItem(this, r3.toAxisPosition(e4), this.snapTooltip));
  16182. var s2 = this.showTooltipAtDataItem(i3);
  16183. if (s2)
  16184. return s2;
  16185. if (!this.tooltipText && !this.tooltipHTML)
  16186. return;
  16187. }
  16188. this.hideTooltip();
  16189. }, e3.prototype.getAdjustedXLocation = function(t3, e4, i3) {
  16190. return t3.locations[e4];
  16191. }, e3.prototype.getAdjustedYLocation = function(t3, e4, i3) {
  16192. return t3.locations[e4];
  16193. }, e3.prototype.showTooltipAtDataItem = function(t3) {
  16194. var e4, i3, n3 = this.chart.cursor;
  16195. if (n3 && n3.hideSeriesTooltipsOnSelection && n3.selection.visible && n3.downPoint)
  16196. this.hideTooltip();
  16197. else if (this.returnBulletDefaultState(t3), t3 && t3.visible) {
  16198. if (this.updateLegendValue(t3), this.cursorTooltipEnabled) {
  16199. this.tooltipDataItem = t3;
  16200. var r3 = this.tooltipXField, s2 = this.tooltipYField;
  16201. if (Z(t3[r3]) && Z(t3[s2])) {
  16202. var a2 = this.getPoint(t3, r3, s2, this.getAdjustedXLocation(t3, r3), this.getAdjustedYLocation(t3, s2));
  16203. if (a2 && ("XYChart" != this.chart.className || !(a2.y < -1 || a2.y > this.yAxis.pixelHeight + 1 || a2.x < -1 || a2.x > this.xAxis.pixelWidth + 1))) {
  16204. if (this.tooltipX = a2.x, this.tooltipY = a2.y, this._prevTooltipDataItem != t3 && (this.dispatchImmediately("tooltipshownat", { type: "tooltipshownat", target: this, dataItem: t3 }), this._prevTooltipDataItem = t3), this.cursorHoverEnabled)
  16205. try {
  16206. for (var o3 = D(t3.sprites), l2 = o3.next(); !l2.done; l2 = o3.next()) {
  16207. var h2 = l2.value;
  16208. !h2.parent.visible || h2.isHidden || h2.__disabled || h2.disabled || h2.isHiding || (h2.interactions.isRealHover || (h2.dispatchImmediately("over"), h2.interactions.isRealHover = true), h2.isHover = true);
  16209. }
  16210. } catch (t4) {
  16211. e4 = { error: t4 };
  16212. } finally {
  16213. try {
  16214. l2 && !l2.done && (i3 = o3.return) && i3.call(o3);
  16215. } finally {
  16216. if (e4)
  16217. throw e4.error;
  16218. }
  16219. }
  16220. return this.showTooltip() ? ur({ x: a2.x, y: a2.y }, this) : void 0;
  16221. }
  16222. }
  16223. }
  16224. } else
  16225. this.updateLegendValue(t3, true);
  16226. }, e3.prototype.returnBulletDefaultState = function(t3) {
  16227. var e4, i3;
  16228. if (this._prevTooltipDataItem && this._prevTooltipDataItem != t3)
  16229. try {
  16230. for (var n3 = D(this._prevTooltipDataItem.sprites), r3 = n3.next(); !r3.done; r3 = n3.next()) {
  16231. var s2 = r3.value;
  16232. if (s2.isDisposed())
  16233. this._prevTooltipDataItem = void 0;
  16234. else {
  16235. var a2 = s2.interactions.isRealHover;
  16236. s2.isHover = false, a2 && s2.dispatchImmediately("out");
  16237. }
  16238. }
  16239. } catch (t4) {
  16240. e4 = { error: t4 };
  16241. } finally {
  16242. try {
  16243. r3 && !r3.done && (i3 = n3.return) && i3.call(n3);
  16244. } finally {
  16245. if (e4)
  16246. throw e4.error;
  16247. }
  16248. }
  16249. }, e3.prototype.shouldCreateBullet = function(t3, e4) {
  16250. var i3 = e4.xField;
  16251. Z(i3) || (i3 = this.xField);
  16252. var n3 = e4.yField;
  16253. if (Z(n3) || (n3 = this.yField), this.xAxis instanceof bh && !t3.hasValue([i3]) || this.yAxis instanceof bh && !t3.hasValue([n3]))
  16254. return false;
  16255. if (e4.disabled) {
  16256. var r3 = e4.propertyFields.disabled, s2 = t3.dataContext;
  16257. return !(!s2 || false !== s2[r3]);
  16258. }
  16259. return true;
  16260. }, e3.prototype.updateTooltip = function() {
  16261. this.hideTooltipWhileZooming || !this.tooltip || this.tooltip.isHidden || this.isHiding || this.isHidden || !this.tooltipDataItem || this.showTooltipAtDataItem(this.tooltipDataItem);
  16262. }, e3.prototype.positionBullet = function(e4) {
  16263. t2.prototype.positionBullet.call(this, e4);
  16264. var i3 = e4.dataItem, n3 = e4.xField;
  16265. Z(n3) || (n3 = this.xField);
  16266. var r3 = e4.yField;
  16267. Z(r3) || (r3 = this.yField);
  16268. var s2 = this.xAxis, a2 = this.yAxis;
  16269. if (s2 instanceof bh && !i3.hasValue([n3]) || a2 instanceof bh && !i3.hasValue([r3]))
  16270. e4.visible = false;
  16271. else {
  16272. var o3 = this.getBulletLocationX(e4, n3), l2 = this.getBulletLocationY(e4, r3);
  16273. if (this.getPoint(i3, n3, r3, o3, l2)) {
  16274. var h2 = this.xOpenField, p2 = this.yOpenField, u2 = void 0, d2 = void 0;
  16275. if (s2 instanceof Ph) {
  16276. tt(o3) || (o3 = 0);
  16277. var c2 = void 0, f2 = i3.getWorkingValue(n3);
  16278. if (h2 ? c2 = i3.getWorkingValue(h2) : s2 == this.baseAxis && (c2 = s2.baseValue), tt(c2) || (c2 = f2), (c2 += _2 = i3.getValue("valueX", "stack")) == (f2 += _2)) {
  16279. var g2 = s2.baseInterval, y2 = s2.dateFormatter;
  16280. c2 = aa(new Date(c2), g2.timeUnit, g2.count, y2.firstDayOfWeek, y2.utc, void 0, y2.timezoneMinutes, y2.timezone).getTime(), f2 = sa(new Date(c2), g2.timeUnit, g2.count, y2.utc).getTime();
  16281. }
  16282. var m2 = void 0;
  16283. m2 = s2 == this.baseAxis ? c2 + (f2 - c2) * o3 : c2 + (f2 - c2) * (1 - o3), u2 = s2.valueToPosition(m2);
  16284. } else if (s2 instanceof bh)
  16285. tt(o3) || (o3 = 0), c2 = void 0, f2 = i3.getWorkingValue(n3), c2 = h2 ? i3.getWorkingValue(h2) : s2.baseValue, m2 = (c2 += _2 = i3.getValue("valueX", "stack")) + ((f2 += _2) - c2) * (1 - o3), u2 = s2.valueToPosition(m2);
  16286. else if (s2 instanceof Sh) {
  16287. var v2 = this.getAdjustedXLocation(i3, n3, e4.locationX), b2 = this.getAdjustedXLocation(i3, h2, e4.locationX);
  16288. u2 = s2.categoryToPosition(i3[n3], v2);
  16289. var x2 = void 0;
  16290. h2 && (x2 = s2.categoryToPosition(i3[h2], b2)), tt(x2) || (x2 = 1), u2 = x2 + (u2 - x2) * o3;
  16291. }
  16292. if (a2 instanceof Ph)
  16293. tt(l2) || (l2 = 0), c2 = void 0, f2 = i3.getWorkingValue(r3), p2 ? c2 = i3.getWorkingValue(p2) : a2 == this.baseAxis && (c2 = a2.baseValue), tt(c2) || (c2 = f2), (c2 += _2 = i3.getValue("valueY", "stack")) == (f2 += _2) && (g2 = a2.baseInterval, y2 = a2.dateFormatter, c2 = aa(new Date(c2), g2.timeUnit, g2.count, y2.firstDayOfWeek, y2.utc, void 0, y2.timezoneMinutes, y2.timezone).getTime(), f2 = sa(new Date(c2), g2.timeUnit, g2.count, y2.utc).getTime()), m2 = void 0, m2 = a2 == this.baseAxis ? c2 + (f2 - c2) * l2 : c2 + (f2 - c2) * (1 - l2), d2 = a2.valueToPosition(m2);
  16294. else if (a2 instanceof bh) {
  16295. var _2;
  16296. tt(l2) || (l2 = 0), c2 = void 0, f2 = i3.getWorkingValue(r3), c2 = p2 ? i3.getWorkingValue(p2) : a2.baseValue, m2 = (c2 += _2 = i3.getValue("valueY", "stack")) + ((f2 += _2) - c2) * (1 - l2), d2 = a2.valueToPosition(m2);
  16297. } else if (a2 instanceof Sh) {
  16298. d2 = a2.categoryToPosition(i3[r3], l2);
  16299. var P2 = this.getAdjustedYLocation(i3, r3, e4.locationY), w2 = this.getAdjustedYLocation(i3, p2, e4.locationY);
  16300. d2 = a2.categoryToPosition(i3[r3], P2);
  16301. var C2 = void 0;
  16302. p2 && (C2 = a2.categoryToPosition(i3[p2], w2)), tt(C2) || (C2 = 1), d2 = C2 + (d2 - C2) * l2;
  16303. }
  16304. e4.visible = true, this.positionBulletReal(e4, u2, d2);
  16305. } else
  16306. e4.visible = false;
  16307. }
  16308. }, e3.prototype.positionBulletReal = function(t3, e4, i3) {
  16309. t3.x = this.xAxis.renderer.positionToPoint(e4, i3).x, t3.y = this.yAxis.renderer.positionToPoint(i3, e4).y;
  16310. }, e3.prototype.getBulletLocationX = function(t3, e4) {
  16311. var i3 = t3.locationX, n3 = t3.dataItem;
  16312. return tt(i3) || (i3 = n3.workingLocations[e4]), i3;
  16313. }, e3.prototype.getBulletLocationY = function(t3, e4) {
  16314. var i3 = t3.locationY, n3 = t3.dataItem;
  16315. return tt(i3) || (i3 = n3.workingLocations[e4]), i3;
  16316. }, e3.prototype.updateStacking = function() {
  16317. var t3 = this;
  16318. this.invalidateDataItems(), this.chart && this.chart.series.each(function(e4) {
  16319. e4.baseAxis == t3.baseAxis && (e4.stackedSeries = void 0, e4.invalidateDataItems(), e4.invalidateProcessedData());
  16320. });
  16321. }, Object.defineProperty(e3.prototype, "stacked", { get: function() {
  16322. return this.getPropertyValue("stacked");
  16323. }, set: function(t3) {
  16324. if (this.setPropertyValue("stacked", t3, true)) {
  16325. this.updateStacking();
  16326. var e4, i3 = this.xAxis, n3 = this.yAxis;
  16327. t3 || (i3 != this.baseAxis && i3 instanceof bh && (e4 = this.xField), n3 != this.baseAxis && n3 instanceof bh && (e4 = this.yField), e4 && this.dataItems.each(function(t4) {
  16328. t4.setCalculatedValue(e4, 0, "stack");
  16329. }));
  16330. }
  16331. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "snapTooltip", { get: function() {
  16332. return this.getPropertyValue("snapTooltip");
  16333. }, set: function(t3) {
  16334. this.setPropertyValue("snapTooltip", t3);
  16335. }, enumerable: true, configurable: true }), e3.prototype.show = function(e4) {
  16336. var i3, n3 = this;
  16337. this.isHidden && (this.appeared && this.xAxis instanceof Ph && this.xAxis.groupData && (this._tmin.setKey(this.yAxis.uid, void 0), this._tmax.setKey(this.yAxis.uid, void 0)), this.appeared && this.yAxis instanceof Ph && this.yAxis.groupData && (this._tmin.setKey(this.xAxis.uid, void 0), this._tmax.setKey(this.xAxis.uid, void 0))), this.xAxis instanceof bh && this.xAxis != this.baseAxis && (i3 = this._xValueFields), this.yAxis instanceof bh && this.yAxis != this.baseAxis && (i3 = this._yValueFields);
  16338. var r3, s2 = this.startIndex, a2 = this.endIndex, o3 = 0, l2 = this.defaultState.transitionDuration;
  16339. tt(e4) && (l2 = e4), ls.animationsEnabled || (l2 = 0), ti(ai(this.dataItems.iterator()), function(t3) {
  16340. var e5 = t3[0], h3 = t3[1], p2 = l2;
  16341. (e5 < n3.startIndex - 10 || e5 > n3.endIndex + 10) && (p2 = 0, o3 = 0), n3.sequencedInterpolation && p2 > 0 && (o3 = n3.sequencedInterpolationDelay * e5 + l2 * (e5 - s2) / (a2 - s2)), r3 = h3.show(p2, o3, i3);
  16342. }), this.dataSets.each(function(t3, e5) {
  16343. e5 != n3.dataItems && e5.each(function(t4) {
  16344. t4.events.disable(), t4.show(0, 0, i3), t4.events.enable();
  16345. });
  16346. }), this.mainDataSet != this.dataItems && this.mainDataSet.each(function(t3) {
  16347. t3.events.disable(), t3.show(0, 0, i3), t3.events.enable();
  16348. });
  16349. var h2 = t2.prototype.show.call(this, e4);
  16350. return r3 && !r3.isFinished() && (h2 = r3), this.hidden && (this.dispatchImmediately("selectionextremeschanged"), this.hidden = false), h2;
  16351. }, e3.prototype.hide = function(e4) {
  16352. var i3, n3, r3 = this, s2 = this.xAxis;
  16353. s2 instanceof bh && s2 != this.baseAxis && (i3 = this._xValueFields, n3 = this.stacked || s2.minZoomed < s2.baseValue && s2.maxZoomed > s2.baseValue || this.stackedSeries ? s2.baseValue : s2.min);
  16354. var a2 = this.yAxis;
  16355. a2 instanceof bh && a2 != this.baseAxis && (i3 = this._yValueFields, n3 = this.stacked || a2.minZoomed < a2.baseValue && a2.maxZoomed > a2.baseValue || this.stackedSeries ? a2.baseValue : a2.min);
  16356. var o3 = this.startIndex, l2 = this.endIndex, h2 = this.hiddenState.transitionDuration;
  16357. tt(e4) && (h2 = e4), ls.animationsEnabled || (h2 = 0);
  16358. var p2, u2 = 0;
  16359. ti(ai(this.dataItems.iterator()), function(t3) {
  16360. var e5 = t3[0], s3 = t3[1], a3 = h2;
  16361. (e5 < r3.startIndex - 10 || e5 > r3.endIndex + 10) && (a3 = 0), 0 == a3 ? s3.hide(0, 0, n3, i3) : (r3.sequencedInterpolation && a3 > 0 && (u2 = r3.sequencedInterpolationDelay * e5 + h2 * (e5 - o3) / (l2 - o3)), p2 = s3.hide(a3, u2, n3, i3));
  16362. }), this.dataSets.each(function(t3, e5) {
  16363. e5 != r3.dataItems && e5.each(function(t4) {
  16364. t4.events.disable(), t4.hide(0, 0, n3, i3), t4.events.enable();
  16365. });
  16366. }), this.mainDataSet != this.dataItems && this.mainDataSet.each(function(t3) {
  16367. t3.events.disable(), t3.hide(0, 0, n3, i3), t3.events.enable();
  16368. });
  16369. var d2 = t2.prototype.hide.call(this, h2);
  16370. return d2 && !d2.isFinished() && d2.delay(u2), p2 && !p2.isFinished() && (d2 = p2), this.validateDataElements(), d2;
  16371. }, e3.prototype.handleDataItemWorkingValueChange = function(e4, i3) {
  16372. t2.prototype.handleDataItemWorkingValueChange.call(this, e4, i3), ti(this.baseAxis.series.iterator(), function(t3) {
  16373. (t3.stacked || t3.stackedSeries) && t3.invalidateProcessedData();
  16374. });
  16375. }, e3.prototype.getStackValue = function(t3, e4) {
  16376. var i3 = this, n3 = this.xAxis, r3 = this.yAxis;
  16377. if (this.stacked && n3 && r3) {
  16378. var s2, a2 = this.chart, o3 = a2.series.indexOf(this);
  16379. n3 != this.baseAxis && n3 instanceof bh && (s2 = this.xField), r3 != this.baseAxis && r3 instanceof bh && (s2 = this.yField), s2 && (t3.setCalculatedValue(s2, 0, "stack"), Qe(a2.series.range(0, o3).backwards().iterator(), function(a3) {
  16380. if (a3.xAxis == n3 && a3.yAxis == r3 && a3.className == i3.className) {
  16381. a3.stackedSeries = i3;
  16382. var o4 = a3.dataItems.getIndex(t3.index);
  16383. if (o4 && o4.hasValue(i3._xValueFields) && o4.hasValue(i3._yValueFields)) {
  16384. var l2, h2 = t3.getValue(s2), p2 = o4.getValue(s2) + o4.getValue(s2, "stack");
  16385. if (l2 = e4 ? o4.getWorkingValue(s2) + o4.getValue(s2, "stack") : o4.getValue(s2) + o4.getValue(s2, "stack"), !i3.stackToNegative)
  16386. return t3.setCalculatedValue(s2, l2, "stack"), false;
  16387. if (h2 >= 0 && p2 >= 0 || h2 < 0 && p2 < 0)
  16388. return t3.setCalculatedValue(s2, l2, "stack"), false;
  16389. if (!a3.stacked)
  16390. return false;
  16391. } else if (!a3.stacked)
  16392. return false;
  16393. }
  16394. return true;
  16395. }));
  16396. }
  16397. }, Object.defineProperty(e3.prototype, "stackToNegative", { get: function() {
  16398. return this.getPropertyValue("stackToNegative");
  16399. }, set: function(t3) {
  16400. this.setPropertyValue("stackToNegative", t3, true);
  16401. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xField", { get: function() {
  16402. return this._xField;
  16403. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yField", { get: function() {
  16404. return this._yField;
  16405. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xOpenField", { get: function() {
  16406. return this._xOpenField;
  16407. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yOpenField", { get: function() {
  16408. return this._yOpenField;
  16409. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipXField", { get: function() {
  16410. return this._tooltipXField ? this._tooltipXField : this._xField;
  16411. }, set: function(t3) {
  16412. this._tooltipXField = t3;
  16413. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipYField", { get: function() {
  16414. return this._tooltipYField ? this._tooltipYField : this._yField;
  16415. }, set: function(t3) {
  16416. this._tooltipYField = t3;
  16417. }, enumerable: true, configurable: true }), e3.prototype.min = function(t3) {
  16418. return this._tmin.getKey(t3.uid);
  16419. }, e3.prototype.max = function(t3) {
  16420. return this._tmax.getKey(t3.uid);
  16421. }, e3.prototype.selectionMin = function(t3) {
  16422. return this._smin.getKey(t3.uid);
  16423. }, e3.prototype.selectionMax = function(t3) {
  16424. return this._smax.getKey(t3.uid);
  16425. }, e3.prototype.processConfig = function(e4) {
  16426. if (e4) {
  16427. if (Z(e4.baseAxis) && Q(e4.baseAxis) && (this.map.hasKey(e4.baseAxis) ? e4.baseAxis = this.map.getKey(e4.baseAxis) : (this.processingErrors.push("[XYSeries (" + (this.name || "unnamed") + ')] No axis with id "' + e4.baseAxis + '" found for `baseAxis`.'), delete e4.baseAxis)), Z(e4.xAxis) && Q(e4.xAxis) && (this.map.hasKey(e4.xAxis) ? e4.xAxis = this.map.getKey(e4.xAxis) : (this.processingErrors.push("[XYSeries (" + (this.name || "unnamed") + ')] No axis with id "' + e4.xAxis + '" found for `xAxis`.'), delete e4.xAxis)), Z(e4.yAxis) && Q(e4.yAxis) && (this.map.hasKey(e4.yAxis) ? e4.yAxis = this.map.getKey(e4.yAxis) : (this.processingErrors.push("[XYSeries (" + (this.name || "unnamed") + ')] No axis with id "' + e4.yAxis + '" found for `yAxis`.'), delete e4.yAxis)), Z(e4.axisRanges) && it(e4.axisRanges))
  16428. for (var i3 = 0, n3 = e4.axisRanges.length; i3 < n3; i3++) {
  16429. var r3 = e4.axisRanges[i3];
  16430. Z(r3.type) || (r3.type = "AxisDataItem"), Z(r3.axis) && Q(r3.axis) && this.map.hasKey(r3.axis) ? r3.component = this.map.getKey(r3.axis) : Z(r3.component) && Q(r3.component) && this.map.hasKey(r3.component) && (r3.component = this.map.getKey(r3.component));
  16431. }
  16432. Z(e4.dataFields) && et(e4.dataFields) || this.processingErrors.push("`dataFields` is not set for series [" + (this.name || "unnamed") + "]");
  16433. }
  16434. t2.prototype.processConfig.call(this, e4);
  16435. }, e3.prototype.getPoint = function(t3, e4, i3, n3, r3, s2, a2) {
  16436. if (this.xAxis && this.yAxis) {
  16437. var o3 = this.xAxis.getX(t3, e4, n3), l2 = this.yAxis.getY(t3, i3, r3);
  16438. return { x: o3 = ut(o3, -this._maxxX, this._maxxX), y: l2 = ut(l2, -this._maxxY, this._maxxY) };
  16439. }
  16440. }, e3.prototype.updateItemReaderText = function() {
  16441. if (!this._itemReaderTextChanged) {
  16442. var t3 = "";
  16443. Ne(this.dataFields, function(e4, i3) {
  16444. t3 += "{" + e4 + "} ";
  16445. }), this.itemReaderText = t3, this._itemReaderTextChanged = false;
  16446. }
  16447. }, Object.defineProperty(e3.prototype, "cursorTooltipEnabled", { get: function() {
  16448. return this.getPropertyValue("cursorTooltipEnabled");
  16449. }, set: function(t3) {
  16450. this.setPropertyValue("cursorTooltipEnabled", t3);
  16451. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorHoverEnabled", { get: function() {
  16452. return this.getPropertyValue("cursorHoverEnabled");
  16453. }, set: function(t3) {
  16454. this.setPropertyValue("cursorHoverEnabled", t3);
  16455. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "excludeFromTotal", { get: function() {
  16456. return this.getPropertyValue("excludeFromTotal");
  16457. }, set: function(t3) {
  16458. this.setPropertyValue("excludeFromTotal", t3);
  16459. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hideTooltipWhileZooming", { get: function() {
  16460. return this.getPropertyValue("hideTooltipWhileZooming");
  16461. }, set: function(t3) {
  16462. this.setPropertyValue("hideTooltipWhileZooming", t3);
  16463. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maskBullets", { get: function() {
  16464. return this.getPropertyValue("maskBullets");
  16465. }, set: function(t3) {
  16466. this.setPropertyValue("maskBullets", t3);
  16467. var e4 = this.chart;
  16468. e4 && (this.bulletsContainer.parent = t3 ? e4.bulletsContainer : e4.axisBulletsContainer);
  16469. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  16470. this.groupFields = Sn(e4.groupFields, {}), t2.prototype.copyFrom.call(this, e4);
  16471. }, e3.prototype.dispose = function() {
  16472. this.scrollbarSeries && this.scrollbarSeries.dispose(), t2.prototype.dispose.call(this);
  16473. }, e3;
  16474. }(eh);
  16475. Ii.registeredClasses.XYSeries = Dh, Ii.registeredClasses.XYSeriesDataItem = Ih;
  16476. var kh = function(t2) {
  16477. function e3() {
  16478. var e4 = t2.call(this) || this;
  16479. e4._chart = new ve(), e4.className = "XYChartScrollbar";
  16480. var i3 = new Ys();
  16481. e4.padding(0, 0, 0, 0);
  16482. var n3 = e4.createChild(Ah);
  16483. if (n3.shouldClone = false, n3.margin(0, 0, 0, 0), n3.padding(0, 0, 0, 0), n3.interactionsEnabled = false, e4._scrollbarChart = n3, !Ir()) {
  16484. var r3 = new Sl();
  16485. r3.filterUnits = "userSpaceOnUse", n3.plotContainer.filters.push(r3);
  16486. }
  16487. e4._disposers.push(e4._scrollbarChart), e4.minHeight = 60, e4.minWidth = 60;
  16488. var s2 = e4.createChild(Za);
  16489. s2.shouldClone = false, s2.setElement(e4.paper.add("path")), s2.fill = i3.getFor("background"), s2.fillOpacity = 0.8, s2.interactionsEnabled = false, s2.isMeasured = false, s2.toBack(), e4._unselectedOverlay = s2, e4._disposers.push(e4._unselectedOverlay), n3.toBack(), e4.background.cornerRadius(0, 0, 0, 0);
  16490. var a2 = e4.thumb.background;
  16491. a2.cornerRadius(0, 0, 0, 0), a2.fillOpacity = 0, a2.fill = i3.getFor("background");
  16492. var o3 = a2.states.getKey("hover");
  16493. o3 && (o3.properties.fillOpacity = 0.2);
  16494. var l2 = a2.states.getKey("down");
  16495. return l2 && (l2.properties.fillOpacity = 0.4), e4._disposers.push(e4._chart), e4.applyTheme(), e4;
  16496. }
  16497. return C(e3, t2), Object.defineProperty(e3.prototype, "series", { get: function() {
  16498. return this._series || (this._series = new Fi(), this._disposers.push(this._series.events.on("inserted", this.handleSeriesAdded, this, false)), this._disposers.push(this._series.events.on("removed", this.handleSeriesRemoved, this, false))), this._series;
  16499. }, enumerable: true, configurable: true }), e3.prototype.handleSeriesAdded = function(t3) {
  16500. var e4 = this, i3 = t3.newValue;
  16501. if (i3.xAxis && i3.yAxis) {
  16502. var n3 = this.scrollbarChart;
  16503. n3.zoomOutButton.disabled = true, this.chart = i3.chart, n3.dateFormatter.inputDateFormat = this.chart.dateFormatter.inputDateFormat, n3.language.locale = this.chart.language.locale;
  16504. var r3 = true, s2 = true;
  16505. ti(this.series.iterator(), function(t4) {
  16506. t4 != i3 && (t4.xAxis == i3.xAxis && e4.scrollbarChart.xAxes.length > 0 && (r3 = false), t4.yAxis == i3.yAxis && e4.scrollbarChart.yAxes.length > 0 && (s2 = false));
  16507. }), i3.events.on("beforedisposed", function() {
  16508. e4.series.removeValue(i3);
  16509. });
  16510. var a2 = new Ys(), o3 = i3.clone();
  16511. if ((ls.onlyShowOnViewport || ls.queue) && this.addDisposer(this.chart.events.on("removedfromqueue", function() {
  16512. n3.invalidateData();
  16513. })), Ir() && (o3.stroke = dn("#aaaaaa"), o3.fill = o3.stroke, o3.propertyFields.fill = void 0, o3.propertyFields.stroke = void 0), i3.scrollbarSeries = o3, r3) {
  16514. var l2 = i3.xAxis.clone();
  16515. if (n3.xAxes.moveValue(l2), l2.title.disabled = true, l2.rangeChangeDuration = 0, (d2 = l2.renderer).ticks.template.disabled = true, d2.inside = true, d2.labels.template.inside = true, d2.line.strokeOpacity = 0, d2.minLabelPosition = 0.02, d2.maxLabelPosition = 0.98, d2.line.disabled = true, d2.axisFills.template.disabled = true, d2.baseGrid.disabled = true, d2.grid.template.strokeOpacity = 0.05, d2.minWidth = void 0, d2.minHeight = void 0, d2.padding(0, 0, 0, 0), d2.chart = n3, d2.margin(0, 0, 0, 0), l2.width = V(100), d2.labels.template.fillOpacity = 0.5, l2.maxZoomCount = void 0, l2.minZoomCount = void 0, l2 instanceof Ph) {
  16516. var h2 = l2, p2 = i3.xAxis;
  16517. h2.groupCount = 5 * p2.groupCount, h2.min = void 0, h2.max = void 0, this._disposers.push(h2.clonedFrom.events.on("extremeschanged", function() {
  16518. tt(h2.clonedFrom.minDefined) && (h2.min = h2.clonedFrom.minDefined), tt(h2.clonedFrom.maxDefined) && (h2.max = h2.clonedFrom.maxDefined);
  16519. }, void 0, false));
  16520. } else if (l2 instanceof bh) {
  16521. var u2 = l2;
  16522. u2.min = void 0, u2.max = void 0, tt(u2.clonedFrom.minDefined) || (u2.min = void 0), tt(u2.clonedFrom.maxDefined) || (u2.max = void 0), this._disposers.push(u2.clonedFrom.events.on("extremeschanged", function() {
  16523. tt(u2.clonedFrom.minDefined) && (u2.min = u2.clonedFrom.min), tt(u2.clonedFrom.maxDefined) && (u2.max = u2.clonedFrom.max);
  16524. }, void 0, false));
  16525. }
  16526. o3.xAxis = l2;
  16527. } else
  16528. this.scrollbarChart.xAxes.each(function(t4) {
  16529. t4.clonedFrom == i3.xAxis && (o3.xAxis = t4);
  16530. });
  16531. if (s2) {
  16532. var d2, c2 = i3.yAxis.clone();
  16533. if (n3.yAxes.moveValue(c2), c2.title.disabled = true, c2.rangeChangeDuration = 0, (d2 = c2.renderer).ticks.template.disabled = true, d2.inside = true, d2.labels.template.inside = true, d2.line.strokeOpacity = 0, d2.minLabelPosition = 0.02, d2.maxLabelPosition = 0.98, d2.line.disabled = true, d2.axisFills.template.disabled = true, d2.grid.template.stroke = a2.getFor("background"), d2.baseGrid.disabled = true, d2.grid.template.strokeOpacity = 0.05, d2.minWidth = void 0, d2.minHeight = void 0, d2.chart = n3, d2.padding(0, 0, 0, 0), d2.margin(0, 0, 0, 0), c2.height = V(100), d2.labels.template.fillOpacity = 0.5, o3.yAxis = c2, c2.maxZoomCount = void 0, c2.minZoomCount = void 0, c2 instanceof Ph) {
  16534. var f2 = c2;
  16535. f2.min = void 0, f2.max = void 0, p2 = i3.yAxis, c2.groupCount = 5 * p2.groupCount, this._disposers.push(f2.clonedFrom.events.on("extremeschanged", function() {
  16536. tt(f2.clonedFrom.minDefined) && (f2.min = f2.clonedFrom.minDefined), tt(f2.clonedFrom.maxDefined) && (f2.max = f2.clonedFrom.maxDefined);
  16537. }));
  16538. } else if (c2 instanceof bh) {
  16539. var g2 = c2;
  16540. g2.min = void 0, g2.max = void 0, tt(g2.clonedFrom.minDefined) || (g2.min = void 0), tt(g2.clonedFrom.maxDefined) || (g2.max = void 0), this._disposers.push(g2.clonedFrom.events.on("extremeschanged", function() {
  16541. tt(g2.clonedFrom.minDefined) && (g2.min = g2.clonedFrom.minDefined), tt(g2.clonedFrom.maxDefined) && (g2.max = g2.clonedFrom.maxDefined);
  16542. }));
  16543. }
  16544. } else
  16545. this.scrollbarChart.yAxes.each(function(t4) {
  16546. t4.clonedFrom == i3.yAxis && (o3.yAxis = t4);
  16547. });
  16548. o3.rangeChangeDuration = 0, o3.interpolationDuration = 0, o3.defaultState.transitionDuration = 0, o3.showOnInit = false, this._disposers.push(o3.events.on("validated", this.zoomOutAxes, this, false)), this._disposers.push(i3.events.on("datavalidated", function() {
  16549. o3.data != i3.data && (o3.data = i3.data);
  16550. }, void 0, false)), o3.defaultState.properties.visible = true, n3.series.push(o3), this.updateByOrientation();
  16551. }
  16552. }, e3.prototype.updateByOrientation = function() {
  16553. var t3 = this;
  16554. this._scrollbarChart && (ti(this._scrollbarChart.xAxes.iterator(), function(e4) {
  16555. var i3 = e4.renderer;
  16556. "vertical" == t3.orientation ? (i3.grid.template.disabled = true, i3.labels.template.disabled = true, i3.minGridDistance = 10) : (i3.grid.template.disabled = false, i3.labels.template.disabled = false, i3.minGridDistance = e4.clonedFrom.renderer.minGridDistance);
  16557. }), ti(this._scrollbarChart.yAxes.iterator(), function(e4) {
  16558. var i3 = e4.renderer;
  16559. "horizontal" == t3.orientation ? (i3.grid.template.disabled = true, i3.labels.template.disabled = true, i3.minGridDistance = 10) : (i3.grid.template.disabled = false, i3.labels.template.disabled = false, i3.minGridDistance = e4.clonedFrom.renderer.minGridDistance);
  16560. }));
  16561. }, e3.prototype.handleSeriesRemoved = function(t3) {
  16562. var e4 = t3.oldValue, i3 = this.scrollbarChart;
  16563. i3.series.each(function(t4) {
  16564. t4 && t4.clonedFrom == e4 && i3.series.removeValue(t4);
  16565. }), 0 == i3.series.length && (i3.xAxes.clear(), i3.yAxes.clear());
  16566. try {
  16567. e4.events.off("validated", this.zoomOutAxes, this);
  16568. } catch (t4) {
  16569. }
  16570. }, Object.defineProperty(e3.prototype, "scrollbarChart", { get: function() {
  16571. return this._scrollbarChart;
  16572. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "chart", { get: function() {
  16573. return this._chart.get();
  16574. }, set: function(t3) {
  16575. this._chart.get() !== t3 && (this._chart.set(t3, t3.events.on("datavalidated", this.handleDataChanged, this, false)), this.handleDataChanged(), this._scrollbarChart.dataProvider = t3);
  16576. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "unselectedOverlay", { get: function() {
  16577. return this._unselectedOverlay;
  16578. }, enumerable: true, configurable: true }), e3.prototype.handleDataChanged = function() {
  16579. this.chart.data != this.scrollbarChart.data ? this.scrollbarChart.data = this.chart.data : this.scrollbarChart.invalidateRawData();
  16580. }, e3.prototype.zoomOutAxes = function() {
  16581. var t3 = this.scrollbarChart;
  16582. ti(t3.xAxes.iterator(), function(t4) {
  16583. t4.zoom({ start: 0, end: 1 }, true, true);
  16584. }), ti(t3.yAxes.iterator(), function(t4) {
  16585. t4.zoom({ start: 0, end: 1 }, true, true);
  16586. });
  16587. }, e3.prototype.updateThumb = function(e4) {
  16588. if (void 0 === e4 && (e4 = true), t2.prototype.updateThumb.call(this, e4), this._unselectedOverlay) {
  16589. var i3 = this.thumb, n3 = i3.pixelX || 0, r3 = i3.pixelY || 0, s2 = i3.pixelWidth || 0, a2 = i3.pixelHeight || 0, o3 = "";
  16590. "horizontal" == this.orientation ? (o3 = Vo({ x: -1, y: 0, width: n3, height: a2 }), o3 += Vo({ x: n3 + s2, y: 0, width: (this.pixelWidth || 0) - n3 - s2, height: a2 })) : (o3 = Vo({ x: 0, y: 0, width: s2, height: r3 }), o3 += Vo({ x: 0, y: r3 + a2, width: s2, height: (this.pixelHeight || 0) - r3 - a2 })), this._unselectedOverlay.path = o3;
  16591. }
  16592. }, e3.prototype.processConfig = function(e4) {
  16593. if (e4 && Z(e4.series) && it(e4.series))
  16594. for (var i3 = 0, n3 = e4.series.length; i3 < n3; i3++) {
  16595. var r3 = e4.series[i3];
  16596. if (Z(r3) && Q(r3)) {
  16597. if (!this.map.hasKey(r3))
  16598. throw Error("XYChartScrollbar error: Series with id `" + r3 + "` does not exist.");
  16599. e4.series[i3] = this.map.getKey(r3);
  16600. }
  16601. }
  16602. t2.prototype.processConfig.call(this, e4);
  16603. }, e3;
  16604. }(Uo);
  16605. Ii.registeredClasses.XYChartScrollbar = kh;
  16606. var Th = function(t2) {
  16607. function e3() {
  16608. var e4 = t2.call(this) || this;
  16609. return e4.className = "XYChartDataItem", e4.applyTheme(), e4;
  16610. }
  16611. return C(e3, t2), e3;
  16612. }(ih), Ah = function(t2) {
  16613. function e3() {
  16614. var e4 = t2.call(this) || this;
  16615. e4._axisRendererX = wh, e4._axisRendererY = yh, e4._seriesPoints = [], e4.className = "XYChart", e4.maskBullets = true, e4.arrangeTooltips = true;
  16616. var i3 = e4.chartContainer;
  16617. i3.layout = "vertical", e4.padding(15, 15, 15, 15);
  16618. var n3 = i3.createChild($a);
  16619. n3.shouldClone = false, n3.layout = "vertical", n3.width = V(100), n3.zIndex = 1, e4.topAxesContainer = n3;
  16620. var r3 = i3.createChild($a);
  16621. r3.shouldClone = false, r3.layout = "horizontal", r3.width = V(100), r3.height = V(100), r3.zIndex = 0, e4.yAxesAndPlotContainer = r3;
  16622. var s2 = i3.createChild($a);
  16623. s2.shouldClone = false, s2.width = V(100), s2.layout = "vertical", s2.zIndex = 1, e4.bottomAxesContainer = s2;
  16624. var a2 = r3.createChild($a);
  16625. a2.shouldClone = false, a2.layout = "horizontal", a2.height = V(100), a2.contentAlign = "right", a2.events.on("transformed", e4.updateXAxesMargins, e4, false), a2.zIndex = 1, e4.leftAxesContainer = a2;
  16626. var o3 = r3.createChild($a);
  16627. o3.shouldClone = false, o3.height = V(100), o3.width = V(100), o3.background.fillOpacity = 0, e4.plotContainer = o3, e4.mouseWheelBehavior = "none", e4._cursorContainer = o3;
  16628. var l2 = r3.createChild($a);
  16629. l2.shouldClone = false, l2.layout = "horizontal", l2.height = V(100), l2.zIndex = 1, l2.events.on("transformed", e4.updateXAxesMargins, e4, false), e4.rightAxesContainer = l2, e4.seriesContainer.parent = o3, e4.bulletsContainer.parent = o3;
  16630. var h2 = o3.createChild(dl);
  16631. h2.shouldClone = false, h2.align = "right", h2.valign = "top", h2.zIndex = Number.MAX_SAFE_INTEGER, h2.marginTop = 5, h2.marginRight = 5, h2.hide(0), e4.zoomOutButton = h2;
  16632. var p2 = e4.plotContainer.createChild($a);
  16633. return p2.shouldClone = false, p2.width = V(100), p2.height = V(100), p2.isMeasured = false, p2.zIndex = 4, p2.layout = "none", e4.axisBulletsContainer = p2, e4._bulletMask = e4.plotContainer, e4.events.on("beforedatavalidated", function() {
  16634. e4.series.each(function(t3) {
  16635. t3.dataGrouped = false, t3._baseInterval = {};
  16636. });
  16637. }, e4, false), e4.applyTheme(), e4;
  16638. }
  16639. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  16640. t2.prototype.applyInternalDefaults.call(this), this.zoomOutButton.exportable = false, Z(this.readerTitle) || (this.readerTitle = this.language.translate("X/Y chart"));
  16641. }, e3.prototype.draw = function() {
  16642. t2.prototype.draw.call(this), this.seriesContainer.toFront(), this.bulletsContainer.toFront(), this.maskBullets && (this.bulletsContainer.mask = this._bulletMask), this.updateSeriesLegend();
  16643. }, e3.prototype.updatePlotElements = function() {
  16644. ti(this.series.iterator(), function(t3) {
  16645. t3.invalidate();
  16646. });
  16647. }, e3.prototype.validateData = function() {
  16648. 0 == this._parseDataFrom && (ti(this.xAxes.iterator(), function(t3) {
  16649. t3.dataChangeUpdate();
  16650. }), ti(this.yAxes.iterator(), function(t3) {
  16651. t3.dataChangeUpdate();
  16652. }), ti(this.series.iterator(), function(t3) {
  16653. t3.dataChangeUpdate();
  16654. })), t2.prototype.validateData.call(this);
  16655. }, e3.prototype.updateXAxesMargins = function() {
  16656. var t3 = this.leftAxesContainer.measuredWidth, e4 = this.rightAxesContainer.measuredWidth, i3 = this.bottomAxesContainer;
  16657. i3.paddingLeft == t3 && i3.paddingRight == e4 || (i3.paddingLeft = t3, i3.paddingRight = e4);
  16658. var n3 = this.topAxesContainer;
  16659. n3.paddingLeft == t3 && n3.paddingRight == e4 || (n3.paddingLeft = t3, n3.paddingRight = e4);
  16660. }, e3.prototype.reinit = function() {
  16661. t2.prototype.reinit.call(this), this.series.each(function(t3) {
  16662. t3.appeared = false;
  16663. });
  16664. }, e3.prototype.handleXAxisChange = function(t3) {
  16665. this.updateXAxis(t3.target);
  16666. }, e3.prototype.handleYAxisChange = function(t3) {
  16667. this.updateYAxis(t3.target);
  16668. }, e3.prototype.processXAxis = function(t3) {
  16669. var e4 = t3.newValue;
  16670. e4.chart = this, e4.renderer || (e4.renderer = new this._axisRendererX(), e4.renderer.observe(["opposite", "inside", "inversed", "minGridDistance"], this.handleXAxisChange, this, false)), e4.axisLetter = "X", e4.events.on("startendchanged", this.handleXAxisRangeChange, this, false), e4.dataProvider = this, this.updateXAxis(e4.renderer), this.processAxis(e4);
  16671. }, e3.prototype.processYAxis = function(t3) {
  16672. var e4 = t3.newValue;
  16673. e4.chart = this, e4.renderer || (e4.renderer = new this._axisRendererY(), e4.renderer.observe(["opposite", "inside", "inversed", "minGridDistance"], this.handleYAxisChange, this, false)), e4.axisLetter = "Y", e4.events.on("startendchanged", this.handleYAxisRangeChange, this, false), e4.dataProvider = this, this.updateYAxis(e4.renderer), this.processAxis(e4);
  16674. }, e3.prototype.handleXAxisRangeChange = function() {
  16675. var t3 = this.getCommonAxisRange(this.xAxes);
  16676. this.scrollbarX && this.zoomAxes(this.xAxes, t3, true), this.toggleZoomOutButton(), this.updateScrollbar(this.scrollbarX, t3);
  16677. }, e3.prototype.toggleZoomOutButton = function() {
  16678. if (this.zoomOutButton) {
  16679. var t3 = false;
  16680. Qe(this.xAxes.iterator(), function(e4) {
  16681. if (e4.toggleZoomOutButton) {
  16682. if (e4.maxZoomCount > 0) {
  16683. var i3 = e4.maxZoomFactor / e4.maxZoomCount;
  16684. if (lt(e4.end - e4.start, 3) < 1 / i3)
  16685. return t3 = true, false;
  16686. } else if (lt(e4.start, 3) > 0 || lt(e4.end, 3) < 1)
  16687. return t3 = true, false;
  16688. }
  16689. return true;
  16690. }), Qe(this.yAxes.iterator(), function(e4) {
  16691. if (e4.toggleZoomOutButton) {
  16692. if (e4.maxZoomCount > 0) {
  16693. var i3 = e4.maxZoomFactor / e4.maxZoomCount;
  16694. if (lt(e4.end - e4.start, 3) < 1 / i3)
  16695. return t3 = true, false;
  16696. } else if (lt(e4.start, 3) > 0 || lt(e4.end, 3) < 1)
  16697. return t3 = true, false;
  16698. return true;
  16699. }
  16700. }), this.seriesAppeared || (t3 = false), t3 ? this.zoomOutButton.show() : this.zoomOutButton.hide();
  16701. }
  16702. }, e3.prototype.seriesAppeared = function() {
  16703. var t3 = false;
  16704. return ti(this.series.iterator(), function(e4) {
  16705. if (!e4.appeared)
  16706. return t3 = false, false;
  16707. }), t3;
  16708. }, e3.prototype.handleYAxisRangeChange = function() {
  16709. var t3 = this.getCommonAxisRange(this.yAxes);
  16710. this.scrollbarY && this.zoomAxes(this.yAxes, t3, true), this.toggleZoomOutButton(), this.updateScrollbar(this.scrollbarY, t3);
  16711. }, e3.prototype.updateScrollbar = function(t3, e4) {
  16712. t3 && (t3.skipRangeEvents(), t3.start = e4.start, t3.end = e4.end);
  16713. }, e3.prototype.getCommonAxisRange = function(t3) {
  16714. var e4, i3;
  16715. return t3.each(function(t4) {
  16716. if (!t4.zoomable || t4 instanceof bh && t4.syncWithAxis)
  16717. ;
  16718. else {
  16719. var n3 = t4.start, r3 = t4.end;
  16720. t4.renderer.inversed && (n3 = 1 - t4.end, r3 = 1 - t4.start), (!tt(e4) || n3 < e4) && (e4 = n3), (!tt(i3) || r3 > i3) && (i3 = r3);
  16721. }
  16722. }), { start: e4, end: i3 };
  16723. }, e3.prototype.updateXAxis = function(t3) {
  16724. var e4 = t3.axis;
  16725. t3.opposite ? (e4.parent = this.topAxesContainer, e4.toFront()) : (e4.parent = this.bottomAxesContainer, e4.toBack()), e4.renderer && e4.renderer.processRenderer();
  16726. }, e3.prototype.updateYAxis = function(t3) {
  16727. var e4 = t3.axis;
  16728. t3.opposite ? (e4.parent = this.rightAxesContainer, e4.toBack()) : (e4.parent = this.leftAxesContainer, e4.toFront()), e4.renderer && e4.renderer.processRenderer();
  16729. }, e3.prototype.processAxis = function(t3) {
  16730. var e4 = this;
  16731. t3 instanceof Sh && this._dataUsers.moveValue(t3);
  16732. var i3 = t3.renderer;
  16733. i3.gridContainer.parent = this.plotContainer, i3.gridContainer.toBack(), i3.breakContainer.parent = this.plotContainer, i3.breakContainer.toFront(), i3.breakContainer.zIndex = 10, t3.addDisposer(new ye(function() {
  16734. e4.dataUsers.removeValue(t3);
  16735. })), i3.bulletsContainer.parent = this.axisBulletsContainer, this._disposers.push(t3.events.on("positionchanged", function() {
  16736. var n3 = dr({ x: 0, y: 0 }, t3, e4.axisBulletsContainer);
  16737. t3.renderer instanceof yh && (i3.bulletsContainer.y = n3.y), t3.renderer instanceof wh && (i3.bulletsContainer.x = n3.x);
  16738. }, void 0, false)), this.plotContainer.events.on("maxsizechanged", function() {
  16739. e4.inited && (t3.invalidateDataItems(), e4.updateSeriesMasks());
  16740. }, t3, false);
  16741. }, e3.prototype.updateSeriesMasks = function() {
  16742. Ir() && this.series.each(function(t3) {
  16743. var e4 = t3.mainContainer.mask;
  16744. t3.mainContainer.mask = void 0, t3.mainContainer.mask = e4;
  16745. });
  16746. }, e3.prototype.handleSeriesRemoved = function(e4) {
  16747. var i3 = e4.oldValue;
  16748. i3 && (i3.xAxis && (i3.xAxis.series.removeValue(i3), i3.xAxis.invalidateProcessedData()), i3.yAxis && (i3.yAxis.series.removeValue(i3), i3.yAxis.invalidateProcessedData()), this.series.each(function(t3) {
  16749. t3.resetExtremes();
  16750. })), t2.prototype.handleSeriesRemoved.call(this, e4);
  16751. }, Object.defineProperty(e3.prototype, "xAxes", { get: function() {
  16752. return this._xAxes || (this._xAxes = new Fi(), this._xAxes.events.on("inserted", this.processXAxis, this, false), this._xAxes.events.on("removed", this.handleAxisRemoval, this, false), this._disposers.push(new Ai(this._xAxes, false))), this._xAxes;
  16753. }, enumerable: true, configurable: true }), e3.prototype.handleAxisRemoval = function(t3) {
  16754. var e4 = t3.oldValue;
  16755. this.dataUsers.removeValue(e4), e4.autoDispose && e4.dispose();
  16756. }, Object.defineProperty(e3.prototype, "yAxes", { get: function() {
  16757. return this._yAxes || (this._yAxes = new Fi(), this._yAxes.events.on("inserted", this.processYAxis, this, false), this._yAxes.events.on("removed", this.handleAxisRemoval, this, false), this._disposers.push(new Ai(this._yAxes, false))), this._yAxes;
  16758. }, enumerable: true, configurable: true }), e3.prototype.handleSeriesAdded = function(e4) {
  16759. try {
  16760. t2.prototype.handleSeriesAdded.call(this, e4);
  16761. var i3 = e4.newValue;
  16762. 0 != this.xAxes.length && 0 != this.yAxes.length || (Ii.removeFromInvalidComponents(i3), i3.dataInvalid = false), i3.xAxis, i3.yAxis, i3.maskBullets = i3.maskBullets, null == i3.fill && (this.patterns ? (Z(i3.stroke) || (i3.stroke = this.colors.next()), i3.fill = this.patterns.next(), Z(i3.fillOpacity) && (i3.fill.backgroundOpacity = i3.fillOpacity), i3.stroke instanceof un && (i3.fill.stroke = i3.stroke, i3.fill.fill = i3.stroke)) : i3.fill = this.colors.next()), Z(i3.stroke) || (i3.stroke = i3.fill);
  16763. } catch (t3) {
  16764. this.raiseCriticalError(t3);
  16765. }
  16766. }, Object.defineProperty(e3.prototype, "cursor", { get: function() {
  16767. return this._cursor;
  16768. }, set: function(t3) {
  16769. this._cursor != t3 && (this._cursor && this.removeDispose(this._cursor), this._cursor = t3, t3 && (this._disposers.push(t3), t3.chart = this, t3.shouldClone = false, t3.parent = this._cursorContainer, t3.events.on("cursorpositionchanged", this.handleCursorPositionChange, this, false), t3.events.on("zoomstarted", this.handleCursorZoomStart, this, false), t3.events.on("zoomended", this.handleCursorZoomEnd, this, false), t3.events.on("panstarted", this.handleCursorPanStart, this, false), t3.events.on("panning", this.handleCursorPanning, this, false), t3.events.on("panended", this.handleCursorPanEnd, this, false), t3.events.on("behaviorcanceled", this.handleCursorCanceled, this, false), t3.events.on("hidden", this.handleHideCursor, this, false), t3.zIndex = Number.MAX_SAFE_INTEGER - 1, this.tapToActivate && this.setTapToActivate(this.tapToActivate)));
  16770. }, enumerable: true, configurable: true }), e3.prototype.handleCursorPositionChange = function() {
  16771. var t3 = this.cursor;
  16772. if (t3.visible && !t3.isHiding) {
  16773. var e4 = this.cursor.xPosition, i3 = this.cursor.yPosition;
  16774. this.showSeriesTooltip({ x: e4, y: i3 });
  16775. var n3 = [], r3 = t3.snapToSeries;
  16776. if (r3 && !t3.downPoint) {
  16777. r3 instanceof Dh && (r3 = [r3]);
  16778. var s2 = [];
  16779. Ut(r3, function(t4) {
  16780. if (!t4.isHidden && !t4.isHiding) {
  16781. var r4 = t4.xAxis, a3 = t4.yAxis;
  16782. r4 instanceof bh && !(r4 instanceof Ph) && a3 instanceof bh && !(a3 instanceof Ph) ? (t4.dataItems.each(function(t5) {
  16783. s2.push(t5);
  16784. }), ie(n3, t4.yAxis), ie(n3, t4.xAxis)) : (t4.baseAxis == t4.xAxis && (ie(n3, t4.yAxis), s2.push(r4.getSeriesDataItem(t4, r4.toAxisPosition(e4), true))), t4.baseAxis == t4.yAxis && (ie(n3, t4.xAxis), s2.push(a3.getSeriesDataItem(t4, a3.toAxisPosition(i3), true))));
  16785. }
  16786. });
  16787. var a2 = this.getClosest(s2, e4, i3);
  16788. a2 && (this.series.each(function(t4) {
  16789. var e5 = a2.component;
  16790. t4 != e5 && (t4.hideTooltip(), t4.xAxis != e5.xAxis && (t4.xAxis.hideTooltip(), n3.push(t4.xAxis)), t4.yAxis != e5.yAxis && (t4.yAxis.hideTooltip(), n3.push(t4.yAxis)));
  16791. }), a2.component.showTooltipAtDataItem(a2), t3.handleSnap(a2.component));
  16792. }
  16793. this._seriesPoints = [], this._cursorXPosition != e4 && this.showAxisTooltip(this.xAxes, e4, n3), this._cursorYPosition != i3 && this.showAxisTooltip(this.yAxes, i3, n3), this.arrangeTooltips && this.sortSeriesTooltips(this._seriesPoints), this.legend && this.legend.afterDraw();
  16794. }
  16795. }, e3.prototype.getClosest = function(t3, e4, i3) {
  16796. var n3, r3 = 1 / 0;
  16797. return Kt(t3, function(t4) {
  16798. if (t4) {
  16799. var s2 = t4.component.xAxis, a2 = t4.component.yAxis, o3 = s2.positionToCoordinate(s2.toGlobalPosition(s2.toAxisPosition(e4))), l2 = a2.positionToCoordinate(a2.toGlobalPosition(a2.toAxisPosition(i3))), h2 = t4.component.xField, p2 = t4.component.yField;
  16800. if (s2 instanceof bh && !tt(t4.getValue(h2)))
  16801. return true;
  16802. if (a2 instanceof bh && !tt(t4.getValue(p2)))
  16803. return true;
  16804. var u2 = s2.positionToCoordinate(s2.toGlobalPosition(s2.getPositionX(t4, h2, t4.locations[h2], "valueX"))), d2 = a2.positionToCoordinate(a2.toGlobalPosition(a2.getPositionY(t4, p2, t4.locations[p2], "valueY"))), c2 = Math.sqrt(Math.pow(o3 - u2, 2) + Math.pow(l2 - d2, 2));
  16805. return c2 < r3 && (r3 = c2, n3 = t4), true;
  16806. }
  16807. }), n3;
  16808. }, e3.prototype.handleHideCursor = function() {
  16809. this.hideObjectTooltip(this.xAxes), this.hideObjectTooltip(this.yAxes), this.hideObjectTooltip(this.series), this._cursorXPosition = void 0, this._cursorYPosition = void 0, this.updateSeriesLegend();
  16810. }, e3.prototype.updateSeriesLegend = function() {
  16811. ti(this.series.iterator(), function(t3) {
  16812. t3.updateLegendValue();
  16813. });
  16814. }, e3.prototype.hideObjectTooltip = function(t3) {
  16815. ti(t3.iterator(), function(t4) {
  16816. t4.cursorTooltipEnabled && t4.hideTooltip(0);
  16817. });
  16818. }, e3.prototype.showSeriesTooltip = function(t3) {
  16819. var e4 = this;
  16820. if (t3) {
  16821. var i3 = [];
  16822. this.series.each(function(n3) {
  16823. if (n3.xAxis instanceof Ph && n3.xAxis.snapTooltip || n3.yAxis instanceof Ph && n3.yAxis.snapTooltip)
  16824. ;
  16825. else {
  16826. var r3 = n3.showTooltipAtPosition(t3.x, t3.y);
  16827. r3 && (n3.tooltip.setBounds(fr({ x: 0, y: 0, width: e4.pixelWidth, height: e4.pixelHeight }, e4)), i3.push({ series: n3, point: r3 }));
  16828. }
  16829. }), this.arrangeTooltips && this.sortSeriesTooltips(i3);
  16830. } else
  16831. this.series.each(function(t4) {
  16832. t4.hideTooltip();
  16833. });
  16834. }, e3.prototype.sortSeriesTooltips = function(t3) {
  16835. if (t3.length > 0) {
  16836. var e4 = this.cursor;
  16837. if (e4 && tt(e4.maxTooltipDistance)) {
  16838. var i3, n3, r3 = ur({ x: e4.point.x, y: e4.point.y }, e4), s2 = 1 / 0;
  16839. Ut(t3, function(t4) {
  16840. var e5 = t4.series, a3 = t4.point;
  16841. if (a3) {
  16842. var o4 = { x: a3.x, y: a3.y }, l3 = Math.abs(_t(o4, r3));
  16843. l3 < s2 && (n3 = o4, s2 = l3, i3 = e5);
  16844. }
  16845. });
  16846. var a2 = [];
  16847. i3 && (Ut(t3, function(t4) {
  16848. if (Math.abs(_t(t4.point, n3)) <= Math.abs(e4.maxTooltipDistance))
  16849. a2.push({ series: t4.series, point: t4.point });
  16850. else {
  16851. var i4 = t4.series.tooltipDataItem;
  16852. i4 && Ut(i4.sprites, function(t5) {
  16853. t5.isHover = false, t5.handleOutReal();
  16854. }), t4.series.hideTooltip(0);
  16855. }
  16856. }), e4.maxTooltipDistance < 0 && (a2.length > 0 && Ut(a2, function(t4) {
  16857. i3 != t4.series && t4.series.hideTooltip(0);
  16858. }), a2 = [{ series: i3, point: n3 }])), t3 = a2;
  16859. }
  16860. var o3 = ur({ x: -0.5, y: -0.5 }, this.plotContainer), l2 = ur({ x: this.plotContainer.pixelWidth + 0.5, y: this.plotContainer.pixelHeight + 0.5 }, this.plotContainer), h2 = 0, p2 = [];
  16861. Ut(t3, function(t4) {
  16862. var e5 = t4.point;
  16863. e5 && Nt(e5, { x: o3.x, y: o3.y, width: l2.x - o3.x, height: l2.y - o3.y }) && (p2.push({ point: e5, series: t4.series }), h2 += e5.y);
  16864. }), t3 = p2;
  16865. var u2 = this.series.getIndex(0), d2 = false;
  16866. u2 && u2.yAxis && u2.yAxis.renderer.inversed && (d2 = true), d2 ? t3.sort(function(t4, e5) {
  16867. return Bi(t4.point.y, e5.point.y);
  16868. }) : (t3.sort(function(t4, e5) {
  16869. return Bi(e5.point.y, t4.point.y);
  16870. }), t3.reverse());
  16871. var c2 = h2 / t3.length, f2 = yr({ x: 0, y: 0 }, this.svgContainer.SVGContainer).y;
  16872. if (t3.length > 0) {
  16873. var g2 = o3.y, y2 = l2.y;
  16874. vr({ x: 0, y: g2 }, this);
  16875. var m2 = false;
  16876. if (c2 > g2 + (y2 - g2) / 2)
  16877. for (var v2 = y2, b2 = t3.length - 1; b2 >= 0; b2--) {
  16878. var x2 = (C2 = t3[b2].series).tooltip, _2 = t3[b2].point.y;
  16879. if (x2.setBounds({ x: 0, y: -f2, width: this.pixelWidth, height: v2 + f2 }), x2.invalid && x2.validate(), x2.toBack(), (v2 = ur({ x: 0, y: x2.label.pixelY - x2.pixelY + _2 - x2.pixelMarginTop }, x2).y) < -f2) {
  16880. m2 = true;
  16881. break;
  16882. }
  16883. }
  16884. if (c2 <= g2 + (y2 - g2) / 2 || m2)
  16885. for (var P2 = g2, w2 = (b2 = 0, t3.length); b2 < w2; b2++) {
  16886. var C2 = t3[b2].series;
  16887. _2 = t3[b2].point.y, (x2 = C2.tooltip).setBounds({ x: 0, y: P2, width: this.pixelWidth, height: y2 }), x2.invalid && x2.validate(), x2.toBack(), P2 = ur({ x: 0, y: x2.label.pixelY + x2.label.measuredHeight - x2.pixelY + _2 + x2.pixelMarginBottom }, x2).y;
  16888. }
  16889. }
  16890. }
  16891. }, e3.prototype.showAxisTooltip = function(t3, e4, i3) {
  16892. var n3 = this;
  16893. ti(t3.iterator(), function(t4) {
  16894. i3 && -1 != i3.indexOf(t4) || (n3.dataItems.length > 0 || t4.dataItems.length > 0) && t4.showTooltipAtPosition(e4);
  16895. });
  16896. }, e3.prototype.getUpdatedRange = function(t3, e4) {
  16897. if (t3) {
  16898. var i3, n3;
  16899. t3.renderer.inversed ? (bt(e4), i3 = 1 - t3.end, n3 = 1 - t3.start) : (i3 = t3.start, n3 = t3.end);
  16900. var r3 = n3 - i3;
  16901. return { start: i3 + e4.start * r3, end: i3 + e4.end * r3 };
  16902. }
  16903. }, e3.prototype.handleCursorZoomEnd = function(t3) {
  16904. var e4 = this.cursor, i3 = e4.behavior;
  16905. if ("zoomX" == i3 || "zoomXY" == i3) {
  16906. var n3 = e4.xRange;
  16907. n3 && this.xAxes.length > 0 && ((n3 = this.getUpdatedRange(this.xAxes.getIndex(0), n3)).priority = "start", this.zoomAxes(this.xAxes, n3));
  16908. }
  16909. if ("zoomY" == i3 || "zoomXY" == i3) {
  16910. var r3 = e4.yRange;
  16911. r3 && this.yAxes.length > 0 && ((r3 = this.getUpdatedRange(this.yAxes.getIndex(0), r3)).priority = "start", this.zoomAxes(this.yAxes, r3));
  16912. }
  16913. this.handleHideCursor();
  16914. }, e3.prototype.handleCursorPanStart = function(t3) {
  16915. var e4 = this.xAxes.getIndex(0);
  16916. e4 && (this._panStartXRange = { start: e4.start, end: e4.end }, e4.renderer.inversed && (this._panStartXRange = bt(this._panStartXRange)));
  16917. var i3 = this.yAxes.getIndex(0);
  16918. i3 && (this._panStartYRange = { start: i3.start, end: i3.end }, i3.renderer.inversed && (this._panStartYRange = bt(this._panStartYRange)));
  16919. }, e3.prototype.handleCursorPanEnd = function(t3) {
  16920. var e4 = this.cursor, i3 = e4.behavior;
  16921. if (this._panEndXRange && ("panX" == i3 || "panXY" == i3)) {
  16922. var n3 = this._panEndXRange, r3 = this._panStartXRange, s2 = 0;
  16923. n3.start < 0 && (s2 = n3.start), r3.end > 1 ? n3.end > r3.end && (s2 = n3.end - r3.end) : n3.end > 1 && (s2 = n3.end - 1), this.zoomAxes(this.xAxes, { start: n3.start - s2, end: n3.end - s2 }, false, e4.snapOnPan), this._panEndXRange = void 0, this._panStartXRange = void 0;
  16924. }
  16925. !this._panEndYRange || "panY" != i3 && "panXY" != i3 || (s2 = 0, (n3 = this._panEndYRange).start < 0 && (s2 = n3.start), n3.end > 1 && (s2 = n3.end - 1), this.zoomAxes(this.yAxes, { start: n3.start - s2, end: n3.end - s2 }, false, e4.snapOnPan), this._panEndYRange = void 0, this._panStartYRange = void 0);
  16926. }, e3.prototype.handleCursorCanceled = function() {
  16927. this._panEndXRange = void 0, this._panStartXRange = void 0;
  16928. }, e3.prototype.handleCursorPanning = function(t3) {
  16929. var e4 = this.cursor, i3 = e4.behavior, n3 = e4.maxPanOut;
  16930. if (this._panStartXRange && ("panX" == i3 || "panXY" == i3)) {
  16931. var r3 = this._panStartXRange, s2 = e4.xRange, a2 = this.getCommonAxisRange(this.xAxes), o3 = r3.end - r3.start, l2 = s2.start * (a2.end - a2.start), h2 = Math.max(-n3, l2 + r3.start), p2 = Math.min(l2 + r3.end, 1 + n3);
  16932. h2 <= 0 && (p2 = h2 + o3), p2 >= 1 && (h2 = p2 - o3);
  16933. var u2 = { start: h2, end: p2 };
  16934. this._panEndXRange = u2, this.zoomAxes(this.xAxes, u2, false, false, e4.maxPanOut);
  16935. }
  16936. !this._panStartYRange || "panY" != i3 && "panXY" != i3 || (r3 = this._panStartYRange, s2 = e4.yRange, a2 = this.getCommonAxisRange(this.yAxes), o3 = r3.end - r3.start, l2 = s2.start * (a2.end - a2.start), h2 = Math.max(-n3, l2 + r3.start), p2 = Math.min(l2 + r3.end, 1 + n3), h2 <= 0 && (p2 = h2 + o3), p2 >= 1 && (h2 = p2 - o3), u2 = { start: h2, end: p2 }, this._panEndYRange = u2, this.zoomAxes(this.yAxes, u2, false, false, e4.maxPanOut)), this.handleHideCursor();
  16937. }, e3.prototype.handleYAxisSet = function(t3) {
  16938. }, e3.prototype.handleCursorZoomStart = function(t3) {
  16939. }, Object.defineProperty(e3.prototype, "scrollbarX", { get: function() {
  16940. return this._scrollbarX;
  16941. }, set: function(t3) {
  16942. var e4 = this;
  16943. this._scrollbarX && this.removeDispose(this._scrollbarX), this._scrollbarX = t3, t3 && (this._disposers.push(t3), t3.parent = this.topAxesContainer, t3.shouldClone = false, t3.startGrip.exportable = false, t3.endGrip.exportable = false, t3.toBack(), t3.orientation = "horizontal", t3.events.on("rangechanged", this.handleXScrollbarChange, this, false), this.events.on("datavalidated", function() {
  16944. return t3.updateThumb(false);
  16945. }, this, false), t3.adapter.add("positionValue", function(t4) {
  16946. var i3 = e4.xAxes.getIndex(0);
  16947. return i3 && (t4.value = i3.getPositionLabel(i3.renderer.inversed ? 1 - t4.position : t4.position)), t4;
  16948. }));
  16949. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "scrollbarY", { get: function() {
  16950. return this._scrollbarY;
  16951. }, set: function(t3) {
  16952. var e4 = this;
  16953. this._scrollbarY && this.removeDispose(this._scrollbarY), this._scrollbarY = t3, t3 && (this._disposers.push(t3), t3.parent = this.rightAxesContainer, t3.startGrip.exportable = false, t3.shouldClone = false, t3.endGrip.exportable = false, t3.toFront(), t3.orientation = "vertical", t3.events.on("rangechanged", this.handleYScrollbarChange, this, false), this.events.on("datavalidated", function() {
  16954. return t3.updateThumb(false);
  16955. }, this, false), t3.adapter.add("positionValue", function(t4) {
  16956. var i3 = e4.yAxes.getIndex(0);
  16957. return i3 && (t4.value = i3.getPositionLabel(t4.position)), t4;
  16958. }));
  16959. }, enumerable: true, configurable: true }), e3.prototype.handleXScrollbarChange = function(t3) {
  16960. if (this.inited) {
  16961. var e4 = t3.target, i3 = e4.range;
  16962. 0 == i3.start && (i3.priority = "start"), 1 == i3.end && (i3.priority = "end"), i3 = this.zoomAxes(this.xAxes, i3), e4.fixRange(i3);
  16963. }
  16964. }, e3.prototype.handleYScrollbarChange = function(t3) {
  16965. if (this.inited) {
  16966. var e4 = t3.target, i3 = e4.range;
  16967. 1 == i3.end && (i3.priority = "end"), 0 == i3.start && (i3.priority = "start"), i3 = this.zoomAxes(this.yAxes, i3), e4.fixRange(i3);
  16968. }
  16969. }, e3.prototype.zoomAxes = function(t3, e4, i3, n3, r3, s2) {
  16970. var a2 = { start: 0, end: 1 };
  16971. this.showSeriesTooltip();
  16972. var o3 = e4;
  16973. return this.dataInvalid || ti(t3.iterator(), function(t4) {
  16974. var l2 = t4.maxZoomFactor;
  16975. if (tt(t4.minZoomCount) && (l2 /= t4.minZoomCount), s2 && 1 / (e4.end - e4.start) >= l2)
  16976. ;
  16977. else if (t4.zoomable) {
  16978. if (e4 = t4.renderer.inversed ? bt(o3) : o3, t4.hideTooltip(0), n3)
  16979. if (t4 instanceof Sh) {
  16980. var h2 = t4.getCellEndPosition(0) - t4.getCellStartPosition(0);
  16981. e4.start = t4.roundPosition(e4.start + h2 / 2 - t4.startLocation * h2, t4.startLocation), e4.end = t4.roundPosition(e4.end - h2 / 2 + (1 - t4.endLocation) * h2, t4.endLocation);
  16982. } else
  16983. e4.start = t4.roundPosition(e4.start + 1e-4, 0, t4.startLocation), e4.end = t4.roundPosition(e4.end + 1e-4, 0, t4.endLocation);
  16984. var p2 = t4.zoom(e4, i3, i3, r3);
  16985. t4.renderer.inversed && (p2 = bt(p2)), a2 = p2;
  16986. }
  16987. }), a2;
  16988. }, Object.defineProperty(e3.prototype, "maskBullets", { get: function() {
  16989. return this.getPropertyValue("maskBullets");
  16990. }, set: function(t3) {
  16991. this.setPropertyValue("maskBullets", t3, true) && this.bulletsContainer && (this.bulletsContainer.mask = t3 ? this._bulletMask : void 0);
  16992. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "arrangeTooltips", { get: function() {
  16993. return this.getPropertyValue("arrangeTooltips");
  16994. }, set: function(t3) {
  16995. this.setPropertyValue("arrangeTooltips", t3, true);
  16996. }, enumerable: true, configurable: true }), e3.prototype.handleWheel = function(t3) {
  16997. var e4 = this.plotContainer, i3 = pr(gr(t3.point, this.htmlContainer, this.svgContainer.cssScale), e4), n3 = t3.shift.y;
  16998. this.handleWheelReal(n3, this.mouseWheelBehavior, i3);
  16999. }, e3.prototype.handleHorizontalWheel = function(t3) {
  17000. var e4 = this.plotContainer, i3 = pr(gr(t3.point, this.htmlContainer, this.svgContainer.cssScale), e4);
  17001. this.handleWheelReal(t3.shift.x, this.horizontalMouseWheelBehavior, i3);
  17002. }, e3.prototype.handleWheelReal = function(t3, e4, i3) {
  17003. if (0 != t3) {
  17004. var n3 = this.plotContainer, r3 = this.getCommonAxisRange(this.xAxes), s2 = this.getCommonAxisRange(this.yAxes), a2 = 0.1;
  17005. if ("panX" == e4 || "panXY" == e4) {
  17006. var o3 = r3.end - r3.start, l2 = Math.max(-0, r3.start + a2 * t3 / 100 * (r3.end - r3.start)), h2 = Math.min(r3.end + a2 * t3 / 100 * (r3.end - r3.start), 1);
  17007. l2 <= 0 && (h2 = l2 + o3), h2 >= 1 && (l2 = h2 - o3), this.zoomAxes(this.xAxes, { start: l2, end: h2 });
  17008. }
  17009. if ("panY" == e4 || "panXY" == e4) {
  17010. t3 *= -1;
  17011. var p2 = s2.end - s2.start, u2 = Math.max(-0, s2.start + a2 * t3 / 100 * (s2.end - s2.start)), d2 = Math.min(s2.end + a2 * t3 / 100 * (s2.end - s2.start), 1);
  17012. u2 <= 0 && (d2 = u2 + p2), d2 >= 1 && (u2 = d2 - p2), this.zoomAxes(this.yAxes, { start: u2, end: d2 });
  17013. }
  17014. if ("zoomX" == e4 || "zoomXY" == e4) {
  17015. var c2 = i3.x / n3.maxWidth, f2 = this.xAxes.getIndex(0).toAxisPosition(c2);
  17016. l2 = Math.max(-0, r3.start - a2 * (r3.end - r3.start) * t3 / 100 * c2), l2 = Math.min(l2, f2), h2 = Math.min(r3.end + a2 * (r3.end - r3.start) * t3 / 100 * (1 - c2), 1), h2 = Math.max(h2, f2), this.zoomAxes(this.xAxes, { start: l2, end: h2 }, void 0, void 0, void 0, true);
  17017. }
  17018. if ("zoomY" == e4 || "zoomXY" == e4) {
  17019. var g2 = i3.y / n3.maxHeight, y2 = this.yAxes.getIndex(0).toAxisPosition(g2);
  17020. u2 = Math.max(-0, s2.start - a2 * (s2.end - s2.start) * t3 / 100 * (1 - g2)), u2 = Math.min(u2, y2), d2 = Math.min(s2.end + a2 * t3 / 100 * g2 * (s2.end - s2.start), 1), d2 = Math.max(d2, y2), this.zoomAxes(this.yAxes, { start: u2, end: d2 }, void 0, void 0, void 0, true);
  17021. }
  17022. }
  17023. }, Object.defineProperty(e3.prototype, "mouseWheelBehavior", { get: function() {
  17024. return this.getPropertyValue("mouseWheelBehavior");
  17025. }, set: function(t3) {
  17026. this.setPropertyValue("mouseWheelBehavior", t3) && ("none" != t3 ? (this._mouseWheelDisposer = this.plotContainer.events.on("wheel", this.handleWheel, this, false), this._disposers.push(this._mouseWheelDisposer)) : this._mouseWheelDisposer && (this.plotContainer.wheelable = false, this.plotContainer.hoverable = false, this._mouseWheelDisposer.dispose()));
  17027. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "horizontalMouseWheelBehavior", { get: function() {
  17028. return this.getPropertyValue("horizontalMouseWheelBehavior");
  17029. }, set: function(t3) {
  17030. this.setPropertyValue("horizontalMouseWheelBehavior", t3) && ("none" != t3 ? (this._mouseWheelDisposer2 = this.plotContainer.events.on("wheel", this.handleHorizontalWheel, this, false), this._disposers.push(this._mouseWheelDisposer2)) : this._mouseWheelDisposer2 && (this.plotContainer.wheelable = false, this.plotContainer.hoverable = false, this._mouseWheelDisposer2.dispose()));
  17031. }, enumerable: true, configurable: true }), e3.prototype.dataSourceDateFields = function(e4) {
  17032. var i3 = this;
  17033. return e4 = t2.prototype.dataSourceDateFields.call(this, e4), ti(this.series.iterator(), function(t3) {
  17034. e4 = i3.populateDataSourceFields(e4, t3.dataFields, ["dateX", "dateY", "openDateX", "openDateY"]);
  17035. }), e4;
  17036. }, e3.prototype.dataSourceNumberFields = function(e4) {
  17037. var i3 = this;
  17038. return e4 = t2.prototype.dataSourceDateFields.call(this, e4), ti(this.series.iterator(), function(t3) {
  17039. e4 = i3.populateDataSourceFields(e4, t3.dataFields, ["valueX", "valueY", "openValueX", "openValueY"]);
  17040. }), e4;
  17041. }, e3.prototype.processConfig = function(e4) {
  17042. if (e4) {
  17043. var i3 = [], n3 = [];
  17044. if (Z(e4.xAxes) && it(e4.xAxes))
  17045. for (var r3 = 0, s2 = e4.xAxes.length; r3 < s2; r3++) {
  17046. if (!e4.xAxes[r3].type)
  17047. throw Error("[XYChart error] No type set for xAxes[" + r3 + "].");
  17048. if (Z(e4.xAxes[r3].axisRanges)) {
  17049. for (var a2 = 0, o3 = e4.xAxes[r3].axisRanges.length; a2 < o3; a2++)
  17050. Z((h2 = e4.xAxes[r3].axisRanges[a2]).date) && Q(h2.date) && (h2.date = this.dateFormatter.parse(h2.date)), Z(h2.endDate) && Q(h2.endDate) && (h2.endDate = this.dateFormatter.parse(h2.endDate));
  17051. i3.push({ axisRanges: e4.xAxes[r3].axisRanges, index: r3 }), delete e4.xAxes[r3].axisRanges;
  17052. }
  17053. }
  17054. if (Z(e4.yAxes) && it(e4.yAxes))
  17055. for (r3 = 0, s2 = e4.yAxes.length; r3 < s2; r3++) {
  17056. if (!e4.yAxes[r3].type)
  17057. throw Error("[XYChart error] No type set for yAxes[" + r3 + "].");
  17058. if (Z(e4.yAxes[r3].axisRanges)) {
  17059. a2 = 0;
  17060. for (var l2 = e4.yAxes[r3].axisRanges.length; a2 < l2; a2++) {
  17061. var h2;
  17062. Z((h2 = e4.yAxes[r3].axisRanges[a2]).date) && Q(h2.date) && (h2.date = this.dateFormatter.parse(h2.date)), Z(h2.endDate) && Q(h2.endDate) && (h2.endDate = this.dateFormatter.parse(h2.endDate));
  17063. }
  17064. n3.push({ axisRanges: e4.yAxes[r3].axisRanges, index: r3 }), delete e4.yAxes[r3].axisRanges;
  17065. }
  17066. }
  17067. if (Z(e4.series) && it(e4.series))
  17068. for (r3 = 0, s2 = e4.series.length; r3 < s2; r3++)
  17069. e4.series[r3].type = e4.series[r3].type || "LineSeries";
  17070. if (Z(e4.cursor) && !Z(e4.cursor.type) && (e4.cursor.type = "XYCursor"), Z(e4.scrollbarX) && !Z(e4.scrollbarX.type) && (e4.scrollbarX.type = "Scrollbar"), Z(e4.scrollbarY) && !Z(e4.scrollbarY.type) && (e4.scrollbarY.type = "Scrollbar"), t2.prototype.processConfig.call(this, e4), n3.length)
  17071. for (r3 = 0, s2 = n3.length; r3 < s2; r3++)
  17072. this.yAxes.getIndex(n3[r3].index).config = { axisRanges: n3[r3].axisRanges };
  17073. if (i3.length)
  17074. for (r3 = 0, s2 = i3.length; r3 < s2; r3++)
  17075. this.xAxes.getIndex(i3[r3].index).config = { axisRanges: i3[r3].axisRanges };
  17076. }
  17077. }, e3.prototype.configOrder = function(e4, i3) {
  17078. return e4 == i3 ? 0 : "scrollbarX" == e4 ? 1 : "scrollbarX" == i3 ? -1 : "scrollbarY" == e4 ? 1 : "scrollbarY" == i3 ? -1 : "cursor" == e4 ? 1 : "cursor" == i3 ? -1 : "series" == e4 ? 1 : "series" == i3 ? -1 : t2.prototype.configOrder.call(this, e4, i3);
  17079. }, e3.prototype.createSeries = function() {
  17080. return new Dh();
  17081. }, Object.defineProperty(e3.prototype, "zoomOutButton", { get: function() {
  17082. return this._zoomOutButton;
  17083. }, set: function(t3) {
  17084. var e4 = this;
  17085. this._zoomOutButton = t3, t3 && t3.events.on("hit", function() {
  17086. e4.zoomAxes(e4.xAxes, { start: 0, end: 1 }), e4.zoomAxes(e4.yAxes, { start: 0, end: 1 });
  17087. }, void 0, false);
  17088. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  17089. var i3 = this;
  17090. e4.xAxes.each(function(t3) {
  17091. var e5 = i3.xAxes.push(t3.clone());
  17092. e5.chart = i3, e5.renderer.chart = i3;
  17093. }), e4.yAxes.each(function(t3) {
  17094. var e5 = i3.yAxes.push(t3.clone());
  17095. e5.renderer.chart = i3, e5.chart = i3;
  17096. }), t2.prototype.copyFrom.call(this, e4), e4.cursor && (this.cursor = e4.cursor.clone()), e4.scrollbarX && (this.scrollbarX = e4.scrollbarX.clone()), e4.scrollbarY && (this.scrollbarY = e4.scrollbarY.clone());
  17097. }, e3.prototype.disposeData = function() {
  17098. t2.prototype.disposeData.call(this);
  17099. var e4 = this.scrollbarX;
  17100. e4 && e4 instanceof kh && e4.scrollbarChart.disposeData();
  17101. var i3 = this.scrollbarY;
  17102. i3 && i3 instanceof kh && i3.scrollbarChart.disposeData(), this.xAxes.each(function(t3) {
  17103. t3 instanceof Sh && t3.disposeData();
  17104. }), this.yAxes.each(function(t3) {
  17105. t3 instanceof Sh && t3.disposeData();
  17106. });
  17107. }, e3.prototype.addData = function(e4, i3) {
  17108. this.scrollbarX instanceof kh && this.addScrollbarData(this.scrollbarX, i3), this.scrollbarY instanceof kh && this.addScrollbarData(this.scrollbarY, i3), t2.prototype.addData.call(this, e4, i3);
  17109. }, e3.prototype.addScrollbarData = function(t3, e4) {
  17110. var i3 = t3.scrollbarChart;
  17111. i3._parseDataFrom = i3.data.length, i3.invalidateData();
  17112. }, e3.prototype.removeScrollbarData = function(t3, e4) {
  17113. var i3 = t3.scrollbarChart;
  17114. if (tt(e4)) {
  17115. for (; e4 > 0; ) {
  17116. var n3 = this.dataItems.getIndex(0);
  17117. n3 && i3.dataItems.remove(n3), i3.dataUsers.each(function(t4) {
  17118. var e5 = t4.dataItems.getIndex(0);
  17119. e5 && t4.dataItems.remove(e5);
  17120. }), i3._parseDataFrom--, e4--;
  17121. }
  17122. i3.invalidateData();
  17123. }
  17124. }, e3.prototype.removeData = function(e4) {
  17125. this.scrollbarX instanceof kh && this.removeScrollbarData(this.scrollbarX, e4), this.scrollbarY instanceof kh && this.removeScrollbarData(this.scrollbarY, e4), t2.prototype.removeData.call(this, e4);
  17126. }, e3.prototype.setTapToActivate = function(e4) {
  17127. t2.prototype.setTapToActivate.call(this, e4), this.cursor && (this.cursor.interactions.isTouchProtected = e4, this.plotContainer.interactions.isTouchProtected = e4);
  17128. }, e3.prototype.handleTapToActivate = function() {
  17129. t2.prototype.handleTapToActivate.call(this), this.cursor && (this.cursor.interactions.isTouchProtected = false, this.plotContainer.interactions.isTouchProtected = false);
  17130. }, e3.prototype.handleTapToActivateDeactivation = function() {
  17131. t2.prototype.handleTapToActivateDeactivation.call(this), this.cursor && (this.cursor.interactions.isTouchProtected = true, this.plotContainer.interactions.isTouchProtected = true);
  17132. }, e3;
  17133. }(nh);
  17134. Ii.registeredClasses.XYChart = Ah, lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  17135. if (t2 instanceof Ah && t2.scrollbarX) {
  17136. var i3 = t2.states.create(e3);
  17137. return t2.scrollbarX.states.create(e3).properties.disabled = true, i3;
  17138. }
  17139. return null;
  17140. } }), lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  17141. if (t2 instanceof Ah && t2.scrollbarY) {
  17142. var i3 = t2.states.create(e3);
  17143. return t2.scrollbarY.states.create(e3).properties.disabled = true, i3;
  17144. }
  17145. return null;
  17146. } });
  17147. var Vh = function(t2) {
  17148. function e3() {
  17149. var e4 = t2.call(this) || this;
  17150. e4.className = "LineSeriesSegment", e4.isMeasured = false, e4.interactionsEnabled = false, e4.layout = "none";
  17151. var i3 = e4.createChild(Za);
  17152. e4.fillSprite = i3, i3.shouldClone = false, i3.setElement(e4.paper.add("path")), i3.isMeasured = false, e4._disposers.push(i3);
  17153. var n3 = e4.createChild(Za);
  17154. return e4.strokeSprite = n3, n3.shouldClone = false, n3.fill = dn(), n3.setElement(e4.paper.add("path")), n3.isMeasured = false, e4._disposers.push(n3), e4;
  17155. }
  17156. return C(e3, t2), e3.prototype.drawSegment = function(t3, e4, i3, n3) {
  17157. if (!this.disabled)
  17158. if (t3.length > 0 && e4.length > 0 && tt(t3[0].x) && tt(t3[0].y)) {
  17159. var r3 = wo({ x: t3[0].x - 0.2, y: t3[0].y - 0.2 }) + wo(t3[0]), s2 = this.series;
  17160. "bezier" == s2.smoothing ? r3 += new tl(i3, n3).smooth(t3) : "monotoneX" == s2.smoothing ? r3 += new al({ closed: false }).smooth(t3) : "monotoneY" == s2.smoothing && (r3 += new ol({ closed: false }).smooth(t3)), 0 == this.strokeOpacity || 0 == this.strokeSprite.strokeOpacity || (this.strokeSprite.path = r3), (this.fillOpacity > 0 || this.fillSprite.fillOpacity > 0) && tt(e4[0].x) && tt(e4[0].y) && (r3 += Co(e4[0]), "bezier" == s2.smoothing ? r3 += new tl(i3, n3).smooth(e4) : "monotoneX" == s2.smoothing ? r3 += new al({ closed: false }).smooth(e4) : "monotoneY" == s2.smoothing && (r3 += new ol({ closed: false }).smooth(e4)), r3 += Co(t3[0]), r3 += " Z", this.fillSprite.path = r3);
  17161. } else
  17162. this.fillSprite.path = "", this.strokeSprite.path = "";
  17163. }, e3.prototype.copyFrom = function(e4) {
  17164. t2.prototype.copyFrom.call(this, e4);
  17165. var i3 = this.strokeSprite;
  17166. Ue(e4, i3.properties, Ka), i3.events.copyFrom(e4.strokeSprite.events), i3.fillOpacity = 0;
  17167. var n3 = this.fillSprite;
  17168. Ue(e4, n3.properties, Ka), n3.events.copyFrom(e4.fillSprite.events), n3.strokeOpacity = 0;
  17169. }, e3;
  17170. }($a);
  17171. Ii.registeredClasses.LineSeriesSegment = Vh;
  17172. var Fh = function(t2) {
  17173. function e3() {
  17174. var e4 = t2.call(this) || this;
  17175. return e4.className = "DurationAxisDataItem", e4.applyTheme(), e4;
  17176. }
  17177. return C(e3, t2), e3;
  17178. }(vh), Mh = function(t2) {
  17179. function e3() {
  17180. var e4 = t2.call(this) || this;
  17181. return e4._baseUnit = "second", e4.className = "DurationAxis", e4.setPropertyValue("maxZoomFactor", 1e6), e4.applyTheme(), e4;
  17182. }
  17183. return C(e3, t2), e3.prototype.formatLabel = function(t3, e4) {
  17184. return this.durationFormatter.format(t3, e4 || this.axisDurationFormat);
  17185. }, e3.prototype.adjustMinMax = function(e4, i3, n3, r3, s2) {
  17186. var a2, o3, l2, h2 = this.baseUnit;
  17187. if (this.setPropertyValue("maxPrecision", 0), "millisecond" == h2 || "second" == h2 || "minute" == h2 || "hour" == h2) {
  17188. r3 <= 1 && (r3 = 1), r3 = Math.round(r3);
  17189. var p2 = e4, u2 = i3;
  17190. 0 === n3 && (n3 = Math.abs(i3));
  17191. var d2, c2 = [60, 30, 20, 15, 10, 2, 1], f2 = 1;
  17192. "hour" == h2 && (c2 = [24, 12, 6, 4, 2, 1]);
  17193. try {
  17194. for (var g2 = D(c2), y2 = g2.next(); !y2.done; y2 = g2.next()) {
  17195. var m2 = y2.value;
  17196. if (n3 / m2 > r3) {
  17197. f2 = m2;
  17198. break;
  17199. }
  17200. }
  17201. } catch (t3) {
  17202. a2 = { error: t3 };
  17203. } finally {
  17204. try {
  17205. y2 && !y2.done && (o3 = g2.return) && o3.call(g2);
  17206. } finally {
  17207. if (a2)
  17208. throw a2.error;
  17209. }
  17210. }
  17211. var v2 = Math.ceil((i3 - e4) / f2 / r3), b2 = Math.log(Math.abs(v2)) * Math.LOG10E, x2 = Math.pow(10, Math.floor(b2)) / 10;
  17212. d2 = f2 * (v2 = mt(c2, v2 / x2) * x2), this.durationFormatter.getValueUnit(d2, this.baseUnit), e4 = Math.floor(e4 / d2) * d2, i3 = Math.ceil(i3 / d2) * d2, s2 && ((e4 -= d2) < 0 && p2 >= 0 && (e4 = 0), (i3 += d2) > 0 && u2 <= 0 && (i3 = 0)), l2 = { min: e4, max: i3, step: d2 };
  17213. } else
  17214. l2 = t2.prototype.adjustMinMax.call(this, e4, i3, n3, r3, s2);
  17215. return this.axisDurationFormat = this.durationFormatter.getFormat(l2.step, l2.max, this.baseUnit), l2;
  17216. }, Object.defineProperty(e3.prototype, "tooltipDurationFormat", { get: function() {
  17217. return this._tooltipDurationFormat;
  17218. }, set: function(t3) {
  17219. this._tooltipDurationFormat = t3;
  17220. }, enumerable: true, configurable: true }), e3.prototype.getTooltipText = function(t3) {
  17221. var e4 = lt(this.positionToValue(t3), this._stepDecimalPlaces), i3 = this.formatLabel(e4, this.tooltipDurationFormat);
  17222. return this._adapterO ? this._adapterO.apply("getTooltipText", i3) : i3;
  17223. }, Object.defineProperty(e3.prototype, "baseUnit", { get: function() {
  17224. return this._baseUnit;
  17225. }, set: function(t3) {
  17226. this._baseUnit != t3 && (this._baseUnit = t3, this.durationFormatter.baseUnit = t3, this.invalidate());
  17227. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  17228. t2.prototype.copyFrom.call(this, e4), this.baseUnit = e4.baseUnit;
  17229. }, e3;
  17230. }(bh);
  17231. Ii.registeredClasses.DurationAxis = Mh, Ii.registeredClasses.DurationAxisDataItem = Fh;
  17232. var Lh = function(t2) {
  17233. function e3() {
  17234. var e4 = t2.call(this) || this;
  17235. return e4.className = "LineSeriesDataItem", e4;
  17236. }
  17237. return C(e3, t2), e3;
  17238. }(Ih), jh = function(t2) {
  17239. function e3() {
  17240. var e4 = t2.call(this) || this;
  17241. return e4.minDistance = 0.5, e4.segments = new Mi(e4.createSegment()), e4.segments.template.applyOnClones = true, e4._disposers.push(new Ai(e4.segments)), e4._disposers.push(e4.segments.template), e4._segmentsIterator = new mi(e4.segments, function() {
  17242. return e4.segments.create();
  17243. }), e4._segmentsIterator.createNewItems = true, e4.className = "LineSeries", e4.strokeOpacity = 1, e4.fillOpacity = 0, e4.connect = true, e4.tensionX = 1, e4.tensionY = 1, e4.autoGapCount = 1.1, e4.smoothing = "bezier", e4.segmentsContainer = e4.mainContainer.createChild($a), e4.segmentsContainer.isMeasured = false, e4.bulletsContainer.toFront(), e4.applyTheme(), e4;
  17244. }
  17245. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  17246. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Line Series"));
  17247. }, e3.prototype.createSegment = function() {
  17248. return new Vh();
  17249. }, e3.prototype.createDataItem = function() {
  17250. return new Lh();
  17251. }, e3.prototype.setInitialWorkingValues = function(t3) {
  17252. var e4 = this._yAxis.get(), i3 = this._xAxis.get();
  17253. if (this.appeared && this.visible) {
  17254. var n3 = this.dataItems.getIndex(t3.index - 1);
  17255. if (t3.component = this, this.baseAxis == i3 && e4 instanceof bh) {
  17256. var r3 = e4.minZoomed;
  17257. if (n3 && (r3 = n3.values.valueY.workingValue), t3.setWorkingValue("valueY", r3, 0), t3.setWorkingValue("valueY", t3.values.valueY.value), i3 instanceof Ph)
  17258. t3.setWorkingLocation("dateX", t3.locations.dateX - 1, 0), t3.setWorkingLocation("dateX", t3.locations.dateX);
  17259. else if (i3 instanceof Mh && n3) {
  17260. var s2 = t3.valueX;
  17261. t3.setWorkingValue("valueX", n3.valueX, 0), t3.setWorkingValue("valueX", s2);
  17262. }
  17263. }
  17264. if (this.baseAxis == e4 && i3 instanceof bh) {
  17265. var a2 = i3.minZoomed;
  17266. n3 && (a2 = n3.values.valueX.workingValue), t3.setWorkingValue("valueX", a2, 0), t3.setWorkingValue("valueX", t3.values.valueX.value), e4 instanceof Ph ? (t3.setWorkingLocation("dateY", t3.locations.dateX - 1, 0), t3.setWorkingLocation("dateY", t3.locations.dateY)) : e4 instanceof Mh && n3 && (s2 = t3.valueY, t3.setWorkingValue("valueY", n3.valueY, 0), t3.setWorkingValue("valueY", s2));
  17267. }
  17268. } else
  17269. this.baseAxis == i3 && e4 instanceof bh && (i3 instanceof Ph && t3.setWorkingLocation("dateX", t3.locations.dateX), i3 instanceof Sh && t3.setWorkingLocation("categoryX", t3.locations.categoryX)), this.baseAxis == e4 && i3 instanceof bh && (e4 instanceof Ph && t3.setWorkingLocation("dateY", t3.locations.dateY), e4 instanceof Sh && t3.setWorkingLocation("categoryY", t3.locations.categoryY));
  17270. }, e3.prototype.updateLegendValue = function(e4, i3) {
  17271. t2.prototype.updateLegendValue.call(this, e4, i3), e4 && e4.segment && (this.tooltipColorSource = e4.segment);
  17272. }, e3.prototype.validate = function() {
  17273. var e4 = this;
  17274. t2.prototype.validate.call(this), this.xAxis && this.yAxis && (this._segmentsIterator.reset(), this.openSegmentWrapper(this._adjustedStartIndex), ti(this.axisRanges.iterator(), function(t3) {
  17275. e4.openSegmentWrapper(e4._adjustedStartIndex, t3);
  17276. }), ti(this._segmentsIterator.iterator(), function(t3) {
  17277. t3.__disabled = true;
  17278. }));
  17279. }, e3.prototype.sliceData = function() {
  17280. for (var t3 = this.startIndex, e4 = this.endIndex, i3 = this.startIndex - 1; i3 >= 0; i3--)
  17281. if ((r3 = this.dataItems.getIndex(i3)) && r3.hasValue(this._xValueFields) && r3.hasValue(this._yValueFields)) {
  17282. t3 = i3;
  17283. break;
  17284. }
  17285. this._adjustedStartIndex = this.findAdjustedIndex(t3, ["stroke", "strokeWidth", "strokeDasharray", "strokeOpacity", "fill", "fillOpacity", "opacity"]), i3 = this.endIndex;
  17286. for (var n3 = this.dataItems.length; i3 < n3; i3++) {
  17287. var r3;
  17288. if ((r3 = this.dataItems.getIndex(i3)) && r3.hasValue(this._xValueFields) && r3.hasValue(this._yValueFields)) {
  17289. e4 = i3 + 1;
  17290. break;
  17291. }
  17292. }
  17293. this._workingStartIndex = t3, this._workingEndIndex = e4;
  17294. }, e3.prototype.findAdjustedIndex = function(t3, e4) {
  17295. var i3 = this, n3 = this.propertyFields, r3 = t3;
  17296. return Ut(e4, function(e5) {
  17297. if (Z(n3[e5]))
  17298. for (var s2 = r3; s2 >= 0; s2--) {
  17299. var a2 = i3.dataItems.getIndex(s2);
  17300. if (a2 && Z(a2.properties[e5])) {
  17301. t3 > s2 && (t3 = s2);
  17302. break;
  17303. }
  17304. }
  17305. }), t3;
  17306. }, e3.prototype.openSegmentWrapper = function(t3, e4) {
  17307. var i3 = { index: t3, axisRange: e4 };
  17308. do {
  17309. i3 = this.openSegment(i3.index, i3.axisRange);
  17310. } while (i3);
  17311. }, e3.prototype.getSegment = function() {
  17312. var t3 = this._segmentsIterator.getFirst();
  17313. return t3.series = this, t3.isDisposed() ? (this.segments.removeValue(t3), this.getSegment()) : t3;
  17314. }, e3.prototype.openSegment = function(t3, e4) {
  17315. var i3 = false, n3 = [];
  17316. t3 = Math.min(t3, this.dataItems.length);
  17317. var r3, s2 = Math.min(this._workingEndIndex, this.dataItems.length);
  17318. this._workingEndIndex = Math.min(this._workingEndIndex, this.dataItems.length);
  17319. var a2 = false, o3 = this.getSegment();
  17320. o3.strokeDasharray = void 0, o3.__disabled = false, e4 ? (o3.parent = e4.contents, Ue(e4.contents, o3, Ka)) : (Ue(this, o3, Ka), o3.filters.clear(), o3.parent = this.segmentsContainer), this.group.node.removeAttribute("fill");
  17321. for (var l2 = this.connect, h2 = false, p2 = t3; p2 < s2; p2++) {
  17322. var u2 = this.dataItems.getIndex(p2);
  17323. if (u2.segment = o3, u2.hasProperties && (p2 == t3 ? this.updateSegmentProperties(u2.properties, o3) : a2 = this.updateSegmentProperties(u2.properties, o3, true)), u2.hasValue(this._xValueFields) && u2.hasValue(this._yValueFields))
  17324. this.addPoints(n3, u2, this.xField, this.yField), h2 = true;
  17325. else {
  17326. if (p2 == t3)
  17327. continue;
  17328. if (!l2 && h2) {
  17329. r3 = p2;
  17330. break;
  17331. }
  17332. }
  17333. if (r3 = p2, this.baseAxis instanceof Ph) {
  17334. var d2 = this.dataItems.getIndex(p2 + 1);
  17335. if (d2 && this.baseAxis.makeGap(d2, u2)) {
  17336. i3 = true;
  17337. break;
  17338. }
  17339. }
  17340. if (a2)
  17341. break;
  17342. }
  17343. return this.closeSegment(o3, n3, t3, r3, e4, i3);
  17344. }, e3.prototype.addPoints = function(t3, e4, i3, n3, r3) {
  17345. var s2 = this.getPoint(e4, i3, n3, e4.workingLocations[i3], e4.workingLocations[n3]);
  17346. r3 || (e4.point = s2), t3.push(s2);
  17347. }, e3.prototype.closeSegment = function(t3, e4, i3, n3, r3, s2) {
  17348. var a2 = [];
  17349. if (this.dataFields[this._xOpenField] || this.dataFields[this._yOpenField] || this.stacked)
  17350. for (var o3 = n3; o3 >= i3; o3--) {
  17351. var l2 = this.dataItems.getIndex(o3);
  17352. l2.hasValue(this._xValueFields) && l2.hasValue(this._yValueFields) && this.addPoints(a2, l2, this.xOpenField, this.yOpenField, true);
  17353. }
  17354. else {
  17355. var h2 = this.baseAxis, p2 = e4.length, u2 = this.xAxis, d2 = this.yAxis;
  17356. p2 > 0 && (h2 == u2 ? (a2.push({ x: e4[p2 - 1].x, y: d2.basePoint.y }), a2.push({ x: e4[0].x, y: d2.basePoint.y })) : (a2.push({ x: u2.basePoint.x, y: e4[p2 - 1].y }), a2.push({ x: u2.basePoint.x, y: e4[0].y })));
  17357. }
  17358. return this.drawSegment(t3, e4, a2), s2 && n3++, n3 < this._workingEndIndex - 1 ? { index: n3, axisRange: r3 } : null;
  17359. }, e3.prototype.drawSegment = function(t3, e4, i3) {
  17360. t3.drawSegment(e4, i3, this.tensionX, this.tensionY);
  17361. }, e3.prototype.updateSegmentProperties = function(t3, e4, i3) {
  17362. var n3 = false;
  17363. return Ne(t3, function(t4, r3) {
  17364. if (Z(r3)) {
  17365. var s2 = e4[t4], a2 = void 0;
  17366. s2 && (a2 = s2.toString ? s2.toString() : s2);
  17367. var o3 = void 0;
  17368. r3 && (o3 = r3.toString ? r3.toString() : r3), s2 == r3 || null != a2 && null != o3 && a2 == o3 || (i3 || (e4[t4] = r3), n3 = true);
  17369. }
  17370. }), n3;
  17371. }, Object.defineProperty(e3.prototype, "connect", { get: function() {
  17372. return this.getPropertyValue("connect");
  17373. }, set: function(t3) {
  17374. this.setPropertyValue("connect", t3) && this.invalidate();
  17375. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tensionX", { get: function() {
  17376. return this.getPropertyValue("tensionX");
  17377. }, set: function(t3) {
  17378. this.setPropertyValue("tensionX", t3, true);
  17379. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tensionY", { get: function() {
  17380. return this.getPropertyValue("tensionY");
  17381. }, set: function(t3) {
  17382. this.setPropertyValue("tensionY", t3, true);
  17383. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3) {
  17384. var e4 = this, i3 = t3.pixelWidth, n3 = t3.pixelHeight;
  17385. t3.disposeChildren();
  17386. var r3 = t3.createChild(bo);
  17387. if (r3.shouldClone = false, Ue(this, r3, Ka), r3.x2 = i3, r3.y = n3 / 2, r3.y2 = 1e-5, r3.visible = true, this.fillOpacity > 0) {
  17388. var s2 = t3.createChild(qa);
  17389. Ue(this, s2, Ka), s2.width = i3, s2.height = n3, s2.y = 0, s2.strokeOpacity = 0, s2.visible = true, r3.y = 0;
  17390. }
  17391. var a2 = t3.dataItem;
  17392. a2.color = this.stroke, a2.colorOrig = this.fill, Qe(this.bullets.iterator(), function(r4) {
  17393. if (r4 instanceof ql && !r4.copyToLegendMarker)
  17394. return false;
  17395. var s3 = false;
  17396. if (r4 instanceof $a && ti(r4.children.iterator(), function(t4) {
  17397. if (t4 instanceof co)
  17398. return s3 = true, true;
  17399. }), !s3) {
  17400. var a3 = r4.clone();
  17401. return a3.parent = t3, a3.isMeasured = true, a3.tooltipText = void 0, a3.x = i3 / 2, e4.fillOpacity > 0 ? a3.y = 0 : a3.y = n3 / 2, a3.visible = true, Z(a3.fill) || (a3.fill = e4.fill), Z(a3.stroke) || (a3.stroke = e4.stroke), false;
  17402. }
  17403. });
  17404. }, e3.prototype.disposeData = function() {
  17405. t2.prototype.disposeData.call(this), this.segments.clear();
  17406. }, Object.defineProperty(e3.prototype, "autoGapCount", { get: function() {
  17407. return this.getPropertyValue("autoGapCount");
  17408. }, set: function(t3) {
  17409. this.setPropertyValue("autoGapCount", t3, true);
  17410. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "smoothing", { get: function() {
  17411. return this.getPropertyValue("smoothing");
  17412. }, set: function(t3) {
  17413. this.setPropertyValue("smoothing", t3, true);
  17414. }, enumerable: true, configurable: true }), e3;
  17415. }(Dh);
  17416. Ii.registeredClasses.LineSeries = jh, Ii.registeredClasses.LineSeriesDataItem = Lh;
  17417. var Eh = function(t2) {
  17418. function e3() {
  17419. var e4 = t2.call(this) || this;
  17420. return e4.className = "RadarSeriesDataItem", e4.setLocation("dateX", 0, 0), e4.setLocation("dateY", 0, 0), e4.setLocation("categoryX", 0, 0), e4.setLocation("categoryY", 0, 0), e4.applyTheme(), e4;
  17421. }
  17422. return C(e3, t2), e3;
  17423. }(Lh), Rh = function(t2) {
  17424. function e3() {
  17425. var e4 = t2.call(this) || this;
  17426. return e4.className = "RadarSeries", e4.connectEnds = true, e4.applyTheme(), e4;
  17427. }
  17428. return C(e3, t2), e3.prototype.validate = function() {
  17429. this.chart.invalid && this.chart.validate(), t2.prototype.validate.call(this);
  17430. }, e3.prototype.createDataItem = function() {
  17431. return new Eh();
  17432. }, e3.prototype.getPoint = function(t3, e4, i3, n3, r3, s2, a2) {
  17433. s2 || (s2 = "valueX"), a2 || (a2 = "valueY");
  17434. var o3 = _t({ x: this.yAxis.getX(t3, i3, r3, a2), y: this.yAxis.getY(t3, i3, r3, a2) });
  17435. 0 == o3 && (o3 = 1e-5);
  17436. var l2 = this.xAxis.getAngle(t3, e4, n3, s2), h2 = this.chart.startAngle, p2 = this.chart.endAngle;
  17437. return l2 < h2 || l2 > p2 ? void 0 : { x: o3 * ft(l2), y: o3 * dt(l2) };
  17438. }, e3.prototype.addPoints = function(t3, e4, i3, n3, r3) {
  17439. var s2 = this.getPoint(e4, i3, n3, e4.locations[i3], e4.locations[n3]);
  17440. s2 && t3.push(s2);
  17441. }, e3.prototype.getMaskPath = function() {
  17442. var t3 = this.yAxis.renderer;
  17443. return ko(t3.startAngle, t3.endAngle - t3.startAngle, t3.pixelRadius, t3.pixelInnerRadius);
  17444. }, e3.prototype.drawSegment = function(e4, i3, n3) {
  17445. var r3 = this.yAxis.renderer;
  17446. this.connectEnds && 360 == Math.abs(r3.endAngle - r3.startAngle) && (this.dataFields[this._xOpenField] || this.dataFields[this._yOpenField] || this.stacked) && (i3.push(i3[0]), n3.length > 0 && n3.unshift(n3[n3.length - 1])), t2.prototype.drawSegment.call(this, e4, i3, n3);
  17447. }, Object.defineProperty(e3.prototype, "connectEnds", { get: function() {
  17448. return this.getPropertyValue("connectEnds");
  17449. }, set: function(t3) {
  17450. this.setPropertyValue("connectEnds", t3, true);
  17451. }, enumerable: true, configurable: true }), e3.prototype.positionBulletReal = function(t3, e4, i3) {
  17452. var n3 = this.xAxis, r3 = this.yAxis;
  17453. (e4 < n3.start || e4 > n3.end || i3 < r3.start || i3 > r3.end) && (t3.visible = false), t3.moveTo(this.xAxis.renderer.positionToPoint(e4, i3));
  17454. }, e3.prototype.setXAxis = function(e4) {
  17455. t2.prototype.setXAxis.call(this, e4), this.updateRendererRefs();
  17456. }, e3.prototype.setYAxis = function(e4) {
  17457. t2.prototype.setYAxis.call(this, e4), this.updateRendererRefs();
  17458. }, e3.prototype.updateRendererRefs = function() {
  17459. var t3 = this.xAxis.renderer, e4 = this.yAxis.renderer;
  17460. t3.axisRendererY = e4;
  17461. }, e3;
  17462. }(jh);
  17463. Ii.registeredClasses.RadarSeries = Rh, Ii.registeredClasses.RadarSeriesDataItem = Eh;
  17464. var Bh = function(t2) {
  17465. function e3(e4) {
  17466. var i3 = t2.call(this, e4) || this;
  17467. return i3.className = "AxisFillCircular", i3.element = i3.paper.add("path"), i3.radius = V(100), i3.applyTheme(), i3;
  17468. }
  17469. return C(e3, t2), e3.prototype.draw = function() {
  17470. if (t2.prototype.draw.call(this), !this.__disabled && !this.disabled && this.axis) {
  17471. var e4 = this.axis.renderer;
  17472. this.fillPath = e4.getPositionRangePath(this.startPosition, this.endPosition, this.radius, Z(this.innerRadius) ? this.innerRadius : e4.innerRadius, this.cornerRadius), this.path = this.fillPath;
  17473. }
  17474. }, Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17475. return this.getPropertyValue("innerRadius");
  17476. }, set: function(t3) {
  17477. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  17478. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17479. return this.getPropertyValue("radius");
  17480. }, set: function(t3) {
  17481. this.setPercentProperty("radius", t3, true, false, 10, false);
  17482. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadius", { get: function() {
  17483. return this.getPropertyValue("cornerRadius");
  17484. }, set: function(t3) {
  17485. this.setPropertyValue("cornerRadius", t3, true);
  17486. }, enumerable: true, configurable: true }), e3;
  17487. }(hh);
  17488. Ii.registeredClasses.AxisFillCircular = Bh;
  17489. var Hh = function(t2) {
  17490. function e3() {
  17491. var e4 = t2.call(this) || this;
  17492. return e4.className = "GridCircular", e4.pixelPerfect = false, e4.applyTheme(), e4;
  17493. }
  17494. return C(e3, t2), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17495. return this.getPropertyValue("innerRadius");
  17496. }, set: function(t3) {
  17497. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  17498. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17499. return this.getPropertyValue("radius");
  17500. }, set: function(t3) {
  17501. this.setPercentProperty("radius", t3, true, false, 10, false);
  17502. }, enumerable: true, configurable: true }), e3;
  17503. }(ph);
  17504. Ii.registeredClasses.GridCircular = Hh;
  17505. var Nh = function(t2) {
  17506. function e3() {
  17507. var e4 = t2.call(this) || this;
  17508. return e4.fdx = 0, e4.fdy = 0, e4.className = "AxisLabelCircular", e4.padding(0, 0, 0, 0), e4.location = 0.5, e4.locationOnPath = 0.5, e4.radius = 0, e4.isMeasured = false, e4.applyTheme(), e4;
  17509. }
  17510. return C(e3, t2), Object.defineProperty(e3.prototype, "relativeRotation", { get: function() {
  17511. return this.getPropertyValue("relativeRotation");
  17512. }, set: function(t3) {
  17513. if (this.setPropertyValue("relativeRotation", t3, true), !Z(t3)) {
  17514. this.rotation = void 0;
  17515. var e4 = this.dataItem;
  17516. e4 && e4.component && e4.component.invalidateDataItems();
  17517. }
  17518. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17519. return this.getPropertyValue("radius");
  17520. }, set: function(t3) {
  17521. this.setPercentProperty("radius", t3, true, false, 10, false);
  17522. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bent", { get: function() {
  17523. return this.getPropertyValue("bent");
  17524. }, set: function(t3) {
  17525. this.setPropertyValue("bent", t3, true), this.setPropertyValue("wrap", false), this.setPropertyValue("horizontalCenter", "none"), this.setPropertyValue("verticalCenter", "none"), t3 ? (this.setPropertyValue("dx", 0), this.setPropertyValue("dy", 0), this.setPropertyValue("x", 0), this.setPropertyValue("y", 0), this.setPropertyValue("rotation", 0), this.fdx = 0, this.fdy = 0, this.textAlign = "middle") : this.textPathElement && (this.textPathElement.dispose(), this.textPathElement = void 0);
  17526. }, enumerable: true, configurable: true }), e3.prototype.pixelRadius = function(t3) {
  17527. var e4 = 1;
  17528. return this.inside && (e4 = -1), Vn(this.radius, t3) * e4;
  17529. }, e3.prototype.pixelRadiusY = function(t3, e4) {
  17530. var i3 = 1;
  17531. this.inside && (i3 = -1);
  17532. var n3 = this.radius;
  17533. return tt(n3) ? Vn(n3 *= e4 / t3, t3) * i3 : Vn(n3, e4) * i3;
  17534. }, e3.prototype.fixPosition = function(t3, e4, i3, n3, r3) {
  17535. tt(i3) || (i3 = e4), tt(n3) || (n3 = 0), tt(r3) || (r3 = 0);
  17536. var s2 = { x: e4 * ft(t3), y: i3 * dt(t3) };
  17537. this.invalid && this.validate();
  17538. var a2 = false, o3 = this.radius;
  17539. (o3 instanceof A && o3.value < 0 || o3 < 0) && (a2 = true);
  17540. var l2 = this.relativeRotation, h2 = this.pixelRadius(e4);
  17541. if (this.bent) {
  17542. var p2 = { x: (e4 + h2) * ft(t3 + 180), y: (i3 + h2 * i3 / e4) * dt(t3 + 180) };
  17543. return this.path = wo(p2) + Do(t3 + 180, 360, e4 + h2, i3 + h2 * i3 / e4), void (this.textPathElement && this.textPathElement.attr({ startOffset: 100 * this.locationOnPath + "%" }));
  17544. }
  17545. if (tt(l2)) {
  17546. this.horizontalCenter = "none", this.verticalCenter = "none", t3 = Rt(t3, -180, 180);
  17547. var u2 = this.bbox.width, d2 = this.bbox.height, c2 = this.pixelPaddingBottom, f2 = this.pixelPaddingTop, g2 = this.pixelPaddingLeft, y2 = this.pixelPaddingRight;
  17548. t3 > 90 || t3 < -90 ? -90 == l2 && (l2 = 90, u2 = 0) : (-90 == l2 && (d2 = -d2), 90 == l2 && (l2 = -90, u2 = -g2 - y2, d2 = -d2 - f2 - c2)), this.rotation = l2 + t3 + 90;
  17549. var m2 = dt(l2) / 2, v2 = ft(l2) / 2, b2 = this.rotation;
  17550. this.dx = d2 * m2 * dt(b2) - u2 * v2 * ft(b2), this.dy = -d2 * m2 * ft(b2) - u2 * v2 * dt(b2), this.inside ? t3 > 90 || t3 < -90 ? h2 -= (c2 + f2) * ft(l2) + (g2 + y2) * dt(l2) : h2 += (c2 + this.bbox.height + f2) * ft(l2) + (g2 + y2 + this.bbox.width) * dt(l2) : h2 += (d2 + c2 + f2) * ft(l2) + (u2 + g2 + y2) * dt(l2), s2.x += ft(t3) * h2, s2.y += dt(t3) * h2 * i3 / e4;
  17551. } else
  17552. this.horizontalCenter = "middle", this.verticalCenter = "middle", a2 ? (this.dx = 0, this.dy = 0, s2.x = (e4 + h2) * ft(t3), s2.y = (i3 + h2 * i3 / e4) * dt(t3)) : (this.dy = this._measuredHeight / 2 * dt(t3), this.dx = this._measuredWidth / 2 * ft(t3), s2.x += ft(t3) * h2, s2.y += dt(t3) * h2 * i3 / e4);
  17553. s2.x += n3, s2.y += r3, this.fdx = this.dx, this.fdy = this.dy, this.moveTo(s2);
  17554. }, e3;
  17555. }(uh);
  17556. Ii.registeredClasses.AxisLabelCircular = Nh;
  17557. var Wh = function(t2) {
  17558. function e3() {
  17559. var e4 = t2.call(this) || this;
  17560. return e4.pixelRadiusReal = 0, e4.layout = "none", e4.className = "AxisRendererCircular", e4.isMeasured = false, e4.startAngle = -90, e4.endAngle = 270, e4.useChartAngles = true, e4.radius = V(100), e4.isMeasured = false, e4.grid.template.location = 0, e4.labels.template.location = 0, e4.labels.template.radius = 15, e4.ticks.template.location = 0, e4.ticks.template.pixelPerfect = false, e4.tooltipLocation = 0, e4.line.strokeOpacity = 0, e4.applyTheme(), e4;
  17561. }
  17562. return C(e3, t2), e3.prototype.setAxis = function(e4) {
  17563. var i3 = this;
  17564. t2.prototype.setAxis.call(this, e4), e4.isMeasured = false;
  17565. var n3 = e4.tooltip;
  17566. n3.adapter.add("dx", function(t3, e5) {
  17567. var n4 = pr({ x: e5.pixelX, y: e5.pixelY }, i3);
  17568. return i3.pixelRadius * Math.cos(Math.atan2(n4.y, n4.x)) - n4.x;
  17569. }), n3.adapter.add("dy", function(t3, e5) {
  17570. var n4 = pr({ x: e5.pixelX, y: e5.pixelY }, i3);
  17571. return i3.pixelRadius * Math.sin(Math.atan2(n4.y, n4.x)) - n4.y;
  17572. });
  17573. }, e3.prototype.validate = function() {
  17574. this.chart && this.chart.invalid && this.chart.validate(), t2.prototype.validate.call(this);
  17575. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  17576. return 2 * Math.PI * this.pixelRadius;
  17577. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17578. return this.getPropertyValue("radius");
  17579. }, set: function(t3) {
  17580. this.setPercentProperty("radius", t3, false, false, 10, false) && this.axis && this.axis.invalidate();
  17581. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  17582. return Fn(this.radius, this.pixelRadiusReal) || 0;
  17583. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17584. var t3 = this.chart, e4 = this.getPropertyValue("innerRadius");
  17585. if (t3) {
  17586. if (Z(e4)) {
  17587. if (e4 instanceof A && t3) {
  17588. var i3 = t3.mr, n3 = e4.value;
  17589. e4 = V(100 * (n3 = Math.max(i3 * n3, i3 - Math.min(t3.plotContainer.innerHeight, t3.plotContainer.innerWidth)) / i3));
  17590. }
  17591. } else
  17592. (e4 = t3.innerRadius) instanceof A && t3 && (e4 = V(e4.value * t3.innerRadiusModifyer * 100));
  17593. return e4;
  17594. }
  17595. }, set: function(t3) {
  17596. this.setPercentProperty("innerRadius", t3, false, false, 10, false) && this.axis && this.axis.invalidate();
  17597. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "useChartAngles", { get: function() {
  17598. return this.getPropertyValue("useChartAngles");
  17599. }, set: function(t3) {
  17600. this.setPropertyValue("useChartAngles", t3);
  17601. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  17602. return Fn(this.innerRadius, this.pixelRadiusReal) || 0;
  17603. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  17604. tt(e4) || (e4 = 1);
  17605. var i3 = this.positionToCoordinate(t3), n3 = this.startAngle + (this.endAngle - this.startAngle) * i3 / this.axisLength, r3 = this.pixelRadius, s2 = this.pixelInnerRadius;
  17606. if (this.axisRendererY) {
  17607. var a2 = ut(this.axisRendererY.positionToCoordinate(e4), 0, 1 / 0);
  17608. return 0 == a2 && (a2 = 1e-6), { x: a2 * ft(n3), y: a2 * dt(n3) };
  17609. }
  17610. return { x: ft(n3) * s2 + (r3 - s2) * ft(n3) * e4, y: dt(n3) * s2 + (r3 - s2) * dt(n3) * e4 };
  17611. }, e3.prototype.positionToAngle = function(t3) {
  17612. var e4 = this.axis, i3 = (this.endAngle - this.startAngle) / (e4.end - e4.start);
  17613. return lt(e4.renderer.inversed ? this.startAngle + (e4.end - t3) * i3 : this.startAngle + (t3 - e4.start) * i3, 3);
  17614. }, e3.prototype.angleToPosition = function(t3) {
  17615. var e4 = this.axis, i3 = (this.endAngle - this.startAngle) / (e4.end - e4.start);
  17616. return lt(e4.renderer.inversed ? e4.end - (t3 - this.startAngle) / i3 : (t3 - this.startAngle) / i3 + e4.start, 5);
  17617. }, e3.prototype.updateAxisLine = function() {
  17618. var t3 = this.pixelRadius, e4 = this.startAngle, i3 = yt(360, this.endAngle - e4);
  17619. this.line.path = wo({ x: t3 * ft(e4), y: t3 * dt(e4) }) + Do(e4, i3, t3, t3);
  17620. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  17621. e4 += (i3 - e4) * t3.location;
  17622. var n3 = this.positionToPoint(e4);
  17623. if (tt(n3.x) && tt(n3.y) && t3.element) {
  17624. var r3 = at * Math.atan2(n3.y, n3.x), s2 = Fn(Z(t3.radius) ? t3.radius : V(100), this.pixelRadius), a2 = Fn(t3.innerRadius, this.pixelRadius);
  17625. t3.zIndex = 0;
  17626. var o3 = Fn(tt(a2) ? a2 : this.innerRadius, this.pixelRadiusReal, true);
  17627. tt(o3) || (o3 = 0), t3.path = wo({ x: o3 * ft(r3), y: o3 * dt(r3) }) + Co({ x: s2 * ft(r3), y: s2 * dt(r3) });
  17628. }
  17629. this.toggleVisibility(t3, e4, 0, 1);
  17630. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  17631. e4 += (i3 - e4) * t3.location;
  17632. var n3 = this.positionToPoint(e4);
  17633. if (t3.element) {
  17634. var r3 = this.pixelRadius, s2 = at * Math.atan2(n3.y, n3.x), a2 = t3.length;
  17635. t3.inside && (a2 = -a2), t3.zIndex = 1, t3.path = wo({ x: r3 * ft(s2), y: r3 * dt(s2) }) + Co({ x: (r3 + a2) * ft(s2), y: (r3 + a2) * dt(s2) });
  17636. }
  17637. this.toggleVisibility(t3, e4, 0, 1);
  17638. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  17639. var n3 = 0.5;
  17640. t3 instanceof gh && (n3 = t3.location), e4 += (i3 - e4) * n3;
  17641. var r3 = this.positionToPoint(e4), s2 = this.pixelRadius, a2 = at * Math.atan2(r3.y, r3.x);
  17642. r3 = { x: s2 * ft(a2), y: s2 * dt(a2) }, this.positionItem(t3, r3), this.toggleVisibility(t3, e4, 0, 1);
  17643. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  17644. Z(n3) || (n3 = t3.location), e4 += (i3 - e4) * n3, t3.fixPosition(this.positionToAngle(e4), this.pixelRadius), t3.zIndex = 2, this.toggleVisibility(t3, e4, this.minLabelPosition, this.maxLabelPosition);
  17645. }, e3.prototype.fitsToBounds = function(t3) {
  17646. return true;
  17647. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  17648. return this.getPropertyValue("startAngle");
  17649. }, set: function(t3) {
  17650. this.setPropertyValue("startAngle", t3) && (this.invalidateAxisItems(), this.axis && this.axis.invalidateSeries());
  17651. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  17652. return this.getPropertyValue("endAngle");
  17653. }, set: function(t3) {
  17654. this.setPropertyValue("endAngle", t3) && (this.invalidateAxisItems(), this.axis && this.axis.invalidateSeries());
  17655. }, enumerable: true, configurable: true }), e3.prototype.getPositionRangePath = function(t3, e4, i3, n3, r3) {
  17656. var s2 = "";
  17657. if (tt(t3) && tt(e4)) {
  17658. Z(i3) || (i3 = this.radius), t3 = gt(t3, this.axis.start), (e4 = yt(e4, this.axis.end)) < t3 && (e4 = t3);
  17659. var a2 = Fn(i3, this.pixelRadius), o3 = Fn(n3, this.pixelRadius, true), l2 = this.positionToAngle(t3);
  17660. s2 = ko(l2, this.positionToAngle(e4) - l2, a2, o3, a2, r3);
  17661. }
  17662. return s2;
  17663. }, e3.prototype.createGrid = function() {
  17664. return new Hh();
  17665. }, e3.prototype.createFill = function(t3) {
  17666. return new Bh(t3);
  17667. }, e3.prototype.createLabel = function() {
  17668. return new Nh();
  17669. }, e3.prototype.pointToPosition = function(t3) {
  17670. var e4 = Rt(Dt(t3), this.startAngle, this.endAngle);
  17671. return this.coordinateToPosition((e4 - this.startAngle) / 360 * this.axisLength);
  17672. }, e3;
  17673. }(fh);
  17674. Ii.registeredClasses.AxisRendererCircular = Wh;
  17675. var Xh = function(t2) {
  17676. function e3() {
  17677. var e4 = t2.call(this) || this;
  17678. return e4._chart = new ve(), e4.pixelRadiusReal = 0, e4.className = "AxisRendererRadial", e4.isMeasured = false, e4.startAngle = -90, e4.endAngle = 270, e4.minGridDistance = 30, e4.gridType = "circles", e4.axisAngle = -90, e4.isMeasured = false, e4.layout = "none", e4.radius = V(100), e4.line.strokeOpacity = 0, e4.labels.template.horizontalCenter = "middle", e4._disposers.push(e4._chart), e4.applyTheme(), e4;
  17679. }
  17680. return C(e3, t2), e3.prototype.validate = function() {
  17681. this.chart && this.chart.invalid && this.chart.validate(), t2.prototype.validate.call(this);
  17682. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  17683. return this.pixelRadius - this.pixelInnerRadius;
  17684. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17685. return this.getPropertyValue("radius");
  17686. }, set: function(t3) {
  17687. this.setPercentProperty("radius", t3, false, false, 10, false);
  17688. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  17689. return Fn(this.radius, this.pixelRadiusReal) || 0;
  17690. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17691. var t3 = this.chart, e4 = this.getPropertyValue("innerRadius");
  17692. if (t3)
  17693. if (Z(e4)) {
  17694. if (e4 instanceof A && t3) {
  17695. var i3 = t3.mr, n3 = e4.value;
  17696. e4 = V(100 * (n3 = Math.max(i3 * n3, i3 - Math.min(t3.plotContainer.innerHeight, t3.plotContainer.innerWidth)) / i3));
  17697. }
  17698. } else
  17699. (e4 = t3.innerRadius) instanceof A && t3 && (e4 = V(e4.value * t3.innerRadiusModifyer * 100));
  17700. return e4;
  17701. }, set: function(t3) {
  17702. this.setPercentProperty("innerRadius", t3, false, false, 10, false);
  17703. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  17704. return Fn(this.innerRadius, this.pixelRadiusReal) || 0;
  17705. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  17706. var i3 = ut(this.positionToCoordinate(t3), 0, 1 / 0);
  17707. return { x: i3 * ft(this.axisAngle), y: i3 * dt(this.axisAngle) };
  17708. }, e3.prototype.updateAxisLine = function() {
  17709. this.line.path = wo({ x: this.pixelInnerRadius * ft(this.axisAngle), y: this.pixelInnerRadius * dt(this.axisAngle) }) + Co({ x: this.pixelRadius * ft(this.axisAngle), y: this.pixelRadius * dt(this.axisAngle) });
  17710. var t3 = this.axis.title;
  17711. t3.valign = "none", t3.horizontalCenter = "middle", t3.verticalCenter = "bottom", t3.y = -this.axisLength / 2;
  17712. var e4 = 90;
  17713. this.opposite ? this.inside || (e4 = -90) : this.inside && (e4 = -90), t3.rotation = e4;
  17714. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  17715. e4 += (i3 - e4) * t3.location;
  17716. var n3, r3 = _t(this.positionToPoint(e4)), s2 = this.startAngle, a2 = this.endAngle, o3 = this.chart;
  17717. if (tt(r3) && t3.element && o3) {
  17718. var l2 = o3.xAxes.getIndex(0), h2 = 0, p2 = o3.series.getIndex(0);
  17719. if (p2 && (h2 = p2.dataItems.length), "polygons" == this.gridType && h2 > 0 && p2 && l2 && l2 instanceof Sh) {
  17720. var u2 = l2.renderer.grid.template.location, d2 = l2.getAngle(p2.dataItems.getIndex(0), "categoryX", u2);
  17721. n3 = wo({ x: r3 * ft(d2), y: r3 * dt(d2) });
  17722. for (var c2 = 1; c2 < h2; c2++)
  17723. n3 += Co({ x: r3 * ft(d2 = l2.getAngle(p2.dataItems.getIndex(c2), "categoryX", u2)), y: r3 * dt(d2) });
  17724. n3 += Co({ x: r3 * ft(d2 = l2.getAngle(p2.dataItems.getIndex(h2 - 1), "categoryX", l2.renderer.cellEndLocation)), y: r3 * dt(d2) });
  17725. } else
  17726. n3 = wo({ x: r3 * ft(s2), y: r3 * dt(s2) }) + Do(s2, a2 - s2, r3, r3);
  17727. t3.path = n3;
  17728. }
  17729. this.toggleVisibility(t3, e4, 0, 1);
  17730. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  17731. Z(n3) || (n3 = t3.location), e4 += (i3 - e4) * n3;
  17732. var r3 = this.positionToPoint(e4);
  17733. this.positionItem(t3, r3), this.toggleVisibility(t3, e4, this.minLabelPosition, this.maxLabelPosition);
  17734. }, e3.prototype.updateBaseGridElement = function() {
  17735. }, e3.prototype.fitsToBounds = function(t3) {
  17736. return true;
  17737. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  17738. return this.getPropertyValue("startAngle");
  17739. }, set: function(t3) {
  17740. this.setPropertyValue("startAngle", t3) && this.invalidateAxisItems();
  17741. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  17742. return this.getPropertyValue("endAngle");
  17743. }, set: function(t3) {
  17744. this.setPropertyValue("endAngle", t3) && this.invalidateAxisItems();
  17745. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "axisAngle", { get: function() {
  17746. return this.getPropertyValue("axisAngle");
  17747. }, set: function(t3) {
  17748. this.setPropertyValue("axisAngle", Et(t3)), this.invalidateAxisItems();
  17749. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "gridType", { get: function() {
  17750. return this.chart.xAxes.getIndex(0) instanceof Sh ? this.getPropertyValue("gridType") : "circles";
  17751. }, set: function(t3) {
  17752. this.setPropertyValue("gridType", t3, true);
  17753. }, enumerable: true, configurable: true }), e3.prototype.getPositionRangePath = function(t3, e4) {
  17754. var i3, n3 = this.pixelInnerRadius, r3 = this.axisLength + n3, s2 = ut(this.positionToCoordinate(t3), n3, r3), a2 = ut(this.positionToCoordinate(e4), n3, r3), o3 = this.startAngle, l2 = this.endAngle - o3, h2 = this.chart, p2 = h2.xAxes.getIndex(0), u2 = h2.series.getIndex(0), d2 = 0;
  17755. if (u2 && (d2 = u2.dataItems.length), "polygons" == this.gridType && d2 > 0 && u2 && p2 && p2 instanceof Sh) {
  17756. var c2 = p2.renderer.grid.template.location, f2 = p2.getAngle(u2.dataItems.getIndex(0), "categoryX", c2);
  17757. i3 = wo({ x: a2 * ft(f2), y: a2 * dt(f2) });
  17758. for (var g2 = 1; g2 < d2; g2++)
  17759. i3 += Co({ x: a2 * ft(f2 = p2.getAngle(u2.dataItems.getIndex(g2), "categoryX", c2)), y: a2 * dt(f2) });
  17760. for (i3 += Co({ x: a2 * ft(f2 = p2.getAngle(u2.dataItems.getIndex(d2 - 1), "categoryX", p2.renderer.cellEndLocation)), y: a2 * dt(f2) }), i3 += wo({ x: s2 * ft(f2), y: s2 * dt(f2) }), g2 = d2 - 1; g2 >= 0; g2--)
  17761. i3 += Co({ x: s2 * ft(f2 = p2.getAngle(u2.dataItems.getIndex(g2), "categoryX", c2)), y: s2 * dt(f2) });
  17762. } else
  17763. i3 = ko(o3, l2, a2, s2);
  17764. return i3;
  17765. }, e3.prototype.updateBreakElement = function(t3) {
  17766. var e4 = t3.startLine, i3 = t3.endLine, n3 = t3.fillShape, r3 = t3.startPoint, s2 = t3.endPoint;
  17767. e4.radius = Math.abs(r3.y), i3.radius = Math.abs(s2.y), n3.radius = Math.abs(s2.y), n3.innerRadius = Math.abs(r3.y);
  17768. }, e3.prototype.createBreakSprites = function(t3) {
  17769. t3.startLine = new hl(), t3.endLine = new hl(), t3.fillShape = new hl();
  17770. }, e3.prototype.updateTooltip = function() {
  17771. if (this.axis) {
  17772. var t3 = this.axisAngle;
  17773. t3 < 0 && (t3 += 360);
  17774. var e4 = "vertical";
  17775. (t3 > 45 && t3 < 135 || t3 > 225 && t3 < 315) && (e4 = "horizontal"), this.axis.updateTooltip(e4, { x: -4e3, y: -4e3, width: 8e3, height: 8e3 });
  17776. }
  17777. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  17778. e4 += (i3 - e4) * t3.location;
  17779. var n3 = this.positionToPoint(e4);
  17780. if (t3.element) {
  17781. var r3 = Et(this.axisAngle + 90);
  17782. r3 / 90 != Math.round(r3 / 90) ? t3.pixelPerfect = false : t3.pixelPerfect = true;
  17783. var s2 = -t3.length;
  17784. t3.inside && (s2 *= -1), t3.path = wo({ x: 0, y: 0 }) + Co({ x: s2 * ft(r3), y: s2 * dt(r3) });
  17785. }
  17786. this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  17787. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  17788. var n3 = 0.5;
  17789. t3 instanceof gh && (n3 = t3.location), e4 += (i3 - e4) * n3;
  17790. var r3 = this.positionToPoint(e4);
  17791. this.positionItem(t3, r3), this.toggleVisibility(t3, e4, 0, 1);
  17792. }, e3.prototype.positionToCoordinate = function(t3) {
  17793. var e4 = this.axis, i3 = e4.axisFullLength, n3 = this.pixelInnerRadius;
  17794. return lt(e4.renderer.inversed ? (e4.end - t3) * i3 + n3 : (t3 - e4.start) * i3 + n3, 1);
  17795. }, e3.prototype.pointToPosition = function(t3) {
  17796. var e4 = _t(t3) - this.pixelInnerRadius;
  17797. return this.coordinateToPosition(e4);
  17798. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  17799. return this._chart.get();
  17800. }, set: function(t3) {
  17801. this._chart.set(t3, null);
  17802. }, enumerable: true, configurable: true }), e3;
  17803. }(yh);
  17804. Ii.registeredClasses.AxisRendererRadial = Xh;
  17805. var Yh = function(t2) {
  17806. function e3() {
  17807. var e4 = t2.call(this) || this;
  17808. return e4.className = "RadarChartDataItem", e4.applyTheme(), e4;
  17809. }
  17810. return C(e3, t2), e3;
  17811. }(Th), zh = function(t2) {
  17812. function e3() {
  17813. var e4 = t2.call(this) || this;
  17814. e4._axisRendererX = Wh, e4._axisRendererY = Xh, e4.innerRadiusModifyer = 1, e4.mr = 1, e4.className = "RadarChart", e4.startAngle = -90, e4.endAngle = 270, e4.radius = V(80), e4.innerRadius = 0;
  17815. var i3 = e4.plotContainer.createChild($a);
  17816. return i3.shouldClone = false, i3.layout = "absolute", i3.align = "center", i3.valign = "middle", e4.seriesContainer.parent = i3, e4.radarContainer = i3, e4.bulletsContainer.parent = i3, e4.axisBulletsContainer = i3, e4._cursorContainer = i3, e4.chartContainer.events.on("maxsizechanged", e4.invalidate, e4, false), e4._bulletMask = i3.createChild(yo), e4._bulletMask.shouldClone = false, e4._bulletMask.element = e4.paper.add("path"), e4._bulletMask.opacity = 0, e4.applyTheme(), e4;
  17817. }
  17818. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  17819. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Radar chart"));
  17820. }, e3.prototype.processAxis = function(e4) {
  17821. t2.prototype.processAxis.call(this, e4);
  17822. var i3 = e4.renderer;
  17823. i3.gridContainer.parent = i3, i3.breakContainer.parent = i3, e4.parent = this.radarContainer, i3.toBack();
  17824. }, e3.prototype.handleXAxisRangeChange = function() {
  17825. t2.prototype.handleXAxisRangeChange.call(this), ti(this.yAxes.iterator(), function(t3) {
  17826. t3.invalidate();
  17827. });
  17828. }, e3.prototype.handleYAxisRangeChange = function() {
  17829. t2.prototype.handleYAxisRangeChange.call(this), ti(this.xAxes.iterator(), function(t3) {
  17830. t3.invalidate();
  17831. });
  17832. }, e3.prototype.processConfig = function(e4) {
  17833. if (e4 && (Z(e4.cursor) && !Z(e4.cursor.type) && (e4.cursor.type = "RadarCursor"), Z(e4.series) && it(e4.series)))
  17834. for (var i3 = 0, n3 = e4.series.length; i3 < n3; i3++)
  17835. e4.series[i3].type = e4.series[i3].type || "RadarSeries";
  17836. t2.prototype.processConfig.call(this, e4);
  17837. }, e3.prototype.beforeDraw = function() {
  17838. t2.prototype.beforeDraw.call(this);
  17839. var e4 = this.plotContainer, i3 = Bt(this.startAngle, this.endAngle, 1), n3 = { x: 0, y: 0, width: 0, height: 0 }, r3 = e4.innerWidth / i3.width, s2 = e4.innerHeight / i3.height, a2 = this.innerRadius;
  17840. if (a2 instanceof A) {
  17841. var o3 = a2.value, l2 = Math.min(r3, s2);
  17842. this.mr = l2, o3 = Math.max(l2 * o3, l2 - Math.min(e4.innerHeight, e4.innerWidth)) / l2, n3 = Bt(this.startAngle, this.endAngle, o3), this.innerRadiusModifyer = o3 / a2.value, a2 = V(100 * o3);
  17843. }
  17844. i3 = At([i3, n3]);
  17845. var h2 = Math.min(e4.innerWidth / i3.width, e4.innerHeight / i3.height), p2 = 2 * Fn(this.radius, h2) || 0, u2 = p2 / 2, d2 = this.startAngle, c2 = this.endAngle;
  17846. this._pixelInnerRadius = Fn(a2, u2), this._bulletMask.path = ko(d2, c2 - d2, u2, this._pixelInnerRadius), ti(this.xAxes.iterator(), function(t3) {
  17847. t3.renderer.useChartAngles && (t3.renderer.startAngle = d2, t3.renderer.endAngle = c2), t3.width = p2, t3.height = p2, t3.renderer.pixelRadiusReal = u2;
  17848. }), ti(this.yAxes.iterator(), function(t3) {
  17849. t3.renderer.startAngle = d2, t3.renderer.endAngle = c2, t3.width = p2, t3.height = p2, t3.renderer.pixelRadiusReal = u2;
  17850. });
  17851. var f2 = this.cursor;
  17852. f2 && (f2.width = p2, f2.height = p2, f2.startAngle = d2, f2.endAngle = c2), this.radarContainer.definedBBox = { x: u2 * i3.x, y: u2 * i3.y, width: u2 * i3.width, height: u2 * i3.height }, this.radarContainer.validatePosition();
  17853. }, e3.prototype.createSeries = function() {
  17854. return new Rh();
  17855. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  17856. return this.getPropertyValue("startAngle");
  17857. }, set: function(t3) {
  17858. this.setPropertyValue("startAngle", t3, true);
  17859. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  17860. return this.getPropertyValue("endAngle");
  17861. }, set: function(t3) {
  17862. this.setPropertyValue("endAngle", t3, true);
  17863. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17864. return this.getPropertyValue("radius");
  17865. }, set: function(t3) {
  17866. this.setPercentProperty("radius", t3, true, false, 10, false);
  17867. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  17868. return this._pixelInnerRadius;
  17869. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17870. return this.getPropertyValue("innerRadius");
  17871. }, set: function(t3) {
  17872. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  17873. }, enumerable: true, configurable: true }), e3.prototype.updateXAxis = function(t3) {
  17874. t3 && t3.processRenderer();
  17875. }, e3.prototype.updateYAxis = function(t3) {
  17876. t3 && t3.processRenderer();
  17877. }, e3;
  17878. }(Ah);
  17879. Ii.registeredClasses.RadarChart = zh;
  17880. var Uh = function(t2) {
  17881. function e3() {
  17882. var e4 = t2.call(this) || this;
  17883. e4._axis = new ve(), e4.className = "ClockHand";
  17884. var i3 = new Ys();
  17885. e4.fill = i3.getFor("alternativeBackground"), e4.stroke = e4.fill;
  17886. var n3 = new yo();
  17887. n3.radius = 5, e4.pin = n3, e4.isMeasured = false, e4.startWidth = 5, e4.endWidth = 1, e4.width = V(100), e4.height = V(100), e4.radius = V(100), e4.innerRadius = V(0);
  17888. var r3 = new Jo();
  17889. return e4.hand = r3, e4._disposers.push(e4._axis), e4.applyTheme(), e4;
  17890. }
  17891. return C(e3, t2), e3.prototype.validate = function() {
  17892. t2.prototype.validate.call(this);
  17893. var e4 = this.hand;
  17894. e4.width = this.pixelWidth;
  17895. var i3 = Math.max(this.startWidth, this.endWidth);
  17896. if (e4.height = i3, e4.leftSide = V(this.startWidth / i3 * 100), e4.rightSide = V(this.endWidth / i3 * 100), this.axis) {
  17897. var n3 = this.axis.renderer, r3 = Fn(this.innerRadius, n3.pixelRadius), s2 = Fn(this.radius, n3.pixelRadius);
  17898. e4.x = r3, e4.y = -i3 / 2, e4.width = s2 - r3;
  17899. }
  17900. }, Object.defineProperty(e3.prototype, "pin", { get: function() {
  17901. return this._pin;
  17902. }, set: function(t3) {
  17903. this._pin && this.removeDispose(this._pin), t3 && (this._pin = t3, t3.parent = this, this._disposers.push(t3));
  17904. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hand", { get: function() {
  17905. return this._hand;
  17906. }, set: function(t3) {
  17907. this._hand && this.removeDispose(this._hand), t3 && (this._hand = t3, t3.parent = this, this._disposers.push(t3));
  17908. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17909. return this.getPropertyValue("radius");
  17910. }, set: function(t3) {
  17911. this.setPercentProperty("radius", t3, true, false, 10, false);
  17912. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17913. return this.getPropertyValue("innerRadius");
  17914. }, set: function(t3) {
  17915. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  17916. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startWidth", { get: function() {
  17917. return this.getPropertyValue("startWidth");
  17918. }, set: function(t3) {
  17919. this.setPropertyValue("startWidth", t3, true);
  17920. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endWidth", { get: function() {
  17921. return this.getPropertyValue("endWidth");
  17922. }, set: function(t3) {
  17923. this.setPropertyValue("endWidth", t3, true);
  17924. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rotationDirection", { get: function() {
  17925. return this.getPropertyValue("rotationDirection");
  17926. }, set: function(t3) {
  17927. this.setPropertyValue("rotationDirection", t3);
  17928. }, enumerable: true, configurable: true }), e3.prototype.showValue = function(t3, e4, i3) {
  17929. if (this._value = t3, null != t3 && (tt(e4) || (e4 = 0), this.axis)) {
  17930. var n3 = this.axis.renderer.positionToAngle(this.axis.anyToPosition(t3)), r3 = this.rotation;
  17931. "clockWise" == this.rotationDirection && n3 < r3 && (this.rotation = r3 - 360), "counterClockWise" == this.rotationDirection && n3 > r3 && (this.rotation = r3 + 360), this.animate({ property: "rotation", to: n3 }, e4, i3);
  17932. }
  17933. }, Object.defineProperty(e3.prototype, "currentPosition", { get: function() {
  17934. if (this.axis)
  17935. return this.axis.renderer.angleToPosition(this.rotation);
  17936. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "value", { get: function() {
  17937. return this._value;
  17938. }, set: function(t3) {
  17939. this.showValue(t3);
  17940. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "axis", { get: function() {
  17941. return this._axis.get();
  17942. }, set: function(t3) {
  17943. if (this.axis != t3 && this._axis.set(t3, new me([t3.events.on("datavalidated", this.updateValue, this, false), t3.events.on("datarangechanged", this.updateValue, this, false), t3.events.on("dataitemsvalidated", this.updateValue, this, false), t3.events.on("propertychanged", this.invalidate, this, false)])), t3) {
  17944. var e4 = t3.chart;
  17945. e4 && (this.rotation = e4.startAngle);
  17946. }
  17947. this.parent = t3.renderer, this.zIndex = 5;
  17948. }, enumerable: true, configurable: true }), e3.prototype.updateValue = function() {
  17949. this.value = this.value;
  17950. }, e3.prototype.processConfig = function(e4) {
  17951. e4 && Z(e4.axis) && Q(e4.axis) && this.map.hasKey(e4.axis) && (e4.axis = this.map.getKey(e4.axis)), t2.prototype.processConfig.call(this, e4);
  17952. }, e3;
  17953. }($a);
  17954. Ii.registeredClasses.ClockHand = Uh;
  17955. var Gh = function(t2) {
  17956. function e3() {
  17957. var e4 = t2.call(this) || this;
  17958. return e4.className = "GaugeChartDataItem", e4.applyTheme(), e4;
  17959. }
  17960. return C(e3, t2), e3;
  17961. }(Yh), Kh = function(t2) {
  17962. function e3() {
  17963. var e4 = t2.call(this) || this;
  17964. return e4.className = "GaugeChart", e4.startAngle = 180, e4.endAngle = 360, e4.hands = new Mi(new Uh()), e4.hands.events.on("inserted", e4.processHand, e4, false), e4._disposers.push(new Ai(e4.hands)), e4._disposers.push(e4.hands.template), e4.applyTheme(), e4;
  17965. }
  17966. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  17967. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Gauge chart"));
  17968. }, e3.prototype.processHand = function(t3) {
  17969. var e4 = t3.newValue;
  17970. e4.axis || (e4.axis = this.xAxes.getIndex(0));
  17971. }, e3.prototype.configOrder = function(e4, i3) {
  17972. return e4 == i3 ? 0 : "hands" == e4 ? 1 : "hands" == i3 ? -1 : t2.prototype.configOrder.call(this, e4, i3);
  17973. }, e3;
  17974. }(zh);
  17975. Ii.registeredClasses.GaugeChart = Kh;
  17976. var Zh = function(t2) {
  17977. function e3() {
  17978. var e4 = t2.call(this) || this;
  17979. return e4.className = "PercentSeriesDataItem", e4.applyTheme(), e4;
  17980. }
  17981. return C(e3, t2), e3.prototype.uidAttr = function() {
  17982. return this.slice.uidAttr();
  17983. }, e3.prototype.hide = function(e4, i3, n3, r3) {
  17984. return r3 || (r3 = ["value"]), t2.prototype.hide.call(this, e4, i3, 0, r3);
  17985. }, e3.prototype.setVisibility = function(e4, i3) {
  17986. i3 || (e4 ? this.setWorkingValue("value", this.values.value.value, 0, 0) : this.setWorkingValue("value", 0, 0, 0)), t2.prototype.setVisibility.call(this, e4, i3);
  17987. }, e3.prototype.show = function(e4, i3, n3) {
  17988. return n3 || (n3 = ["value"]), t2.prototype.show.call(this, e4, i3, n3);
  17989. }, Object.defineProperty(e3.prototype, "category", { get: function() {
  17990. return this.properties.category;
  17991. }, set: function(t3) {
  17992. this.setProperty("category", t3);
  17993. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3) {
  17994. this.component.createLegendMarker(t3, this);
  17995. }, Object.defineProperty(e3.prototype, "legendDataItem", { get: function() {
  17996. return this._legendDataItem;
  17997. }, set: function(t3) {
  17998. this._legendDataItem = t3, t3.label && (t3.label.dataItem = this), t3.valueLabel && (t3.valueLabel.dataItem = this);
  17999. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tick", { get: function() {
  18000. var t3 = this;
  18001. if (!this._tick) {
  18002. var e4 = this.component.ticks.create();
  18003. this._tick = e4, this.addSprite(e4), this._disposers.push(e4), e4.parent = this.component.ticksContainer, this._disposers.push(new ye(function() {
  18004. t3.component && t3.component.ticks.removeValue(e4);
  18005. })), e4.visible = this.visible;
  18006. }
  18007. return this._tick;
  18008. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  18009. var t3 = this;
  18010. if (!this._label) {
  18011. var e4 = this.component.labels.create();
  18012. this.addSprite(e4), this._label = e4, this._disposers.push(e4), e4.parent = this.component.labelsContainer, this._disposers.push(new ye(function() {
  18013. t3.component && t3.component.labels.removeValue(e4);
  18014. })), e4.visible = this.visible;
  18015. }
  18016. return this._label;
  18017. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "slice", { get: function() {
  18018. var t3 = this;
  18019. if (!this._slice) {
  18020. var e4 = this.component, i3 = e4.slices.create();
  18021. this.addSprite(i3), this._slice = i3, this._disposers.push(i3), i3.parent = e4.slicesContainer, this._disposers.push(new ye(function() {
  18022. e4.slices.removeValue(i3);
  18023. })), i3.visible = this.visible, e4.itemsFocusable() ? (Z(this.component.role) || (this.component.role = "menu"), Z(i3.role) || (i3.role = "menuitem"), i3.focusable = true) : (Z(this.component.role) || (this.component.role = "list"), Z(i3.role) || (i3.role = "listitem"), i3.focusable = false), i3.focusable && (i3.events.on("focus", function(n3) {
  18024. i3.readerTitle = e4.populateString(e4.itemReaderText, t3);
  18025. }, void 0, false), i3.events.on("blur", function(t4) {
  18026. i3.readerTitle = "";
  18027. }, void 0, false)), i3.hoverable && (i3.events.on("over", function(n3) {
  18028. i3.readerTitle = e4.populateString(e4.itemReaderText, t3);
  18029. }, void 0, false), i3.events.on("out", function(t4) {
  18030. i3.readerTitle = "";
  18031. }, void 0, false));
  18032. }
  18033. return this._slice;
  18034. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hiddenInLegend", { get: function() {
  18035. return this.properties.hiddenInLegend;
  18036. }, set: function(t3) {
  18037. this.setProperty("hiddenInLegend", t3);
  18038. }, enumerable: true, configurable: true }), e3;
  18039. }(th), qh = function(t2) {
  18040. function e3() {
  18041. var e4 = t2.call(this) || this;
  18042. e4.className = "PercentSeries", e4._addAllDataItems = false, e4.colors = new kl(), e4.colors.step = 1, e4.isMeasured = true, e4.calculatePercent = true;
  18043. var i3 = e4.createChild($a);
  18044. i3.shouldClone = false, i3.isMeasured = false, e4.slicesContainer = i3;
  18045. var n3 = e4.createChild($a);
  18046. n3.shouldClone = false, n3.isMeasured = false, n3.layout = "none", e4.ticksContainer = n3;
  18047. var r3 = e4.createChild($a);
  18048. return r3.shouldClone = false, r3.isMeasured = false, r3.layout = "none", e4.labelsContainer = r3, e4.alignLabels = false, e4.bulletsContainer.toFront(), e4.skipFocusThreshold = 50, e4.defaultState.transitionEasing = Wr, e4.itemReaderText = "{category}: {value.percent.formatNumber('#.#p')}", e4.applyTheme(), e4;
  18049. }
  18050. return C(e3, t2), e3.prototype.createSlice = function() {
  18051. return new Za();
  18052. }, e3.prototype.createTick = function() {
  18053. return new dh();
  18054. }, e3.prototype.createLabel = function() {
  18055. return new co();
  18056. }, Object.defineProperty(e3.prototype, "slices", { get: function() {
  18057. if (!this._slices) {
  18058. var t3 = this.createSlice();
  18059. t3.applyOnClones = true, this._disposers.push(t3), this.initSlice(t3), this._slices = new Mi(t3), this._disposers.push(new Ai(this._slices));
  18060. }
  18061. return this._slices;
  18062. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ticks", { get: function() {
  18063. if (!this._ticks) {
  18064. var t3 = this.createTick();
  18065. t3.applyOnClones = true, this._disposers.push(t3), this.initTick(t3), this._ticks = new Mi(t3), this._disposers.push(new Ai(this._ticks));
  18066. }
  18067. return this._ticks;
  18068. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "labels", { get: function() {
  18069. if (!this._labels) {
  18070. var t3 = this.createLabel();
  18071. t3.applyOnClones = true, this._disposers.push(t3), this.initLabel(t3), this._labels = new Mi(t3), this._disposers.push(new Ai(this._labels));
  18072. }
  18073. return this._labels;
  18074. }, enumerable: true, configurable: true }), e3.prototype.createDataItem = function() {
  18075. return new Zh();
  18076. }, e3.prototype.initSlice = function(t3) {
  18077. }, e3.prototype.initLabel = function(t3) {
  18078. t3.text = "{category}: {value.percent.formatNumber('#.0p')}", t3.isMeasured = false, t3.padding(5, 5, 5, 5);
  18079. }, e3.prototype.initTick = function(t3) {
  18080. }, e3.prototype.validateDataItems = function() {
  18081. this.colors.reset(), this.patterns && this.patterns.reset(), t2.prototype.validateDataItems.call(this);
  18082. }, e3.prototype.validateDataElement = function(e4) {
  18083. var i3 = e4.slice;
  18084. i3 && (null == i3.fill ? this.patterns ? (Z(i3.stroke) || (i3.stroke = this.colors.next()), i3.fill = this.patterns.next(), Z(i3.fillOpacity) && (i3.fill.backgroundOpacity = i3.fillOpacity), i3.stroke instanceof un && (i3.fill.stroke = i3.stroke, i3.fill.fill = i3.stroke)) : i3.fill = this.colors.next() : this.colors.currentStep += this.colors.step, null == i3.stroke && (i3.stroke = i3.fill)), t2.prototype.validateDataElement.call(this, e4), i3 && e4.bullets.each(function(t3, e5) {
  18085. null == e5.fill && (e5.fill = i3.fill), null == e5.stroke && (e5.stroke = i3.stroke);
  18086. }), this.updateLegendValue(e4);
  18087. }, e3.prototype.validateData = function() {
  18088. t2.prototype.validateData.call(this), this.chart && this.chart.feedLegend();
  18089. }, e3.prototype.arrangeLabels = function(t3) {
  18090. for (var e4 = 0, i3 = t3.length; e4 < i3; e4++) {
  18091. var n3 = t3[e4].label;
  18092. if (n3) {
  18093. n3.invalid && n3.validate();
  18094. var r3 = n3.measuredHeight;
  18095. n3.visible || (r3 = 0), n3.pixelY - r3 / 2 < -this.maxHeight / 2 && (n3.y = -this.maxHeight / 2 + r3 / 2);
  18096. var s2 = this.getNextLabel(e4 + 1, t3), a2 = n3.pixelY + r3;
  18097. s2 && s2.y < a2 && (s2.y = a2);
  18098. }
  18099. }
  18100. }, e3.prototype.arrangeLabels2 = function(t3) {
  18101. for (var e4 = this.maxHeight / 2, i3 = t3.length - 1; i3 >= 0; i3--) {
  18102. var n3 = t3[i3].label;
  18103. if (n3) {
  18104. n3.invalid && n3.validate();
  18105. var r3 = n3.measuredHeight;
  18106. n3.visible || (r3 = 0), i3 == t3.length - 1 && (e4 += r3 / 2), n3.pixelY + r3 > e4 && (n3.y = e4 - r3, e4 = n3.y);
  18107. }
  18108. }
  18109. }, e3.prototype.getNextLabel = function(t3, e4) {
  18110. if (e4.length >= t3) {
  18111. var i3 = e4[t3];
  18112. if (i3)
  18113. return i3.label && i3.visible ? i3.label : this.getNextLabel(t3 + 1, e4);
  18114. }
  18115. }, Object.defineProperty(e3.prototype, "colors", { get: function() {
  18116. return this.getPropertyValue("colors");
  18117. }, set: function(t3) {
  18118. this.setPropertyValue("colors", t3, true);
  18119. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "patterns", { get: function() {
  18120. return this.getPropertyValue("patterns");
  18121. }, set: function(t3) {
  18122. this.setPropertyValue("patterns", t3, true);
  18123. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3, e4) {
  18124. ti(t3.children.iterator(), function(i3) {
  18125. var n3 = e4.slice;
  18126. i3.defaultState.properties.fill = n3.fill, i3.defaultState.properties.stroke = n3.stroke, i3.defaultState.properties.fillOpacity = n3.fillOpacity, i3.defaultState.properties.strokeOpacity = n3.strokeOpacity, i3.fill = n3.fill, i3.stroke = n3.stroke, i3.fillOpacity = n3.fillOpacity, i3.strokeOpacity = n3.strokeOpacity, null == i3.fill && (i3.__disabled = true);
  18127. var r3 = t3.dataItem;
  18128. r3.color = n3.fill, r3.colorOrig = n3.fill, i3.addDisposer(n3.events.on("propertychanged", function(t4) {
  18129. "fill" == t4.property && (i3.__disabled = false, i3.isActive || (i3.fill = n3.fill), i3.defaultState.properties.fill = n3.fill, r3.color = n3.fill, r3.colorOrig = n3.fill), "stroke" == t4.property && (i3.isActive || (i3.stroke = n3.stroke), i3.defaultState.properties.stroke = n3.stroke), "strokeOpacity" == t4.property && (i3.isActive || (i3.strokeOpacity = n3.strokeOpacity), i3.defaultState.properties.strokeOpacity = n3.strokeOpacity);
  18130. }, void 0, false));
  18131. });
  18132. }, e3.prototype.handleSliceScale = function(t3) {
  18133. var e4 = this, i3 = t3.target.dataItem;
  18134. i3 && i3.bullets && ti(i3.bullets.iterator(), function(t4) {
  18135. var i4 = t4[1];
  18136. e4.positionBullet(i4);
  18137. });
  18138. }, e3.prototype.handleSliceMove = function(t3) {
  18139. }, e3.prototype.copyFrom = function(e4) {
  18140. t2.prototype.copyFrom.call(this, e4), this.slices.template.copyFrom(e4.slices.template), this.labels.template.copyFrom(e4.labels.template), this.ticks.template.copyFrom(e4.ticks.template), this.colors = e4.colors.clone();
  18141. }, Object.defineProperty(e3.prototype, "alignLabels", { get: function() {
  18142. return this.getPropertyValue("alignLabels");
  18143. }, set: function(t3) {
  18144. this.setAlignLabels(t3);
  18145. }, enumerable: true, configurable: true }), e3.prototype.setAlignLabels = function(t3) {
  18146. this.setPropertyValue("alignLabels", t3, true);
  18147. }, Object.defineProperty(e3.prototype, "ignoreZeroValues", { get: function() {
  18148. return this.getPropertyValue("ignoreZeroValues");
  18149. }, set: function(t3) {
  18150. this.setPropertyValue("ignoreZeroValues", t3, true);
  18151. }, enumerable: true, configurable: true }), e3.prototype.updateLegendValue = function(t3) {
  18152. if (t3) {
  18153. var e4 = t3.legendDataItem, i3 = t3.legendSettings;
  18154. e4 && i3 && i3 && (i3.labelText && (e4.label.text = i3.labelText), i3.itemLabelText && (e4.label.text = i3.itemLabelText), i3.valueText && (e4.valueLabel.text = i3.valueText), i3.itemValueText && (e4.valueLabel.text = i3.itemValueText));
  18155. }
  18156. }, e3;
  18157. }(eh);
  18158. Ii.registeredClasses.PercentSeries = qh, Ii.registeredClasses.PercentSeriesDataItem = Zh, lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  18159. if (t2 instanceof qh) {
  18160. var i3 = t2.states.create(e3);
  18161. return t2.labels.template.states.create(e3).properties.disabled = true, t2.ticks.template.states.create(e3).properties.disabled = true, i3;
  18162. }
  18163. return null;
  18164. } });
  18165. var $h = function(t2) {
  18166. function e3() {
  18167. var e4 = t2.call(this) || this;
  18168. return e4.className = "PercentChartDataItem", e4.applyTheme(), e4;
  18169. }
  18170. return C(e3, t2), e3;
  18171. }(ih), Jh = function(t2) {
  18172. function e3() {
  18173. var e4 = t2.call(this) || this;
  18174. return e4.className = "PercentChart", e4.align = "none", e4.valign = "none", e4.chartContainer.minHeight = 50, e4.chartContainer.minWidth = 50, e4.applyTheme(), e4;
  18175. }
  18176. return C(e3, t2), e3.prototype.validateData = function() {
  18177. t2.prototype.validateData.call(this), this.feedLegend();
  18178. }, e3.prototype.feedLegend = function() {
  18179. var t3 = this.legend;
  18180. if (t3) {
  18181. var e4 = [];
  18182. ti(this.series.iterator(), function(t4) {
  18183. t4.hiddenInLegend || ti(t4.dataItems.iterator(), function(i3) {
  18184. i3.hiddenInLegend || (e4.push(i3), i3.legendSettings || (i3.legendSettings = t4.legendSettings));
  18185. });
  18186. }), t3.data = e4, t3.dataFields.name = "category";
  18187. }
  18188. }, e3.prototype.createSeries = function() {
  18189. return new qh();
  18190. }, e3.prototype.setLegend = function(e4) {
  18191. t2.prototype.setLegend.call(this, e4), e4 && (e4.labels.template.text = "{category}", e4.valueLabels.template.text = "{value.percent.formatNumber('#.0p')}", e4.itemContainers.template.events.on("over", function(t3) {
  18192. var e5 = t3.target.dataItem.dataContext;
  18193. if (e5.visible && !e5.isHiding) {
  18194. var i3 = e5.slice;
  18195. i3.dispatchImmediately("over"), i3.isHover = true, i3.interactions.isRealHover = true;
  18196. }
  18197. }), e4.itemContainers.template.events.on("out", function(t3) {
  18198. var e5 = t3.target.dataItem.dataContext.slice;
  18199. e5.dispatchImmediately("out"), e5.isHover = false;
  18200. }));
  18201. }, e3;
  18202. }(nh);
  18203. Ii.registeredClasses.PercentChart = Jh, Ii.registeredClasses.PercentChartDataItem = $h;
  18204. var Qh = function(t2) {
  18205. function e3() {
  18206. var e4 = t2.call(this) || this;
  18207. return e4._label = new ve(), e4._slice = new ve(), e4.className = "PieTick", e4.element = e4.paper.add("polyline"), e4._disposers.push(e4._label), e4._disposers.push(e4._slice), e4.applyTheme(), e4;
  18208. }
  18209. return C(e3, t2), e3.prototype.draw = function() {
  18210. t2.prototype.draw.call(this);
  18211. var e4 = this.slice, i3 = this.label, n3 = e4.dataItem.component;
  18212. if (e4 && e4.radius > 0 && i3 && i3.text) {
  18213. var r3 = e4.dx + e4.slice.dx + e4.pixelX + e4.ix * e4.radius * e4.scale, s2 = e4.dy + e4.slice.dy + e4.pixelY + e4.iy * e4.radiusY * e4.scale, a2 = void 0, o3 = void 0, l2 = void 0, h2 = void 0;
  18214. if (n3.alignLabels)
  18215. a2 = i3.pixelX - this.length, o3 = i3.pixelY, l2 = i3.pixelX, h2 = o3, "right" == i3.horizontalCenter && (l2 = (a2 += 2 * this.length) - this.length);
  18216. else {
  18217. var p2 = i3.pixelRadius(e4.radius);
  18218. l2 = a2 = r3 + p2 * e4.ix, h2 = o3 = s2 + p2 * e4.iy;
  18219. }
  18220. this.element.attr({ points: [r3, s2, a2, o3, l2, h2] });
  18221. }
  18222. }, Object.defineProperty(e3.prototype, "slice", { get: function() {
  18223. return this._slice.get();
  18224. }, set: function(t3) {
  18225. this._slice.set(t3, new me([t3.events.on("transformed", this.invalidate, this), t3.events.on("validated", this.invalidate, this)]));
  18226. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  18227. return this._label.get();
  18228. }, set: function(t3) {
  18229. this._label.set(t3, t3.events.on("transformed", this.invalidate, this, false));
  18230. }, enumerable: true, configurable: true }), e3;
  18231. }(dh);
  18232. Ii.registeredClasses.PieTick = Qh;
  18233. var tp = function(t2) {
  18234. function e3() {
  18235. var e4 = t2.call(this) || this;
  18236. return e4.className = "PieSeriesDataItem", e4.values.radiusValue = {}, e4.applyTheme(), e4;
  18237. }
  18238. return C(e3, t2), Object.defineProperty(e3.prototype, "radiusValue", { get: function() {
  18239. return this.values.radiusValue.value;
  18240. }, set: function(t3) {
  18241. this.setValue("radiusValue", t3);
  18242. }, enumerable: true, configurable: true }), e3.prototype.hide = function(e4, i3, n3, r3) {
  18243. return t2.prototype.hide.call(this, e4, i3, 0, ["value", "radiusValue"]);
  18244. }, e3.prototype.show = function(e4, i3, n3) {
  18245. return t2.prototype.show.call(this, e4, i3, ["value", "radiusValue"]);
  18246. }, e3;
  18247. }(Zh), ep = function(t2) {
  18248. function e3() {
  18249. var e4 = t2.call(this) || this;
  18250. return e4.className = "PieSeries", e4.alignLabels = true, e4.layout = "none", e4.labels.template.radius = V(5), e4.addDisposer(e4.labels.template.events.on("enabled", e4.invalidate, e4, false)), e4.applyTheme(), e4;
  18251. }
  18252. return C(e3, t2), e3.prototype.createSlice = function() {
  18253. return new No();
  18254. }, e3.prototype.createTick = function() {
  18255. return new Qh();
  18256. }, e3.prototype.createLabel = function() {
  18257. return new Nh();
  18258. }, e3.prototype.applyInternalDefaults = function() {
  18259. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Pie Slice Series"));
  18260. }, e3.prototype.createDataItem = function() {
  18261. return new tp();
  18262. }, e3.prototype.initSlice = function(t3) {
  18263. t3.isMeasured = false, t3.defaultState.properties.scale = 1, t3.observe("scale", this.handleSliceScale, this), t3.observe(["dx", "dy", "x", "y", "shiftRadius"], this.handleSliceMove, this), t3.tooltipText = "{category}: {value.percent.formatNumber('#.#p')} ({value.value})", t3.states.create("hover").properties.scale = 1.05, t3.defaultState.properties.shiftRadius = 0, t3.togglable = true, t3.events.on("toggled", function(t4) {
  18264. t4.target.hideTooltip(), t4.target.interactions.lastHitPointer && t4.target.interactions.lastHitPointer.touch && !t4.target.isActive && (t4.target.isHover = false);
  18265. }), t3.states.create("active").properties.shiftRadius = 0.1;
  18266. }, e3.prototype.validate = function() {
  18267. this._leftItems = [], this._rightItems = [], this._currentStartAngle = this.startAngle, this._arcRect = Bt(this.startAngle, this.endAngle), this._maxRadiusPercent = 0;
  18268. for (var e4 = this.startIndex; e4 < this.endIndex; e4++) {
  18269. var i3 = this.dataItems.getIndex(e4).values.radiusValue.percent;
  18270. i3 > this._maxRadiusPercent && (this._maxRadiusPercent = i3);
  18271. }
  18272. t2.prototype.validate.call(this), this.alignLabels && (this.startAngle > this.endAngle ? this._rightItems.reverse() : this._leftItems.reverse(), this._rightItems.sort(function(t3, e5) {
  18273. var i4 = (t3.slice.middleAngle + 360) % 360, n3 = (e5.slice.middleAngle + 360) % 360;
  18274. return i4 > 270 && (i4 -= 360), n3 > 270 && (n3 -= 360), i4 < n3 ? -1 : i4 > n3 ? 1 : 0;
  18275. }), this._leftItems.sort(function(t3, e5) {
  18276. var i4 = (t3.slice.middleAngle + 360) % 360, n3 = (e5.slice.middleAngle + 360) % 360;
  18277. return i4 < n3 ? 1 : i4 > n3 ? -1 : 0;
  18278. }), this.arrangeLabels(this._rightItems), this.arrangeLabels2(this._rightItems), this.arrangeLabels(this._leftItems), this.arrangeLabels2(this._leftItems));
  18279. }, e3.prototype.validateDataElement = function(e4) {
  18280. if (this.pixelRadius > 0) {
  18281. !this.ignoreZeroValues || 0 != e4.value && null != e4.value ? e4.__disabled = false : e4.__disabled = true;
  18282. var i3 = e4.slice;
  18283. if (i3.radius = this.pixelRadius, tt(e4.radiusValue) && (i3.radius = this.pixelInnerRadius + (this.pixelRadius - this.pixelInnerRadius) * e4.values.radiusValue.percent / this._maxRadiusPercent), i3.innerRadius instanceof A || (i3.innerRadius = this.pixelInnerRadius), i3.startAngle = this._currentStartAngle, i3.arc = Math.abs(e4.values.value.percent) * (this.endAngle - this.startAngle) / 100, !this.labels.template.disabled) {
  18284. var n3 = e4.label, r3 = e4.tick;
  18285. r3.slice = i3, r3.label = n3;
  18286. var s2 = (i3.middleAngle + 360) % 360, a2 = void 0;
  18287. if (this.alignLabels) {
  18288. var o3 = n3.pixelRadius(i3.radius), l2 = r3.length + o3;
  18289. n3.dx = 0, n3.dy = 0, n3.verticalCenter = "middle";
  18290. var h2 = this._arcRect;
  18291. s2 > 270 || s2 <= 90 ? (l2 += (h2.width + h2.x) * this.pixelRadius, n3.horizontalCenter = "left", this._rightItems.push(e4)) : (l2 -= h2.x * this.pixelRadius, n3.horizontalCenter = "right", this._leftItems.push(e4), l2 *= -1);
  18292. var p2 = i3.radius + r3.length + o3;
  18293. a2 = { x: l2, y: i3.iy * p2 }, n3.moveTo(a2);
  18294. } else {
  18295. var u2 = i3.depth;
  18296. tt(u2) || (u2 = 0), n3.fixPosition(i3.middleAngle, i3.radius, i3.radiusY, 0, -u2);
  18297. }
  18298. }
  18299. this._currentStartAngle += i3.arc, t2.prototype.validateDataElement.call(this, e4);
  18300. }
  18301. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  18302. return this.getPropertyValue("radius");
  18303. }, set: function(t3) {
  18304. this.setPercentProperty("radius", t3, true, false, 10, false) && this.invalidateDataItems();
  18305. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  18306. return this._pixelRadius;
  18307. }, set: function(t3) {
  18308. this._pixelRadius != t3 && (this._pixelRadius = t3, this.invalidateDataItems());
  18309. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  18310. return this._pixelInnerRadius;
  18311. }, set: function(t3) {
  18312. this._pixelInnerRadius != t3 && (this._pixelInnerRadius = t3, this.invalidateDataItems());
  18313. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  18314. return this.getPropertyValue("innerRadius");
  18315. }, set: function(t3) {
  18316. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  18317. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  18318. var t3 = this.getPropertyValue("startAngle");
  18319. return tt(t3) ? t3 : this._startAngleInternal;
  18320. }, set: function(t3) {
  18321. this.setPropertyValue("startAngle", Et(t3), true);
  18322. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  18323. var t3 = this.getPropertyValue("endAngle");
  18324. return tt(t3) ? t3 : this._endAngleInternal;
  18325. }, set: function(t3) {
  18326. this.setPropertyValue("endAngle", t3, true);
  18327. }, enumerable: true, configurable: true }), e3.prototype.positionBullet = function(e4) {
  18328. t2.prototype.positionBullet.call(this, e4);
  18329. var i3 = e4.dataItem.slice, n3 = e4.locationX;
  18330. tt(n3) || (n3 = 0.5);
  18331. var r3 = e4.locationY;
  18332. tt(r3) || (r3 = 1);
  18333. var s2 = i3.startAngle + i3.arc * n3;
  18334. e4.x = r3 * i3.radius * ft(s2), e4.y = r3 * i3.radiusY * dt(s2);
  18335. }, e3.prototype.handleSliceMove = function(t3) {
  18336. if (!this.alignLabels) {
  18337. var e4 = t3.target, i3 = e4.dataItem;
  18338. if (i3) {
  18339. var n3 = i3.label;
  18340. n3 && (n3.dx = n3.fdx + e4.dx + e4.pixelX, n3.dy = n3.fdy + e4.dy + e4.pixelY);
  18341. }
  18342. }
  18343. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  18344. if (this.definedBBox)
  18345. return this.definedBBox;
  18346. var t3 = this.chart;
  18347. return t3 ? Bt(t3.startAngle, t3.endAngle, this.pixelRadius) : Bt(this.startAngle, this.endAngle, this.pixelRadius);
  18348. }, enumerable: true, configurable: true }), e3;
  18349. }(qh);
  18350. Ii.registeredClasses.PieSeries = ep, Ii.registeredClasses.PieSeriesDataItem = tp;
  18351. var ip = function(t2) {
  18352. function e3() {
  18353. var e4 = t2.call(this) || this;
  18354. return e4.className = "PieChartDataItem", e4.applyTheme(), e4;
  18355. }
  18356. return C(e3, t2), e3;
  18357. }($h), np = function(t2) {
  18358. function e3() {
  18359. var e4 = t2.call(this) || this;
  18360. e4.className = "PieChart", e4.innerRadius = 0, e4.radius = V(80), e4.align = "none", e4.valign = "none", e4.startAngle = -90, e4.endAngle = 270;
  18361. var i3 = e4.seriesContainer;
  18362. return i3.isMeasured = true, i3.valign = "middle", i3.align = "center", i3.layout = "absolute", i3.width = void 0, i3.height = void 0, e4.chartContainer.minHeight = 50, e4.chartContainer.minWidth = 50, e4.chartContainer.events.on("maxsizechanged", e4.updateRadius, e4, false), e4.applyTheme(), e4;
  18363. }
  18364. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  18365. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Pie chart"));
  18366. }, e3.prototype.validateLayout = function() {
  18367. t2.prototype.validateLayout.call(this), this.updateRadius();
  18368. }, e3.prototype.handleSeriesAdded = function(e4) {
  18369. t2.prototype.handleSeriesAdded.call(this, e4), this._chartPixelRadius = void 0, this.updateSeriesAngles();
  18370. }, e3.prototype.updateSeriesAngles = function() {
  18371. var t3 = this;
  18372. this.series.each(function(e4) {
  18373. e4._startAngleInternal = t3.startAngle, e4._endAngleInternal = t3.endAngle;
  18374. });
  18375. }, e3.prototype.updateRadius = function() {
  18376. var t3 = this.chartContainer, e4 = Bt(this.startAngle, this.endAngle, 1), i3 = { x: 0, y: 0, width: 0, height: 0 }, n3 = this.innerRadius;
  18377. n3 instanceof A && (i3 = Bt(this.startAngle, this.endAngle, n3.value)), e4 = At([e4, i3]);
  18378. var r3 = Math.min(t3.innerWidth / e4.width, t3.innerHeight / e4.height);
  18379. tt(r3) || (r3 = 0);
  18380. var s2 = Fn(this.radius, r3), a2 = Fn(this.innerRadius, r3), o3 = (s2 - a2) / this.series.length;
  18381. s2 == this._chartPixelRadius && a2 == this._chartPixelInnerRadius || (this._chartPixelRadius = s2, this._chartPixelInnerRadius = a2, ti(ai(this.series.iterator()), function(t4) {
  18382. var e5 = t4[0], i4 = t4[1], n4 = a2 + Fn(i4.radius, s2 - a2), r4 = a2 + Fn(i4.innerRadius, s2 - a2);
  18383. tt(n4) || (n4 = a2 + o3 * (e5 + 1)), tt(r4) || (r4 = a2 + o3 * e5), i4.pixelRadius = n4, i4.pixelInnerRadius = r4;
  18384. }), this.seriesContainer.definedBBox = { x: s2 * e4.x, y: s2 * e4.y, width: s2 * e4.width, height: s2 * e4.height }, this.seriesContainer.invalidateLayout(), this.bulletsContainer.x = this.seriesContainer.x, this.bulletsContainer.y = this.seriesContainer.y);
  18385. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  18386. return this.getPropertyValue("radius");
  18387. }, set: function(t3) {
  18388. this.setPercentProperty("radius", t3, true, false, 10, false) && this.invalidateLayout();
  18389. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  18390. return this.getPropertyValue("innerRadius");
  18391. }, set: function(t3) {
  18392. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  18393. }, enumerable: true, configurable: true }), e3.prototype.createSeries = function() {
  18394. return new ep();
  18395. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  18396. return this.getPropertyValue("startAngle");
  18397. }, set: function(t3) {
  18398. this.setPropertyValue("startAngle", t3) && (this.updateRadius(), this.updateSeriesAngles());
  18399. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  18400. return this.getPropertyValue("endAngle");
  18401. }, set: function(t3) {
  18402. this.setPropertyValue("endAngle", t3) && (this.updateRadius(), this.updateSeriesAngles());
  18403. }, enumerable: true, configurable: true }), e3;
  18404. }(Jh);
  18405. Ii.registeredClasses.PieChart = np, Ii.registeredClasses.PieChartDataItem = ip;
  18406. var rp = function(t2) {
  18407. function e3() {
  18408. var e4 = t2.call(this) || this;
  18409. return e4.className = "PieSeries3DDataItem", e4.values.depthValue = {}, e4.applyTheme(), e4;
  18410. }
  18411. return C(e3, t2), Object.defineProperty(e3.prototype, "depthValue", { get: function() {
  18412. return this.values.depthValue.value;
  18413. }, set: function(t3) {
  18414. this.setValue("depthValue", t3);
  18415. }, enumerable: true, configurable: true }), e3;
  18416. }(tp), sp = function(t2) {
  18417. function e3() {
  18418. var e4 = t2.call(this) || this;
  18419. return e4.className = "PieSeries3D", e4.applyTheme(), e4;
  18420. }
  18421. return C(e3, t2), e3.prototype.createDataItem = function() {
  18422. return new rp();
  18423. }, e3.prototype.createSlice = function() {
  18424. return new xl();
  18425. }, e3.prototype.validateDataElement = function(e4) {
  18426. var i3 = e4.slice, n3 = this.depth;
  18427. tt(n3) || (n3 = this.chart.depth);
  18428. var r3 = e4.values.depthValue.percent;
  18429. tt(r3) || (r3 = 100), i3.depth = r3 * n3 / 100;
  18430. var s2 = this.angle;
  18431. tt(s2) || (s2 = this.chart.angle), i3.angle = s2, t2.prototype.validateDataElement.call(this, e4);
  18432. }, e3.prototype.validate = function() {
  18433. t2.prototype.validate.call(this);
  18434. for (var e4 = this._workingStartIndex; e4 < this._workingEndIndex; e4++) {
  18435. var i3 = this.dataItems.getIndex(e4).slice, n3 = i3.startAngle;
  18436. n3 >= -90 && n3 < 90 ? i3.toFront() : n3 >= 90 && i3.toBack();
  18437. }
  18438. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  18439. return this.getPropertyValue("depth");
  18440. }, set: function(t3) {
  18441. this.setPropertyValue("depth", t3, true);
  18442. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  18443. return this.getPropertyValue("angle");
  18444. }, set: function(t3) {
  18445. this.setPropertyValue("angle", t3);
  18446. }, enumerable: true, configurable: true }), e3.prototype.positionBullet = function(e4) {
  18447. t2.prototype.positionBullet.call(this, e4);
  18448. var i3 = e4.dataItem.slice;
  18449. e4.y = e4.pixelY - i3.depth;
  18450. }, e3;
  18451. }(ep);
  18452. Ii.registeredClasses.PieSeries3D = sp, Ii.registeredClasses.PieSeries3DDataItem = rp;
  18453. var ap = function(t2) {
  18454. function e3() {
  18455. var e4 = t2.call(this) || this;
  18456. return e4.className = "PieChart3DDataItem", e4.applyTheme(), e4;
  18457. }
  18458. return C(e3, t2), e3;
  18459. }(ip), op = function(t2) {
  18460. function e3() {
  18461. var e4 = t2.call(this) || this;
  18462. return e4.className = "PieChart3D", e4.depth = 20, e4.angle = 10, e4.applyTheme(), e4;
  18463. }
  18464. return C(e3, t2), Object.defineProperty(e3.prototype, "depth", { get: function() {
  18465. return this.getPropertyValue("depth");
  18466. }, set: function(t3) {
  18467. this.setPropertyValue("depth", t3) && this.invalidateDataUsers();
  18468. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  18469. return this.getPropertyValue("angle");
  18470. }, set: function(t3) {
  18471. t3 = ut(t3, 0, 90), this.setPropertyValue("angle", t3) && this.invalidateDataUsers();
  18472. }, enumerable: true, configurable: true }), e3.prototype.createSeries = function() {
  18473. return new sp();
  18474. }, e3;
  18475. }(np);
  18476. Ii.registeredClasses.PieChart3D = op;
  18477. var lp = function(t2) {
  18478. function e3() {
  18479. var e4 = t2.call(this) || this;
  18480. return e4.className = "SlicedChartDataItem", e4.applyTheme(), e4;
  18481. }
  18482. return C(e3, t2), e3;
  18483. }($h), hp = function(t2) {
  18484. function e3() {
  18485. var e4 = t2.call(this) || this;
  18486. return e4.className = "SlicedChart", e4.seriesContainer.layout = "horizontal", e4.padding(15, 15, 15, 15), e4.applyTheme(), e4;
  18487. }
  18488. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  18489. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Sliced chart"));
  18490. }, e3.prototype.validate = function() {
  18491. t2.prototype.validate.call(this);
  18492. }, e3;
  18493. }(Jh);
  18494. Ii.registeredClasses.SlicedChart = hp, Ii.registeredClasses.SlicedChartDataItem = lp;
  18495. var pp = function(t2) {
  18496. function e3() {
  18497. var e4 = t2.call(this) || this;
  18498. return e4.legendSettings = new Jl(), e4.className = "FlowDiagramNode", e4.isMeasured = false, new Ys(), e4.draggable = true, e4.inert = true, e4.setStateOnChildren = true, e4.events.on("positionchanged", e4.invalidateLinks, e4, false), e4.events.on("sizechanged", e4.invalidateLinks, e4, false), e4;
  18499. }
  18500. return C(e3, t2), e3.prototype.handleHit = function(t3) {
  18501. this.isHidden || this.isHiding ? this.show() : this.hide();
  18502. }, e3.prototype.show = function(e4) {
  18503. var i3 = t2.prototype.show.call(this, e4);
  18504. return this.outgoingDataItems.each(function(t3) {
  18505. (!t3.toNode || t3.toNode && !t3.toNode.isHidden) && (t3.setWorkingValue("value", t3.getValue("value"), e4), t3.link.show());
  18506. }), this.incomingDataItems.each(function(t3) {
  18507. (!t3.fromNode || t3.fromNode && !t3.fromNode.isHidden) && (t3.setWorkingValue("value", t3.getValue("value"), e4), t3.link.show());
  18508. }), i3;
  18509. }, e3.prototype.hide = function(e4) {
  18510. var i3 = t2.prototype.hide.call(this, e4);
  18511. return this.outgoingDataItems.each(function(t3) {
  18512. t3.setWorkingValue("value", 0, e4), t3.link.hide();
  18513. }), this.incomingDataItems.each(function(t3) {
  18514. t3.setWorkingValue("value", 0, e4), t3.link.hide();
  18515. }), i3;
  18516. }, e3.prototype.validate = function() {
  18517. this.isDisposed() || (t2.prototype.validate.call(this), this.invalidateLinks());
  18518. }, e3.prototype.invalidateLinks = function() {
  18519. var t3 = this;
  18520. this.outgoingDataItems.each(function(e4) {
  18521. var i3 = e4.link;
  18522. if ("fromNode" == i3.colorMode && (i3.fill = i3.dataItem.fromNode.color), "gradient" == i3.colorMode) {
  18523. i3.fill = i3.gradient, i3.stroke = i3.gradient;
  18524. var n3 = i3.gradient.stops.getIndex(0);
  18525. n3 && (n3.color = t3.color, i3.gradient.validate());
  18526. }
  18527. }), this.incomingDataItems.each(function(e4) {
  18528. var i3 = e4.link;
  18529. if ("toNode" == i3.colorMode && (i3.fill = i3.dataItem.toNode.color), "gradient" == i3.colorMode) {
  18530. i3.fill = i3.gradient, i3.stroke = i3.gradient;
  18531. var n3 = i3.gradient.stops.getIndex(1);
  18532. n3 && (n3.color = t3.color, i3.gradient.validate());
  18533. }
  18534. });
  18535. }, Object.defineProperty(e3.prototype, "incomingDataItems", { get: function() {
  18536. var t3 = this;
  18537. if (!this._incomingDataItems) {
  18538. var e4 = new Fi();
  18539. e4.events.on("inserted", function() {
  18540. "name" == t3.chart.sortBy ? t3._incomingSorted = ei(t3._incomingDataItems.iterator(), function(t4, e5) {
  18541. return vi(t4.fromName, e5.fromName);
  18542. }) : "value" == t3.chart.sortBy ? t3._incomingSorted = ei(t3._incomingDataItems.iterator(), function(t4, e5) {
  18543. return Hi(Bi(t4.value, e5.value));
  18544. }) : t3._incomingSorted = t3._incomingDataItems.iterator();
  18545. }, void 0, false), this._incomingDataItems = e4;
  18546. }
  18547. return this._incomingDataItems;
  18548. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outgoingDataItems", { get: function() {
  18549. var t3 = this;
  18550. if (!this._outgoingDataItems) {
  18551. var e4 = new Fi();
  18552. e4.events.on("inserted", function() {
  18553. "name" == t3.chart.sortBy ? t3._outgoingSorted = ei(t3._outgoingDataItems.iterator(), function(t4, e5) {
  18554. return vi(t4.fromName, e5.fromName);
  18555. }) : "value" == t3.chart.sortBy ? t3._outgoingSorted = ei(t3._outgoingDataItems.iterator(), function(t4, e5) {
  18556. return Hi(Bi(t4.value, e5.value));
  18557. }) : t3._outgoingSorted = t3._outgoingDataItems.iterator();
  18558. }, void 0, false), this._outgoingDataItems = e4;
  18559. }
  18560. return this._outgoingDataItems;
  18561. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "name", { get: function() {
  18562. return this.getPropertyValue("name");
  18563. }, set: function(t3) {
  18564. this.setPropertyValue("name", t3, true);
  18565. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "total", { get: function() {
  18566. return this.getPropertyValue("total");
  18567. }, set: function(t3) {
  18568. this.setPropertyValue("total", t3, true);
  18569. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "totalIncoming", { get: function() {
  18570. return this.getPropertyValue("totalIncoming");
  18571. }, set: function(t3) {
  18572. this.setPropertyValue("totalIncoming", t3, true);
  18573. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "totalOutgoing", { get: function() {
  18574. return this.getPropertyValue("totalOutgoing");
  18575. }, set: function(t3) {
  18576. this.setPropertyValue("totalOutgoing", t3, true);
  18577. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "color", { get: function() {
  18578. return this.getPropertyValue("color");
  18579. }, set: function(t3) {
  18580. this.setColorProperty("color", t3), this._background && (this._background.fill = t3), this.fill = t3;
  18581. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3) {
  18582. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  18583. t3.removeChildren();
  18584. var n3 = t3.createChild(fo);
  18585. n3.shouldClone = false, Ue(this, n3, Ka), n3.stroke = this.fill, n3.copyFrom(this), n3.padding(0, 0, 0, 0), n3.width = e4, n3.height = i3;
  18586. var r3 = t3.dataItem;
  18587. r3.color = n3.fill, r3.colorOrig = n3.fill;
  18588. }, Object.defineProperty(e3.prototype, "legendDataItem", { get: function() {
  18589. return this._legendDataItem;
  18590. }, set: function(t3) {
  18591. this._legendDataItem = t3, this._legendDataItem.itemContainer.deepInvalidate();
  18592. }, enumerable: true, configurable: true }), e3;
  18593. }($a);
  18594. Ii.registeredClasses.FlowDiagramNode = pp;
  18595. var up = function(t2) {
  18596. function e3() {
  18597. var e4 = t2.call(this) || this;
  18598. e4.className = "FlowDiagramLink";
  18599. var i3 = new Ys();
  18600. return e4.maskBullets = false, e4.colorMode = "fromNode", e4.layout = "none", e4.isMeasured = false, e4.startAngle = 0, e4.endAngle = 0, e4.strokeOpacity = 0, e4.verticalCenter = "none", e4.horizontalCenter = "none", e4.tooltipText = "{fromName}\u2192{toName}:{value.value}", e4.tooltipLocation = 0.5, e4.link = e4.createChild(Za), e4.link.shouldClone = false, e4.link.setElement(e4.paper.add("path")), e4.link.isMeasured = false, e4.fillOpacity = 0.2, e4.fill = i3.getFor("alternativeBackground"), e4.applyTheme(), e4;
  18601. }
  18602. return C(e3, t2), e3.prototype.positionBullets = function() {
  18603. var t3 = this;
  18604. ti(this.bullets.iterator(), function(e4) {
  18605. e4.parent = t3.bulletsContainer, e4.maxWidth = t3.maxWidth, e4.maxHeight = t3.maxHeight, t3.positionBullet(e4);
  18606. });
  18607. }, Object.defineProperty(e3.prototype, "bulletsContainer", { get: function() {
  18608. if (!this._bulletsContainer) {
  18609. var t3 = this.createChild($a);
  18610. t3.shouldClone = false, t3.layout = "none", this._bulletsContainer = t3;
  18611. }
  18612. return this._bulletsContainer;
  18613. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bulletsMask", { get: function() {
  18614. if (!this._bulletsMask) {
  18615. var t3 = this.createChild(Za);
  18616. t3.shouldClone = false, t3.setElement(this.paper.add("path")), t3.isMeasured = false, this._bulletsMask = t3;
  18617. }
  18618. return this._bulletsMask;
  18619. }, enumerable: true, configurable: true }), e3.prototype.positionBullet = function(t3) {
  18620. var e4 = t3.locationX;
  18621. tt(e4) || (e4 = t3.locationY), tt(e4) || (e4 = 0.5);
  18622. var i3 = this.middleLine.positionToPoint(e4);
  18623. t3.moveTo(i3);
  18624. var n3, r3 = t3.propertyFields.rotation;
  18625. t3.dataItem && (n3 = t3.dataItem.dataContext[r3]), tt(n3) || (n3 = i3.angle), t3.rotation = n3;
  18626. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  18627. return this.getPropertyValue("startAngle");
  18628. }, set: function(t3) {
  18629. this.setPropertyValue("startAngle", t3, true);
  18630. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  18631. return this.getPropertyValue("endAngle");
  18632. }, set: function(t3) {
  18633. this.setPropertyValue("endAngle", t3, true);
  18634. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "colorMode", { get: function() {
  18635. return this.getPropertyValue("colorMode");
  18636. }, set: function(t3) {
  18637. if ("gradient" == t3) {
  18638. var e4 = this.fill;
  18639. this.gradient.stops.clear(), e4 instanceof un && (this.gradient.addColor(e4), this.gradient.addColor(e4)), this.fill = this.gradient, this.stroke = this.gradient;
  18640. }
  18641. this.setPropertyValue("colorMode", t3, true);
  18642. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maskBullets", { get: function() {
  18643. return this.getPropertyValue("maskBullets");
  18644. }, set: function(t3) {
  18645. this.setPropertyValue("maskBullets", t3, true);
  18646. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipLocation", { get: function() {
  18647. return this.getPropertyValue("tooltipLocation");
  18648. }, set: function(t3) {
  18649. this.setPropertyValue("tooltipLocation", t3, true);
  18650. }, enumerable: true, configurable: true }), e3.prototype.setFill = function(e4) {
  18651. t2.prototype.setFill.call(this, e4);
  18652. var i3 = this._gradient;
  18653. i3 && e4 instanceof un && (i3.stops.clear(), i3.addColor(e4), i3.addColor(e4));
  18654. }, e3.prototype.measureElement = function() {
  18655. }, Object.defineProperty(e3.prototype, "bullets", { get: function() {
  18656. var t3 = this;
  18657. return this._bullets || (this._bullets = new Mi(new ql()), this._disposers.push(new Ai(this._bullets)), this._disposers.push(this._bullets.template), this._bullets.events.on("inserted", function(e4) {
  18658. e4.newValue.events.on("propertychanged", function(e5) {
  18659. "locationX" != e5.property && "locationY" != e5.property || t3.positionBullet(e5.target);
  18660. }, void 0, false);
  18661. }, void 0, false)), this._bullets;
  18662. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  18663. t2.prototype.copyFrom.call(this, e4), this.bullets.copyFrom(e4.bullets);
  18664. var i3 = this.middleLine;
  18665. i3 && (i3 instanceof bo && e4.middleLine instanceof bo && i3.copyFrom(e4.middleLine), i3 instanceof jo && e4.middleLine instanceof jo && i3.copyFrom(e4.middleLine)), this.link.copyFrom(e4.link);
  18666. }, e3.prototype.getTooltipX = function() {
  18667. if (this.middleLine)
  18668. return this.middleLine.positionToPoint(this.tooltipLocation).x;
  18669. }, e3.prototype.getTooltipY = function() {
  18670. if (this.middleLine)
  18671. return this.middleLine.positionToPoint(this.tooltipLocation).y;
  18672. }, Object.defineProperty(e3.prototype, "gradient", { get: function() {
  18673. return this._gradient || (this._gradient = new Oa()), this._gradient;
  18674. }, enumerable: true, configurable: true }), e3;
  18675. }($a);
  18676. Ii.registeredClasses.FlowDiagramLink = up;
  18677. var dp = function(t2) {
  18678. function e3() {
  18679. var e4 = t2.call(this) || this;
  18680. return e4.className = "FlowDiagramDataItem", e4.values.value = {}, e4.applyTheme(), e4;
  18681. }
  18682. return C(e3, t2), Object.defineProperty(e3.prototype, "fromName", { get: function() {
  18683. return this.properties.fromName;
  18684. }, set: function(t3) {
  18685. this.setProperty("fromName", t3);
  18686. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "toName", { get: function() {
  18687. return this.properties.toName;
  18688. }, set: function(t3) {
  18689. this.setProperty("toName", t3);
  18690. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "color", { get: function() {
  18691. return this.properties.color;
  18692. }, set: function(t3) {
  18693. this.setProperty("color", gn(t3));
  18694. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "value", { get: function() {
  18695. return this.values.value.value;
  18696. }, set: function(t3) {
  18697. this.setValue("value", t3);
  18698. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "link", { get: function() {
  18699. var t3 = this;
  18700. if (!this._link) {
  18701. var e4 = this.component.links.create();
  18702. this._link = e4, this.addSprite(e4), this._disposers.push(new ye(function() {
  18703. t3.component && t3.component.links.removeValue(e4);
  18704. }));
  18705. }
  18706. return this._link;
  18707. }, enumerable: true, configurable: true }), e3;
  18708. }(Kl), cp = function(t2) {
  18709. function e3() {
  18710. var e4 = t2.call(this) || this;
  18711. e4.colors = new kl(), e4.className = "FlowDiagram", e4.nodePadding = 20, e4.sortBy = "none", e4.sequencedInterpolation = true, e4.colors.step = 2, e4.minNodeSize = 0.02;
  18712. var i3 = e4.chartContainer.createChild($a);
  18713. i3.shouldClone = false, i3.layout = "none", i3.isMeasured = false, e4.linksContainer = i3;
  18714. var n3 = e4.chartContainer.createChild($a);
  18715. return n3.shouldClone = false, n3.layout = "none", n3.isMeasured = false, e4.nodesContainer = n3, e4.dataItem = e4.createDataItem(), e4.dataItem.component = e4, e4.applyTheme(), e4;
  18716. }
  18717. return C(e3, t2), e3.prototype.dispose = function() {
  18718. t2.prototype.dispose.call(this), this.dataItem.dispose();
  18719. }, e3.prototype.validateData = function() {
  18720. var e4 = this;
  18721. 0 == this._parseDataFrom && this.nodes.clear(), this.sortNodes(), this.colors.reset(), t2.prototype.validateData.call(this);
  18722. var i3, n3, r3 = 0, s2 = 0;
  18723. ti(this.dataItems.iterator(), function(t3) {
  18724. var a3 = t3.fromName;
  18725. a3 && ((o3 = e4.nodes.getKey(a3)) || ((o3 = e4.nodes.create(a3)).name = a3, o3.chart = e4, o3.dataItem = t3), t3.fromNode = o3, t3.fromNode.outgoingDataItems.push(t3));
  18726. var o3, l2 = t3.toName;
  18727. if (l2 && ((o3 = e4.nodes.getKey(l2)) || ((o3 = e4.nodes.create(l2)).name = l2, o3.chart = e4, o3.dataItem = t3), t3.toNode = o3, t3.toNode.incomingDataItems.push(t3)), !t3.fromNode) {
  18728. var h2 = new yl();
  18729. h2.opacities = [0, 1], t3.link.strokeModifier = h2;
  18730. }
  18731. if (!t3.toNode) {
  18732. var p2 = new yl();
  18733. p2.opacities = [1, 0], t3.link.strokeModifier = p2;
  18734. }
  18735. var u2 = t3.value;
  18736. tt(u2) && (r3 += u2, s2++, (i3 > u2 || !tt(i3)) && (i3 = u2), (n3 < u2 || !tt(n3)) && (n3 = u2));
  18737. });
  18738. var a2 = "value";
  18739. this.dataItem.setCalculatedValue(a2, n3, "high"), this.dataItem.setCalculatedValue(a2, i3, "low"), this.dataItem.setCalculatedValue(a2, r3, "sum"), this.dataItem.setCalculatedValue(a2, r3 / s2, "average"), this.dataItem.setCalculatedValue(a2, s2, "count"), ti(this.nodes.iterator(), function(t3) {
  18740. var i4 = t3[1];
  18741. i4.fill instanceof un && (i4.color = i4.fill), null == i4.color && (i4.color = e4.colors.next()), null != i4.dataItem.color && (i4.color = i4.dataItem.color), i4.dataItem.visible || i4.hide(0), e4.getNodeValue(i4);
  18742. }), this.sortNodes(), this.feedLegend();
  18743. }, e3.prototype.handleDataItemWorkingValueChange = function(t3, e4) {
  18744. this.invalidate();
  18745. }, e3.prototype.sortNodes = function() {
  18746. "name" == this.sortBy ? this._sorted = this.nodes.sortedIterator() : "value" == this.sortBy ? this._sorted = ei(this.nodes.iterator(), function(t3, e4) {
  18747. return Hi(Bi(t3[1].total, e4[1].total));
  18748. }) : this._sorted = this.nodes.iterator();
  18749. }, e3.prototype.getNodeValue = function(t3) {
  18750. var e4 = 0, i3 = 0;
  18751. ti(t3.incomingDataItems.iterator(), function(t4) {
  18752. var i4 = t4.getWorkingValue("value");
  18753. tt(i4) && (e4 += i4);
  18754. }), ti(t3.outgoingDataItems.iterator(), function(t4) {
  18755. var e5 = t4.getWorkingValue("value");
  18756. tt(e5) && (i3 += e5);
  18757. }), t3.total = e4 + i3, t3.totalIncoming = e4, t3.totalOutgoing = i3;
  18758. }, e3.prototype.changeSorting = function() {
  18759. this.sortNodes();
  18760. }, e3.prototype.applyInternalDefaults = function() {
  18761. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Flow diagram"));
  18762. }, e3.prototype.createDataItem = function() {
  18763. return new dp();
  18764. }, Object.defineProperty(e3.prototype, "nodePadding", { get: function() {
  18765. return this.getPropertyValue("nodePadding");
  18766. }, set: function(t3) {
  18767. this.setPropertyValue("nodePadding", t3, true);
  18768. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sortBy", { get: function() {
  18769. return this.getPropertyValue("sortBy");
  18770. }, set: function(t3) {
  18771. this.setPropertyValue("sortBy", t3), this.changeSorting();
  18772. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minNodeSize", { get: function() {
  18773. return this.getPropertyValue("minNodeSize");
  18774. }, set: function(t3) {
  18775. this.setPropertyValue("minNodeSize", t3, true);
  18776. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nodes", { get: function() {
  18777. if (!this._nodes) {
  18778. var t3 = this.createNode();
  18779. t3.events.on("hit", function(t4) {
  18780. t4.target.handleHit(t4);
  18781. }), this._nodes = new wi(t3), this._disposers.push(new _i(this._nodes));
  18782. }
  18783. return this._nodes;
  18784. }, enumerable: true, configurable: true }), e3.prototype.createNode = function() {
  18785. var t3 = new pp();
  18786. return this._disposers.push(t3), t3;
  18787. }, Object.defineProperty(e3.prototype, "links", { get: function() {
  18788. return this._links || (this._links = new Mi(this.createLink()), this._disposers.push(new Ai(this._links))), this._links;
  18789. }, enumerable: true, configurable: true }), e3.prototype.createLink = function() {
  18790. var t3 = new up();
  18791. return this._disposers.push(t3), t3;
  18792. }, e3.prototype.feedLegend = function() {
  18793. var t3 = this.legend;
  18794. if (t3) {
  18795. var e4 = [];
  18796. this.nodes.each(function(t4, i3) {
  18797. e4.push(i3);
  18798. }), t3.data = e4, t3.dataFields.name = "name";
  18799. }
  18800. }, e3.prototype.disposeData = function() {
  18801. t2.prototype.disposeData.call(this), this.nodes.clear();
  18802. }, e3;
  18803. }(Zl);
  18804. Ii.registeredClasses.FlowDiagram = cp;
  18805. var fp = function(t2) {
  18806. function e3() {
  18807. var e4 = t2.call(this) || this;
  18808. e4.className = "LabelBullet";
  18809. var i3 = e4.createChild(co);
  18810. return i3.shouldClone = false, i3.verticalCenter = "middle", i3.horizontalCenter = "middle", i3.truncate = true, i3.hideOversized = false, i3.maxWidth = 500, i3.maxHeight = 500, i3.stroke = dn(), i3.strokeOpacity = 0, i3.fill = new Ys().getFor("text"), e4.events.on("maxsizechanged", e4.handleMaxSize, e4, false), e4.label = i3, e4.applyTheme(), e4;
  18811. }
  18812. return C(e3, t2), e3.prototype.handleMaxSize = function() {
  18813. this.label.maxWidth = this.maxWidth, this.label.maxHeight = this.maxHeight;
  18814. }, e3.prototype.copyFrom = function(e4) {
  18815. t2.prototype.copyFrom.call(this, e4), this.label.copyFrom(e4.label);
  18816. }, e3;
  18817. }(ql);
  18818. Ii.registeredClasses.LabelBullet = fp;
  18819. var gp = function(t2) {
  18820. function e3() {
  18821. var e4 = t2.call(this) || this;
  18822. e4.nextInCoord = 0, e4.nextOutCoord = 0, e4.className = "SankeyNode", e4.width = 10, e4.height = 10;
  18823. var i3 = e4.createChild(fp);
  18824. i3.shouldClone = false, i3.locationX = 1, i3.locationY = 0.5, i3.label.text = "{name}", i3.width = 150, i3.height = 150, i3.label.horizontalCenter = "left", i3.label.padding(0, 5, 0, 5), e4.nameLabel = i3;
  18825. var n3 = e4.createChild(fp);
  18826. n3.shouldClone = false, n3.label.hideOversized = false, n3.locationX = 0.5, n3.locationY = 0.5, n3.width = 150, n3.height = 150, n3.label.horizontalCenter = "middle", e4.valueLabel = n3;
  18827. var r3 = e4.hiddenState;
  18828. return r3.properties.fill = new Ys().getFor("disabledBackground"), r3.properties.opacity = 0.5, r3.properties.visible = true, e4.background.hiddenState.copyFrom(r3), e4;
  18829. }
  18830. return C(e3, t2), e3.prototype.invalidateLinks = function() {
  18831. var e4 = this;
  18832. t2.prototype.invalidateLinks.call(this), this.nextInCoord = 0, this.nextOutCoord = 0;
  18833. var i3 = this.chart;
  18834. if (i3) {
  18835. var n3 = i3.orientation;
  18836. this._incomingSorted && ti(this._incomingSorted, function(t3) {
  18837. var r3 = t3.link, s2 = t3.getWorkingValue("value");
  18838. if (tt(s2)) {
  18839. r3.parent = e4.chart.linksContainer;
  18840. var a2 = void 0, o3 = void 0, l2 = void 0;
  18841. if ("horizontal" == n3 ? (a2 = e4.pixelX + e4.dx, o3 = e4.nextInCoord + e4.pixelY + e4.dy, l2 = 0) : (o3 = e4.pixelY + e4.dy, a2 = e4.nextInCoord + e4.pixelX + e4.dx, l2 = 90), r3.endX = a2, r3.endY = o3, r3.startAngle = l2, r3.endAngle = l2, r3.gradient.rotation = l2, r3.linkWidth = s2 * i3.valueHeight, !t3.fromNode) {
  18842. "horizontal" == n3 ? (r3.maxWidth = 200, r3.startX = e4.pixelX + e4.dx - r3.maxWidth, r3.startY = r3.endY) : (r3.maxHeight = 200, r3.startX = r3.endX, r3.startY = e4.pixelY + e4.dy - r3.maxHeight), r3.gradient, r3.fill = t3.toNode.color;
  18843. var h2 = r3.gradient.stops.getIndex(0);
  18844. h2 && ("gradient" == r3.colorMode && (h2.color = e4.color), h2.opacity = 0, r3.fill = r3.gradient, r3.stroke = r3.gradient, r3.gradient.validate());
  18845. }
  18846. e4.nextInCoord += r3.linkWidth;
  18847. }
  18848. }), this._outgoingSorted && ti(this._outgoingSorted, function(t3) {
  18849. var i4 = t3.link;
  18850. i4.parent = e4.chart.linksContainer;
  18851. var r3 = t3.getWorkingValue("value");
  18852. if (tt(r3)) {
  18853. var s2 = void 0, a2 = void 0, o3 = void 0;
  18854. if ("horizontal" == n3 ? (o3 = 0, s2 = e4.pixelX + e4.pixelWidth + e4.dx - 1, a2 = e4.nextOutCoord + e4.pixelY + e4.dy) : (o3 = 90, s2 = e4.nextOutCoord + e4.pixelX + e4.dx, a2 = e4.pixelY + e4.pixelHeight + e4.dy - 1), i4.startX = s2, i4.startY = a2, i4.startAngle = o3, i4.endAngle = o3, i4.gradient.rotation = o3, i4.linkWidth = r3 * e4.chart.valueHeight, !t3.toNode) {
  18855. "horizontal" == n3 ? (i4.maxWidth = 200, i4.endX = e4.pixelX + i4.maxWidth + e4.dx, i4.endY = i4.startY) : (i4.maxHeight = 200, i4.endX = i4.startX, i4.endY = e4.pixelY + i4.maxHeight + e4.dy), i4.opacity = e4.opacity;
  18856. var l2 = i4.gradient.stops.getIndex(1);
  18857. l2 && ("gradient" == i4.colorMode && (l2.color = e4.color), l2.opacity = 0, i4.fill = i4.gradient, i4.stroke = i4.gradient, i4.gradient.validate());
  18858. }
  18859. e4.nextOutCoord += i4.linkWidth;
  18860. }
  18861. });
  18862. }
  18863. this.positionBullet(this.nameLabel), this.positionBullet(this.valueLabel);
  18864. }, e3.prototype.positionBullet = function(t3) {
  18865. t3 && (t3.x = this.measuredWidth * t3.locationX, t3.y = this.measuredHeight * t3.locationY);
  18866. }, Object.defineProperty(e3.prototype, "level", { get: function() {
  18867. return this.getPropertyValue("level");
  18868. }, set: function(t3) {
  18869. this.setPropertyValue("level", t3, true);
  18870. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  18871. t2.prototype.copyFrom.call(this, e4), this.nameLabel.copyFrom(e4.nameLabel), this.valueLabel.copyFrom(e4.valueLabel);
  18872. }, e3;
  18873. }(pp);
  18874. Ii.registeredClasses.SankeyNode = gp;
  18875. var yp = function(t2) {
  18876. function e3() {
  18877. var e4 = t2.call(this) || this;
  18878. return e4.className = "SankeyLink", new Ys(), e4.tension = 0.8, e4.controlPointDistance = 0.2, e4.startAngle = 0, e4.endAngle = 0, e4.linkWidth = 0, e4.startX = 0, e4.endX = 0, e4.startY = 0, e4.endY = 0, e4.middleLine = e4.createChild(Ho), e4.middleLine.shouldClone = false, e4.middleLine.strokeOpacity = 0, e4.applyTheme(), e4;
  18879. }
  18880. return C(e3, t2), e3.prototype.makeBackwards = function() {
  18881. null != this.states.getKey("backwards") && this.setState("backwards");
  18882. }, e3.prototype.validate = function() {
  18883. var e4, i3, n3, r3;
  18884. if (t2.prototype.validate.call(this), !this.isTemplate) {
  18885. var s2 = this.startX, a2 = this.startY, o3 = this.endX, l2 = this.endY;
  18886. if (this.states.getKey("backwards") && this.setState("default"), this.dataItem) {
  18887. var h2 = this.dataItem.component;
  18888. h2 && ("horizontal" == h2.orientation ? o3 < s2 && (s2 = (e4 = k([o3, s2], 2))[0], o3 = e4[1], a2 = (i3 = k([l2, a2], 2))[0], l2 = i3[1], this.makeBackwards()) : l2 < a2 && (a2 = (n3 = k([l2, a2], 2))[0], l2 = n3[1], s2 = (r3 = k([o3, s2], 2))[0], o3 = r3[1], this.makeBackwards()));
  18889. }
  18890. tt(o3) || (o3 = s2), tt(l2) || (l2 = a2);
  18891. var p2 = this.startAngle, u2 = this.endAngle, d2 = this.linkWidth, c2 = "", f2 = s2, g2 = a2, y2 = o3, m2 = l2, v2 = s2 + d2 * dt(p2), b2 = o3 + d2 * dt(u2), x2 = a2 + d2 * ft(p2), _2 = l2 + d2 * ft(u2), P2 = s2 + d2 / 2 * dt(p2), w2 = o3 + d2 / 2 * dt(u2), C2 = a2 + d2 / 2 * ft(p2), O2 = l2 + d2 / 2 * ft(u2);
  18892. this.zIndex = this.zIndex || this.dataItem.index;
  18893. var S2 = this.tension + (1 - this.tension) * dt(p2), I2 = this.tension + (1 - this.tension) * ft(p2);
  18894. if (this.middleLine.tensionX = S2, this.middleLine.tensionY = I2, tt(d2) && tt(s2) && tt(o3) && tt(a2) && tt(l2)) {
  18895. lt(f2, 3) == lt(y2, 3) && (y2 += 0.01), lt(g2, 3) == lt(m2, 3) && (m2 += 0.01), lt(v2, 3) == lt(b2, 3) && (b2 += 0.01), lt(x2, 3) == lt(_2, 3) && (_2 += 0.01);
  18896. var D2 = Math.min(v2, b2, f2, y2), T2 = Math.min(x2, _2, g2, m2), A2 = Math.max(v2, b2, f2, y2), V2 = Math.max(x2, _2, g2, m2);
  18897. this._bbox = { x: D2, y: T2, width: A2 - D2, height: V2 - T2 };
  18898. var F2 = this.controlPointDistance, M2 = f2 + (y2 - f2) * F2 * ft(p2), L2 = g2 + (m2 - g2) * F2 * dt(p2), j2 = y2 - (y2 - f2) * F2 * ft(u2), E2 = m2 - (m2 - g2) * F2 * dt(u2), R2 = P2 + (w2 - P2) * F2 * ft(p2), B2 = C2 + (O2 - C2) * F2 * dt(p2), H2 = w2 - (w2 - P2) * F2 * ft(u2), N2 = O2 - (O2 - C2) * F2 * dt(u2), W2 = Dt({ x: M2, y: L2 }, { x: j2, y: E2 }), X2 = (d2 / ft(W2) - d2) / ct(W2) * ft(p2), Y2 = (d2 / dt(W2) - d2) * ct(W2) * dt(p2), z2 = -X2 / 2 + v2 + (b2 - v2) * F2 * ft(p2), U2 = -Y2 / 2 + x2 + (_2 - x2) * F2 * dt(p2), G2 = -X2 / 2 + b2 - (b2 - v2) * F2 * ft(u2), K2 = -Y2 / 2 + _2 - (_2 - x2) * F2 * dt(u2);
  18899. O2 == C2 && (O2 += 0.01), this.middleLine.segments = [[{ x: P2, y: C2 }, { x: R2, y: B2 }, { x: H2, y: N2 }, { x: w2, y: O2 }]], M2 += X2 / 2, L2 += Y2 / 2, j2 += X2 / 2, E2 += Y2 / 2, c2 += wo({ x: f2, y: g2 }), c2 += new tl(S2, I2).smooth([{ x: f2, y: g2 }, { x: M2, y: L2 }, { x: j2, y: E2 }, { x: y2, y: m2 }]), c2 += Co({ x: b2, y: _2 }), c2 += new tl(S2, I2).smooth([{ x: b2, y: _2 }, { x: G2, y: K2 }, { x: z2, y: U2 }, { x: v2, y: x2 }]), c2 += " Z";
  18900. }
  18901. this.link.path = c2, this.maskBullets && (this.bulletsMask.path = c2, this.bulletsContainer.mask = this.bulletsMask), this.positionBullets();
  18902. }
  18903. }, Object.defineProperty(e3.prototype, "startX", { get: function() {
  18904. return this.getPropertyValue("startX");
  18905. }, set: function(t3) {
  18906. this.setPropertyValue("startX", t3, true);
  18907. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endX", { get: function() {
  18908. return this.getPropertyValue("endX");
  18909. }, set: function(t3) {
  18910. this.setPropertyValue("endX", t3, true);
  18911. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startY", { get: function() {
  18912. return this.getPropertyValue("startY");
  18913. }, set: function(t3) {
  18914. this.setPropertyValue("startY", t3, true);
  18915. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endY", { get: function() {
  18916. return this.getPropertyValue("endY");
  18917. }, set: function(t3) {
  18918. this.setPropertyValue("endY", t3, true);
  18919. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "linkWidth", { get: function() {
  18920. return this.getPropertyValue("linkWidth");
  18921. }, set: function(t3) {
  18922. this.setPropertyValue("linkWidth", t3, true);
  18923. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "controlPointDistance", { get: function() {
  18924. return this.getPropertyValue("controlPointDistance");
  18925. }, set: function(t3) {
  18926. this.setPropertyValue("controlPointDistance", t3, true);
  18927. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tension", { get: function() {
  18928. return this.getPropertyValue("tension");
  18929. }, set: function(t3) {
  18930. this.setPropertyValue("tension", t3, true);
  18931. }, enumerable: true, configurable: true }), e3;
  18932. }(up);
  18933. Ii.registeredClasses.SankeyLink = yp;
  18934. var mp = function(t2) {
  18935. function e3() {
  18936. var e4 = t2.call(this) || this;
  18937. return e4.className = "SankeyDiagramDataItem", e4.applyTheme(), e4;
  18938. }
  18939. return C(e3, t2), e3;
  18940. }(dp), vp = function(t2) {
  18941. function e3() {
  18942. var e4 = t2.call(this) || this;
  18943. return e4.className = "SankeyDiagram", e4.orientation = "horizontal", e4.nodeAlign = "middle", e4.nodesContainer.width = V(100), e4.nodesContainer.height = V(100), e4.linksContainer.width = V(100), e4.linksContainer.height = V(100), e4.applyTheme(), e4;
  18944. }
  18945. return C(e3, t2), e3.prototype.validateData = function() {
  18946. var e4 = this;
  18947. this._valueHeight = void 0, t2.prototype.validateData.call(this), this._levelCount = 0, this.nodes.each(function(t3, e5) {
  18948. e5.level = void 0;
  18949. }), this.nodes.each(function(t3, i3) {
  18950. i3.level = e4.getNodeLevel(i3, 0), e4._levelCount = gt(e4._levelCount, i3.level);
  18951. });
  18952. }, e3.prototype.getNodeLevel = function(t3, e4) {
  18953. var i3 = this, n3 = [e4];
  18954. return ti(t3.incomingDataItems.iterator(), function(t4) {
  18955. t4.fromNode && (tt(t4.fromNode.level) ? n3.push(t4.fromNode.level + 1) : (i3._counter = 0, i3.checkLoop(t4.fromNode), i3._counter < i3.dataItems.length && n3.push(i3.getNodeLevel(t4.fromNode, e4 + 1))));
  18956. }), Math.max.apply(Math, T(n3));
  18957. }, e3.prototype.checkLoop = function(t3) {
  18958. var e4 = this;
  18959. this._counter++, this._counter > this.dataItems.length || ti(t3.incomingDataItems.iterator(), function(t4) {
  18960. e4.checkLoop(t4.fromNode);
  18961. });
  18962. }, e3.prototype.calculateValueHeight = function() {
  18963. var t3 = this;
  18964. this._levelSum = {}, this._levelNodesCount = {}, this.maxSum = 0;
  18965. var e4, i3, n3, r3 = this.dataItem.values.value.sum;
  18966. ti(this._sorted, function(e5) {
  18967. var i4 = e5[1];
  18968. t3.getNodeValue(i4);
  18969. }), this.nodes.each(function(e5, i4) {
  18970. var n4 = i4.level, s3 = Math.max(i4.totalIncoming, i4.totalOutgoing);
  18971. s3 / r3 < t3.minNodeSize && (s3 = r3 * t3.minNodeSize), tt(t3._levelSum[n4]) ? t3._levelSum[n4] += s3 : t3._levelSum[n4] = s3, tt(t3._levelNodesCount[n4]) ? t3._levelNodesCount[n4]++ : t3._levelNodesCount[n4] = 1;
  18972. }), e4 = "horizontal" == this.orientation ? this.chartContainer.maxHeight - 1 : this.chartContainer.maxWidth - 1, Ne(this._levelSum, function(r4, s3) {
  18973. var a3 = s3, o4 = t3._levelNodesCount[r4], l3 = (e4 - (o4 - 1) * t3.nodePadding) / a3;
  18974. l3 == 1 / 0 && (l3 = 0), (n3 > l3 || !tt(n3)) && (n3 = l3, t3.maxSum = a3, i3 = U(r4));
  18975. }), this._maxSumLevel = i3;
  18976. var s2 = this._levelNodesCount[this._maxSumLevel], a2 = (e4 - (s2 - 1) * this.nodePadding) / this.maxSum;
  18977. if (a2 == 1 / 0 && (a2 = 0), tt(this.valueHeight)) {
  18978. var o3 = void 0;
  18979. try {
  18980. o3 = this._heightAnimation.animationOptions[0].to;
  18981. } catch (t4) {
  18982. }
  18983. if (o3 != a2) {
  18984. var l2 = this.interpolationDuration;
  18985. try {
  18986. l2 = this.nodes.template.states.getKey("active").transitionDuration;
  18987. } catch (t4) {
  18988. }
  18989. this._heightAnimation = new ys(this, { property: "valueHeight", from: this.valueHeight, to: a2 }, l2, this.interpolationEasing).start(), this._disposers.push(this._heightAnimation);
  18990. }
  18991. } else
  18992. this.valueHeight = a2;
  18993. }, e3.prototype.validate = function() {
  18994. var e4 = this;
  18995. t2.prototype.validate.call(this), this.calculateValueHeight();
  18996. var i3, n3 = this.nodesContainer, r3 = {}, s2 = this._levelNodesCount[this._maxSumLevel], a2 = this.dataItem.values.value.sum;
  18997. i3 = "horizontal" == this.orientation ? this.chartContainer.maxHeight - 1 : this.chartContainer.maxWidth - 1, ti(this._sorted, function(t3) {
  18998. var o3, l2, h2, p2 = t3[1], u2 = p2.level, d2 = 0, c2 = e4._levelNodesCount[u2];
  18999. switch (e4.nodeAlign) {
  19000. case "bottom":
  19001. d2 = (e4.maxSum - e4._levelSum[u2]) * e4.valueHeight - (c2 - s2) * e4.nodePadding;
  19002. break;
  19003. case "middle":
  19004. d2 = (e4.maxSum - e4._levelSum[u2]) * e4.valueHeight / 2 - (c2 - s2) * e4.nodePadding / 2;
  19005. }
  19006. if (0 == e4.maxSum)
  19007. switch (e4.nodeAlign) {
  19008. case "bottom":
  19009. d2 = i3 - c2 * (e4.minNodeSize * i3 + e4.nodePadding);
  19010. break;
  19011. case "middle":
  19012. d2 = i3 / 2 - c2 / 2 * (e4.minNodeSize * i3 + e4.nodePadding);
  19013. }
  19014. p2.parent = n3;
  19015. var f2 = Math.max(p2.totalIncoming, p2.totalOutgoing);
  19016. if (f2 / a2 < e4.minNodeSize && (f2 = a2 * e4.minNodeSize), "horizontal" == e4.orientation) {
  19017. l2 = (o3 = (e4.innerWidth - p2.pixelWidth) / e4._levelCount) * p2.level, h2 = r3[u2] || d2;
  19018. var g2 = f2 * e4.valueHeight;
  19019. 0 == a2 && 0 == g2 && (g2 = e4.minNodeSize * i3), p2.height = g2, p2.minX = l2, p2.maxX = l2, r3[u2] = h2 + g2 + e4.nodePadding;
  19020. } else {
  19021. o3 = (e4.innerHeight - p2.pixelHeight) / e4._levelCount, l2 = r3[u2] || d2, h2 = o3 * p2.level;
  19022. var y2 = f2 * e4.valueHeight;
  19023. 0 == a2 && 0 == y2 && (y2 = e4.minNodeSize * i3), p2.width = y2, p2.minY = h2, p2.maxY = h2, r3[u2] = l2 + y2 + e4.nodePadding;
  19024. }
  19025. p2.x = l2, p2.y = h2;
  19026. });
  19027. }, e3.prototype.showReal = function(e4) {
  19028. var i3 = this;
  19029. if (!this.preventShow) {
  19030. if (this.interpolationDuration > 0) {
  19031. var n3 = this.nodesContainer, r3 = 0;
  19032. ti(this.links.iterator(), function(t3) {
  19033. t3.hide(0);
  19034. }), ti(this._sorted, function(t3) {
  19035. var e5, s2 = t3[1];
  19036. "horizontal" == i3.orientation ? (s2.dx = -(n3.pixelWidth - s2.pixelWidth) / Math.max(i3._levelCount, 1), e5 = "dx") : (s2.dy = -(n3.pixelHeight - s2.pixelHeight) / Math.max(i3._levelCount, 1), e5 = "dy");
  19037. var a2 = 0, o3 = i3.interpolationDuration;
  19038. i3.sequencedInterpolation && (a2 = i3.sequencedInterpolationDelay * r3 + o3 * r3 / $e(i3.nodes.iterator())), s2.opacity = 0, s2.invalidateLinks(), s2.animate([{ property: "opacity", from: 0, to: 1 }, { property: e5, to: 0 }], i3.interpolationDuration, i3.interpolationEasing).delay(a2), ti(s2.outgoingDataItems.iterator(), function(t4) {
  19039. var e6 = t4.link.show(i3.interpolationDuration);
  19040. e6 && !e6.isFinished() && e6.delay(a2);
  19041. }), ti(s2.incomingDataItems.iterator(), function(t4) {
  19042. if (!t4.fromNode) {
  19043. var e6 = t4.link.show(i3.interpolationDuration);
  19044. e6 && !e6.isFinished() && e6.delay(a2);
  19045. }
  19046. }), r3++;
  19047. });
  19048. }
  19049. return t2.prototype.showReal.call(this);
  19050. }
  19051. }, e3.prototype.changeSorting = function() {
  19052. var t3 = this;
  19053. this.sortNodes();
  19054. var e4 = {};
  19055. ti(this._sorted, function(i3) {
  19056. var n3, r3, s2 = i3[1], a2 = s2.level, o3 = (t3.maxSum - t3._levelSum[a2]) * t3.valueHeight / 2;
  19057. "horizontal" == t3.orientation ? (n3 = "y", r3 = s2.pixelHeight) : (n3 = "x", r3 = s2.pixelWidth), s2.animate({ property: n3, to: e4[a2] || o3 }, t3.interpolationDuration, t3.interpolationEasing), e4[a2] = (e4[a2] || o3) + r3 + t3.nodePadding, s2.invalidateLinks();
  19058. });
  19059. }, e3.prototype.applyInternalDefaults = function() {
  19060. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Sankey diagram"));
  19061. }, e3.prototype.createDataItem = function() {
  19062. return new mp();
  19063. }, Object.defineProperty(e3.prototype, "nodeAlign", { get: function() {
  19064. return this.getPropertyValue("nodeAlign");
  19065. }, set: function(t3) {
  19066. this.setPropertyValue("nodeAlign", t3), this.changeSorting();
  19067. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  19068. return this.getPropertyValue("orientation");
  19069. }, set: function(t3) {
  19070. this.setPropertyValue("orientation", t3, true);
  19071. var e4 = this.nodes.template.nameLabel;
  19072. "vertical" == t3 ? (this.nodes.template.width = void 0, e4.label.horizontalCenter = "middle", e4.locationX = 0.5) : (this.nodes.template.height = void 0, e4.label.horizontalCenter = "left", e4.locationX = 1);
  19073. }, enumerable: true, configurable: true }), e3.prototype.createNode = function() {
  19074. var t3 = new gp();
  19075. return this._disposers.push(t3), t3;
  19076. }, e3.prototype.createLink = function() {
  19077. var t3 = new yp();
  19078. return this._disposers.push(t3), t3;
  19079. }, Object.defineProperty(e3.prototype, "valueHeight", { get: function() {
  19080. return this._valueHeight;
  19081. }, set: function(t3) {
  19082. t3 != this._valueHeight && (this._valueHeight = t3, this.invalidate());
  19083. }, enumerable: true, configurable: true }), e3.prototype.disposeData = function() {
  19084. t2.prototype.disposeData.call(this), this._sorted = this.nodes.iterator();
  19085. }, e3;
  19086. }(cp);
  19087. Ii.registeredClasses.SankeyDiagram = vp;
  19088. var bp = function(t2) {
  19089. function e3() {
  19090. var e4 = t2.call(this) || this;
  19091. e4.className = "ChordNode";
  19092. var i3 = e4.createChild(Nh);
  19093. i3.location = 0.5, i3.radius = 5, i3.text = "{name}", i3.zIndex = 1, i3.shouldClone = false, e4.label = i3, e4.layout = "none", e4.events.on("positionchanged", e4.updateRotation, e4, false), e4.isMeasured = false, e4.slice = e4.createChild(No), e4.slice.isMeasured = false;
  19094. var n3 = e4.hiddenState;
  19095. return n3.properties.fill = new Ys().getFor("disabledBackground"), n3.properties.opacity = 0.5, n3.properties.visible = true, e4.setStateOnChildren = false, e4.slice.hiddenState.properties.visible = true, e4.adapter.add("tooltipX", function(t3, e5) {
  19096. return e5.slice.ix * (e5.slice.radius - (e5.slice.radius - e5.slice.pixelInnerRadius) / 2);
  19097. }), e4.adapter.add("tooltipY", function(t3, e5) {
  19098. return e5.slice.iy * (e5.slice.radius - (e5.slice.radius - e5.slice.pixelInnerRadius) / 2);
  19099. }), e4;
  19100. }
  19101. return C(e3, t2), e3.prototype.invalidateLinks = function() {
  19102. var e4 = this;
  19103. t2.prototype.invalidateLinks.call(this);
  19104. var i3 = this.label, n3 = this.slice, r3 = this.chart;
  19105. if (r3 && n3) {
  19106. var s2 = this.total, a2 = n3.arc, o3 = n3.startAngle;
  19107. this.children.each(function(t3) {
  19108. if (t3 instanceof ql) {
  19109. var e5 = t3.locationX;
  19110. tt(e5) || (e5 = 0.5);
  19111. var i4 = t3.locationY;
  19112. tt(i4) || (i4 = 1);
  19113. var r4 = o3 + a2 * e5, s3 = i4 * n3.radius;
  19114. t3.x = s3 * ft(r4), t3.y = s3 * dt(r4);
  19115. }
  19116. });
  19117. var l2 = o3 + a2 * i3.location, h2 = o3 + (1 - s2 / this.adjustedTotal) * a2 * 0.5;
  19118. M(h2) && (h2 = o3), i3.fixPosition(l2, n3.radius), this.nextAngle = h2, this._outgoingSorted && ti(this._outgoingSorted, function(t3) {
  19119. var i4 = t3.link;
  19120. i4.parent = e4.chart.linksContainer;
  19121. var s3 = t3.getWorkingValue("value");
  19122. if (tt(s3)) {
  19123. if (r3.nonRibbon) {
  19124. var l3 = i4.percentWidth;
  19125. tt(l3) || (l3 = 5), l3 /= 100, i4.startAngle = o3 + a2 / 2 - a2 / 2 * l3, i4.arc = a2 * l3;
  19126. } else
  19127. i4.arc = s3 * r3.valueAngle, i4.startAngle = e4.nextAngle, e4.nextAngle += i4.arc;
  19128. t3.toNode || (i4.endAngle = i4.startAngle), i4.radius = n3.pixelInnerRadius;
  19129. }
  19130. }), this._incomingSorted && ti(this._incomingSorted, function(t3) {
  19131. var i4 = t3.link;
  19132. if (i4.radius = n3.pixelInnerRadius, r3.nonRibbon) {
  19133. var s3 = i4.percentWidth;
  19134. tt(s3) || (s3 = 5), s3 /= 100, i4.endAngle = o3 + a2 / 2 - a2 / 2 * s3, i4.arc = a2 * s3;
  19135. } else {
  19136. i4.endAngle = e4.nextAngle;
  19137. var l3 = t3.getWorkingValue("value");
  19138. tt(l3) && (i4.arc = l3 * r3.valueAngle, e4.nextAngle += i4.arc);
  19139. }
  19140. t3.fromNode || (i4.startAngle = i4.endAngle);
  19141. });
  19142. }
  19143. }, e3.prototype.updateRotation = function() {
  19144. var t3 = this.slice, e4 = this.trueStartAngle + t3.arc / 2, i3 = t3.radius, n3 = i3 * ft(e4), r3 = i3 * dt(e4), s2 = Dt({ x: n3 + this.pixelX, y: r3 + this.pixelY });
  19145. t3.startAngle = this.trueStartAngle + (s2 - e4), this.dx = -this.pixelX, this.dy = -this.pixelY;
  19146. }, e3.prototype.copyFrom = function(e4) {
  19147. t2.prototype.copyFrom.call(this, e4), this.label.copyFrom(e4.label), this.slice.copyFrom(e4.slice);
  19148. }, e3;
  19149. }(pp);
  19150. Ii.registeredClasses.ChordNode = bp;
  19151. var xp = function(t2) {
  19152. function e3() {
  19153. var e4 = t2.call(this) || this;
  19154. return e4.className = "QuadraticCurve", e4.element = e4.paper.add("path"), e4.pixelPerfect = false, e4.fill = dn(), e4.applyTheme(), e4;
  19155. }
  19156. return C(e3, t2), e3.prototype.draw = function() {
  19157. if (tt(this.x1 + this.x2 + this.y1 + this.y2 + this.cpx + this.cpy)) {
  19158. var t3 = { x: this.x1, y: this.y1 }, e4 = { x: this.x2, y: this.y2 }, i3 = { x: this.cpx, y: this.cpy }, n3 = wo(t3) + Oo(e4, i3);
  19159. this.path = n3;
  19160. }
  19161. }, Object.defineProperty(e3.prototype, "cpx", { get: function() {
  19162. return this.getPropertyValue("cpx");
  19163. }, set: function(t3) {
  19164. this.setPropertyValue("cpx", t3, true);
  19165. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cpy", { get: function() {
  19166. return this.getPropertyValue("cpy");
  19167. }, set: function(t3) {
  19168. this.setPropertyValue("cpy", t3, true);
  19169. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3) {
  19170. var e4 = { x: this.x1, y: this.y1 }, i3 = { x: this.cpx, y: this.cpy }, n3 = { x: this.x2, y: this.y2 }, r3 = Vt(e4, n3, i3, t3), s2 = Vt(e4, n3, i3, t3 + 1e-3);
  19171. return { x: r3.x, y: r3.y, angle: Dt(r3, s2) };
  19172. }, e3;
  19173. }(bo), _p = function(t2) {
  19174. function e3() {
  19175. var e4 = t2.call(this) || this;
  19176. return e4.className = "ChordLink", e4.middleLine = e4.createChild(xp), e4.middleLine.shouldClone = false, e4.middleLine.strokeOpacity = 0, e4.applyTheme(), e4;
  19177. }
  19178. return C(e3, t2), e3.prototype.validate = function() {
  19179. if (t2.prototype.validate.call(this), !this.isTemplate) {
  19180. var e4 = this.startAngle, i3 = this.endAngle, n3 = this.arc, r3 = this.radius, s2 = this.dataItem.fromNode, a2 = this.dataItem.toNode, o3 = 0, l2 = 0;
  19181. s2 && (o3 = s2.pixelX + s2.dx, l2 = s2.pixelY + s2.dy);
  19182. var h2 = 0, p2 = 0;
  19183. if (a2 && (h2 = a2.pixelX + a2.dx, p2 = a2.pixelY + a2.dy), r3 > 0) {
  19184. var u2 = r3 * ft(e4) + o3, d2 = r3 * dt(e4) + l2, c2 = r3 * ft(i3) + h2, f2 = r3 * dt(i3) + p2, g2 = { x: 0, y: 0 }, y2 = wo({ x: u2, y: d2 });
  19185. y2 += Do(e4, n3, r3), y2 += Oo({ x: c2, y: f2 }, g2), y2 += Do(i3, n3, r3), y2 += Oo({ x: u2, y: d2 }, g2), this.link.path = n3 > 0 ? y2 : "", this.maskBullets && (this.bulletsMask.path = y2, this.bulletsContainer.mask = this.bulletsMask);
  19186. var m2 = e4 + n3 / 2, v2 = i3 + n3 / 2, b2 = this.middleLine;
  19187. b2.x1 = r3 * ft(m2) + o3, b2.y1 = r3 * dt(m2) + l2, b2.x2 = r3 * ft(v2) + h2, b2.y2 = r3 * dt(v2) + p2, b2.cpx = 0, b2.cpy = 0, b2.stroke = this.fill, this.positionBullets();
  19188. }
  19189. }
  19190. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  19191. return this.getPropertyValue("radius");
  19192. }, set: function(t3) {
  19193. this.setPropertyValue("radius", t3, true);
  19194. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "arc", { get: function() {
  19195. return this.getPropertyValue("arc");
  19196. }, set: function(t3) {
  19197. this.setPropertyValue("arc", t3, true);
  19198. }, enumerable: true, configurable: true }), e3;
  19199. }(up);
  19200. Ii.registeredClasses.ChordLink = _p;
  19201. var Pp = function(t2) {
  19202. function e3() {
  19203. var e4 = t2.call(this) || this;
  19204. return e4.className = "ChordDiagramDataItem", e4.applyTheme(), e4;
  19205. }
  19206. return C(e3, t2), e3;
  19207. }(dp), wp = function(t2) {
  19208. function e3() {
  19209. var e4 = t2.call(this) || this;
  19210. e4.valueAngle = 0, e4.className = "ChordDiagram", e4.startAngle = -90, e4.endAngle = 270, e4.radius = V(80), e4.innerRadius = -15, e4.nodePadding = 5;
  19211. var i3 = e4.chartContainer.createChild($a);
  19212. return i3.align = "center", i3.valign = "middle", i3.shouldClone = false, i3.layout = "absolute", e4.chordContainer = i3, e4.nodesContainer.parent = i3, e4.linksContainer.parent = i3, e4.chartContainer.events.on("maxsizechanged", e4.invalidate, e4, false), e4.applyTheme(), e4;
  19213. }
  19214. return C(e3, t2), e3.prototype.validate = function() {
  19215. var e4 = this, i3 = this.chartContainer, n3 = this.endAngle, r3 = this.startAngle + this.nodePadding / 2, s2 = Bt(this.startAngle, this.endAngle, 1);
  19216. s2 = At([s2, { x: 0, y: 0, width: 0, height: 0 }]);
  19217. var a2 = Math.min(i3.innerWidth / s2.width, i3.innerHeight / s2.height);
  19218. tt(a2) || (a2 = 0);
  19219. var o3 = Fn(this.radius, a2), l2 = Fn(this.innerRadius, o3, true), h2 = this.dataItem.values.value.sum, p2 = 0, u2 = 0;
  19220. ti(this._sorted, function(t3) {
  19221. var i4 = t3[1];
  19222. e4.getNodeValue(i4), p2++;
  19223. var n4 = i4.total;
  19224. i4.total / h2 < e4.minNodeSize && (n4 = h2 * e4.minNodeSize), u2 += n4;
  19225. }), this.valueAngle = (n3 - this.startAngle - this.nodePadding * p2) / u2, ti(this._sorted, function(t3) {
  19226. var i4 = t3[1], s3 = i4.slice;
  19227. s3.radius = o3, s3.innerRadius = l2;
  19228. var a3, u3 = i4.total;
  19229. i4.total / h2 < e4.minNodeSize && (u3 = h2 * e4.minNodeSize), i4.adjustedTotal = u3, a3 = e4.nonRibbon ? (n3 - e4.startAngle) / p2 - e4.nodePadding : e4.valueAngle * u3, s3.arc = a3, s3.startAngle = r3, i4.trueStartAngle = r3, i4.parent = e4.nodesContainer, i4.validate(), r3 += a3 + e4.nodePadding;
  19230. }), this.chordContainer.definedBBox = { x: o3 * s2.x, y: o3 * s2.y, width: o3 * s2.width, height: o3 * s2.height }, this.chordContainer.invalidateLayout(), t2.prototype.validate.call(this);
  19231. }, e3.prototype.applyInternalDefaults = function() {
  19232. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Chord diagram"));
  19233. }, e3.prototype.createDataItem = function() {
  19234. return new Pp();
  19235. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  19236. return this.getPropertyValue("startAngle");
  19237. }, set: function(t3) {
  19238. this.setPropertyValue("startAngle", t3, true);
  19239. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  19240. return this.getPropertyValue("endAngle");
  19241. }, set: function(t3) {
  19242. this.setPropertyValue("endAngle", t3, true);
  19243. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  19244. return this.getPropertyValue("radius");
  19245. }, set: function(t3) {
  19246. this.setPercentProperty("radius", t3, true, false, 10, false);
  19247. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  19248. return this.getPropertyValue("innerRadius");
  19249. }, set: function(t3) {
  19250. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  19251. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nonRibbon", { get: function() {
  19252. return this.getPropertyValue("nonRibbon");
  19253. }, set: function(t3) {
  19254. this.setPropertyValue("nonRibbon", t3, true), this.links.template.middleLine.strokeOpacity = 1, this.links.template.link.fillOpacity = 0;
  19255. }, enumerable: true, configurable: true }), e3.prototype.createNode = function() {
  19256. var t3 = new bp();
  19257. return this._disposers.push(t3), t3;
  19258. }, e3.prototype.createLink = function() {
  19259. var t3 = new _p();
  19260. return this._disposers.push(t3), t3;
  19261. }, e3;
  19262. }(cp);
  19263. Ii.registeredClasses.ChordDiagram = wp;
  19264. var Cp = function(t2) {
  19265. function e3() {
  19266. var e4 = t2.call(this) || this;
  19267. return e4.className = "Column", e4.width = V(80), e4.height = V(80), e4.events.disableType("transformed"), e4.applyOnClones = true, e4.strokeOpacity = 1, e4.layout = "none", e4.createAssets(), e4.events.on("childadded", e4.handleKidAdded, e4, false), e4;
  19268. }
  19269. return C(e3, t2), e3.prototype.handleKidAdded = function() {
  19270. "none" == this.layout && (this.layout = "absolute");
  19271. }, e3.prototype.createAssets = function() {
  19272. this.column = this.createChild(fo), this.column.shouldClone = false, this.column.isMeasured = false, this.column.cornerRadius(0, 0, 0, 0), this._disposers.push(this.column);
  19273. }, e3.prototype.validate = function() {
  19274. t2.prototype.validate.call(this);
  19275. var e4 = this.column;
  19276. e4 && (e4.width = yt(this.pixelWidth, this.maxWidth), e4.height = yt(this.pixelHeight, this.maxHeight), e4.invalid && e4.validate());
  19277. }, e3.prototype.copyFrom = function(e4) {
  19278. t2.prototype.copyFrom.call(this, e4), this.column && this.column.copyFrom(e4.column);
  19279. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  19280. return this.definedBBox ? this.definedBBox : this.column ? { x: 0, y: 0, width: this.column.measuredWidth, height: this.column.measuredHeight } : { x: 0, y: 0, width: yt(this.pixelWidth, this.maxWidth), height: yt(this.pixelHeight, this.maxHeight) };
  19281. }, enumerable: true, configurable: true }), e3;
  19282. }($a);
  19283. Ii.registeredClasses.Column = Cp;
  19284. var Op = function(t2) {
  19285. function e3() {
  19286. var e4 = t2.call(this) || this;
  19287. return e4.className = "ColumnSeriesDataItem", e4.locations.dateX = 0.5, e4.locations.dateY = 0.5, e4.locations.categoryX = 0.5, e4.locations.categoryY = 0.5, e4.applyTheme(), e4;
  19288. }
  19289. return C(e3, t2), Object.defineProperty(e3.prototype, "column", { get: function() {
  19290. return this._column;
  19291. }, set: function(t3) {
  19292. this.setColumn(t3);
  19293. }, enumerable: true, configurable: true }), e3.prototype.setColumn = function(t3) {
  19294. var e4 = this;
  19295. if (this._column && t3 != this._column && ee(this.sprites, this._column), this._column = t3, t3) {
  19296. var i3 = t3.dataItem;
  19297. i3 && i3 != this && (i3.column = void 0), this.addSprite(t3), this._disposers.push(new ye(function() {
  19298. e4.component && e4.component.columns.removeValue(t3);
  19299. }));
  19300. }
  19301. }, Object.defineProperty(e3.prototype, "width", { get: function() {
  19302. var t3 = this.properties.width;
  19303. return this._adapterO && (t3 = this._adapterO.apply("width", t3)), t3;
  19304. }, set: function(t3) {
  19305. this.properties.width != t3 && (this.properties.width = t3, this.component && this.component.validateDataElement(this));
  19306. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "height", { get: function() {
  19307. var t3 = this.properties.height;
  19308. return this._adapterO && (t3 = this._adapterO.apply("height", t3)), t3;
  19309. }, set: function(t3) {
  19310. this.properties.height != t3 && (this.properties.height = t3, this.component && this.component.validateDataElement(this));
  19311. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rangesColumns", { get: function() {
  19312. return this._rangesColumns || (this._rangesColumns = new Pi()), this._rangesColumns;
  19313. }, enumerable: true, configurable: true }), e3;
  19314. }(Ih), Sp = function(t2) {
  19315. function e3() {
  19316. var e4 = t2.call(this) || this;
  19317. e4._startLocation = 0, e4._endLocation = 1, e4.className = "ColumnSeries", e4.width = V(100), e4.height = V(100), e4.strokeOpacity = 0, e4.fillOpacity = 1, e4.clustered = true;
  19318. var i3 = e4.mainContainer.createChild($a);
  19319. return i3.shouldClone = false, i3.isMeasured = false, i3.layout = "none", e4._columnsContainer = i3, e4.columns.template.pixelPerfect = false, e4.tooltipColorSource = e4.columns.template, e4.applyTheme(), e4;
  19320. }
  19321. return C(e3, t2), Object.defineProperty(e3.prototype, "columnsContainer", { get: function() {
  19322. return this._columnsContainer;
  19323. }, enumerable: true, configurable: true }), e3.prototype.applyInternalDefaults = function() {
  19324. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Column Series"));
  19325. }, e3.prototype.createDataItem = function() {
  19326. return new Op();
  19327. }, e3.prototype.validate = function() {
  19328. var i3 = this;
  19329. if (this.group.node.removeAttribute("fill"), this.chart && this.xAxis && this.yAxis) {
  19330. var n3, r3 = this.chart.series, s2 = 0, a2 = 0, o3 = [];
  19331. ti(r3.iterator(), function(t3) {
  19332. var n4;
  19333. t3 instanceof e3 && i3.baseAxis == t3.baseAxis && (n4 = i3.baseAxis == i3.xAxis ? i3.chart.yAxes.indexOf(t3.yAxis) : i3.chart.xAxes.indexOf(t3.xAxis), o3.push({ series: t3, axis: n4 }));
  19334. }), o3.sort(function(t3, e4) {
  19335. return t3.axis - e4.axis;
  19336. }), Ut(o3, function(t3) {
  19337. var r4 = t3.series;
  19338. r4 instanceof e3 && ((!r4.stacked && r4.clustered || n3 != t3.axis && r4.clustered) && s2++, r4 == i3 && (a2 = s2 - 1)), n3 = t3.axis;
  19339. }), this.clustered || (a2 = 0, s2 = 1);
  19340. var l2 = this.baseAxis.renderer, h2 = l2.cellStartLocation, p2 = l2.cellEndLocation;
  19341. this._startLocation = h2 + a2 / s2 * (p2 - h2), this._endLocation = h2 + (a2 + 1) / s2 * (p2 - h2);
  19342. var u2 = this.xAxis, d2 = this.yAxis;
  19343. u2 instanceof Sh && d2 instanceof bh && u2.sortBySeries == this && this.sortCategoryAxis(u2, "valueY"), d2 instanceof Sh && u2 instanceof bh && d2.sortBySeries == this && this.sortCategoryAxis(d2, "valueX");
  19344. }
  19345. t2.prototype.validate.call(this);
  19346. for (var c2 = 0; c2 < this.startIndex; c2++) {
  19347. var f2 = this.dataItems.getIndex(c2);
  19348. this.disableUnusedColumns(f2);
  19349. }
  19350. for (c2 = this.dataItems.length - 1; c2 > this.endIndex; c2--)
  19351. f2 = this.dataItems.getIndex(c2), this.disableUnusedColumns(f2);
  19352. this._propertiesChanged = false;
  19353. }, e3.prototype.sortCategoryAxis = function(t3, e4) {
  19354. var i3 = this;
  19355. this.dataItems.values.sort(function(t4, i4) {
  19356. return i4.values[e4].workingValue - t4.values[e4].workingValue;
  19357. });
  19358. var n3 = 0;
  19359. this.dataItems.each(function(t4) {
  19360. t4._index = n3, n3++;
  19361. }), t3.dataItems.each(function(t4) {
  19362. var e5 = t4.component, n4 = e5.categoryToPosition(t4.category) - t4.deltaPosition, r3 = e5.getSeriesDataItemByCategory(t4.category, i3);
  19363. if (r3) {
  19364. var s2 = i3.dataItems.indexOf(r3);
  19365. t4._index = s2;
  19366. var a2 = lt((s2 + 0.5) / i3.dataItems.length - n4, 3);
  19367. t4.deltaAnimation && !t4.deltaAnimation.isDisposed() && t4.deltaAnimation.animationOptions[0].to == a2 || a2 != lt(t4.deltaPosition, 3) && (t4.deltaAnimation && t4.deltaAnimation.stop(), t4.deltaAnimation = t4.animate({ property: "deltaPosition", from: -a2, to: 0 }, e5.interpolationDuration, e5.interpolationEasing), i3._disposers.push(t4.deltaAnimation));
  19368. }
  19369. }), t3.dataItems.values.sort(function(t4, e5) {
  19370. return t4.index - e5.index;
  19371. });
  19372. }, e3.prototype.validateDataElement = function(e4) {
  19373. this.chart && this.xAxis && this.yAxis && (this.validateDataElementReal(e4), t2.prototype.validateDataElement.call(this, e4));
  19374. }, e3.prototype.getStartLocation = function(t3) {
  19375. var e4 = this._startLocation;
  19376. return this.baseAxis == this.xAxis ? e4 += t3.locations[this.xOpenField] - 0.5 : e4 += t3.locations[this.yOpenField] - 0.5, e4;
  19377. }, e3.prototype.getEndLocation = function(t3) {
  19378. var e4 = this._endLocation;
  19379. return this.baseAxis == this.xAxis ? e4 += t3.locations[this.xField] - 0.5 : e4 += t3.locations[this.yField] - 0.5, e4;
  19380. }, e3.prototype.validateDataElementReal = function(t3) {
  19381. var e4, i3, n3, r3, s2 = this, a2 = this.getStartLocation(t3), o3 = this.getEndLocation(t3), l2 = this.xField, h2 = this.xOpenField, p2 = this.yField, u2 = this.yOpenField, d2 = this.columns.template, c2 = d2.percentWidth, f2 = d2.percentHeight, g2 = d2.pixelWidth, y2 = d2.pixelHeight, m2 = d2.maxWidth, v2 = d2.maxHeight, b2 = d2.pixelPaddingLeft, x2 = d2.pixelPaddingRight, _2 = d2.pixelPaddingTop, P2 = d2.pixelPaddingBottom, w2 = false, C2 = t3.width;
  19382. Z(C2) && (tt(C2) && (g2 = C2), C2 instanceof A && (c2 = 100 * C2.value));
  19383. var O2 = t3.height;
  19384. if (Z(O2) && (tt(O2) && (y2 = O2), O2 instanceof A && (f2 = 100 * O2.value)), this.xAxis instanceof Sh && this.yAxis instanceof Sh) {
  19385. if (!t3.hasValue(this._xValueFields) || !t3.hasValue(this._yValueFields))
  19386. return;
  19387. a2 = 0, o3 = 1, M(c2) || (a2 += k2 = lt((o3 - a2) * (1 - c2 / 100) / 2, 5), o3 -= k2), e4 = this.xAxis.getX(t3, h2, a2), i3 = this.xAxis.getX(t3, l2, o3), M(c2) && (e4 += k2 = (i3 - e4 - g2) / 2, i3 -= k2), !M(m2) && m2 < Math.abs(i3 - e4) && (e4 += k2 = (i3 - e4 - m2) / 2, i3 -= k2), a2 = 0, o3 = 1, M(f2) || (a2 += k2 = lt((1 - f2 / 100) / 2, 5), o3 -= k2), n3 = this.yAxis.getY(t3, u2, a2), r3 = this.yAxis.getY(t3, p2, o3), M(f2) && (r3 += k2 = (r3 - n3 - y2) / 2, n3 -= k2), !M(v2) && v2 < Math.abs(r3 - n3) && (r3 += k2 = (r3 - n3 - v2) / 2, n3 -= k2), i3 = this.fixHorizontalCoordinate(i3), e4 = this.fixHorizontalCoordinate(e4), n3 = this.fixVerticalCoordinate(n3), r3 = this.fixVerticalCoordinate(r3);
  19388. } else if (this.baseAxis == this.xAxis) {
  19389. if (!t3.hasValue(this._yValueFields))
  19390. return;
  19391. M(c2) || (a2 += k2 = lt((o3 - a2) * (1 - c2 / 100) / 2, 5), o3 -= k2), e4 = this.xAxis.getX(t3, h2, a2), i3 = this.xAxis.getX(t3, l2, o3), M(c2) && (e4 += k2 = (i3 - e4 - g2) / 2, i3 -= k2), !M(m2) && m2 < Math.abs(i3 - e4) && (e4 += k2 = (i3 - e4 - m2) / 2, i3 -= k2);
  19392. var S2 = t3.locations[u2], I2 = t3.locations[p2];
  19393. this.yAxis instanceof bh && this.dataFields[this.yField] != this.dataFields[this.yOpenField] && (S2 = 0, I2 = 0), r3 = this.yAxis.getY(t3, u2, S2), n3 = this.yAxis.getY(t3, p2, I2);
  19394. var D2 = Math.ceil(this.yAxis.axisLength);
  19395. (n3 < 0 && r3 < 0 || n3 > D2 && r3 > D2) && (w2 = true), n3 = this.fixVerticalCoordinate(n3), r3 = this.fixVerticalCoordinate(r3), Math.abs(i3 - e4) - b2 - x2 == 0 && (w2 = true);
  19396. } else {
  19397. if (!t3.hasValue(this._xValueFields))
  19398. return;
  19399. var k2;
  19400. M(f2) || (a2 += k2 = lt((o3 - a2) * (1 - f2 / 100) / 2, 5), o3 -= k2), n3 = this.yAxis.getY(t3, u2, a2), r3 = this.yAxis.getY(t3, p2, o3), M(f2) && (r3 -= k2 = (r3 - n3 - y2) / 2, n3 += k2), !M(v2) && v2 < Math.abs(r3 - n3) && (r3 -= k2 = (r3 - n3 - v2) / 2, n3 += k2);
  19401. var T2 = t3.locations[l2], V2 = t3.locations[h2];
  19402. this.xAxis instanceof bh && this.dataFields[this.xField] != this.dataFields[this.xOpenField] && (T2 = 0, V2 = 0), i3 = this.xAxis.getX(t3, l2, T2), e4 = this.xAxis.getX(t3, h2, V2), D2 = Math.ceil(this.xAxis.axisLength), (i3 < 0 && e4 < 0 || i3 > D2 && e4 > D2) && (w2 = true), i3 = this.fixHorizontalCoordinate(i3), e4 = this.fixHorizontalCoordinate(e4), Math.abs(n3 - r3) - _2 - P2 == 0 && (w2 = true);
  19403. }
  19404. var F2, L2 = Math.abs(i3 - e4), j2 = Math.abs(r3 - n3), E2 = Math.min(e4, i3), R2 = Math.min(n3, r3);
  19405. w2 ? this.disableUnusedColumns(t3) : (t3.column ? (F2 = t3.column, this._propertiesChanged && (Ue(this, F2, Ka), Ue(this.columns.template, F2, Ka), Ut(Ka, function(t4) {
  19406. F2[t4] = F2[t4];
  19407. }))) : (Ue(this, F2 = this.columns.create(), Ka), Ue(this.columns.template, F2, Ka), t3.addSprite(F2), t3.column = F2, F2.paper = this.paper, this.itemsFocusable() ? (Z(this.role) || (this.role = "menu"), Z(F2.role) || (F2.role = "menuitem"), F2.focusable = true) : (Z(this.role) || (this.role = "list"), Z(F2.role) || (F2.role = "listitem"), F2.focusable = false), F2.focusable && (F2.events.on("focus", function(e5) {
  19408. F2.readerTitle = s2.populateString(s2.itemReaderText, t3);
  19409. }, void 0, false), F2.events.on("blur", function(t4) {
  19410. F2.readerTitle = "";
  19411. }, void 0, false)), F2.hoverable && (F2.events.on("over", function(e5) {
  19412. F2.readerTitle = s2.populateString(s2.itemReaderText, t3);
  19413. }, void 0, false), F2.events.on("out", function(t4) {
  19414. F2.readerTitle = "";
  19415. }, void 0, false)), F2.parent = this.columnsContainer, F2.virtualParent = this), F2.width = L2, F2.height = j2, F2.x = E2, F2.y = R2, F2.realX = e4, F2.realY = n3, F2.realWidth = i3 - e4, F2.realHeight = r3 - n3, this.setColumnStates(F2), F2.invalid && F2.validate(), F2.__disabled = false, ti(this.axisRanges.iterator(), function(e5) {
  19416. var i4 = t3.rangesColumns.getKey(e5.uid);
  19417. i4 || (i4 = s2.columns.create(), Ue(e5.contents, i4, Ka), t3.addSprite(i4), t3.rangesColumns.setKey(e5.uid, i4), i4.paper = s2.paper), i4.parent = e5.contents, i4.width = L2, i4.height = j2, i4.x = E2, i4.y = R2, s2.setColumnStates(i4), i4.invalid && i4.validate(), i4.__disabled = false;
  19418. })), t3.itemWidth = L2, t3.itemHeight = j2;
  19419. }, e3.prototype.disableUnusedColumns = function(t3) {
  19420. t3 && (t3.column && (t3.column.width = 0, t3.column.height = 0, t3.column.__disabled = true), ti(this.axisRanges.iterator(), function(e4) {
  19421. var i3 = t3.rangesColumns.getKey(e4.uid);
  19422. i3 && (i3.width = 0, i3.height = 0, i3.__disabled = true);
  19423. }));
  19424. }, e3.prototype.setColumnStates = function(t3) {
  19425. if (this._dropFromOpenState || this._dropFromPreviousState || this._riseFromOpenState || this._riseFromPreviousState) {
  19426. var e4 = t3.dataItem;
  19427. if (this.xAxis instanceof bh || this.yAxis instanceof bh) {
  19428. var i3, n3 = void 0, r3 = void 0;
  19429. this.baseAxis == this.yAxis ? (this.xOpenField && this.xField && this.xAxis instanceof bh && (i3 = e4.getValue(this.xOpenField), n3 = e4.getValue(this.xField)), r3 = e4.getValue(this.xAxis.axisFieldName + "X", "previousChange")) : (this.yOpenField && this.yField && this.yAxis instanceof bh && (i3 = e4.getValue(this.yOpenField), n3 = e4.getValue(this.yField)), r3 = e4.getValue(this.yAxis.axisFieldName + "Y", "previousChange")), n3 < i3 ? (e4.droppedFromOpen = true, t3.defaultState.copyFrom(this._dropFromOpenState), t3.setState(this._dropFromOpenState, 0)) : (e4.droppedFromOpen = false, t3.defaultState.copyFrom(this._riseFromOpenState), t3.setState(this._riseFromOpenState, 0)), r3 < 0 ? (e4.droppedFromPrevious = true, t3.defaultState.copyFrom(this._dropFromPreviousState), t3.setState(this._dropFromPreviousState, 0)) : (e4.droppedFromPrevious = false, t3.defaultState.copyFrom(this._riseFromPreviousState), t3.setState(this._riseFromPreviousState, 0));
  19430. }
  19431. }
  19432. }, Object.defineProperty(e3.prototype, "columns", { get: function() {
  19433. return this._columns || (this._columns = new Mi(this.createColumnTemplate()), this._disposers.push(new Ai(this._columns)), this._disposers.push(this._columns.template)), this._columns;
  19434. }, enumerable: true, configurable: true }), e3.prototype.createColumnTemplate = function() {
  19435. return new Cp();
  19436. }, Object.defineProperty(e3.prototype, "clustered", { get: function() {
  19437. return this.getPropertyValue("clustered");
  19438. }, set: function(t3) {
  19439. this.setPropertyValue("clustered", t3, true);
  19440. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dropFromOpenState", { get: function() {
  19441. return this._dropFromOpenState || (this._dropFromOpenState = this.states.create("dropFromOpenState")), this._dropFromOpenState;
  19442. }, set: function(t3) {
  19443. this._dropFromOpenState = t3;
  19444. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dropFromPreviousState", { get: function() {
  19445. return this._dropFromPreviousState || (this._dropFromPreviousState = this.states.create("dropFromPreviousState")), this._dropFromPreviousState;
  19446. }, set: function(t3) {
  19447. this._dropFromPreviousState = t3;
  19448. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "riseFromOpenState", { get: function() {
  19449. return this._riseFromOpenState || (this._riseFromOpenState = this.states.create("riseFromOpenState")), this._riseFromOpenState;
  19450. }, set: function(t3) {
  19451. this._riseFromOpenState = t3;
  19452. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "riseFromPreviousState", { get: function() {
  19453. return this._riseFromPreviousState || (this._riseFromPreviousState = this.states.create("riseFromPreviousState")), this._riseFromPreviousState;
  19454. }, set: function(t3) {
  19455. this._riseFromPreviousState = t3;
  19456. }, enumerable: true, configurable: true }), e3.prototype.updateLegendValue = function(e4, i3) {
  19457. var n3 = this;
  19458. if (t2.prototype.updateLegendValue.call(this, e4, i3), this.legendDataItem) {
  19459. var r3, s2, a2 = this.legendDataItem.marker;
  19460. e4 && (r3 = e4.droppedFromOpen ? this._dropFromOpenState : this._riseFromOpenState, s2 = e4.droppedFromPrevious ? this._dropFromPreviousState : this._riseFromPreviousState), ti(a2.children.iterator(), function(t3) {
  19461. e4 ? (t3.setState(s2), t3.setState(r3)) : (t3.setState(n3._riseFromPreviousState), t3.setState(n3._riseFromOpenState));
  19462. });
  19463. }
  19464. }, e3.prototype.createLegendMarker = function(t3) {
  19465. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  19466. t3.removeChildren();
  19467. var n3 = t3.createChild(fo);
  19468. n3.shouldClone = false, Ue(this, n3, Ka), n3.copyFrom(this.columns.template), n3.padding(0, 0, 0, 0), n3.width = e4, n3.height = i3;
  19469. var r3 = t3.dataItem;
  19470. r3.color = this.fill, r3.colorOrig = this.fill;
  19471. }, e3.prototype.copyFrom = function(e4) {
  19472. t2.prototype.copyFrom.call(this, e4), this.columns.template.copyFrom(e4.columns.template);
  19473. }, e3.prototype.getBulletLocationX = function(e4, i3) {
  19474. if (this.baseAxis == this.xAxis) {
  19475. var n3 = e4.locationX;
  19476. tt(n3) || (n3 = 0.5);
  19477. var r3 = this.getEndLocation(e4.dataItem);
  19478. return r3 - (r3 - this.getStartLocation(e4.dataItem)) * n3;
  19479. }
  19480. return t2.prototype.getBulletLocationX.call(this, e4, i3);
  19481. }, e3.prototype.getBulletLocationY = function(e4, i3) {
  19482. if (this.baseAxis == this.yAxis) {
  19483. var n3 = e4.locationY;
  19484. tt(n3) || (n3 = 0.5);
  19485. var r3 = this.getEndLocation(e4.dataItem);
  19486. return r3 - (r3 - this.getStartLocation(e4.dataItem)) * n3;
  19487. }
  19488. return t2.prototype.getBulletLocationY.call(this, e4, i3);
  19489. }, e3.prototype.getAdjustedXLocation = function(t3, e4, i3) {
  19490. return tt(i3) || (i3 = t3 ? t3.locations[e4] : 0.5), this._endLocation - (this._endLocation - this._startLocation) * (1 - i3);
  19491. }, e3.prototype.getAdjustedYLocation = function(t3, e4, i3) {
  19492. return tt(i3) || (i3 = t3 ? t3.locations[e4] : 0.5), this._endLocation - (this._endLocation - this._startLocation) * i3;
  19493. }, e3.prototype.fixVerticalCoordinate = function(t3) {
  19494. var e4 = this.columns.template.pixelPaddingBottom;
  19495. return ut(t3, -this.columns.template.pixelPaddingTop, this.yAxis.axisLength + e4);
  19496. }, e3.prototype.fixHorizontalCoordinate = function(t3) {
  19497. var e4 = this.columns.template.pixelPaddingLeft, i3 = this.columns.template.pixelPaddingRight;
  19498. return ut(t3, -e4, this.xAxis.axisLength + i3);
  19499. }, e3.prototype.disposeData = function() {
  19500. t2.prototype.disposeData.call(this), this.columns.clear();
  19501. }, e3;
  19502. }(Dh);
  19503. Ii.registeredClasses.ColumnSeries = Sp, Ii.registeredClasses.ColumnSeriesDataItem = Op;
  19504. var Ip = function(t2) {
  19505. function e3() {
  19506. var e4 = t2.call(this) || this;
  19507. return e4.className = "TreeMapSeriesDataItem", e4.applyTheme(), e4;
  19508. }
  19509. return C(e3, t2), Object.defineProperty(e3.prototype, "parentName", { get: function() {
  19510. var t3 = this.treeMapDataItem;
  19511. if (t3 && t3.parent)
  19512. return t3.parent.name;
  19513. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "value", { get: function() {
  19514. var t3 = this.treeMapDataItem;
  19515. if (t3)
  19516. return t3.value;
  19517. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "treeMapDataItem", { get: function() {
  19518. return this._dataContext;
  19519. }, enumerable: true, configurable: true }), e3.prototype.hide = function(e4, i3, n3, r3) {
  19520. var s2 = this.treeMapDataItem;
  19521. return s2 && s2.hide(e4), t2.prototype.hide.call(this, e4, i3, n3, r3);
  19522. }, e3.prototype.show = function(e4, i3, n3) {
  19523. var r3 = this.treeMapDataItem;
  19524. return r3 && r3.show(e4, i3, n3), t2.prototype.show.call(this, e4, i3, n3);
  19525. }, e3;
  19526. }(Op), Dp = function(t2) {
  19527. function e3() {
  19528. var e4 = t2.call(this) || this;
  19529. e4.className = "TreeMapSeries", e4.applyTheme(), e4.fillOpacity = 1, e4.strokeOpacity = 1, e4.minBulletDistance = 0, e4.columns.template.tooltipText = "{parentName} {name}: {value}", e4.columns.template.configField = "config";
  19530. var i3 = new Ys();
  19531. return e4.stroke = i3.getFor("background"), e4.dataFields.openValueX = "x0", e4.dataFields.valueX = "x1", e4.dataFields.openValueY = "y0", e4.dataFields.valueY = "y1", e4.sequencedInterpolation = false, e4.showOnInit = false, e4.columns.template.pixelPerfect = false, e4;
  19532. }
  19533. return C(e3, t2), e3.prototype.processDataItem = function(e4, i3) {
  19534. i3.seriesDataItem = e4, t2.prototype.processDataItem.call(this, e4, i3);
  19535. }, e3.prototype.createDataItem = function() {
  19536. return new Ip();
  19537. }, e3.prototype.show = function(e4) {
  19538. if (!this.preventShow) {
  19539. var i3 = this.defaultState.transitionDuration;
  19540. return tt(e4) && (i3 = e4), this.dataItems.each(function(t3) {
  19541. t3.show(e4);
  19542. }), t2.prototype.showReal.call(this, i3);
  19543. }
  19544. }, e3.prototype.hide = function(e4) {
  19545. var i3 = this.defaultState.transitionDuration;
  19546. tt(e4) && (i3 = e4);
  19547. var n3 = t2.prototype.hideReal.call(this, i3);
  19548. return this.dataItems.each(function(t3) {
  19549. t3.hide(e4);
  19550. }), n3;
  19551. }, e3.prototype.processValues = function() {
  19552. }, e3.prototype.getStartLocation = function(t3) {
  19553. return 0;
  19554. }, e3.prototype.getEndLocation = function(t3) {
  19555. return 1;
  19556. }, e3.prototype.dataChangeUpdate = function() {
  19557. }, e3.prototype.processConfig = function(e4) {
  19558. e4 && (Z(e4.dataFields) && et(e4.dataFields) || (e4.dataFields = {})), t2.prototype.processConfig.call(this, e4);
  19559. }, e3.prototype.createLegendMarker = function(t3) {
  19560. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  19561. t3.removeChildren();
  19562. var n3 = t3.createChild(fo);
  19563. n3.shouldClone = false, Ue(this, n3, Ka), n3.padding(0, 0, 0, 0), n3.width = e4, n3.height = i3;
  19564. var r3 = t3.dataItem;
  19565. r3.color = n3.fill, r3.colorOrig = n3.fill;
  19566. }, e3.prototype.disableUnusedColumns = function(e4) {
  19567. t2.prototype.disableUnusedColumns.call(this, e4), e4.column && (e4.column.__disabled = false);
  19568. }, e3;
  19569. }(Sp);
  19570. Ii.registeredClasses.TreeMapSeries = Dp, Ii.registeredClasses.TreeMapSeriesDataItem = Ip;
  19571. var kp = function(t2) {
  19572. function e3() {
  19573. var e4 = t2.call(this) || this;
  19574. return e4.rows = [], e4.className = "TreeMapDataItem", e4.values.value = { workingValue: 0 }, e4.values.x0 = {}, e4.values.y0 = {}, e4.values.x1 = {}, e4.values.y1 = {}, e4.hasChildren.children = true, e4.applyTheme(), e4;
  19575. }
  19576. return C(e3, t2), Object.defineProperty(e3.prototype, "legendDataItem", { get: function() {
  19577. return this._legendDataItem;
  19578. }, set: function(t3) {
  19579. this._legendDataItem = t3, t3.label && (t3.label.dataItem = this), t3.valueLabel && (t3.valueLabel.dataItem = this);
  19580. }, enumerable: true, configurable: true }), e3.prototype.getDuration = function() {
  19581. return 0;
  19582. }, Object.defineProperty(e3.prototype, "value", { get: function() {
  19583. var t3 = 0;
  19584. return this.children && 0 != this.children.length ? ti(this.children.iterator(), function(e4) {
  19585. var i3 = e4.value;
  19586. tt(i3) && (t3 += i3);
  19587. }) : t3 = this.values.value.workingValue, t3;
  19588. }, set: function(t3) {
  19589. this.setValue("value", t3);
  19590. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "percent", { get: function() {
  19591. return this.parent ? this.value / this.parent.value * 100 : 100;
  19592. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "x0", { get: function() {
  19593. return this.values.x0.value;
  19594. }, set: function(t3) {
  19595. this.setValue("x0", t3);
  19596. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "x1", { get: function() {
  19597. return this.values.x1.value;
  19598. }, set: function(t3) {
  19599. this.setValue("x1", t3);
  19600. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y0", { get: function() {
  19601. return this.values.y0.value;
  19602. }, set: function(t3) {
  19603. this.setValue("y0", t3);
  19604. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y1", { get: function() {
  19605. return this.values.y1.value;
  19606. }, set: function(t3) {
  19607. this.setValue("y1", t3);
  19608. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "name", { get: function() {
  19609. return this.properties.name;
  19610. }, set: function(t3) {
  19611. this.setProperty("name", t3);
  19612. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "children", { get: function() {
  19613. return this.properties.children;
  19614. }, set: function(t3) {
  19615. this.setProperty("children", t3);
  19616. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "level", { get: function() {
  19617. return this.parent ? this.parent.level + 1 : 0;
  19618. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "color", { get: function() {
  19619. var t3 = this.properties.color;
  19620. return null == t3 && this.parent && (t3 = this.parent.color), null == t3 && this.component && (t3 = this.component.colors.getIndex(this.component.colors.step * this.index)), t3;
  19621. }, set: function(t3) {
  19622. this.setProperty("color", t3);
  19623. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fill", { get: function() {
  19624. return this.color;
  19625. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "series", { get: function() {
  19626. return this._series;
  19627. }, set: function(t3) {
  19628. t3 != this._series && (this._series && (this.component.series.removeValue(this._series), this._series.dispose()), this._series = t3, this._disposers.push(t3));
  19629. }, enumerable: true, configurable: true }), e3.prototype.hide = function(e4, i3, n3, r3) {
  19630. this.setWorkingValue("value", 0), this.children && this.children.each(function(t3) {
  19631. t3.hide(e4, i3, n3, r3);
  19632. });
  19633. var s2 = this.seriesDataItem;
  19634. return s2 && s2.bullets.each(function(t3, e5) {
  19635. e5.hide(), e5.preventShow = true;
  19636. }), t2.prototype.hide.call(this, e4, i3, n3, r3);
  19637. }, e3.prototype.show = function(e4, i3, n3) {
  19638. this.setWorkingValue("value", this.values.value.value), this.children && this.children.each(function(t3) {
  19639. t3.show(e4, i3, n3);
  19640. });
  19641. var r3 = this.seriesDataItem;
  19642. return r3 && r3.bullets.each(function(t3, e5) {
  19643. e5.preventShow = false;
  19644. }), t2.prototype.show.call(this, e4, i3, n3);
  19645. }, e3;
  19646. }(Th), Tp = function(t2) {
  19647. function e3() {
  19648. var e4 = t2.call(this) || this;
  19649. e4.layoutAlgorithm = e4.squarify, e4.zoomable = true, e4.className = "TreeMap", e4._usesData = true, e4.maxLevels = 2, e4.currentLevel = 0, e4.hideParentColumns = false, e4.colors = new kl(), e4.sorting = "descending";
  19650. var i3 = e4.xAxes.push(new bh());
  19651. i3.title.disabled = true, i3.strictMinMax = true;
  19652. var n3 = i3.renderer;
  19653. n3.inside = true, n3.labels.template.disabled = true, n3.ticks.template.disabled = true, n3.grid.template.disabled = true, n3.axisFills.template.disabled = true, n3.minGridDistance = 100, n3.line.disabled = true, n3.baseGrid.disabled = true;
  19654. var r3 = e4.yAxes.push(new bh());
  19655. r3.title.disabled = true, r3.strictMinMax = true;
  19656. var s2 = r3.renderer;
  19657. s2.inside = true, s2.labels.template.disabled = true, s2.ticks.template.disabled = true, s2.grid.template.disabled = true, s2.axisFills.template.disabled = true, s2.minGridDistance = 100, s2.line.disabled = true, s2.baseGrid.disabled = true, s2.inversed = true, e4.xAxis = i3, e4.yAxis = r3;
  19658. var a2 = new Dp();
  19659. return e4.seriesTemplates = new wi(a2), a2.virtualParent = e4, e4._disposers.push(new _i(e4.seriesTemplates)), e4._disposers.push(a2), e4.zoomOutButton.events.on("hit", function() {
  19660. e4.zoomToChartDataItem(e4._homeDataItem);
  19661. }, void 0, false), e4.seriesTemplates.events.on("insertKey", function(t3) {
  19662. t3.newValue.isTemplate = true;
  19663. }, void 0, false), e4.applyTheme(), e4;
  19664. }
  19665. return C(e3, t2), Object.defineProperty(e3.prototype, "navigationBar", { get: function() {
  19666. return this._navigationBar;
  19667. }, set: function(t3) {
  19668. var e4 = this;
  19669. this._navigationBar != t3 && (this._navigationBar = t3, t3.parent = this, t3.toBack(), t3.links.template.events.on("hit", function(t4) {
  19670. var i3 = t4.target.dataItem.dataContext;
  19671. i3.isDisposed() || (e4.zoomToChartDataItem(i3), e4.createTreeSeries(i3));
  19672. }, void 0, true), this._disposers.push(t3));
  19673. }, enumerable: true, configurable: true }), e3.prototype.validateData = function() {
  19674. this.series.clear(), this._tempSeries = [], t2.prototype.validateData.call(this), this._homeDataItem && this._homeDataItem.dispose();
  19675. var e4 = this.dataItems.template.clone();
  19676. this._homeDataItem = e4, ti(this.dataItems.iterator(), function(t3) {
  19677. t3.parent = e4;
  19678. }), e4.children = this.dataItems, e4.x0 = 0, e4.y0 = 0, e4.name = this._homeText;
  19679. var i3 = 1e3, n3 = 10 * Math.round(i3 * this.pixelHeight / this.pixelWidth / 10) || 1e3;
  19680. e4.x1 = i3, e4.y1 = n3, this.xAxis.min = 0, this.xAxis.max = i3, this.xAxis.getMinMax(), this.yAxis.min = 0, this.yAxis.max = n3, this.yAxis.getMinMax(), this.layoutItems(e4), this.createTreeSeries(e4), this.feedLegend();
  19681. }, e3.prototype.layoutItems = function(t3, e4) {
  19682. if (t3) {
  19683. var i3 = t3.children;
  19684. e4 || (e4 = this.sorting), "ascending" == e4 && i3.values.sort(function(t4, e5) {
  19685. return t4.value - e5.value;
  19686. }), "descending" == e4 && i3.values.sort(function(t4, e5) {
  19687. return e5.value - t4.value;
  19688. }), this._updateDataItemIndexes(0), this.layoutAlgorithm(t3);
  19689. for (var n3 = 0, r3 = i3.length; n3 < r3; n3++) {
  19690. var s2 = i3.getIndex(n3);
  19691. s2.children && this.layoutItems(s2);
  19692. }
  19693. }
  19694. }, e3.prototype.createTreeSeries = function(t3) {
  19695. var e4 = this;
  19696. this._tempSeries = [];
  19697. for (var i3 = [t3], n3 = t3.parent; null != n3; )
  19698. this.initSeries(n3), i3.push(n3), n3 = n3.parent;
  19699. i3.reverse(), this.navigationBar && (this.navigationBar.data = i3), this.createTreeSeriesReal(t3), Ut(this._tempSeries, function(t4) {
  19700. -1 == e4.series.indexOf(t4) && e4.series.push(t4), t4.zIndex = t4.level;
  19701. });
  19702. }, e3.prototype.createTreeSeriesReal = function(t3) {
  19703. if (t3.children && t3.level < this.currentLevel + this.maxLevels) {
  19704. this.initSeries(t3);
  19705. for (var e4 = 0; e4 < t3.children.length; e4++) {
  19706. var i3 = t3.children.getIndex(e4);
  19707. i3.children && this.createTreeSeriesReal(i3);
  19708. }
  19709. }
  19710. }, e3.prototype.setData = function(e4) {
  19711. this.currentLevel = 0, this.currentlyZoomed = void 0, this.xAxis.start = 0, this.xAxis.end = 1, this.yAxis.start = 0, this.yAxis.end = 1, t2.prototype.setData.call(this, e4);
  19712. }, e3.prototype.seriesAppeared = function() {
  19713. return true;
  19714. }, e3.prototype.initSeries = function(t3) {
  19715. var e4 = this;
  19716. if (!t3.series) {
  19717. var i3 = void 0, n3 = this.seriesTemplates.getKey(t3.level.toString());
  19718. (i3 = n3 ? n3.clone() : this.series.create()).dataItem.dataContext = t3, i3.name = t3.name, i3.parentDataItem = t3, t3.series = i3;
  19719. var r3 = t3.level;
  19720. i3.level = r3;
  19721. var s2 = t3.dataContext;
  19722. s2 && (i3.config = s2.config), this.dataUsers.removeValue(i3), i3.data = t3.children.values, i3.fill = t3.color, i3.columnsContainer.hide(0), i3.bulletsContainer.hide(0), i3.columns.template.adapter.add("fill", function(t4, e5) {
  19723. var i4 = e5.dataItem;
  19724. if (i4) {
  19725. var n4 = i4.treeMapDataItem;
  19726. if (n4)
  19727. return e5.fill = n4.color, e5.adapter.remove("fill"), n4.color;
  19728. }
  19729. }), this.zoomable && (t3.level > this.currentLevel || t3.children && t3.children.length > 0) && (i3.columns.template.cursorOverStyle = Ia.pointer, this.zoomable && i3.columns.template.events.on("hit", function(i4) {
  19730. var n4 = i4.target.dataItem;
  19731. t3.level > e4.currentLevel ? e4.zoomToChartDataItem(n4.treeMapDataItem.parent) : e4.zoomToSeriesDataItem(n4);
  19732. }, this, void 0));
  19733. }
  19734. this._tempSeries.push(t3.series);
  19735. }, e3.prototype.toggleBullets = function(t3) {
  19736. var e4 = this;
  19737. ti(this.series.iterator(), function(i3) {
  19738. -1 == e4._tempSeries.indexOf(i3) ? (i3.columnsContainer.hide(), i3.bulletsContainer.hide(t3)) : (i3.columnsContainer.show(), i3.bulletsContainer.show(t3), i3.dataItems.each(function(t4) {
  19739. t4.bullets.each(function(t5, e5) {
  19740. e5.show();
  19741. });
  19742. }), i3.level < e4.currentLevel ? (e4.hideParentColumns && i3.columnsContainer.hide(), i3.bulletsContainer.hide(t3)) : i3.level == e4.currentLevel && e4.maxLevels > 1 && i3.dataItems.each(function(t4) {
  19743. t4.treeMapDataItem.children && t4.bullets.each(function(t5, e5) {
  19744. e5.hide();
  19745. });
  19746. }));
  19747. });
  19748. }, e3.prototype.zoomToSeriesDataItem = function(t3) {
  19749. this.zoomToChartDataItem(t3.treeMapDataItem);
  19750. }, e3.prototype.zoomToChartDataItem = function(t3) {
  19751. var e4 = this;
  19752. t3 || (t3 = this._homeDataItem);
  19753. var i3 = this.zoomOutButton;
  19754. if (i3 && (t3 != this._homeDataItem ? i3.show() : i3.hide()), t3 && t3.children) {
  19755. this.xAxis.zoomToValues(t3.x0, t3.x1), this.yAxis.zoomToValues(t3.y0, t3.y1), this.currentLevel = t3.level, this.currentlyZoomed = t3, this.createTreeSeries(t3);
  19756. var n3 = this.xAxis.rangeChangeAnimation || this.yAxis.rangeChangeAnimation;
  19757. !n3 || n3.isDisposed() || n3.isFinished() ? this.toggleBullets() : (this._dataDisposers.push(n3), n3.events.once("animationended", function() {
  19758. e4.toggleBullets();
  19759. }));
  19760. }
  19761. }, e3.prototype.applyInternalDefaults = function() {
  19762. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("TreeMap chart"));
  19763. }, e3.prototype.createDataItem = function() {
  19764. return new kp();
  19765. }, Object.defineProperty(e3.prototype, "maxLevels", { get: function() {
  19766. return this.getPropertyValue("maxLevels");
  19767. }, set: function(t3) {
  19768. this.setPropertyValue("maxLevels", t3, true);
  19769. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "currentLevel", { get: function() {
  19770. return this.getPropertyValue("currentLevel");
  19771. }, set: function(t3) {
  19772. this.setPropertyValue("currentLevel", t3, true);
  19773. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hideParentColumns", { get: function() {
  19774. return this.getPropertyValue("hideParentColumns");
  19775. }, set: function(t3) {
  19776. this.setPropertyValue("hideParentColumns", t3);
  19777. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sorting", { get: function() {
  19778. return this.getPropertyValue("sorting");
  19779. }, set: function(t3) {
  19780. this.setPropertyValue("sorting", t3, true);
  19781. }, enumerable: true, configurable: true }), e3.prototype.createSeries = function() {
  19782. return new Dp();
  19783. }, Object.defineProperty(e3.prototype, "homeText", { get: function() {
  19784. return this._homeText;
  19785. }, set: function(t3) {
  19786. this._homeText = t3, this._homeDataItem && (this._homeDataItem.name = this._homeText);
  19787. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  19788. if (e4) {
  19789. if (Z(e4.layoutAlgorithm) && Q(e4.layoutAlgorithm))
  19790. switch (e4.layoutAlgorithm) {
  19791. case "squarify":
  19792. e4.layoutAlgorithm = this.squarify;
  19793. break;
  19794. case "binaryTree":
  19795. e4.layoutAlgorithm = this.binaryTree;
  19796. break;
  19797. case "slice":
  19798. e4.layoutAlgorithm = this.slice;
  19799. break;
  19800. case "dice":
  19801. e4.layoutAlgorithm = this.dice;
  19802. break;
  19803. case "sliceDice":
  19804. e4.layoutAlgorithm = this.sliceDice;
  19805. break;
  19806. default:
  19807. delete e4.layoutAlgorithm;
  19808. }
  19809. Z(e4.navigationBar) && !Z(e4.navigationBar.type) && (e4.navigationBar.type = "NavigationBar"), t2.prototype.processConfig.call(this, e4);
  19810. }
  19811. }, e3.prototype.validateLayout = function() {
  19812. t2.prototype.validateLayout.call(this), this.layoutItems(this.currentlyZoomed);
  19813. }, e3.prototype.validateDataItems = function() {
  19814. t2.prototype.validateDataItems.call(this), this.layoutItems(this._homeDataItem), ti(this.series.iterator(), function(t3) {
  19815. t3.validateRawData();
  19816. }), this.zoomToChartDataItem(this._homeDataItem);
  19817. }, e3.prototype.binaryTree = function(t3) {
  19818. var e4, i3, n3 = t3.children, r3 = n3.length, s2 = new Array(r3 + 1);
  19819. for (s2[0] = i3 = e4 = 0; e4 < r3; ++e4)
  19820. s2[e4 + 1] = i3 += n3.getIndex(e4).value;
  19821. r3 > 0 && function t4(e5, i4, r4, a2, o3, l2, h2) {
  19822. if (e5 >= i4 - 1)
  19823. return (g2 = n3.getIndex(e5)).x0 = a2, g2.y0 = o3, g2.x1 = l2, void (g2.y1 = h2);
  19824. for (var p2 = s2[e5], u2 = r4 / 2 + p2, d2 = e5 + 1, c2 = i4 - 1; d2 < c2; ) {
  19825. var f2 = d2 + c2 >>> 1;
  19826. s2[f2] < u2 ? d2 = f2 + 1 : c2 = f2;
  19827. }
  19828. u2 - s2[d2 - 1] < s2[d2] - u2 && e5 + 1 < d2 && --d2;
  19829. var g2, y2 = s2[d2] - p2, m2 = r4 - y2;
  19830. if (0 == r4)
  19831. return (g2 = n3.getIndex(e5)).x0 = a2, g2.y0 = o3, g2.x1 = l2, void (g2.y1 = h2);
  19832. if (l2 - a2 > h2 - o3) {
  19833. var v2 = (a2 * m2 + l2 * y2) / r4;
  19834. t4(e5, d2, y2, a2, o3, v2, h2), t4(d2, i4, m2, v2, o3, l2, h2);
  19835. } else {
  19836. var b2 = (o3 * m2 + h2 * y2) / r4;
  19837. t4(e5, d2, y2, a2, o3, l2, b2), t4(d2, i4, m2, a2, b2, l2, h2);
  19838. }
  19839. }(0, r3, t3.value, t3.x0, t3.y0, t3.x1, t3.y1);
  19840. }, e3.prototype.slice = function(t3) {
  19841. for (var e4, i3 = t3.x0, n3 = t3.x1, r3 = t3.y0, s2 = t3.y1, a2 = t3.children, o3 = -1, l2 = a2.length, h2 = t3.value && (s2 - r3) / t3.value; ++o3 < l2; )
  19842. (e4 = a2.getIndex(o3)).x0 = i3, e4.x1 = n3, e4.y0 = r3, r3 += e4.value * h2, e4.y1 = r3;
  19843. }, e3.prototype.dice = function(t3) {
  19844. for (var e4, i3 = t3.x0, n3 = t3.x1, r3 = t3.y0, s2 = t3.y1, a2 = t3.children, o3 = -1, l2 = a2.length, h2 = t3.value && (n3 - i3) / t3.value; ++o3 < l2; )
  19845. (e4 = a2.getIndex(o3)).y0 = r3, e4.y1 = s2, e4.x0 = i3, i3 += e4.value * h2, e4.x1 = i3;
  19846. }, e3.prototype.sliceDice = function(t3) {
  19847. 1 & t3.level ? this.slice(t3) : this.dice(t3);
  19848. }, e3.prototype.squarify = function(t3) {
  19849. for (var e4, i3, n3, r3, s2, a2, o3, l2, h2, p2, u2 = (1 + Math.sqrt(5)) / 2, d2 = t3.x0, c2 = t3.x1, f2 = t3.y0, g2 = t3.y1, y2 = t3.children, m2 = 0, v2 = 0, b2 = y2.length, x2 = t3.value; m2 < b2; ) {
  19850. i3 = c2 - d2, n3 = g2 - f2;
  19851. do {
  19852. r3 = y2.getIndex(v2++).value;
  19853. } while (!r3 && v2 < b2);
  19854. for (s2 = a2 = r3, p2 = r3 * r3 * (h2 = Math.max(n3 / i3, i3 / n3) / (x2 * u2)), l2 = Math.max(a2 / p2, p2 / s2); v2 < b2; ++v2) {
  19855. if (r3 += e4 = y2.getIndex(v2).value, e4 < s2 && (s2 = e4), e4 > a2 && (a2 = e4), p2 = r3 * r3 * h2, (o3 = Math.max(a2 / p2, p2 / s2)) > l2) {
  19856. r3 -= e4;
  19857. break;
  19858. }
  19859. l2 = o3;
  19860. }
  19861. var _2 = this.dataItems.template.clone();
  19862. _2.value = r3, _2.dice = i3 < n3, _2.children = y2.slice(m2, v2), _2.x0 = d2, _2.y0 = f2, _2.x1 = c2, _2.y1 = g2, _2.dice ? (_2.y1 = x2 ? f2 += n3 * r3 / x2 : g2, this.dice(_2)) : (_2.x1 = x2 ? d2 += i3 * r3 / x2 : c2, this.slice(_2)), x2 -= r3, m2 = v2;
  19863. }
  19864. }, e3.prototype.handleSeriesAdded2 = function() {
  19865. }, e3.prototype.handleDataItemValueChange = function(t3, e4) {
  19866. "value" == e4 && this.invalidateDataItems();
  19867. }, e3.prototype.handleDataItemWorkingValueChange = function(t3, e4) {
  19868. "value" == e4 && this.invalidateDataItems();
  19869. }, e3.prototype.getLegendLevel = function(t3) {
  19870. if (t3 && t3.children) {
  19871. if (t3.children.length > 1)
  19872. return t3;
  19873. if (1 == t3.children.length) {
  19874. var e4 = t3.children.getIndex(0);
  19875. return e4.children ? this.getLegendLevel(e4) : t3;
  19876. }
  19877. return t3;
  19878. }
  19879. }, e3.prototype.handleLegendSeriesAdded = function(t3) {
  19880. }, Object.defineProperty(e3.prototype, "homeDataItem", { get: function() {
  19881. return this._homeDataItem;
  19882. }, enumerable: true, configurable: true }), e3.prototype.feedLegend = function() {
  19883. var t3 = this.legend;
  19884. if (t3) {
  19885. t3.dataFields.name = "name";
  19886. var e4 = this.getLegendLevel(this._homeDataItem);
  19887. if (e4) {
  19888. var i3 = [];
  19889. e4.children.each(function(t4) {
  19890. i3.push(t4);
  19891. }), t3.data = i3;
  19892. }
  19893. }
  19894. }, e3.prototype.disposeData = function() {
  19895. t2.prototype.disposeData.call(this), this._homeDataItem = void 0, this.series.clear(), this.navigationBar && this.navigationBar.disposeData(), this.xAxis.disposeData(), this.yAxis.disposeData();
  19896. }, e3.prototype.getExporting = function() {
  19897. var e4 = this, i3 = t2.prototype.getExporting.call(this);
  19898. return i3.adapter.add("formatDataFields", function(t3) {
  19899. return "csv" != t3.format && "xlsx" != t3.format || Z(e4.dataFields.children) && delete t3.dataFields[e4.dataFields.children], t3;
  19900. }), i3;
  19901. }, e3;
  19902. }(Ah);
  19903. Ii.registeredClasses.TreeMap = Tp;
  19904. var Ap = function(t2) {
  19905. function e3() {
  19906. var e4 = t2.call(this) || this;
  19907. return e4._chart = new ve(), e4.className = "AxisRendererX3D", e4._disposers.push(e4._chart), e4.applyTheme(), e4;
  19908. }
  19909. return C(e3, t2), e3.prototype.updateGridElement = function(t3, e4, i3) {
  19910. e4 += (i3 - e4) * t3.location;
  19911. var n3 = this.positionToPoint(e4);
  19912. if (t3.element) {
  19913. var r3 = this.chart.dx3D || 0, s2 = this.chart.dy3D || 0, a2 = this.getHeight();
  19914. t3.path = wo({ x: r3, y: s2 }) + Co({ x: r3, y: a2 + s2 }) + Co({ x: 0, y: a2 });
  19915. }
  19916. this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  19917. }, e3.prototype.updateBaseGridElement = function() {
  19918. t2.prototype.updateBaseGridElement.call(this);
  19919. var e4 = this.getHeight(), i3 = this.chart.dx3D || 0, n3 = this.chart.dy3D || 0;
  19920. this.baseGrid.path = wo({ x: i3, y: n3 }) + Co({ x: 0, y: 0 }) + Co({ x: 0, y: e4 });
  19921. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  19922. return this._chart.get();
  19923. }, set: function(t3) {
  19924. t3 && this._chart.set(t3, t3.events.on("propertychanged", this.handle3DChanged, this, false));
  19925. }, enumerable: true, configurable: true }), e3.prototype.handle3DChanged = function(t3) {
  19926. "depth" != t3.property && "angle" != t3.property || this.invalidate();
  19927. }, e3;
  19928. }(wh);
  19929. Ii.registeredClasses.AxisRendererX3D = Ap;
  19930. var Vp = function(t2) {
  19931. function e3() {
  19932. var e4 = t2.call(this) || this;
  19933. return e4._chart = new ve(), e4.className = "AxisRendererY3D", e4._disposers.push(e4._chart), e4.applyTheme(), e4;
  19934. }
  19935. return C(e3, t2), e3.prototype.updateGridElement = function(t3, e4, i3) {
  19936. e4 += (i3 - e4) * t3.location;
  19937. var n3 = this.positionToPoint(e4);
  19938. if (t3.element) {
  19939. var r3 = this.chart.dx3D || 0, s2 = this.chart.dy3D || 0, a2 = this.getWidth();
  19940. t3.path = wo({ x: 0, y: 0 }) + Co({ x: r3, y: s2 }) + Co({ x: a2 + r3, y: s2 });
  19941. }
  19942. this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  19943. }, e3.prototype.updateBaseGridElement = function() {
  19944. t2.prototype.updateBaseGridElement.call(this);
  19945. var e4 = this.chart.dx3D || 0, i3 = this.chart.dy3D || 0, n3 = this.getWidth();
  19946. this.baseGrid.path = wo({ x: 0, y: 0 }) + Co({ x: n3, y: 0 }) + Co({ x: n3 + e4, y: i3 });
  19947. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  19948. return this._chart.get();
  19949. }, set: function(t3) {
  19950. t3 && this._chart.set(t3, t3.events.on("propertychanged", this.handle3DChanged, this, false));
  19951. }, enumerable: true, configurable: true }), e3.prototype.handle3DChanged = function(t3) {
  19952. "depth" != t3.property && "angle" != t3.property || this.invalidate();
  19953. }, e3;
  19954. }(yh), Fp = function(t2) {
  19955. function e3() {
  19956. var e4 = t2.call(this) || this;
  19957. return e4.className = "Column3D", e4;
  19958. }
  19959. return C(e3, t2), e3.prototype.createAssets = function() {
  19960. this.column3D = this.createChild(bl), this.column3D.shouldClone = false, this.column3D.strokeOpacity = 0, this.column = this.column3D;
  19961. }, e3.prototype.validate = function() {
  19962. t2.prototype.validate.call(this), this.column3D && (this.column3D.width = this.pixelWidth, this.column3D.height = this.pixelHeight, this.column3D.invalid && this.column3D.validate());
  19963. }, e3.prototype.copyFrom = function(e4) {
  19964. t2.prototype.copyFrom.call(this, e4), this.column3D && this.column3D.copyFrom(e4.column3D);
  19965. }, e3.prototype.setFill = function(e4) {
  19966. t2.prototype.setFill.call(this, e4), this.column.fill = e4;
  19967. }, e3;
  19968. }(Cp);
  19969. Ii.registeredClasses.Column3D = Fp;
  19970. var Mp = function(t2) {
  19971. function e3() {
  19972. var e4 = t2.call(this) || this;
  19973. return e4.className = "ColumnSeries3DDataItem", e4.applyTheme(), e4;
  19974. }
  19975. return C(e3, t2), e3;
  19976. }(Op), Lp = function(t2) {
  19977. function e3() {
  19978. var e4 = t2.call(this) || this;
  19979. return e4.className = "ColumnSeries3D", e4.columns.template.column3D.applyOnClones = true, e4.columns.template.hiddenState.properties.visible = true, e4.applyTheme(), e4;
  19980. }
  19981. return C(e3, t2), Object.defineProperty(e3.prototype, "columnsContainer", { get: function() {
  19982. var t3 = this.chart;
  19983. return t3 && t3.columnsContainer && "vertical" != t3.leftAxesContainer.layout && "vertical" != t3.rightAxesContainer.layout && "horizontal" != t3.bottomAxesContainer.layout && "horizontal" != t3.topAxesContainer.layout ? t3.columnsContainer : this._columnsContainer;
  19984. }, enumerable: true, configurable: true }), e3.prototype.validateDataElementReal = function(e4) {
  19985. t2.prototype.validateDataElementReal.call(this, e4), e4.column && (e4.column.dx = this.dx, e4.column.dy = this.dy, e4.column.visible = this.visible);
  19986. }, e3.prototype.validateDataElements = function() {
  19987. t2.prototype.validateDataElements.call(this), this.chart && this.chart.invalidateLayout();
  19988. }, e3.prototype.createColumnTemplate = function() {
  19989. return new Fp();
  19990. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  19991. return this.getPropertyValue("depth");
  19992. }, set: function(t3) {
  19993. this.setPropertyValue("depth", t3, true), this.columns.template.column3D.depth = t3;
  19994. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  19995. return this.getPropertyValue("angle");
  19996. }, set: function(t3) {
  19997. this.setPropertyValue("angle", t3), this.columns.template.column3D.angle = t3;
  19998. }, enumerable: true, configurable: true }), e3;
  19999. }(Sp);
  20000. Ii.registeredClasses.ColumnSeries3D = Lp, Ii.registeredClasses.ColumnSeries3DDataItem = Mp;
  20001. var jp = function(t2) {
  20002. function e3() {
  20003. var e4 = t2.call(this) || this;
  20004. return e4.className = "XYChart3DDataItem", e4.applyTheme(), e4;
  20005. }
  20006. return C(e3, t2), e3;
  20007. }(Th), Ep = function(t2) {
  20008. function e3() {
  20009. var e4 = t2.call(this) || this;
  20010. e4._axisRendererX = Ap, e4._axisRendererY = Vp, e4.className = "XYChart3D", e4.depth = 30, e4.angle = 30;
  20011. var i3 = e4.seriesContainer.createChild($a);
  20012. return i3.shouldClone = false, i3.isMeasured = false, i3.layout = "none", e4.columnsContainer = i3, e4.columnsContainer.mask = e4.createChild(Za), e4.applyTheme(), e4;
  20013. }
  20014. return C(e3, t2), e3.prototype.updateSeriesMasks = function() {
  20015. if (t2.prototype.updateSeriesMasks.call(this), Ir()) {
  20016. var e4 = this.columnsContainer, i3 = e4.mask;
  20017. e4.mask = void 0, e4.mask = i3;
  20018. }
  20019. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  20020. return this.getPropertyValue("depth");
  20021. }, set: function(t3) {
  20022. this.setPropertyValue("depth", t3), this.fixLayout(), this.invalidateDataUsers();
  20023. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  20024. return this.getPropertyValue("angle");
  20025. }, set: function(t3) {
  20026. this.setPropertyValue("angle", t3), this.fixLayout(), this.invalidateDataUsers();
  20027. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dx3D", { get: function() {
  20028. return ft(this.angle) * this.depth;
  20029. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dy3D", { get: function() {
  20030. return -dt(this.angle) * this.depth;
  20031. }, enumerable: true, configurable: true }), e3.prototype.validateLayout = function() {
  20032. t2.prototype.validateLayout.call(this), this.fixColumns();
  20033. }, e3.prototype.fixLayout = function() {
  20034. this.chartContainer.paddingTop = -this.dy3D, this.chartContainer.paddingRight = this.dx3D, this.scrollbarX && (this.scrollbarX.dy = this.dy3D, this.scrollbarX.dx = this.dx3D), this.scrollbarY && (this.scrollbarY.dy = this.dy3D, this.scrollbarY.dx = this.dx3D), this.fixColumns(), t2.prototype.fixLayout.call(this);
  20035. }, e3.prototype.fixColumns = function() {
  20036. var t3 = this, e4 = 1, i3 = 0;
  20037. ti(this.series.iterator(), function(t4) {
  20038. t4 instanceof Lp && (!t4.clustered && i3 > 0 && e4++, t4.depthIndex = e4 - 1, i3++);
  20039. });
  20040. var n3 = 0;
  20041. ti(this.series.iterator(), function(i4) {
  20042. if (i4 instanceof Lp) {
  20043. i4.depth = t3.depth / e4, i4.angle = t3.angle, i4.columnsContainer == t3.columnsContainer && (i4.dx = t3.depth / e4 * ft(t3.angle) * i4.depthIndex, i4.dy = -t3.depth / e4 * dt(t3.angle) * i4.depthIndex);
  20044. var r3 = false;
  20045. (i4.baseAxis == i4.xAxis && i4.xAxis.renderer.inversed || i4.baseAxis == i4.yAxis && i4.yAxis.renderer.inversed) && (r3 = true);
  20046. var s2 = 1;
  20047. i4.dataItems.each(function(t4) {
  20048. var e5 = t4.column;
  20049. e5 && (e5.zIndex = r3 ? 1e3 * (1e3 - s2) + n3 - 100 * i4.depthIndex : 1e3 * s2 + n3 - 100 * i4.depthIndex), s2++;
  20050. }), r3 ? n3-- : n3++;
  20051. }
  20052. }), this.maskColumns();
  20053. }, e3.prototype.processConfig = function(e4) {
  20054. if (e4 && Z(e4.series) && it(e4.series))
  20055. for (var i3 = 0, n3 = e4.series.length; i3 < n3; i3++)
  20056. e4.series[i3].type = e4.series[i3].type || "ColumnSeries3D";
  20057. t2.prototype.processConfig.call(this, e4);
  20058. }, e3.prototype.maskColumns = function() {
  20059. var t3 = this.plotContainer.pixelWidth, e4 = this.plotContainer.pixelHeight, i3 = this.dx3D, n3 = this.dy3D, r3 = wo({ x: 0, y: 0 }) + Co({ x: i3, y: n3 }) + Co({ x: t3 + i3, y: n3 }) + Co({ x: t3 + i3, y: e4 + n3 }) + Co({ x: t3, y: e4 }) + Co({ x: t3, y: e4 }) + Co({ x: 0, y: e4 }) + " Z", s2 = this.columnsContainer;
  20060. s2 && s2.mask && (s2.mask.path = r3);
  20061. }, e3;
  20062. }(Ah);
  20063. Ii.registeredClasses.XYChart3D = Ep;
  20064. var Rp = function(t2) {
  20065. function e3() {
  20066. var e4 = t2.call(this) || this;
  20067. e4.className = "HeatLegend", e4.markerContainer = e4.createChild($a), e4.markerContainer.shouldClone = false, e4.markerCount = 1;
  20068. var i3 = new fo();
  20069. return i3.minHeight = 20, i3.minWidth = 20, i3.interactionsEnabled = false, i3.fillOpacity = 1, i3.cornerRadius(0, 0, 0, 0), e4.markerContainer.minHeight = 20, e4.markerContainer.minWidth = 20, e4.orientation = "horizontal", e4.markers = new Mi(i3), e4._disposers.push(new Ai(e4.markers)), e4._disposers.push(e4.markers.template), e4.applyTheme(), e4;
  20070. }
  20071. return C(e3, t2), e3.prototype.getMinFromRules = function(t3) {
  20072. var e4, i3 = this.series;
  20073. if (i3)
  20074. return Qe(i3.heatRules.iterator(), function(i4) {
  20075. return i4.property != t3 || (e4 = i4.min, false);
  20076. }), e4;
  20077. }, e3.prototype.getMaxFromRules = function(t3) {
  20078. var e4, i3 = this.series;
  20079. if (i3)
  20080. return ti(i3.heatRules.iterator(), function(i4) {
  20081. return i4.property != t3 || (e4 = i4.max, false);
  20082. }), e4;
  20083. }, e3.prototype.validate = function() {
  20084. t2.prototype.validate.call(this), this.valueAxis.renderer.inversed = this.reverseOrder;
  20085. var e4 = this.series, i3 = this.minColor, n3 = this.maxColor;
  20086. if (Z(i3) || (i3 = gn(this.getMinFromRules("fill"))), Z(n3) || (n3 = gn(this.getMaxFromRules("fill"))), e4) {
  20087. var r3 = e4.fill;
  20088. !Z(i3) && r3 instanceof un && (i3 = r3), !Z(n3) && r3 instanceof un && (n3 = r3);
  20089. }
  20090. Z(n3) || (n3 = gn(this.getMaxFromRules("fill")));
  20091. var s2 = U(this.getMinFromRules("fillOpacity"));
  20092. tt(s2) || (s2 = 1);
  20093. var a2 = U(this.getMaxFromRules("fillOpacity"));
  20094. tt(a2) || (a2 = 1);
  20095. var o3 = U(this.getMinFromRules("strokeOpacity"));
  20096. tt(o3) || (o3 = 1);
  20097. var l2 = U(this.getMaxFromRules("strokeOpacity"));
  20098. tt(l2) || (l2 = 1);
  20099. for (var h2 = gn(this.getMinFromRules("stroke")), p2 = gn(this.getMaxFromRules("stroke")), u2 = 0; u2 < this.markerCount; u2++) {
  20100. var d2 = this.markers.getIndex(u2);
  20101. if (d2 || ((d2 = this.markers.create()).parent = this.markerContainer, d2.height = V(100), d2.width = V(100)), 1 == this.markerCount) {
  20102. var c2 = new Oa();
  20103. if (this.reverseOrder ? (c2.addColor(n3, a2), c2.addColor(i3, s2)) : (c2.addColor(i3, s2), c2.addColor(n3, a2)), "vertical" == this.orientation && (c2.rotation = -90), d2.fill = c2, Z(h2) && Z(p2)) {
  20104. var f2 = new Oa();
  20105. this.reverseOrder ? (f2.addColor(p2, l2), f2.addColor(h2, o3)) : (f2.addColor(h2, o3), f2.addColor(p2, l2)), "vertical" == this.orientation && (f2.rotation = -90), d2.stroke = f2;
  20106. }
  20107. } else {
  20108. var g2 = u2;
  20109. this.reverseOrder && (g2 = this.markerCount - u2 - 1);
  20110. var y2 = new un(Qi(i3.rgb, n3.rgb, g2 / this.markerCount));
  20111. d2.fill = y2;
  20112. var m2 = s2 + (a2 - s2) * g2 / this.markerCount;
  20113. if (d2.fillOpacity = m2, Z(h2) && Z(p2)) {
  20114. var v2 = new un(Qi(h2.rgb, p2.rgb, g2 / this.markerCount));
  20115. d2.stroke = v2;
  20116. var b2 = o3 + (l2 - o3) * g2 / this.markerCount;
  20117. d2.strokeOpacity = b2;
  20118. }
  20119. }
  20120. }
  20121. var x2 = this.valueAxis.renderer;
  20122. this.markerCount > 1 && ("horizontal" == this.orientation ? x2.minGridDistance = this.measuredWidth / this.markerCount : x2.minGridDistance = this.measuredHeight / this.markerCount), this.valueAxis.invalidate(), u2 = this.markerCount;
  20123. for (var _2 = this.markers.length; u2 < _2; u2++)
  20124. this.markers.getIndex(u2).parent = void 0;
  20125. }, Object.defineProperty(e3.prototype, "minColor", { get: function() {
  20126. return this.getPropertyValue("minColor");
  20127. }, set: function(t3) {
  20128. t3 instanceof un || (t3 = gn(t3)), this.setColorProperty("minColor", t3, true);
  20129. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxColor", { get: function() {
  20130. return this.getPropertyValue("maxColor");
  20131. }, set: function(t3) {
  20132. t3 instanceof un || (t3 = gn(t3)), this.setColorProperty("maxColor", t3, true);
  20133. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "markerCount", { get: function() {
  20134. return this.getPropertyValue("markerCount");
  20135. }, set: function(t3) {
  20136. this.setPropertyValue("markerCount", t3, true);
  20137. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minValue", { get: function() {
  20138. return this.getPropertyValue("minValue");
  20139. }, set: function(t3) {
  20140. this.setPropertyValue("minValue", t3), this.valueAxis.min = t3;
  20141. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxValue", { get: function() {
  20142. return this.getPropertyValue("maxValue");
  20143. }, set: function(t3) {
  20144. this.setPropertyValue("maxValue", t3), this.valueAxis.max = t3;
  20145. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  20146. return this.getPropertyValue("orientation");
  20147. }, set: function(t3) {
  20148. this.setPropertyValue("orientation", t3, true);
  20149. var e4 = this.markerContainer, i3 = this.valueAxis;
  20150. "horizontal" == t3 ? (Z(this.width) || (this.width = 200), this.height = void 0, i3.width = V(100), i3.height = void 0, i3.tooltip.pointerOrientation = "vertical", this.layout = "vertical", e4.width = V(100), e4.height = void 0, i3.renderer instanceof wh || (i3.renderer = new wh())) : (Z(this.height) || (this.height = 200), this.width = void 0, this.layout = "horizontal", e4.width = void 0, e4.height = V(100), i3.height = V(100), i3.width = void 0, i3.tooltip.pointerOrientation = "horizontal", i3.renderer instanceof yh || (i3.renderer = new yh()), i3.renderer.inside = true, i3.renderer.labels.template.inside = true, this.markerContainer.reverseOrder = true);
  20151. var n3 = i3.renderer;
  20152. n3.grid.template.disabled = true, n3.axisFills.template.disabled = true, n3.baseGrid.disabled = true, n3.labels.template.padding(2, 3, 2, 3), n3.minHeight = void 0, n3.minWidth = void 0, this.markerContainer.layout = t3;
  20153. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valueAxis", { get: function() {
  20154. return this._valueAxis || (this.valueAxis = this.createChild(bh), this.valueAxis.shouldClone = false), this._valueAxis;
  20155. }, set: function(t3) {
  20156. this._valueAxis = t3, t3.parent = this, t3.strictMinMax = true, this.orientation = this.orientation;
  20157. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "series", { get: function() {
  20158. return this._series;
  20159. }, set: function(t3) {
  20160. var e4 = this;
  20161. this._series = t3;
  20162. var i3 = "value";
  20163. try {
  20164. var n3 = t3.heatRules.getIndex(0).dataField;
  20165. n3 && (i3 = n3);
  20166. } catch (t4) {
  20167. }
  20168. this.updateMinMax(t3.dataItem.values[i3].low, t3.dataItem.values[i3].high), t3.dataItem.events.on("calculatedvaluechanged", function(n4) {
  20169. e4.updateMinMax(t3.dataItem.values[i3].low, t3.dataItem.values[i3].high);
  20170. }, void 0, false), t3.heatRules.events.on("inserted", this.invalidate, this, false), t3.heatRules.events.on("removed", this.invalidate, this, false);
  20171. }, enumerable: true, configurable: true }), e3.prototype.updateMinMax = function(t3, e4) {
  20172. var i3 = this.valueAxis;
  20173. tt(this.minValue) || (i3.min = t3, i3.invalidate()), tt(this.maxValue) || (i3.max = e4, i3.invalidate());
  20174. }, e3.prototype.processConfig = function(e4) {
  20175. if (e4 && Z(e4.series) && Q(e4.series) && Q(e4.series))
  20176. if (this.map.hasKey(e4.series))
  20177. e4.series = this.map.getKey(e4.series);
  20178. else {
  20179. var i3 = e4.series, n3 = this.map.events.on("insertKey", function(t3) {
  20180. t3.key == i3 && (this.series = t3.newValue, n3.dispose());
  20181. }, this);
  20182. this._disposers.push(n3), delete e4.series;
  20183. }
  20184. t2.prototype.processConfig.call(this, e4);
  20185. }, e3;
  20186. }($a);
  20187. Ii.registeredClasses.HeatLegend = Rp;
  20188. var Bp = function(t2) {
  20189. function e3() {
  20190. var e4 = t2.call(this) || this;
  20191. return e4.className = "Candlestick", e4.layout = "none", e4;
  20192. }
  20193. return C(e3, t2), e3.prototype.createAssets = function() {
  20194. t2.prototype.createAssets.call(this), this.lowLine = this.createChild(bo), this.lowLine.shouldClone = false, this.highLine = this.createChild(bo), this.highLine.shouldClone = false;
  20195. }, e3.prototype.copyFrom = function(e4) {
  20196. t2.prototype.copyFrom.call(this, e4), this.lowLine && this.lowLine.copyFrom(e4.lowLine), this.highLine && this.highLine.copyFrom(e4.highLine);
  20197. }, e3;
  20198. }(Cp);
  20199. Ii.registeredClasses.Candlestick = Bp;
  20200. var Hp = function(t2) {
  20201. function e3() {
  20202. var e4 = t2.call(this) || this;
  20203. return e4.values.lowValueX = {}, e4.values.lowValueY = {}, e4.values.highValueX = {}, e4.values.highValueY = {}, e4.className = "CandlestickSeriesDataItem", e4.applyTheme(), e4;
  20204. }
  20205. return C(e3, t2), Object.defineProperty(e3.prototype, "lowValueX", { get: function() {
  20206. return this.values.lowValueX.value;
  20207. }, set: function(t3) {
  20208. this.setValue("lowValueX", t3);
  20209. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "lowValueY", { get: function() {
  20210. return this.values.lowValueY.value;
  20211. }, set: function(t3) {
  20212. this.setValue("lowValueY", t3);
  20213. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "highValueX", { get: function() {
  20214. return this.values.highValueX.value;
  20215. }, set: function(t3) {
  20216. this.setValue("highValueX", t3);
  20217. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "highValueY", { get: function() {
  20218. return this.values.highValueY.value;
  20219. }, set: function(t3) {
  20220. this.setValue("highValueY", t3);
  20221. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "closeValueX", { get: function() {
  20222. return this.values.valueX.value;
  20223. }, set: function(t3) {
  20224. this.setValue("valueX", t3);
  20225. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "closeValueY", { get: function() {
  20226. return this.values.valueY.value;
  20227. }, set: function(t3) {
  20228. this.setValue("valueY", t3);
  20229. }, enumerable: true, configurable: true }), e3;
  20230. }(Op), Np = function(t2) {
  20231. function e3() {
  20232. var e4 = t2.call(this) || this;
  20233. e4.className = "CandlestickSeries", e4.groupFields.lowValueX = "low", e4.groupFields.lowValueY = "low", e4.groupFields.highValueX = "high", e4.groupFields.highValueY = "high", e4.strokeOpacity = 1;
  20234. var i3 = new Ys(), n3 = i3.getFor("positive"), r3 = i3.getFor("negative");
  20235. return e4.dropFromOpenState.properties.fill = r3, e4.dropFromOpenState.properties.stroke = r3, e4.riseFromOpenState.properties.fill = n3, e4.riseFromOpenState.properties.stroke = n3, e4.applyTheme(), e4;
  20236. }
  20237. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  20238. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Candlestick Series"));
  20239. }, e3.prototype.createDataItem = function() {
  20240. return new Hp();
  20241. }, e3.prototype.validateDataElementReal = function(e4) {
  20242. t2.prototype.validateDataElementReal.call(this, e4), this.validateCandlestick(e4);
  20243. }, e3.prototype.validateCandlestick = function(t3) {
  20244. var e4 = t3.column;
  20245. if (e4) {
  20246. var i3 = e4.lowLine, n3 = e4.highLine;
  20247. if (this.baseAxis == this.xAxis) {
  20248. var r3 = e4.pixelWidth / 2;
  20249. i3.x = r3, n3.x = r3;
  20250. var s2 = t3.getWorkingValue(this.yOpenField), a2 = t3.getWorkingValue(this.yField), o3 = this.yAxis.getY(t3, this.yOpenField), l2 = this.yAxis.getY(t3, this.yField), h2 = this.yAxis.getY(t3, this.yLowField), p2 = this.yAxis.getY(t3, this.yHighField), u2 = e4.pixelY;
  20251. i3.y1 = h2 - u2, n3.y1 = p2 - u2, s2 < a2 ? (i3.y2 = o3 - u2, n3.y2 = l2 - u2) : (i3.y2 = l2 - u2, n3.y2 = o3 - u2);
  20252. }
  20253. if (this.baseAxis == this.yAxis) {
  20254. var d2 = e4.pixelHeight / 2;
  20255. i3.y = d2, n3.y = d2;
  20256. var c2 = t3.getWorkingValue(this.xOpenField), f2 = t3.getWorkingValue(this.xField), g2 = this.xAxis.getX(t3, this.xOpenField), y2 = this.xAxis.getX(t3, this.xField), m2 = this.xAxis.getX(t3, this.xLowField), v2 = this.xAxis.getX(t3, this.xHighField), b2 = e4.pixelX;
  20257. i3.x1 = m2 - b2, n3.x1 = v2 - b2, c2 < f2 ? (i3.x2 = g2 - b2, n3.x2 = y2 - b2) : (i3.x2 = y2 - b2, n3.x2 = g2 - b2);
  20258. }
  20259. ti(this.axisRanges.iterator(), function(e5) {
  20260. var r4 = t3.rangesColumns.getKey(e5.uid);
  20261. if (r4) {
  20262. var s3 = r4.lowLine;
  20263. s3.x = i3.x, s3.y = i3.y, s3.x1 = i3.x1, s3.x2 = i3.x2, s3.y1 = i3.y1, s3.y2 = i3.y2;
  20264. var a3 = r4.highLine;
  20265. a3.x = n3.x, a3.y = n3.y, a3.x1 = n3.x1, a3.x2 = n3.x2, a3.y1 = n3.y1, a3.y2 = n3.y2;
  20266. }
  20267. });
  20268. }
  20269. }, Object.defineProperty(e3.prototype, "xLowField", { get: function() {
  20270. return this._xLowField;
  20271. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yLowField", { get: function() {
  20272. return this._yLowField;
  20273. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xHighField", { get: function() {
  20274. return this._xHighField;
  20275. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yHighField", { get: function() {
  20276. return this._yHighField;
  20277. }, enumerable: true, configurable: true }), e3.prototype.defineFields = function() {
  20278. t2.prototype.defineFields.call(this);
  20279. var e4 = this.xAxis, i3 = this.yAxis;
  20280. if (e4 && i3) {
  20281. if (this.baseAxis == e4) {
  20282. var n3 = En(i3.axisFieldName);
  20283. this._yLowField = "low" + n3 + "Y", this._yHighField = "high" + n3 + "Y";
  20284. }
  20285. if (this.baseAxis == i3) {
  20286. var r3 = En(e4.axisFieldName);
  20287. this._xLowField = "low" + r3 + "X", this._xHighField = "high" + r3 + "X";
  20288. }
  20289. this.addValueField(e4, this._xValueFields, this._xLowField), this.addValueField(e4, this._xValueFields, this._xHighField), this.addValueField(i3, this._yValueFields, this._yLowField), this.addValueField(i3, this._yValueFields, this._yHighField);
  20290. }
  20291. }, e3.prototype.createLegendMarker = function(t3) {
  20292. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  20293. t3.removeChildren();
  20294. var n3, r3, s2 = t3.createChild(Bp);
  20295. s2.shouldClone = false, s2.copyFrom(this.columns.template);
  20296. var a2 = s2.lowLine, o3 = s2.highLine;
  20297. this.baseAxis == this.yAxis ? (n3 = e4 / 3, r3 = i3, a2.y = i3 / 2, o3.y = i3 / 2, a2.x2 = e4 / 3, o3.x2 = e4 / 3, o3.x = e4 / 3 * 2, s2.column.x = e4 / 3) : (n3 = e4, r3 = i3 / 3, a2.x = e4 / 2, o3.x = e4 / 2, a2.y2 = i3 / 3, o3.y2 = i3 / 3, o3.y = i3 / 3 * 2, s2.column.y = i3 / 3), s2.width = n3, s2.height = r3, Ue(this, t3, Ka), Ue(this.columns.template, s2, Ka), s2.stroke = this.riseFromOpenState.properties.stroke, s2.fill = s2.stroke;
  20298. var l2 = t3.dataItem;
  20299. l2.color = s2.fill, l2.colorOrig = s2.fill;
  20300. }, e3.prototype.createColumnTemplate = function() {
  20301. return new Bp();
  20302. }, e3;
  20303. }(Sp);
  20304. Ii.registeredClasses.CandlestickSeries = Np, Ii.registeredClasses.CandlestickSeriesDataItem = Hp;
  20305. var Wp = function(t2) {
  20306. function e3() {
  20307. var e4 = t2.call(this) || this;
  20308. return e4.className = "OHLC", e4.layout = "none", e4;
  20309. }
  20310. return C(e3, t2), e3.prototype.createAssets = function() {
  20311. this.openLine = this.createChild(bo), this.openLine.shouldClone = false, this.highLowLine = this.createChild(bo), this.highLowLine.shouldClone = false, this.closeLine = this.createChild(bo), this.closeLine.shouldClone = false;
  20312. }, e3.prototype.copyFrom = function(e4) {
  20313. t2.prototype.copyFrom.call(this, e4), this.openLine && this.openLine.copyFrom(e4.openLine), this.highLowLine && this.highLowLine.copyFrom(e4.highLowLine), this.closeLine && this.closeLine.copyFrom(e4.closeLine);
  20314. }, e3;
  20315. }(Bp);
  20316. Ii.registeredClasses.OHLC = Wp;
  20317. var Xp = function(t2) {
  20318. function e3() {
  20319. var e4 = t2.call(this) || this;
  20320. return e4.className = "OHLCSeriesDataItem", e4.applyTheme(), e4;
  20321. }
  20322. return C(e3, t2), e3;
  20323. }(Hp), Yp = function(t2) {
  20324. function e3() {
  20325. var e4 = t2.call(this) || this;
  20326. return e4.className = "OHLCSeries", e4.applyTheme(), e4;
  20327. }
  20328. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  20329. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("OHLC Series"));
  20330. }, e3.prototype.createDataItem = function() {
  20331. return new Xp();
  20332. }, e3.prototype.validateCandlestick = function(t3) {
  20333. var e4 = t3.column;
  20334. if (e4) {
  20335. var i3 = e4.openLine, n3 = e4.highLowLine, r3 = e4.closeLine;
  20336. if (this.baseAxis == this.xAxis) {
  20337. var s2 = e4.pixelWidth / 2;
  20338. n3.x = s2, t3.getWorkingValue(this.yOpenField), t3.getWorkingValue(this.yField);
  20339. var a2 = this.yAxis.getY(t3, this.yOpenField), o3 = this.yAxis.getY(t3, this.yField), l2 = this.yAxis.getY(t3, this.yLowField), h2 = this.yAxis.getY(t3, this.yHighField), p2 = e4.pixelY;
  20340. i3.y1 = a2 - p2, i3.y2 = a2 - p2, i3.x1 = 0, i3.x2 = s2, r3.y1 = o3 - p2, r3.y2 = o3 - p2, r3.x1 = s2, r3.x2 = 2 * s2, n3.y1 = h2 - p2, n3.y2 = l2 - p2;
  20341. }
  20342. if (this.baseAxis == this.yAxis) {
  20343. var u2 = e4.pixelHeight / 2;
  20344. n3.y = u2, t3.getWorkingValue(this.xOpenField), t3.getWorkingValue(this.xField);
  20345. var d2 = this.xAxis.getX(t3, this.xOpenField), c2 = this.xAxis.getX(t3, this.xField), f2 = this.xAxis.getX(t3, this.xLowField), g2 = this.xAxis.getX(t3, this.xHighField), y2 = e4.pixelX;
  20346. i3.x1 = d2 - y2, i3.x2 = d2 - y2, i3.y1 = u2, i3.y2 = 2 * u2, r3.x1 = c2 - y2, r3.x2 = c2 - y2, r3.y1 = 0, r3.y2 = u2, n3.x1 = g2 - y2, n3.x2 = f2 - y2;
  20347. }
  20348. ti(this.axisRanges.iterator(), function(e5) {
  20349. var s3 = t3.rangesColumns.getKey(e5.uid);
  20350. if (s3) {
  20351. var a3 = s3.openLine;
  20352. a3.x = i3.x, a3.y = i3.y, a3.x1 = i3.x1, a3.x2 = i3.x2, a3.y1 = i3.y1, a3.y2 = i3.y2;
  20353. var o4 = s3.closeLine;
  20354. o4.x = r3.x, o4.y = r3.y, o4.x1 = r3.x1, o4.x2 = r3.x2, o4.y1 = r3.y1, o4.y2 = r3.y2;
  20355. var l3 = s3.highLowLine;
  20356. l3.x = n3.x, l3.y = n3.y, l3.x1 = n3.x1, l3.x2 = n3.x2, l3.y1 = n3.y1, l3.y2 = n3.y2;
  20357. }
  20358. });
  20359. }
  20360. }, e3.prototype.createLegendMarker = function(t3) {
  20361. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  20362. t3.removeChildren();
  20363. var n3, r3, s2 = t3.createChild(Wp);
  20364. s2.shouldClone = false, s2.copyFrom(this.columns.template);
  20365. var a2 = s2.openLine, o3 = s2.closeLine, l2 = s2.highLowLine;
  20366. this.baseAxis == this.yAxis ? (n3 = e4 / 3, r3 = i3, l2.y = i3 / 2, l2.x2 = e4, a2.x = e4 / 3 * 2, a2.y2 = i3 / 2, o3.x = e4 / 3, o3.y2 = i3, o3.y1 = i3 / 2) : (n3 = e4, r3 = i3 / 3, l2.x = e4 / 2, l2.y2 = i3, a2.y = i3 / 3 * 2, a2.x2 = e4 / 2, o3.y = i3 / 3, o3.x2 = e4, o3.x1 = e4 / 2), s2.width = n3, s2.height = r3, Ue(this, t3, Ka), Ue(this.columns.template, s2, Ka), s2.stroke = this.riseFromOpenState.properties.stroke;
  20367. var h2 = t3.dataItem;
  20368. h2.color = s2.stroke, h2.colorOrig = s2.stroke;
  20369. }, e3.prototype.createColumnTemplate = function() {
  20370. return new Wp();
  20371. }, e3;
  20372. }(Np);
  20373. Ii.registeredClasses.OHLCSeries = Yp, Ii.registeredClasses.OHLCSeriesDataItem = Xp;
  20374. var zp = function(t2) {
  20375. function e3() {
  20376. var e4 = t2.call(this) || this;
  20377. return e4.className = "StepLineSeriesSegment", e4;
  20378. }
  20379. return C(e3, t2), e3.prototype.drawSegment = function(t3, e4, i3, n3, r3, s2) {
  20380. if (t3.length > 0 && e4.length > 0)
  20381. if (r3) {
  20382. var a2 = wo(t3[0]);
  20383. if (t3.length > 0)
  20384. for (var o3 = 1; o3 < t3.length; o3++) {
  20385. var l2 = t3[o3];
  20386. o3 / 2 == Math.round(o3 / 2) ? a2 += wo(l2) : a2 += Co(l2);
  20387. }
  20388. this.strokeSprite.path = a2, (this.fillOpacity > 0 || this.fillSprite.fillOpacity > 0) && (a2 = wo(t3[0]) + Po(t3), a2 += Co(e4[0]) + Po(e4), a2 += Co(t3[0]), a2 += " Z", this.fillSprite.path = a2);
  20389. } else
  20390. a2 = wo(t3[0]) + Po(t3), this.strokeSprite.path = a2, (this.fillOpacity > 0 || this.fillSprite.fillOpacity > 0) && (a2 += Co(e4[0]) + Po(e4), a2 += Co(t3[0]), a2 += " Z", this.fillSprite.path = a2);
  20391. else
  20392. this.strokeSprite.path = "", this.fillSprite.path = "";
  20393. }, e3;
  20394. }(Vh);
  20395. Ii.registeredClasses.StepLineSeriesSegment = zp;
  20396. var Up = function(t2) {
  20397. function e3() {
  20398. var e4 = t2.call(this) || this;
  20399. return e4.className = "StepLineSeriesDataItem", e4.applyTheme(), e4;
  20400. }
  20401. return C(e3, t2), e3;
  20402. }(Lh), Gp = function(t2) {
  20403. function e3() {
  20404. var e4 = t2.call(this) || this;
  20405. return e4.className = "StepLineSeries", e4.applyTheme(), e4.startLocation = 0, e4.endLocation = 1, e4;
  20406. }
  20407. return C(e3, t2), e3.prototype.createDataItem = function() {
  20408. return new Up();
  20409. }, e3.prototype.addPoints = function(t3, e4, i3, n3, r3) {
  20410. var s2, a2, o3, l2;
  20411. this.baseAxis == this.xAxis && (s2 = this.startLocation, a2 = this.endLocation, o3 = this.getAdjustedXLocation(e4, this.yOpenField), l2 = this.getAdjustedXLocation(e4, this.yField)), this.baseAxis == this.yAxis && (o3 = this.startLocation, l2 = this.endLocation, s2 = this.getAdjustedXLocation(e4, this.xOpenField), a2 = this.getAdjustedXLocation(e4, this.xField));
  20412. var h2 = this.xAxis.getX(e4, i3, s2), p2 = this.yAxis.getY(e4, n3, o3), u2 = this.xAxis.getX(e4, i3, a2), d2 = this.yAxis.getY(e4, n3, l2);
  20413. if (h2 = ut(h2, -1e5, 1e5), p2 = ut(p2, -1e5, 1e5), u2 = ut(u2, -1e5, 1e5), d2 = ut(d2, -1e5, 1e5), !this.noRisers && t3.length > 1) {
  20414. var c2 = t3[t3.length - 1];
  20415. this.baseAxis == this.xAxis && (r3 ? t3.push({ x: c2.x, y: d2 }) : t3.push({ x: h2, y: c2.y })), this.baseAxis == this.yAxis && (r3 ? t3.push({ x: u2, y: c2.y }) : t3.push({ x: c2.x, y: p2 }));
  20416. }
  20417. var f2 = { x: h2, y: p2 }, g2 = { x: u2, y: d2 };
  20418. r3 ? t3.push(g2, f2) : t3.push(f2, g2);
  20419. }, e3.prototype.drawSegment = function(t3, e4, i3) {
  20420. var n3 = false;
  20421. this.yAxis == this.baseAxis && (n3 = true), t3.drawSegment(e4, i3, this.tensionX, this.tensionY, this.noRisers, n3);
  20422. }, e3.prototype.createSegment = function() {
  20423. return new zp();
  20424. }, Object.defineProperty(e3.prototype, "noRisers", { get: function() {
  20425. return this.getPropertyValue("noRisers");
  20426. }, set: function(t3) {
  20427. this.setPropertyValue("noRisers", t3, true);
  20428. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startLocation", { get: function() {
  20429. return this.getPropertyValue("startLocation");
  20430. }, set: function(t3) {
  20431. this.setPropertyValue("startLocation", t3, true);
  20432. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLocation", { get: function() {
  20433. return this.getPropertyValue("endLocation");
  20434. }, set: function(t3) {
  20435. this.setPropertyValue("endLocation", t3, true);
  20436. }, enumerable: true, configurable: true }), e3;
  20437. }(jh);
  20438. Ii.registeredClasses.StepLineSeries = Gp, Ii.registeredClasses.StepLineSeriesDataItem = Up;
  20439. var Kp = function(t2) {
  20440. function e3() {
  20441. var e4 = t2.call(this) || this;
  20442. return e4.className = "RadarColumn", e4;
  20443. }
  20444. return C(e3, t2), e3.prototype.createAssets = function() {
  20445. this.radarColumn = this.createChild(No), this.radarColumn.shouldClone = false, this.radarColumn.strokeOpacity = void 0, this.column = this.radarColumn;
  20446. }, e3.prototype.copyFrom = function(e4) {
  20447. t2.prototype.copyFrom.call(this, e4), this.radarColumn && this.radarColumn.copyFrom(e4.radarColumn);
  20448. }, e3.prototype.getTooltipX = function() {
  20449. var t3 = this.getPropertyValue("tooltipX");
  20450. return tt(t3) ? t3 : this.radarColumn.getTooltipX();
  20451. }, e3.prototype.getTooltipY = function() {
  20452. var t3 = this.getPropertyValue("tooltipX");
  20453. return tt(t3) ? t3 : this.radarColumn.getTooltipY();
  20454. }, e3;
  20455. }(Cp);
  20456. Ii.registeredClasses.RadarColumn = Kp;
  20457. var Zp = function(t2) {
  20458. function e3() {
  20459. var e4 = t2.call(this) || this;
  20460. return e4.className = "ColumnSeriesDataItem", e4.applyTheme(), e4;
  20461. }
  20462. return C(e3, t2), e3;
  20463. }(Op), qp = function(t2) {
  20464. function e3() {
  20465. var e4 = t2.call(this) || this;
  20466. return e4.className = "RadarColumnSeries", e4.applyTheme(), e4;
  20467. }
  20468. return C(e3, t2), e3.prototype.createColumnTemplate = function() {
  20469. return new Kp();
  20470. }, e3.prototype.validate = function() {
  20471. this.chart.invalid && this.chart.validate(), t2.prototype.validate.call(this);
  20472. }, e3.prototype.disableUnusedColumns = function(t3) {
  20473. t3 && (t3.column && (t3.column.__disabled = true), ti(this.axisRanges.iterator(), function(e4) {
  20474. var i3 = t3.rangesColumns.getKey(e4.uid);
  20475. i3 && (i3.__disabled = true);
  20476. }));
  20477. }, e3.prototype.validateDataElementReal = function(t3) {
  20478. var e4, i3, n3, r3, s2 = this, a2 = this.chart.startAngle, o3 = this.chart.endAngle, l2 = this.yField, h2 = this.yOpenField, p2 = this.xField, u2 = this.xOpenField, d2 = this.getStartLocation(t3), c2 = this.getEndLocation(t3), f2 = (o3 - a2) / (this.dataItems.length * (this.end - this.start)), g2 = t3.column;
  20479. g2 || (g2 = this.columns.create(), t3.column = g2, Ue(this, g2, Ka), Ue(this.columns.template, g2, Ka), t3.addSprite(g2), g2.paper = this.paper, this.setColumnStates(g2));
  20480. var y2 = g2.width, m2 = 100;
  20481. y2 instanceof A && (m2 = y2.percent);
  20482. var v2 = lt((c2 - d2) * (1 - m2 / 100) / 2, 5);
  20483. if (d2 += v2, c2 -= v2, this.xAxis instanceof Sh && this.yAxis instanceof Sh)
  20484. n3 = _t({ x: this.yAxis.getX(t3, l2, 0, "valueY"), y: this.yAxis.getY(t3, l2, 0, "valueY") }), r3 = _t({ x: this.yAxis.getX(t3, h2, 1, "valueY"), y: this.yAxis.getY(t3, h2, 1, "valueY") }), e4 = this.xAxis.getAngle(t3, u2, 0, "valueX"), i3 = this.xAxis.getAngle(t3, p2, 1, "valueX"), a2 += d2 * f2, o3 -= (1 - c2) * f2;
  20485. else if (this.baseAxis == this.xAxis)
  20486. n3 = _t({ x: this.yAxis.getX(t3, l2, t3.locations[l2], "valueY"), y: this.yAxis.getY(t3, l2, t3.locations[l2], "valueY") }), r3 = _t({ x: this.yAxis.getX(t3, h2, t3.locations[h2], "valueY"), y: this.yAxis.getY(t3, h2, t3.locations[h2], "valueY") }), e4 = this.xAxis.getAngle(t3, u2, d2, "valueX"), i3 = this.xAxis.getAngle(t3, p2, c2, "valueX"), a2 += d2 * f2, o3 -= (1 - c2) * f2;
  20487. else {
  20488. if (n3 = _t({ x: this.yAxis.getX(t3, l2, d2, "valueY"), y: this.yAxis.getY(t3, l2, d2, "valueY") }), r3 = _t({ x: this.yAxis.getX(t3, h2, c2, "valueY"), y: this.yAxis.getY(t3, h2, c2, "valueY") }), tt(y2)) {
  20489. var b2 = Math.abs(n3 - r3);
  20490. if (b2 > y2) {
  20491. var x2 = (b2 - y2) / 2;
  20492. n3 += x2, r3 -= x2;
  20493. }
  20494. }
  20495. e4 = this.xAxis.getAngle(t3, p2, t3.locations[p2], "valueX"), i3 = this.xAxis.getAngle(t3, u2, t3.locations[u2], "valueX");
  20496. }
  20497. if (i3 < e4) {
  20498. var _2 = i3;
  20499. i3 = e4, e4 = _2;
  20500. }
  20501. e4 = ut(e4, a2, o3), i3 = ut(i3, a2, o3);
  20502. var P2 = g2.radarColumn;
  20503. P2.startAngle = e4;
  20504. var w2 = i3 - e4;
  20505. w2 > 0 ? (P2.arc = w2, P2.radius = n3, P2.innerRadius = r3, g2.__disabled = false, g2.parent = this.columnsContainer, ti(this.axisRanges.iterator(), function(i4) {
  20506. var a3 = t3.rangesColumns.getKey(i4.uid);
  20507. a3 || (a3 = s2.columns.create(), Ke(s2.columns.template, a3, Ka), Ue(i4.contents, a3, Ka), a3.dataItem && ee(a3.dataItem.sprites, a3), t3.addSprite(a3), a3.paper = s2.paper, s2.setColumnStates(a3), t3.rangesColumns.setKey(i4.uid, a3));
  20508. var o4 = a3.radarColumn;
  20509. o4.startAngle = e4, o4.arc = w2, o4.radius = n3, o4.innerRadius = r3, o4.invalid && (o4.paper = s2.paper, o4.validate()), a3.__disabled = false, a3.parent = i4.contents;
  20510. })) : this.disableUnusedColumns(t3);
  20511. }, e3.prototype.getPoint = function(t3, e4, i3, n3, r3, s2, a2) {
  20512. s2 || (s2 = "valueX"), a2 || (a2 = "valueY");
  20513. var o3 = _t({ x: this.yAxis.getX(t3, i3, r3, a2), y: this.yAxis.getY(t3, i3, r3, a2) });
  20514. 0 == o3 && (o3 = 1e-5);
  20515. var l2 = this.xAxis.getAngle(t3, e4, n3, s2);
  20516. return { x: o3 * ft(l2), y: o3 * dt(l2) };
  20517. }, e3.prototype.getMaskPath = function() {
  20518. var t3 = this.yAxis.renderer;
  20519. return ko(t3.startAngle, t3.endAngle - t3.startAngle, t3.pixelRadius, t3.pixelInnerRadius);
  20520. }, e3.prototype.positionBulletReal = function(t3, e4, i3) {
  20521. var n3 = this.xAxis, r3 = this.yAxis;
  20522. (e4 < n3.start || e4 > n3.end || i3 < r3.start || i3 > r3.end) && (t3.visible = false), t3.moveTo(this.xAxis.renderer.positionToPoint(e4, i3));
  20523. }, e3.prototype.setXAxis = function(e4) {
  20524. t2.prototype.setXAxis.call(this, e4), this.updateRendererRefs();
  20525. }, e3.prototype.setYAxis = function(e4) {
  20526. t2.prototype.setYAxis.call(this, e4), this.updateRendererRefs();
  20527. }, e3.prototype.updateRendererRefs = function() {
  20528. var t3 = this.xAxis.renderer, e4 = this.yAxis.renderer;
  20529. t3.axisRendererY = e4;
  20530. }, e3;
  20531. }(Sp);
  20532. Ii.registeredClasses.RadarColumnSeries = qp, Ii.registeredClasses.RadarColumnSeriesDataItem = Zp;
  20533. var $p = function(t2) {
  20534. function e3() {
  20535. var e4 = t2.call(this) || this;
  20536. return e4.slice = e4.createChild(Za), e4.slice.shouldClone = false, e4.slice.setElement(e4.paper.add("path")), e4.slice.isMeasured = false, e4.orientation = "vertical", e4.bottomWidth = V(100), e4.topWidth = V(100), e4.isMeasured = false, e4.width = 10, e4.height = 10, e4.expandDistance = 0, e4.className = "FunnelSlice", e4.applyTheme(), e4;
  20537. }
  20538. return C(e3, t2), e3.prototype.draw = function() {
  20539. t2.prototype.draw.call(this);
  20540. var e4 = this.pixelPaddingTop, i3 = this.pixelPaddingBottom, n3 = this.pixelPaddingRight, r3 = this.pixelPaddingLeft, s2 = this.pixelWidth - n3 - r3, a2 = this.pixelHeight - e4 - i3, o3 = this.expandDistance, l2 = "";
  20541. if ("vertical" == this.orientation) {
  20542. var h2 = { x: (s2 - (m2 = Vn(this.topWidth, s2))) / 2 + r3, y: e4 }, p2 = { x: (s2 + m2) / 2 + r3, y: e4 }, u2 = { x: (s2 + (v2 = Vn(this.bottomWidth, s2))) / 2 + r3, y: e4 + a2 }, d2 = { x: (s2 - v2) / 2 + r3, y: e4 + a2 }, c2 = { x: p2.x + (u2.x - p2.x) / 2 + o3 * a2, y: p2.y + 0.5 * a2 }, f2 = { x: h2.x + (d2.x - h2.x) / 2 - o3 * a2, y: h2.y + 0.5 * a2 }, g2 = Co(u2), y2 = Co(h2);
  20543. 0 != o3 && (g2 = Oo(u2, c2), y2 = Oo(h2, f2)), l2 = wo(h2) + Co(p2) + g2 + Co(d2) + y2, this.tickPoint = { x: p2.x + (u2.x - p2.x) / 2, y: p2.y + (u2.y - p2.y) / 2 };
  20544. } else {
  20545. var m2, v2, b2 = { x: r3, y: (a2 - (m2 = Vn(this.topWidth, a2))) / 2 + e4 }, x2 = { x: r3, y: (a2 + m2) / 2 + e4 }, _2 = { x: r3 + s2, y: (a2 - (v2 = Vn(this.bottomWidth, a2))) / 2 + e4 }, P2 = { x: r3 + s2, y: (a2 + v2) / 2 + e4 };
  20546. c2 = { y: b2.y + (_2.y - b2.y) / 2 - o3 * s2, x: b2.x + 0.5 * s2 }, f2 = { y: x2.y + (P2.y - x2.y) / 2 + o3 * s2, x: x2.x + 0.5 * s2 }, g2 = Co(_2), y2 = Co(x2), 0 != o3 && (g2 = Oo(_2, c2), y2 = Oo(x2, f2)), l2 = wo(x2) + Co(b2) + g2 + Co(P2) + y2, this.tickPoint = { y: x2.y + (P2.y - x2.y) / 2, x: x2.x + (P2.x - x2.x) / 2 };
  20547. }
  20548. this.slice.path = l2, this.invalidateLayout();
  20549. }, e3.prototype.getPoint = function(t3, e4) {
  20550. var i3 = this.pixelPaddingTop, n3 = this.pixelPaddingBottom, r3 = this.pixelPaddingRight, s2 = this.pixelPaddingLeft, a2 = this.pixelWidth - r3 - s2, o3 = this.pixelHeight - i3 - n3;
  20551. if ("vertical" == this.orientation) {
  20552. var l2 = { x: (a2 - (d2 = Vn(this.topWidth, a2))) / 2 + s2, y: i3 }, h2 = { x: (a2 + d2) / 2 + s2, y: i3 }, p2 = { x: (a2 + (c2 = Vn(this.bottomWidth, a2))) / 2 + s2, y: i3 + o3 }, u2 = l2.x + ((a2 - c2) / 2 + s2 - l2.x) * e4;
  20553. return { x: u2 + (h2.x + (p2.x - h2.x) * e4 - u2) * t3, y: h2.y + (p2.y - h2.y) * e4 };
  20554. }
  20555. var d2, c2, f2 = s2, g2 = (o3 - (d2 = Vn(this.topWidth, o3))) / 2 + i3, y2 = (o3 + d2) / 2 + i3, m2 = s2 + a2, v2 = g2 + ((o3 - (c2 = Vn(this.bottomWidth, o3))) / 2 + i3 - g2) * t3;
  20556. return { y: v2 + (y2 + ((o3 + c2) / 2 + i3 - y2) * t3 - v2) * e4, x: f2 + (m2 - f2) * t3 };
  20557. }, Object.defineProperty(e3.prototype, "bottomWidth", { get: function() {
  20558. return this.getPropertyValue("bottomWidth");
  20559. }, set: function(t3) {
  20560. this.setPercentProperty("bottomWidth", t3, true, false, 10, false);
  20561. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "topWidth", { get: function() {
  20562. return this.getPropertyValue("topWidth");
  20563. }, set: function(t3) {
  20564. this.setPercentProperty("topWidth", t3, true, false, 10, false);
  20565. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  20566. return this.getPropertyValue("orientation");
  20567. }, set: function(t3) {
  20568. this.setPropertyValue("orientation", t3, true);
  20569. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "expandDistance", { get: function() {
  20570. return this.getPropertyValue("expandDistance");
  20571. }, set: function(t3) {
  20572. this.setPropertyValue("expandDistance", t3, true);
  20573. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  20574. t2.prototype.copyFrom.call(this, e4), this.slice && this.slice.copyFrom(e4.slice);
  20575. }, e3;
  20576. }($a);
  20577. Ii.registeredClasses.FunnelSlice = $p;
  20578. var Jp = function(t2) {
  20579. function e3() {
  20580. var e4 = t2.call(this) || this;
  20581. return e4._label = new ve(), e4._slice = new ve(), e4.className = "FunnelTick", e4.element = e4.paper.add("path"), e4._disposers.push(e4._label), e4._disposers.push(e4._slice), e4.setPropertyValue("locationX", 0), e4.setPropertyValue("locationY", 0), e4.applyTheme(), e4;
  20582. }
  20583. return C(e3, t2), e3.prototype.draw = function() {
  20584. t2.prototype.draw.call(this);
  20585. var e4 = this.slice, i3 = e4.getPoint(this.locationX, this.locationY);
  20586. if (i3) {
  20587. var n3 = this.label, r3 = e4.dataItem.component, s2 = void 0, a2 = void 0, o3 = void 0;
  20588. if ("vertical" == r3.orientation) {
  20589. var l2 = n3.pixelX, h2 = n3.pixelY;
  20590. r3.labelsOpposite || (l2 += n3.maxRight), s2 = dr(i3, e4, this.parent), o3 = dr({ x: l2, y: h2 }, n3.parent, this.parent), a2 = { x: n3.parent.pixelX - this.length, y: o3.y }, r3.labelsOpposite || (a2.x = n3.parent.measuredWidth + this.length);
  20591. } else
  20592. l2 = n3.pixelX, h2 = n3.pixelY, r3.labelsOpposite || (h2 += n3.maxBottom), s2 = dr(i3, e4, this.parent), a2 = { x: (o3 = dr({ x: l2, y: h2 }, n3.parent, this.parent)).x, y: n3.parent.pixelY - this.length }, r3.labelsOpposite || (a2.y = n3.parent.measuredHeight + this.length);
  20593. this.path = wo(s2) + Co(a2) + Co(o3);
  20594. }
  20595. }, Object.defineProperty(e3.prototype, "slice", { get: function() {
  20596. return this._slice.get();
  20597. }, set: function(t3) {
  20598. this._slice.set(t3, new me([t3.events.on("transformed", this.invalidate, this, false), t3.events.on("validated", this.invalidate, this, false)]));
  20599. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  20600. return this._label.get();
  20601. }, set: function(t3) {
  20602. this._label.set(t3, t3.events.on("transformed", this.invalidate, this, false));
  20603. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "locationX", { get: function() {
  20604. return this.getPropertyValue("locationX");
  20605. }, set: function(t3) {
  20606. this.setPropertyValue("locationX", t3, false, true);
  20607. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "locationY", { get: function() {
  20608. return this.getPropertyValue("locationY");
  20609. }, set: function(t3) {
  20610. this.setPropertyValue("locationY", t3, false, true);
  20611. }, enumerable: true, configurable: true }), e3;
  20612. }(dh);
  20613. Ii.registeredClasses.FunnelTick = Jp;
  20614. var Qp = function(t2) {
  20615. function e3() {
  20616. var e4 = t2.call(this) || this;
  20617. return e4.className = "FunnelSeriesDataItem", e4.events.on("visibilitychanged", function() {
  20618. e4.component && e4.component.invalidateDataItems();
  20619. }, e4, false), e4.applyTheme(), e4;
  20620. }
  20621. return C(e3, t2), Object.defineProperty(e3.prototype, "sliceLink", { get: function() {
  20622. var t3 = this;
  20623. if (!this._sliceLink) {
  20624. var e4 = this.component.sliceLinks.create();
  20625. this._sliceLink = e4, this._disposers.push(e4), e4.parent = this.component.slicesContainer, this._disposers.push(new ye(function() {
  20626. t3.component && t3.component.sliceLinks.removeValue(e4);
  20627. })), this.addSprite(e4), e4.visible = this.visible;
  20628. }
  20629. return this._sliceLink;
  20630. }, enumerable: true, configurable: true }), e3;
  20631. }(Zh), tu = function(t2) {
  20632. function e3() {
  20633. var e4 = t2.call(this) || this;
  20634. return e4._nextY = 0, e4.className = "FunnelSeries", e4.orientation = "vertical", e4.width = V(100), e4.height = V(100), e4.slicesContainer.width = V(100), e4.slicesContainer.height = V(100), e4._disposers.push(e4.slicesContainer.events.on("maxsizechanged", e4.invalidateDataItems, e4, false)), e4.labelsOpposite = true, e4.labelsContainer.layout = "absolute", e4.bottomRatio = 0, e4.applyTheme(), e4;
  20635. }
  20636. return C(e3, t2), e3.prototype.createSlice = function() {
  20637. return new $p();
  20638. }, e3.prototype.createTick = function() {
  20639. return new Jp();
  20640. }, e3.prototype.applyInternalDefaults = function() {
  20641. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Funnel Series"));
  20642. }, e3.prototype.createDataItem = function() {
  20643. return new Qp();
  20644. }, e3.prototype.initSlice = function(t3) {
  20645. t3.isMeasured = false, t3.defaultState.properties.scale = 1, t3.observe("scale", this.handleSliceScale, this), t3.observe(["dx", "dy", "x", "y"], this.handleSliceMove, this), t3.tooltipText = "{category}: {value.percent.formatNumber('#.#p')} ({value.value})", t3.states.create("hover").properties.expandDistance = 0.2;
  20646. }, e3.prototype.initLabel = function(e4) {
  20647. t2.prototype.initLabel.call(this, e4), e4.verticalCenter = "middle", e4.horizontalCenter = "middle", e4.isMeasured = true, e4.padding(5, 5, 5, 5);
  20648. }, e3.prototype.validate = function() {
  20649. t2.prototype.validate.call(this), this._nextY = 0;
  20650. }, e3.prototype.validateDataElements = function() {
  20651. var e4 = this, i3 = this.slicesContainer, n3 = this.labelsContainer, r3 = this.labels.template;
  20652. this.alignLabels ? (r3.interactionsEnabled = true, i3.isMeasured = true, n3.isMeasured = true) : (r3.interactionsEnabled = false, i3.isMeasured = false, n3.isMeasured = false);
  20653. var s2 = 0, a2 = 0;
  20654. this.dataItems.each(function(t3) {
  20655. Z(t3.value) && (a2++, t3.value > 0 ? s2 += Math.abs(t3.getWorkingValue("value") / t3.value) : e4.ignoreZeroValues || !t3.visible || t3.__disabled || t3.isHiding ? a2-- : s2 += 1);
  20656. }), this._total = 1 / a2 * s2, this._count = a2, t2.prototype.validateDataElements.call(this), this.arrangeLabels();
  20657. }, e3.prototype.getNextValue = function(t3) {
  20658. var e4 = t3.index, i3 = t3.getWorkingValue("value");
  20659. if (e4 < this.dataItems.length - 1) {
  20660. var n3 = this.dataItems.getIndex(e4 + 1);
  20661. if (i3 = n3.getWorkingValue("value"), !n3.visible || n3.isHiding || n3.__disabled || 0 == n3.value && this.ignoreZeroValues)
  20662. return this.getNextValue(n3);
  20663. }
  20664. return i3;
  20665. }, e3.prototype.formDataElement = function() {
  20666. }, e3.prototype.validateDataElement = function(e4) {
  20667. var i3 = this, n3 = e4.slice;
  20668. n3.orientation = this.orientation;
  20669. var r3 = e4.sliceLink;
  20670. r3.orientation = this.orientation;
  20671. var s2 = e4.tick, a2 = e4.label;
  20672. s2.slice = n3, s2.label = a2, Z(e4.value) ? (this.decorateSlice(e4), Ut(e4.sprites, function(t3) {
  20673. 0 == e4.value && i3.ignoreZeroValues ? t3.__disabled = true : t3.__disabled = false;
  20674. })) : Ut(e4.sprites, function(t3) {
  20675. t3.__disabled = true;
  20676. }), e4.index == this.dataItems.length - 1 && (r3.disabled = true), t2.prototype.validateDataElement.call(this, e4), r3.fill = n3.fill;
  20677. }, e3.prototype.decorateSlice = function(t3) {
  20678. var e4 = t3.slice, i3 = t3.sliceLink, n3 = t3.label, r3 = t3.tick, s2 = this.slicesContainer.innerWidth, a2 = this.slicesContainer.innerHeight, o3 = this.getNextValue(t3), l2 = Math.abs(t3.getWorkingValue("value")), h2 = this.bottomRatio, p2 = 1;
  20679. if (0 != t3.value ? p2 = l2 / Math.abs(t3.value) : (t3.__disabled || t3.isHiding || !t3.visible) && (p2 = 1e-6), this.ignoreZeroValues && 0 == t3.value)
  20680. t3.__disabled = true;
  20681. else if (t3.__disabled = false, this._nextY == 1 / 0 && (this._nextY = 0), "vertical" == this.orientation) {
  20682. var u2 = i3.pixelHeight * p2;
  20683. a2 += u2, e4.topWidth = l2 / this.dataItem.values.value.high * s2, e4.bottomWidth = (l2 - (l2 - o3) * h2) / this.dataItem.values.value.high * s2, i3.topWidth = e4.bottomWidth, i3.bottomWidth = (l2 - (l2 - o3)) / this.dataItem.values.value.high * s2, e4.y = this._nextY, e4.height = Math.min(1e5, gt(0, a2 / this._count * p2 / this._total - u2)), e4.x = s2 / 2, this.alignLabels ? n3.x = void 0 : n3.x = e4.x, n3.y = e4.pixelY + e4.pixelHeight * r3.locationY, this._nextY += e4.pixelHeight + u2, i3.y = this._nextY - u2, i3.x = e4.x;
  20684. } else {
  20685. var d2 = i3.pixelWidth * p2;
  20686. s2 += d2, e4.topWidth = l2 / this.dataItem.values.value.high * a2, e4.bottomWidth = (l2 - (l2 - o3) * h2) / this.dataItem.values.value.high * a2, i3.topWidth = e4.bottomWidth, i3.bottomWidth = (l2 - (l2 - o3)) / this.dataItem.values.value.high * a2, e4.x = this._nextY, e4.width = Math.min(1e5, s2 / this._count * p2 * 1 / this._total - d2), e4.y = a2 / 2, this.alignLabels ? n3.y = this.labelsContainer.measuredHeight : n3.y = e4.y, n3.x = e4.pixelX + e4.pixelWidth * r3.locationX, this._nextY += e4.pixelWidth + d2, i3.x = this._nextY - d2, i3.y = e4.y;
  20687. }
  20688. }, e3.prototype.getLastLabel = function(t3) {
  20689. if (t3 > 0) {
  20690. var e4 = this.labels.getIndex(t3);
  20691. return e4.__disabled || !e4.visible ? this.getLastLabel(t3 - 1) : e4;
  20692. }
  20693. }, e3.prototype.arrangeLabels = function() {
  20694. if (this.alignLabels) {
  20695. var t3 = this.labels.length;
  20696. if (t3 > 1) {
  20697. var e4 = this.getLastLabel(t3 - 1);
  20698. if (e4) {
  20699. var i3 = e4.pixelY, n3 = e4.pixelX;
  20700. if (t3 > 1) {
  20701. for (var r3 = t3 - 2; r3 >= 0; r3--)
  20702. (s2 = this.labels.getIndex(r3)).visible && !s2.__disabled && (s2.invalid && s2.validate(), "vertical" == this.orientation ? s2.pixelY + s2.measuredHeight > i3 && (s2.y = Math.min(1e6, i3 - s2.measuredHeight)) : s2.pixelX + s2.measuredWidth > n3 && (s2.x = Math.min(1e6, n3 - s2.measuredWidth)), i3 = s2.pixelY, n3 = s2.pixelX);
  20703. for (i3 = 0, n3 = 0, r3 = 0; r3 < t3; r3++) {
  20704. var s2;
  20705. (s2 = this.labels.getIndex(r3)).visible && !s2.__disabled && (s2.invalid && s2.validate(), "vertical" == this.orientation ? s2.pixelY < i3 && (s2.y = Math.min(1e6, i3)) : s2.pixelX < n3 && (s2.x = Math.min(1e6, n3)), i3 += s2.measuredHeight, n3 += s2.measuredWidth);
  20706. }
  20707. }
  20708. }
  20709. }
  20710. }
  20711. }, e3.prototype.positionBullet = function(e4) {
  20712. t2.prototype.positionBullet.call(this, e4);
  20713. var i3 = e4.dataItem.slice, n3 = e4.locationX;
  20714. tt(n3) || (n3 = 0.5);
  20715. var r3 = e4.locationY;
  20716. tt(r3) || (r3 = 1), e4.x = i3.pixelX + i3.measuredWidth * n3, e4.y = i3.pixelY + i3.measuredHeight * r3;
  20717. }, Object.defineProperty(e3.prototype, "orientation", { get: function() {
  20718. return this.getPropertyValue("orientation");
  20719. }, set: function(t3) {
  20720. this.setPropertyValue("orientation", t3) && (this.labelsOpposite = this.labelsOpposite, this.invalidate(), "vertical" == t3 ? (this.ticks.template.locationX = 1, this.ticks.template.locationY = 0.5, this.labels.template.rotation = 0, this.layout = "horizontal") : (this.ticks.template.locationX = 0.5, this.ticks.template.locationY = 1, this.labels.template.rotation = -90, this.layout = "vertical"));
  20721. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bottomRatio", { get: function() {
  20722. return this.getPropertyValue("bottomRatio");
  20723. }, set: function(t3) {
  20724. this.setPropertyValue("bottomRatio", t3) && this.invalidate();
  20725. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sliceLinks", { get: function() {
  20726. if (!this._sliceLinks) {
  20727. var t3 = new $p();
  20728. t3.applyOnClones = true, t3.fillOpacity = 0.5, t3.expandDistance = -0.3, t3.hiddenState.properties.opacity = 0, this._disposers.push(t3), this._sliceLinks = new Mi(t3), this._disposers.push(new Ai(this._sliceLinks));
  20729. }
  20730. return this._sliceLinks;
  20731. }, enumerable: true, configurable: true }), e3.prototype.show = function(e4) {
  20732. var i3 = this, n3 = this.startIndex, r3 = this.endIndex, s2 = this.defaultState.transitionDuration;
  20733. tt(e4) && (s2 = e4), ls.animationsEnabled || (s2 = 0);
  20734. var a2 = 0;
  20735. return ti(ai(this.dataItems.iterator()), function(t3) {
  20736. var e5 = t3[0], o3 = t3[1];
  20737. i3.sequencedInterpolation && (a2 = i3.sequencedInterpolationDelay * e5 + s2 * (e5 - n3) / (r3 - n3)), o3.show(s2, a2, ["value"]);
  20738. }), t2.prototype.show.call(this, e4);
  20739. }, e3.prototype.hide = function(e4) {
  20740. var i3 = this, n3 = ["value"], r3 = this.startIndex, s2 = this.endIndex, a2 = 0, o3 = this.hiddenState.transitionDuration;
  20741. tt(e4) && (o3 = e4), ls.animationsEnabled || (o3 = 0), ti(ai(this.dataItems.iterator()), function(t3) {
  20742. var e5 = t3[0], l3 = t3[1];
  20743. i3.sequencedInterpolation && (a2 = i3.sequencedInterpolationDelay * e5 + o3 * (e5 - r3) / (s2 - r3)), l3.hide(o3, a2, 0, n3);
  20744. });
  20745. var l2 = t2.prototype.hide.call(this, e4);
  20746. return l2 && !l2.isFinished() && l2.delay(a2), l2;
  20747. }, e3.prototype.setAlignLabels = function(e4) {
  20748. t2.prototype.setAlignLabels.call(this, e4), this.ticks.template.disabled = !e4;
  20749. var i3 = this.labelsContainer;
  20750. i3 && (e4 ? (i3.height = void 0, i3.width = void 0, i3.margin(10, 10, 10, 10)) : (i3.width = V(100), i3.height = V(100))), this.labelsOpposite = this.labelsOpposite;
  20751. }, Object.defineProperty(e3.prototype, "labelsOpposite", { get: function() {
  20752. return this.getPropertyValue("labelsOpposite");
  20753. }, set: function(t3) {
  20754. this.setPropertyValue("labelsOpposite", t3);
  20755. var e4 = this.labels.template, i3 = "none", n3 = "none";
  20756. this.alignLabels ? t3 ? (this.labelsContainer.toFront(), "vertical" == this.orientation ? (this.ticks.template.locationX = 1, e4.horizontalCenter = "left", i3 = "right") : (this.ticks.template.locationY = 1, e4.horizontalCenter = "right", n3 = "bottom")) : (this.labelsContainer.toBack(), "vertical" == this.orientation ? (this.ticks.template.locationX = 0, i3 = "left") : (n3 = "top", this.ticks.template.locationY = 0)) : "vertical" == this.orientation ? i3 = "center" : n3 = "middle", e4.align = i3, e4.valign = n3, this.validateLayout(), this.ticks.each(function(t4) {
  20757. t4.invalidate();
  20758. }), this.invalidateDataItems();
  20759. }, enumerable: true, configurable: true }), e3;
  20760. }(qh);
  20761. Ii.registeredClasses.FunnelSeries = tu, Ii.registeredClasses.FunnelSeriesDataItem = Qp;
  20762. var eu = function(t2) {
  20763. function e3() {
  20764. var e4 = t2.call(this) || this;
  20765. return e4.className = "PyramidSeriesDataItem", e4.applyTheme(), e4;
  20766. }
  20767. return C(e3, t2), e3;
  20768. }(Qp), iu = function(t2) {
  20769. function e3() {
  20770. var e4 = t2.call(this) || this;
  20771. return e4.className = "PyramidSeries", e4.topWidth = V(0), e4.bottomWidth = V(100), e4.pyramidHeight = V(100), e4.valueIs = "area", e4.sliceLinks.template.width = 0, e4.sliceLinks.template.height = 0, e4.applyTheme(), e4;
  20772. }
  20773. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  20774. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Pyramid Series"));
  20775. }, e3.prototype.createDataItem = function() {
  20776. return new eu();
  20777. }, e3.prototype.validate = function() {
  20778. t2.prototype.validate.call(this), this._nextWidth = void 0;
  20779. }, e3.prototype.getNextValue = function(t3) {
  20780. var e4 = t3.index, i3 = t3.getWorkingValue("value");
  20781. return e4 < this.dataItems.length - 1 && (i3 = this.dataItems.getIndex(e4 + 1).getWorkingValue("value")), 0 == i3 && (i3 = 1e-6), i3;
  20782. }, e3.prototype.validateDataElements = function() {
  20783. var e4 = this, i3 = this.slicesContainer.innerWidth, n3 = this.slicesContainer.innerHeight;
  20784. if (this.dataItems.each(function(t3) {
  20785. if (t3.value > 0) {
  20786. var r4 = t3.getWorkingValue("value") / t3.value, s3 = t3.sliceLink;
  20787. "vertical" == e4.orientation ? n3 -= s3.pixelHeight * r4 : i3 -= s3.pixelWidth * r4;
  20788. }
  20789. }), this._pyramidHeight = Vn(this.pyramidHeight, n3), this._pyramidWidth = Vn(this.pyramidHeight, i3), "vertical" == this.orientation) {
  20790. var r3 = (n3 - this._pyramidHeight) / 2;
  20791. this.slicesContainer.y = r3, this.labelsContainer.y = r3, this.ticksContainer.y = r3;
  20792. } else {
  20793. var s2 = (i3 - this._pyramidWidth) / 2;
  20794. this.slicesContainer.x = s2, this.labelsContainer.x = s2, this.ticksContainer.x = s2;
  20795. }
  20796. t2.prototype.validateDataElements.call(this);
  20797. }, e3.prototype.decorateSlice = function(t3) {
  20798. var e4 = this.dataItem.values.value.absoluteSum;
  20799. if (0 != e4) {
  20800. var i3 = t3.slice, n3 = t3.sliceLink, r3 = t3.label, s2 = t3.tick;
  20801. this.getNextValue(t3);
  20802. var a2 = Math.abs(t3.getWorkingValue("value")), o3 = this._pyramidWidth, l2 = this._pyramidHeight, h2 = this.slicesContainer.innerWidth, p2 = this.slicesContainer.innerHeight, u2 = n3.pixelWidth, d2 = n3.pixelHeight;
  20803. if (0 != t3.value && null != t3.value || !this.ignoreZeroValues ? t3.__disabled = false : t3.__disabled = true, "vertical" == this.orientation) {
  20804. var c2 = Vn(this.topWidth, h2);
  20805. tt(this._nextWidth) || (this._nextWidth = c2);
  20806. var f2 = Vn(this.bottomWidth, h2), g2 = this._nextWidth, y2 = Math.atan2(l2, c2 - f2);
  20807. 0 == (_2 = Math.tan(Math.PI / 2 - y2)) && (_2 = 1e-8);
  20808. var m2 = void 0, v2 = void 0;
  20809. if ("area" == this.valueIs) {
  20810. var b2 = (c2 + f2) / 2 * l2 * a2 / e4, x2 = Math.abs(g2 * g2 - 2 * b2 * _2);
  20811. v2 = (m2 = (g2 - Math.sqrt(x2)) / _2) > 0 ? (2 * b2 - m2 * g2) / m2 : g2;
  20812. } else
  20813. v2 = g2 - (m2 = l2 * a2 / e4) * _2;
  20814. i3.height = m2, i3.width = h2, i3.bottomWidth = v2, i3.topWidth = g2, n3.topWidth = i3.bottomWidth, n3.bottomWidth = i3.bottomWidth, i3.y = this._nextY, this.alignLabels ? r3.x = 0 : r3.x = h2 / 2, r3.y = i3.pixelY + i3.pixelHeight * s2.locationY + i3.dy, this._nextY += i3.pixelHeight + d2 * a2 / Math.max(Math.abs(t3.value), 1e-8), n3.y = this._nextY - d2, n3.x = h2 / 2;
  20815. } else {
  20816. var _2;
  20817. c2 = Vn(this.topWidth, p2), tt(this._nextWidth) || (this._nextWidth = c2), f2 = Vn(this.bottomWidth, p2), g2 = this._nextWidth, y2 = Math.atan2(o3, c2 - f2), 0 == (_2 = Math.tan(Math.PI / 2 - y2)) && (_2 = 1e-8);
  20818. var P2 = void 0;
  20819. v2 = void 0, v2 = "area" == this.valueIs ? (2 * (b2 = (c2 + f2) / 2 * o3 * a2 / e4) - (P2 = (g2 - Math.sqrt(g2 * g2 - 2 * b2 * _2)) / _2) * g2) / P2 : g2 - (P2 = o3 * a2 / e4) * _2, i3.width = P2, i3.height = p2, i3.bottomWidth = v2, i3.topWidth = g2, n3.topWidth = i3.bottomWidth, n3.bottomWidth = i3.bottomWidth, i3.x = this._nextY, this.alignLabels ? r3.y = this.labelsContainer.measuredHeight : r3.y = p2 / 2, r3.x = i3.pixelX + i3.pixelWidth * s2.locationX + i3.dx, this._nextY += i3.pixelWidth + u2 * a2 / Math.max(Math.abs(t3.value), 1e-8), n3.x = this._nextY - u2, n3.y = p2 / 2;
  20820. }
  20821. this._nextWidth = i3.bottomWidth;
  20822. }
  20823. }, Object.defineProperty(e3.prototype, "topWidth", { get: function() {
  20824. return this.getPropertyValue("topWidth");
  20825. }, set: function(t3) {
  20826. this.setPercentProperty("topWidth", t3, false, false, 10, false) && this.invalidate();
  20827. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pyramidHeight", { get: function() {
  20828. return this.getPropertyValue("pyramidHeight");
  20829. }, set: function(t3) {
  20830. this.setPercentProperty("pyramidHeight", t3, false, false, 10, false) && this.invalidate();
  20831. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bottomWidth", { get: function() {
  20832. return this.getPropertyValue("bottomWidth");
  20833. }, set: function(t3) {
  20834. this.setPercentProperty("bottomWidth", t3, false, false, 10, false) && this.invalidate();
  20835. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valueIs", { get: function() {
  20836. return this.getPropertyValue("valueIs");
  20837. }, set: function(t3) {
  20838. this.setPropertyValue("valueIs", t3) && this.invalidate();
  20839. }, enumerable: true, configurable: true }), e3;
  20840. }(tu);
  20841. Ii.registeredClasses.PyramidSeries = iu, Ii.registeredClasses.PyramidSeriesDataItem = eu;
  20842. var nu = function(t2) {
  20843. function e3() {
  20844. var e4 = t2.call(this) || this;
  20845. return e4.className = "PictorialStackedSeriesDataItem", e4.applyTheme(), e4;
  20846. }
  20847. return C(e3, t2), e3;
  20848. }(eu), ru = function(t2) {
  20849. function e3() {
  20850. var e4 = t2.call(this) || this;
  20851. return e4.className = "PictorialStackedSeries", e4.topWidth = V(100), e4.bottomWidth = V(100), e4.valueIs = "height", e4.applyTheme(), e4.startLocation = 0, e4.endLocation = 1, e4.align = "center", e4.valign = "middle", e4._maskSprite = e4.slicesContainer.createChild(Za), e4._maskSprite.visible = false, e4._maskSprite.zIndex = 100, e4._maskSprite.shouldClone = false, e4;
  20852. }
  20853. return C(e3, t2), e3.prototype.validateDataElements = function() {
  20854. var e4 = this.slicesContainer.maxWidth, i3 = this.slicesContainer.maxHeight, n3 = this._maskSprite, r3 = n3.measuredWidth / n3.scale, s2 = n3.measuredHeight / n3.scale, a2 = yt(i3 / s2, e4 / r3);
  20855. a2 == 1 / 0 && (a2 = 1), a2 = gt(1e-3, a2);
  20856. var o3, l2, h2 = this.startLocation, p2 = this.endLocation, u2 = yt(e4, r3 * a2), d2 = yt(i3, s2 * a2);
  20857. n3.scale = a2, "vertical" == this.orientation ? (this.topWidth = u2 + 4, this.bottomWidth = u2 + 4, this.pyramidHeight = d2 * (p2 - h2), n3.x = e4 / 2, n3.y = d2 / 2) : (this.topWidth = d2 + 4, this.bottomWidth = d2 + 4, this.pyramidHeight = u2 * (p2 - h2), n3.valign = "middle", n3.x = u2 / 2, n3.y = i3 / 2), n3.verticalCenter = "middle", n3.horizontalCenter = "middle", t2.prototype.validateDataElements.call(this), "vertical" == this.orientation ? ("bottom" == this.valign && (o3 = i3 - d2), "middle" == this.valign && (o3 = (i3 - d2) / 2), "top" == this.valign && (o3 = 0), "left" == this.align && (l2 = -(e4 - u2) / 2), "center" == this.align && (l2 = 0), "right" == this.align && (l2 = (e4 - u2) / 2), this.slices.template.dy = h2 * d2, this.alignLabels && (this.slicesContainer.dx = l2)) : ("bottom" == this.valign && (o3 = (i3 - d2) / 2), "middle" == this.valign && (o3 = 0), "top" == this.valign && (o3 = -(i3 - d2) / 2), "left" == this.align && (l2 = 0), "center" == this.align && (l2 = (e4 - u2) / 2), "right" == this.align && (l2 = e4 - u2), this.slices.template.dx = h2 * u2, this.alignLabels && (this.slicesContainer.dy = o3)), this.slicesContainer.x = l2, this.labelsContainer.x = l2, this.ticksContainer.x = l2, this.slicesContainer.y = o3, this.labelsContainer.y = o3, this.ticksContainer.y = o3, u2 > 0 && d2 > 0 && (this.slicesContainer.mask = n3);
  20858. }, e3.prototype.applyInternalDefaults = function() {
  20859. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Pyramid Series"));
  20860. }, e3.prototype.createDataItem = function() {
  20861. return new nu();
  20862. }, Object.defineProperty(e3.prototype, "maskSprite", { get: function() {
  20863. return this._maskSprite;
  20864. }, enumerable: true, configurable: true }), e3.prototype.initSlice = function(e4) {
  20865. t2.prototype.initSlice.call(this, e4);
  20866. var i3 = e4.states.getKey("hover");
  20867. i3 && (i3.properties.expandDistance = 0);
  20868. }, Object.defineProperty(e3.prototype, "startLocation", { get: function() {
  20869. return this.getPropertyValue("startLocation");
  20870. }, set: function(t3) {
  20871. this.setPropertyValue("startLocation", t3) && this.invalidateDataItems();
  20872. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLocation", { get: function() {
  20873. return this.getPropertyValue("endLocation");
  20874. }, set: function(t3) {
  20875. this.setPropertyValue("endLocation", t3) && this.invalidateDataItems();
  20876. }, enumerable: true, configurable: true }), e3;
  20877. }(iu);
  20878. Ii.registeredClasses.PictorialStackedSeries = ru, Ii.registeredClasses.PictorialStackedSeriesDataItem = nu;
  20879. var su = function(t2) {
  20880. function e3() {
  20881. var e4 = t2.call(this) || this;
  20882. return e4.className = "ConeColumn", e4;
  20883. }
  20884. return C(e3, t2), e3.prototype.createAssets = function() {
  20885. this.coneColumn = this.createChild(ml), this.coneColumn.shouldClone = false, this.column = this.coneColumn;
  20886. }, e3.prototype.copyFrom = function(e4) {
  20887. t2.prototype.copyFrom.call(this, e4), this.coneColumn && this.coneColumn.copyFrom(e4.coneColumn);
  20888. }, e3;
  20889. }(Cp);
  20890. Ii.registeredClasses.ConeColumn = su;
  20891. var au = function(t2) {
  20892. function e3() {
  20893. var e4 = t2.call(this) || this;
  20894. return e4.className = "ConeSeriesDataItem", e4.applyTheme(), e4;
  20895. }
  20896. return C(e3, t2), e3;
  20897. }(Op), ou = function(t2) {
  20898. function e3() {
  20899. var e4 = t2.call(this) || this;
  20900. return e4.className = "ConeSeries", e4.applyTheme(), e4;
  20901. }
  20902. return C(e3, t2), e3.prototype.createColumnTemplate = function() {
  20903. return new su();
  20904. }, e3.prototype.getMaskPath = function() {
  20905. var t3 = 0, e4 = 0, i3 = this.columns.getIndex(0);
  20906. if (i3)
  20907. return this.baseAxis == this.xAxis ? e4 = i3.coneColumn.innerWidth / 2 + 1 : t3 = i3.coneColumn.innerHeight / 2 + 1, Vo({ x: -t3, y: 0, width: this.xAxis.axisLength + t3, height: this.yAxis.axisLength + e4 });
  20908. }, e3.prototype.validateDataElementReal = function(e4) {
  20909. if (t2.prototype.validateDataElementReal.call(this, e4), e4.column) {
  20910. var i3 = e4.column.coneColumn;
  20911. i3.fill = e4.column.fill, this.baseAxis == this.yAxis ? i3.orientation = "horizontal" : i3.orientation = "vertical";
  20912. }
  20913. }, e3;
  20914. }(Sp);
  20915. Ii.registeredClasses.ConeSeries = ou, Ii.registeredClasses.ConeSeriesDataItem = au;
  20916. var lu = function(t2) {
  20917. function e3() {
  20918. var e4 = t2.call(this) || this;
  20919. return e4.className = "CurvedColumn", e4;
  20920. }
  20921. return C(e3, t2), e3.prototype.createAssets = function() {
  20922. this.curvedColumn = this.createChild(Za), this.curvedColumn.shouldClone = false, this.setPropertyValue("tension", 0.7), this.width = V(120), this.height = V(120), this.column = this.curvedColumn;
  20923. }, e3.prototype.draw = function() {
  20924. t2.prototype.draw.call(this);
  20925. var e4, i3 = this.realWidth, n3 = this.realHeight, r3 = this.realX - this.pixelX, s2 = this.realY - this.pixelY;
  20926. this.width;
  20927. var a2 = 1, o3 = 1;
  20928. "vertical" == this.orientation ? (a2 = this.tension, e4 = [{ x: 0, y: n3 + s2 }, { x: i3 / 2, y: s2 }, { x: i3, y: n3 + s2 }]) : (o3 = this.tension, e4 = [{ x: r3, y: n3 = Math.abs(n3) }, { x: r3 + i3, y: n3 / 2 }, { x: r3, y: 0 }]);
  20929. var l2 = wo(e4[0]) + new tl(a2, o3).smooth(e4);
  20930. this.column.path = l2;
  20931. }, e3.prototype.copyFrom = function(e4) {
  20932. t2.prototype.copyFrom.call(this, e4), this.curvedColumn && this.curvedColumn.copyFrom(e4.curvedColumn);
  20933. }, Object.defineProperty(e3.prototype, "tension", { get: function() {
  20934. return this.getPropertyValue("tension");
  20935. }, set: function(t3) {
  20936. this.setPropertyValue("tension", t3, true);
  20937. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  20938. return this.getPropertyValue("orientation");
  20939. }, set: function(t3) {
  20940. this.setPropertyValue("orientation", t3, true);
  20941. }, enumerable: true, configurable: true }), e3;
  20942. }(Cp);
  20943. Ii.registeredClasses.CurvedColumn = lu;
  20944. var hu = function(t2) {
  20945. function e3() {
  20946. var e4 = t2.call(this) || this;
  20947. return e4.className = "CurvedColumnSeriesDataItem", e4.applyTheme(), e4;
  20948. }
  20949. return C(e3, t2), e3;
  20950. }(Op), pu = function(t2) {
  20951. function e3() {
  20952. var e4 = t2.call(this) || this;
  20953. return e4.className = "CurvedColumnSeries", e4.applyTheme(), e4;
  20954. }
  20955. return C(e3, t2), e3.prototype.createColumnTemplate = function() {
  20956. return new lu();
  20957. }, e3.prototype.validateDataElementReal = function(e4) {
  20958. t2.prototype.validateDataElementReal.call(this, e4);
  20959. var i3 = e4.column;
  20960. (i3 = e4.column) && (e4.column.curvedColumn.fill = e4.column.fill, this.baseAxis == this.yAxis ? i3.orientation = "horizontal" : i3.orientation = "vertical");
  20961. }, e3;
  20962. }(Sp);
  20963. Ii.registeredClasses.CurvedColumnSeries = pu, Ii.registeredClasses.CurvedColumnSeriesDataItem = hu;
  20964. var uu = function(t2) {
  20965. function e3() {
  20966. var e4 = t2.call(this) || this;
  20967. e4.className = "CircleBullet";
  20968. var i3 = e4.createChild(yo);
  20969. return i3.shouldClone = false, i3.radius = 5, i3.isMeasured = false, e4.circle = i3, e4.applyTheme(), e4;
  20970. }
  20971. return C(e3, t2), e3.prototype.copyFrom = function(e4) {
  20972. t2.prototype.copyFrom.call(this, e4), this.circle.copyFrom(e4.circle);
  20973. }, e3;
  20974. }(ql);
  20975. Ii.registeredClasses.CircleBullet = uu;
  20976. var du = function(t2) {
  20977. function e3() {
  20978. var e4 = t2.call(this) || this;
  20979. return e4.className = "ErrorBullet", e4.errorLine = e4.createChild(Za), e4.errorLine.shouldClone = false, e4.width = 20, e4.height = 20, e4.strokeOpacity = 1, e4.isDynamic = true, e4;
  20980. }
  20981. return C(e3, t2), e3.prototype.validatePosition = function() {
  20982. t2.prototype.validatePosition.call(this);
  20983. var e4 = this.pixelWidth / 2, i3 = this.pixelHeight / 2;
  20984. this.errorLine.path = wo({ x: -e4, y: -i3 }) + Co({ x: e4, y: -i3 }) + wo({ x: 0, y: -i3 }) + Co({ x: 0, y: i3 }) + wo({ x: -e4, y: i3 }) + Co({ x: e4, y: i3 });
  20985. }, e3.prototype.copyFrom = function(e4) {
  20986. t2.prototype.copyFrom.call(this, e4), this.errorLine.copyFrom(e4.errorLine);
  20987. }, e3;
  20988. }(ql);
  20989. Ii.registeredClasses.ErrorBullet = du;
  20990. var cu = function(t2) {
  20991. function e3() {
  20992. var e4 = t2.call(this) || this;
  20993. return e4.className = "NavigationBarDataItem", e4.applyTheme(), e4;
  20994. }
  20995. return C(e3, t2), Object.defineProperty(e3.prototype, "name", { get: function() {
  20996. return this.properties.name;
  20997. }, set: function(t3) {
  20998. this.setProperty("name", t3);
  20999. }, enumerable: true, configurable: true }), e3;
  21000. }(po), fu = function(t2) {
  21001. function e3() {
  21002. var e4 = t2.call(this) || this;
  21003. e4.className = "NavigationBar";
  21004. var i3 = new Ys(), n3 = new Ko();
  21005. n3.valign = "middle", n3.paddingTop = 8, n3.paddingBottom = 8, e4.paddingBottom = 2, e4.links = new Mi(n3), e4._disposers.push(new Ai(e4.links)), e4._disposers.push(n3), e4._linksIterator = new mi(e4.links, function() {
  21006. return e4.links.create();
  21007. }), e4._linksIterator.createNewItems = true;
  21008. var r3 = new Qo();
  21009. r3.direction = "right", r3.width = 8, r3.height = 12, r3.fill = i3.getFor("alternativeBackground"), r3.fillOpacity = 0.5, r3.valign = "middle", r3.marginLeft = 10, r3.marginRight = 10, e4.separators = new Mi(r3), e4._disposers.push(new Ai(e4.separators)), e4._disposers.push(r3);
  21010. var s2 = new Ko();
  21011. return e4.activeLink = s2, s2.copyFrom(n3), s2.valign = "middle", s2.fontWeight = "bold", e4.width = V(100), e4.layout = "grid", e4.dataFields.name = "name", e4.applyTheme(), e4;
  21012. }
  21013. return C(e3, t2), e3.prototype.validateDataElements = function() {
  21014. this.removeChildren(), this._linksIterator.reset(), t2.prototype.validateDataElements.call(this);
  21015. }, e3.prototype.validateDataElement = function(e4) {
  21016. var i3;
  21017. if (t2.prototype.validateDataElement.call(this, e4), e4.index < this.dataItems.length - 1) {
  21018. (i3 = this._linksIterator.getLast()).parent = this;
  21019. var n3 = this.separators.create();
  21020. n3.parent = this, n3.valign = "middle";
  21021. } else
  21022. (i3 = this.activeLink).events.copyFrom(this.links.template.events), i3.hide(0), i3.show(), i3.parent = this;
  21023. i3.dataItem = e4, i3.text = e4.name, i3.validate();
  21024. }, e3;
  21025. }(uo);
  21026. Ii.registeredClasses.NavigationBar = fu, Ii.registeredClasses.NavigationBarDataItem = cu;
  21027. var gu = function(t2) {
  21028. function e3() {
  21029. var e4 = t2.call(this) || this;
  21030. e4.point = { x: 0, y: 0 }, e4._stick = "none", e4.className = "Cursor", e4.width = V(100), e4.height = V(100), e4.shouldClone = false, e4.hide(0), e4.trackable = true, e4.clickable = true, e4.isMeasured = false;
  21031. var i3 = ua();
  21032. return e4._disposers.push(i3.body.events.on("down", e4.handleCursorDown, e4)), e4._disposers.push(i3.body.events.on("up", e4.handleCursorUp, e4)), e4._disposers.push(i3.body.events.on("track", e4.handleCursorMove, e4)), e4.applyTheme(), e4;
  21033. }
  21034. return C(e3, t2), e3.prototype.handleCursorMove = function(t3) {
  21035. if (!(!this.interactionsEnabled || this.interactions.isTouchProtected && t3.touch)) {
  21036. if (("zoom" == this._generalBehavior || "pan" == this._generalBehavior) && this.downPoint || ua().isLocalElement(t3.pointer, this.paper.svg, this.uid)) {
  21037. var e4 = mr(t3.pointer.point, this);
  21038. return "hard" == this._stick && this._stickPoint && (e4 = this._stickPoint), "soft" == this._stick && this._stickPoint && (this.fitsToBounds(e4) || (e4 = this._stickPoint)), this._adapterO && this._adapterO.apply("cursorPoint", e4), this.triggerMove(e4), e4;
  21039. }
  21040. this.isHidden && this.isHiding || this.hide();
  21041. }
  21042. }, e3.prototype.hideReal = function(e4) {
  21043. if ("hard" != this._stick && "soft" != this._stick || !this._stickPoint)
  21044. return t2.prototype.hideReal.call(this, e4);
  21045. }, e3.prototype.triggerMove = function(t3, e4, i3) {
  21046. t3.x = lt(t3.x, 1), t3.y = lt(t3.y, 1), e4 && (this._stick = e4), "hard" != e4 && "soft" != e4 || (this._stickPoint = t3), this.triggerMoveReal(t3, i3);
  21047. }, e3.prototype.triggerMoveReal = function(t3, e4) {
  21048. (this.point.x != t3.x || this.point.y != t3.y || e4) && (this.point = t3, this.invalidatePosition(), this.fitsToBounds(t3) ? this.show(0) : this.downPoint || this.hide(0), this.visible && (this.getPositions(), this.dispatch("cursorpositionchanged")));
  21049. }, e3.prototype.triggerDown = function(t3) {
  21050. this.triggerDownReal(t3);
  21051. }, e3.prototype.triggerDownReal = function(t3) {
  21052. switch (this._generalBehavior) {
  21053. case "zoom":
  21054. this.dispatchImmediately("zoomstarted");
  21055. break;
  21056. case "select":
  21057. this.dispatchImmediately("selectstarted");
  21058. break;
  21059. case "pan":
  21060. this.dispatchImmediately("panstarted"), ua().setGlobalStyle(Ia.grabbing);
  21061. }
  21062. }, e3.prototype.triggerUp = function(t3) {
  21063. this.triggerUpReal(t3);
  21064. }, e3.prototype.triggerUpReal = function(t3) {
  21065. Qa.requestFrame(), this.updatePoint(this.upPoint);
  21066. var e4 = ua();
  21067. if (_t(this._upPointOrig, this._downPointOrig) > e4.getHitOption(this.interactions, "hitTolerance")) {
  21068. switch (this._generalBehavior) {
  21069. case "zoom":
  21070. this.dispatch("zoomended");
  21071. break;
  21072. case "select":
  21073. this.dispatch("selectended");
  21074. break;
  21075. case "pan":
  21076. this.dispatch("panended"), e4.setGlobalStyle(Ia.default);
  21077. }
  21078. this.downPoint = void 0, this.updateSelection();
  21079. }
  21080. }, e3.prototype.updateSelection = function() {
  21081. }, e3.prototype.getPositions = function() {
  21082. this.xPosition = this.point.x / this.innerWidth, this.yPosition = 1 - this.point.y / this.innerHeight;
  21083. }, e3.prototype.handleCursorDown = function(t3) {
  21084. if (!(!this.interactionsEnabled || this.interactions.isTouchProtected && t3.touch) && ua().isLocalElement(t3.pointer, this.paper.svg, this.uid)) {
  21085. Ss();
  21086. var e4 = mr(t3.pointer.point, this);
  21087. "hard" == this._stick && this._stickPoint && (e4 = this._stickPoint), this._adapterO && this._adapterO.apply("cursorPoint", e4), this.fitsToBounds(e4) && (this._downPointOrig = { x: e4.x, y: e4.y }, t3.event.cancelable && this.shouldPreventGestures(t3.touch) && this.fitsToBounds(e4) && t3.event.preventDefault(), this.triggerMove(e4), this.triggerDown(e4));
  21088. }
  21089. }, e3.prototype.shouldPreventGestures = function(t3) {
  21090. return true;
  21091. }, e3.prototype.updatePoint = function(t3) {
  21092. }, e3.prototype.handleCursorUp = function(t3) {
  21093. if (this.interactionsEnabled && (this.downPoint || ua().isLocalElement(t3.pointer, this.paper.svg, this.uid))) {
  21094. var e4 = mr(t3.pointer.point, this);
  21095. this._adapterO && this._adapterO.apply("cursorPoint", e4), this.downPoint && this.fitsToBounds(this.downPoint) && ("hard" == this._stick && this._stickPoint && (e4 = this._stickPoint), this._upPointOrig = { x: e4.x, y: e4.y }, this.triggerMove(e4), this.triggerUp(e4));
  21096. }
  21097. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  21098. return this._chart;
  21099. }, set: function(t3) {
  21100. this._chart = t3, Z(this._chart.plotContainer) && ua().lockElement(this._chart.plotContainer.interactions);
  21101. }, enumerable: true, configurable: true }), e3;
  21102. }($a);
  21103. Ii.registeredClasses.Cursor = gu;
  21104. var yu = function(t2) {
  21105. function e3() {
  21106. var e4 = t2.call(this) || this;
  21107. e4._lineX = new ve(), e4._lineY = new ve(), e4._xAxis = new ve(), e4._yAxis = new ve(), e4._snapToDisposers = [], e4.className = "XYCursor", e4.behavior = "zoomX", e4.maxPanOut = 0.1;
  21108. var i3 = new Ys();
  21109. e4.snapOnPan = true;
  21110. var n3 = e4.createChild(Za);
  21111. n3.shouldClone = false, n3.fillOpacity = 0.2, n3.fill = i3.getFor("alternativeBackground"), n3.isMeasured = false, n3.visible = false, n3.interactionsEnabled = false, e4.selection = n3, e4._disposers.push(e4.selection);
  21112. var r3 = e4.createChild(Za);
  21113. r3.shouldClone = false, r3.stroke = i3.getFor("grid"), r3.fill = dn(), r3.strokeDasharray = "3,3", r3.isMeasured = false, r3.strokeOpacity = 0.4, r3.interactionsEnabled = false, r3.y = 0, e4.lineX = r3, e4._disposers.push(e4.lineX);
  21114. var s2 = e4.createChild(Za);
  21115. return s2.shouldClone = false, s2.stroke = i3.getFor("grid"), s2.fill = dn(), s2.strokeDasharray = "3,3", s2.isMeasured = false, s2.strokeOpacity = 0.4, s2.interactionsEnabled = false, s2.x = 0, e4.lineY = s2, e4._disposers.push(e4.lineY), e4.events.on("sizechanged", e4.updateSize, e4, false), e4._disposers.push(e4._lineX), e4._disposers.push(e4._lineY), e4._disposers.push(e4._xAxis), e4._disposers.push(e4._yAxis), e4.mask = e4, e4.hideSeriesTooltipsOnSelection = true, e4.applyTheme(), e4;
  21116. }
  21117. return C(e3, t2), e3.prototype.updateSize = function() {
  21118. this.lineX && (this.lineX.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: this.innerHeight })), this.lineY && (this.lineY.path = wo({ x: 0, y: 0 }) + Co({ x: this.innerWidth, y: 0 }));
  21119. }, e3.prototype.updateSelection = function() {
  21120. if (this._usesSelection) {
  21121. var t3 = this.downPoint, e4 = this.behavior;
  21122. if (t3) {
  21123. var i3 = this.point;
  21124. this.lineX && (i3.x = this.lineX.pixelX), this.lineY && (i3.y = this.lineY.pixelY);
  21125. var n3 = this.selection, r3 = Math.min(i3.x, t3.x), s2 = Math.min(i3.y, t3.y), a2 = lt(Math.abs(t3.x - i3.x), this._positionPrecision), o3 = lt(Math.abs(t3.y - i3.y), this._positionPrecision);
  21126. switch (e4) {
  21127. case "zoomX":
  21128. case "selectX":
  21129. s2 = 0, o3 = this.pixelHeight;
  21130. break;
  21131. case "zoomY":
  21132. case "selectY":
  21133. r3 = 0, a2 = this.pixelWidth;
  21134. }
  21135. n3.x = r3, n3.y = s2, n3.path = Ao(a2, o3), n3.validatePosition();
  21136. } else
  21137. "select" != this._generalBehavior && this.selection.hide();
  21138. }
  21139. }, e3.prototype.fixPoint = function(t3) {
  21140. return t3.x = Math.max(0, t3.x), t3.y = Math.max(0, t3.y), t3.x = Math.min(this.pixelWidth, t3.x), t3.y = Math.min(this.pixelHeight, t3.y), t3;
  21141. }, e3.prototype.triggerMoveReal = function(e4, i3) {
  21142. t2.prototype.triggerMoveReal.call(this, e4, i3);
  21143. var n3 = this.snapToSeries;
  21144. if (n3 && !this.downPoint)
  21145. if (n3 instanceof Dh)
  21146. n3.isHidden && this.updateLinePositions(e4);
  21147. else {
  21148. var r3 = true;
  21149. Ut(n3, function(t3) {
  21150. t3.isHidden || (r3 = false);
  21151. }), r3 && this.updateLinePositions(e4);
  21152. }
  21153. else
  21154. this.updateLinePositions(e4);
  21155. this.downPoint && _t(this.downPoint, e4) > 3 && "pan" == this._generalBehavior && (this.getPanningRanges(), this.dispatch("panning"));
  21156. }, e3.prototype.updateLinePositions = function(t3) {
  21157. t3 = this.fixPoint(this.point), this.lineX && this.lineX.visible && !this.xAxis && (this.lineX.x = t3.x), this.lineY && this.lineY.visible && !this.yAxis && (this.lineY.y = t3.y), this.updateSelection();
  21158. }, e3.prototype.triggerDownReal = function(e4) {
  21159. if (this.visible && !this.isHiding)
  21160. if ("select" == this._generalBehavior && (this.selection.parent = this.parent), this.fitsToBounds(e4)) {
  21161. this.downPoint = { x: e4.x, y: e4.y }, this.updatePoint(e4), this.point.x = this.downPoint.x, this.point.y = this.downPoint.y;
  21162. var i3 = this.selection, n3 = this.downPoint.x, r3 = this.downPoint.y;
  21163. this._usesSelection && (i3.x = n3, i3.y = r3, i3.path = "", i3.show()), t2.prototype.triggerDownReal.call(this, e4);
  21164. } else
  21165. this.downPoint = void 0;
  21166. else
  21167. this.downPoint = void 0;
  21168. }, e3.prototype.updatePoint = function(t3) {
  21169. this.lineX && (t3.x = this.lineX.pixelX), this.lineY && (t3.y = this.lineY.pixelY);
  21170. }, e3.prototype.triggerUpReal = function(e4) {
  21171. this.hasMoved() ? this.downPoint && (this.upPoint = e4, this.updatePoint(this.upPoint), "pan" != this._generalBehavior && this.getRanges(), "select" != this._generalBehavior && this.selection.hide(), t2.prototype.triggerUpReal.call(this, e4)) : ("select" != this._generalBehavior ? this.selection.hide(0) : (this.xRange = void 0, this.yRange = void 0, this.dispatchImmediately("selectended")), "pan" == this._generalBehavior && ua().setGlobalStyle(Ia.default), this.dispatchImmediately("behaviorcanceled")), this.downPoint = void 0, this.dispatch("cursorpositionchanged");
  21172. }, e3.prototype.hasMoved = function() {
  21173. return ("zoomX" == this.behavior || "panX" == this.behavior ? Pt(this._upPointOrig, this._downPointOrig) : "zoomY" == this.behavior || "panY" == this.behavior ? wt(this._upPointOrig, this._downPointOrig) : _t(this._upPointOrig, this._downPointOrig)) > ua().getHitOption(this.interactions, "hitTolerance");
  21174. }, e3.prototype.getPanningRanges = function() {
  21175. var t3 = lt(this.downPoint.x / this.innerWidth, 5), e4 = 1 - lt(this.downPoint.y / this.innerHeight, 5), i3 = t3 - lt(this.point.x / this.innerWidth, 5), n3 = e4 - (1 - lt(this.point.y / this.innerHeight, 5));
  21176. this.xRange = { start: i3, end: 1 + i3 }, this.yRange = { start: n3, end: 1 + n3 }, "panX" == this.behavior && (this.yRange.start = 0, this.yRange.end = 1), "panY" == this.behavior && (this.xRange.start = 0, this.xRange.end = 1);
  21177. }, e3.prototype.getRanges = function() {
  21178. this.lineX && (this.upPoint.x = this.lineX.pixelX), this.lineY && (this.upPoint.y = this.lineY.pixelY), this.selection;
  21179. var t3 = lt(this.downPoint.x / this.innerWidth, 5), e4 = lt(this.upPoint.x / this.innerWidth, 5), i3 = 1 - lt(this.downPoint.y / this.innerHeight, 5), n3 = 1 - lt(this.upPoint.y / this.innerHeight, 5);
  21180. this.xRange = { start: yt(t3, e4), end: gt(t3, e4) }, this.yRange = { start: yt(i3, n3), end: gt(i3, n3) };
  21181. }, Object.defineProperty(e3.prototype, "behavior", { get: function() {
  21182. return this.getPropertyValue("behavior");
  21183. }, set: function(t3) {
  21184. this.setPropertyValue("behavior", t3, true), this._usesSelection = false, -1 != t3.indexOf("zoom") && (this._generalBehavior = "zoom", this._usesSelection = true), -1 != t3.indexOf("select") && (this._generalBehavior = "select", this._usesSelection = true), -1 != t3.indexOf("pan") && (this._generalBehavior = "pan", this._usesSelection = false);
  21185. }, enumerable: true, configurable: true }), e3.prototype.shouldPreventGestures = function(t3) {
  21186. return !(this.interactions.isTouchProtected && t3 || "none" == this.behavior);
  21187. }, Object.defineProperty(e3.prototype, "fullWidthLineX", { get: function() {
  21188. return this.getPropertyValue("fullWidthLineX");
  21189. }, set: function(t3) {
  21190. this.setPropertyValue("fullWidthLineX", t3), t3 || this.updateSize();
  21191. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fullWidthLineY", { get: function() {
  21192. return this.getPropertyValue("fullWidthLineY");
  21193. }, set: function(t3) {
  21194. this.setPropertyValue("fullWidthLineY", t3), t3 || this.updateSize();
  21195. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hideSeriesTooltipsOnSelection", { get: function() {
  21196. return this.getPropertyValue("hideSeriesTooltipsOnSelection");
  21197. }, set: function(t3) {
  21198. this.setPropertyValue("hideSeriesTooltipsOnSelection", t3);
  21199. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxTooltipDistance", { get: function() {
  21200. return this.getPropertyValue("maxTooltipDistance");
  21201. }, set: function(t3) {
  21202. this.setPropertyValue("maxTooltipDistance", t3);
  21203. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxPanOut", { get: function() {
  21204. return this.getPropertyValue("maxPanOut");
  21205. }, set: function(t3) {
  21206. this.setPropertyValue("maxPanOut", t3);
  21207. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xAxis", { get: function() {
  21208. return this._xAxis.get();
  21209. }, set: function(t3) {
  21210. var e4 = this;
  21211. this._xAxis.get() != t3 && this._xAxis.set(t3, new me([t3.tooltip.events.on("positionchanged", this.handleXTooltipPosition, this, false), t3.events.on("rangechangestarted", function(t4) {
  21212. e4.hide(0), e4.preventShow = true;
  21213. }, void 0, false), t3.events.on("rangechangeended", function(t4) {
  21214. e4.preventShow = false, e4.hide(0), e4.dispatch("cursorpositionchanged");
  21215. }, void 0, false)]));
  21216. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yAxis", { get: function() {
  21217. return this._yAxis.get();
  21218. }, set: function(t3) {
  21219. var e4 = this;
  21220. this._yAxis.get() != t3 && this._yAxis.set(t3, new me([t3.tooltip.events.on("positionchanged", this.handleYTooltipPosition, this, false), t3.events.on("rangechangestarted", function(t4) {
  21221. e4.hide(0), e4.__disabled = true;
  21222. }, void 0, false), t3.events.on("rangechangeended", function(t4) {
  21223. e4.__disabled = false, e4.hide(0), e4.dispatch("cursorpositionchanged");
  21224. }, void 0, false)]));
  21225. }, enumerable: true, configurable: true }), e3.prototype.handleXTooltipPosition = function(t3) {
  21226. var e4 = this.xAxis.tooltip, i3 = pr({ x: e4.pixelX, y: e4.pixelY }, this), n3 = i3.x;
  21227. if (i3.y = 1, this.lineX && (this.lineX.x = n3, this.fitsToBounds(i3) || this.hide()), this.xAxis && this.fullWidthLineX) {
  21228. var r3 = this.xAxis.currentItemStartPoint, s2 = this.xAxis.currentItemEndPoint;
  21229. if (r3 && s2) {
  21230. this.lineX.x = n3;
  21231. var a2 = s2.x - r3.x;
  21232. this.lineX.path = Ao(a2, this.innerHeight, -a2 / 2);
  21233. }
  21234. }
  21235. }, e3.prototype.handleYTooltipPosition = function(t3) {
  21236. var e4 = this.yAxis.tooltip, i3 = pr({ x: e4.pixelX, y: e4.pixelY }, this), n3 = i3.y;
  21237. if (i3.x = 1, this.lineY && (this.lineY.y = n3, this.fitsToBounds(i3) || this.hide()), this.yAxis && this.fullWidthLineY) {
  21238. var r3 = this.yAxis.currentItemStartPoint, s2 = this.yAxis.currentItemEndPoint;
  21239. if (r3 && s2) {
  21240. this.lineY.y = n3;
  21241. var a2 = s2.y - r3.y;
  21242. this.lineY.path = Ao(this.innerWidth, a2, 0, -a2 / 2);
  21243. }
  21244. }
  21245. }, Object.defineProperty(e3.prototype, "lineX", { get: function() {
  21246. return this._lineX.get();
  21247. }, set: function(t3) {
  21248. t3 ? (t3.setElement(this.paper.add("path")), this._lineX.set(t3, t3.events.on("positionchanged", this.updateSelection, this, false)), t3.interactionsEnabled = false, t3.parent = this) : this._lineX.reset();
  21249. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "lineY", { get: function() {
  21250. return this._lineY.get();
  21251. }, set: function(t3) {
  21252. t3 ? (t3.setElement(this.paper.add("path")), this._lineY.set(t3, t3.events.on("positionchanged", this.updateSelection, this, false)), t3.parent = this, t3.interactionsEnabled = false) : this._lineY.reset();
  21253. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "selection", { get: function() {
  21254. return this._selection;
  21255. }, set: function(t3) {
  21256. this._selection = t3, t3 && (t3.element = this.paper.add("path"), t3.parent = this);
  21257. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  21258. var i3 = this;
  21259. if (e4 && (Z(e4.xAxis) && Q(e4.xAxis) && (this.map.hasKey(e4.xAxis) ? e4.xAxis = this.map.getKey(e4.xAxis) : (this.processingErrors.push('[XYCursor] No axis with id "' + e4.xAxis + '" found for `xAxis`'), delete e4.xAxis)), Z(e4.yAxis) && Q(e4.yAxis) && (this.map.hasKey(e4.yAxis) ? e4.yAxis = this.map.getKey(e4.yAxis) : (this.processingErrors.push('[XYCursor] No axis with id "' + e4.yAxis + '" found for `yAxis`'), delete e4.yAxis)), Z(e4.snapToSeries))) {
  21260. var n3 = it(e4.snapToSeries) ? e4.snapToSeries : [e4.snapToSeries], r3 = false;
  21261. Ut(n3, function(t3, e5) {
  21262. Q(t3) && (i3.map.hasKey(t3) ? n3[e5] = i3.map.getKey(t3) : (i3.processingErrors.push('[XYCursor] No series with id "' + t3 + '" found for `series`'), r3 = true));
  21263. }), r3 ? delete e4.snapToSeries : e4.snapToSeries = n3;
  21264. }
  21265. t2.prototype.processConfig.call(this, e4);
  21266. }, Object.defineProperty(e3.prototype, "snapToSeries", { get: function() {
  21267. return this.getPropertyValue("snapToSeries");
  21268. }, set: function(t3) {
  21269. var e4 = this;
  21270. this.setPropertyValue("snapToSeries", t3) && (t3 instanceof Dh && (t3 = [t3]), this._snapToDisposers && Ut(this._snapToDisposers, function(t4) {
  21271. t4.dispose();
  21272. }), this._snapToDisposers = [], t3 && Ut(t3, function(t4) {
  21273. e4._snapToDisposers.push(t4.events.on("tooltipshownat", function() {
  21274. e4.handleSnap(t4);
  21275. }, void 0, false));
  21276. }));
  21277. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "snapOnPan", { get: function() {
  21278. return this.getPropertyValue("snapOnPan");
  21279. }, set: function(t3) {
  21280. this.setPropertyValue("snapOnPan", t3);
  21281. }, enumerable: true, configurable: true }), e3.prototype.handleSnap = function(t3) {
  21282. if (!this.downPoint) {
  21283. var e4 = t3.getTooltipX() + t3.xAxis.pixelX, i3 = t3.getTooltipY() + t3.yAxis.pixelY, n3 = t3.xAxis, r3 = t3.yAxis;
  21284. n3 && n3.renderer.opposite && (i3 -= this.pixelHeight), this.point = { x: e4, y: i3 }, this.getPositions();
  21285. var s2 = e4, a2 = i3;
  21286. e4 -= this.pixelWidth, r3 && r3.renderer.opposite && (e4 += this.pixelWidth);
  21287. var o3 = t3.tooltip, l2 = o3.animationDuration, h2 = o3.animationEasing;
  21288. n3 instanceof bh && !(n3 instanceof Ph) && r3 instanceof bh && !(r3 instanceof Ph) ? (t3.yAxis.showTooltipAtPosition(this.yPosition), t3.xAxis.showTooltipAtPosition(this.xPosition)) : (t3.baseAxis == t3.xAxis && t3.yAxis.showTooltipAtPosition(this.yPosition), t3.baseAxis == t3.yAxis && t3.xAxis.showTooltipAtPosition(this.xPosition)), this.lineY.x = e4, this.lineX.y = i3, this.xAxis || this.lineX.animate([{ property: "x", to: s2 }], l2, h2), this.yAxis || this.lineY.animate([{ property: "y", to: a2 }], l2, h2);
  21289. }
  21290. }, e3.prototype.dispose = function() {
  21291. this.hide(0), t2.prototype.dispose.call(this);
  21292. }, e3;
  21293. }(gu);
  21294. Ii.registeredClasses.XYCursor = yu;
  21295. var mu = function(t2) {
  21296. function e3() {
  21297. var e4 = t2.call(this) || this;
  21298. return e4.className = "RadarCursor", e4.radius = V(100), e4.innerRadius = V(0), e4.applyTheme(), e4.mask = void 0, e4;
  21299. }
  21300. return C(e3, t2), e3.prototype.fitsToBounds = function(t3) {
  21301. var e4 = _t(t3);
  21302. return e4 < this.truePixelRadius + 1 && e4 > this.pixelInnerRadius - 1;
  21303. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  21304. return this.getPropertyValue("startAngle");
  21305. }, set: function(t3) {
  21306. this.setPropertyValue("startAngle", t3, true);
  21307. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  21308. return this.getPropertyValue("endAngle");
  21309. }, set: function(t3) {
  21310. this.setPropertyValue("endAngle", t3, true);
  21311. }, enumerable: true, configurable: true }), e3.prototype.triggerMoveReal = function(e4, i3) {
  21312. this.xAxis && (!this.xAxis || this.xAxis.cursorTooltipEnabled && !this.xAxis.tooltip.disabled) || this.updateLineX(this.point), this.yAxis && (!this.yAxis || this.yAxis.cursorTooltipEnabled && !this.yAxis.tooltip.disabled) || this.updateLineY(this.point), this.updateSelection(), t2.prototype.triggerMoveReal.call(this, e4, i3);
  21313. }, e3.prototype.updateLineX = function(t3) {
  21314. var e4 = this.pixelRadius, i3 = this.startAngle, n3 = this.endAngle, r3 = this.pixelInnerRadius;
  21315. if (e4 > 0 && tt(i3) && tt(n3) && tt(r3)) {
  21316. var s2 = Rt(Dt(t3), i3, n3), a2 = void 0;
  21317. if (this.lineX && this.lineX.visible) {
  21318. if (this.lineX.moveTo({ x: 0, y: 0 }), this.xAxis && this.fullWidthLineX) {
  21319. var o3 = this.xAxis.currentItemStartPoint, l2 = this.xAxis.currentItemEndPoint;
  21320. if (o3 && l2) {
  21321. var h2 = Rt(Dt(o3), i3, n3), p2 = Rt(Dt(l2), i3, n3) - h2;
  21322. i3 < n3 ? p2 < 0 && (p2 += 360) : p2 > 0 && (p2 -= 360), a2 = wo({ x: r3 * ft(s2 -= p2 / 2), y: r3 * dt(s2) }) + Co({ x: e4 * ft(s2), y: e4 * dt(s2) }) + Do(s2, p2, e4) + Co({ x: r3 * ft(s2 + p2), y: r3 * dt(s2 + p2) }) + Do(s2 + p2, -p2, r3);
  21323. }
  21324. }
  21325. a2 || (a2 = wo({ x: r3 * ft(s2), y: r3 * dt(s2) }) + Co({ x: e4 * ft(s2), y: e4 * dt(s2) })), this.lineX.path = a2;
  21326. }
  21327. }
  21328. }, e3.prototype.updateLineY = function(t3) {
  21329. if (this.lineY && this.lineY.visible) {
  21330. var e4 = this.startAngle, i3 = this.endAngle, n3 = this.truePixelRadius, r3 = ut(_t(t3), 0, this.truePixelRadius);
  21331. if (tt(r3) && tt(e4)) {
  21332. this.lineY.moveTo({ x: 0, y: 0 });
  21333. var s2 = void 0, a2 = i3 - e4;
  21334. if (this.yAxis && this.fullWidthLineY) {
  21335. var o3 = this.yAxis.currentItemStartPoint, l2 = this.yAxis.currentItemEndPoint;
  21336. if (o3 && l2) {
  21337. var h2 = ut(_t(o3), 0, n3);
  21338. s2 = wo({ x: (r3 = ut(_t(l2), 0, n3)) * ft(e4), y: r3 * dt(e4) }) + Do(e4, a2, r3), s2 += wo({ x: h2 * ft(i3), y: h2 * dt(i3) }) + Do(i3, -a2, h2);
  21339. }
  21340. }
  21341. s2 || (s2 = wo({ x: r3 * ft(e4), y: r3 * dt(e4) }) + Do(e4, i3 - e4, r3)), this.lineY.path = s2;
  21342. }
  21343. }
  21344. }, e3.prototype.updateSelection = function() {
  21345. if (this._usesSelection) {
  21346. var t3 = this.downPoint;
  21347. if (t3) {
  21348. var e4 = this.point, i3 = this.pixelRadius, n3 = this.truePixelRadius, r3 = this.pixelInnerRadius, s2 = Math.min(this.startAngle, this.endAngle), a2 = Math.max(this.startAngle, this.endAngle), o3 = Rt(Dt(t3), s2, a2), l2 = Rt(Dt(e4), s2, a2), h2 = _t(t3);
  21349. if (h2 < n3) {
  21350. var p2 = ut(_t(e4), 0, n3);
  21351. this._prevAngle = l2;
  21352. var u2 = wo({ x: 0, y: 0 }), d2 = dt(o3), c2 = ft(o3), f2 = dt(l2), g2 = ft(l2), y2 = this.behavior;
  21353. "zoomX" == y2 || "selectX" == y2 ? u2 += Co({ x: i3 * c2, y: i3 * d2 }) + Do(o3, l2 - o3, i3) + Co({ x: r3 * g2, y: r3 * f2 }) + Do(l2, o3 - l2, r3) : "zoomY" == y2 || "selectY" == y2 ? u2 = wo({ x: p2 * ft(s2), y: p2 * dt(s2) }) + Do(s2, a2 - s2, p2) + Co({ x: h2 * ft(a2), y: h2 * dt(a2) }) + Do(a2, s2 - a2, h2) + " Z" : "zoomXY" == y2 && (u2 = wo({ x: p2 * ft(o3), y: p2 * dt(o3) }) + Do(o3, l2 - o3, p2) + Co({ x: h2 * ft(l2), y: h2 * dt(l2) }) + Do(l2, o3 - l2, h2) + " Z"), this.selection.path = u2;
  21354. }
  21355. this.selection.moveTo({ x: 0, y: 0 });
  21356. }
  21357. }
  21358. }, e3.prototype.getPositions = function() {
  21359. if (this.chart) {
  21360. var t3 = this.pixelInnerRadius, e4 = this.truePixelRadius - t3, i3 = this.startAngle, n3 = this.endAngle, r3 = (Rt(Dt(this.point), i3, n3) - i3) / (n3 - i3);
  21361. this.xPosition = r3, this.yPosition = ut((_t(this.point) - t3) / e4, 0, 1);
  21362. }
  21363. }, e3.prototype.updatePoint = function(t3) {
  21364. }, e3.prototype.handleXTooltipPosition = function(t3) {
  21365. if (this.xAxis.cursorTooltipEnabled) {
  21366. var e4 = this.xAxis.tooltip;
  21367. this.updateLineX(pr({ x: e4.pixelX, y: e4.pixelY }, this));
  21368. }
  21369. }, e3.prototype.handleYTooltipPosition = function(t3) {
  21370. if (this.yAxis.cursorTooltipEnabled) {
  21371. var e4 = this.yAxis.tooltip;
  21372. this.updateLineY(pr({ x: e4.pixelX, y: e4.pixelY }, this));
  21373. }
  21374. }, e3.prototype.updateLinePositions = function(t3) {
  21375. }, e3.prototype.getRanges = function() {
  21376. var t3 = this.downPoint;
  21377. if (t3) {
  21378. var e4 = this.upPoint;
  21379. if (this.chart) {
  21380. var i3 = this.pixelRadius, n3 = this.startAngle, r3 = this.endAngle, s2 = Rt(Dt(t3), this.startAngle, this.endAngle), a2 = Rt(Dt(e4), this.startAngle, this.endAngle), o3 = ut(_t(t3), 0, i3), l2 = ut(_t(e4), 0, i3), h2 = 0, p2 = 1, u2 = 0, d2 = 1, c2 = this.behavior;
  21381. if ("zoomX" == c2 || "selectX" == c2 || "zoomXY" == c2 || "selectXY" == c2) {
  21382. var f2 = r3 - n3;
  21383. h2 = lt((s2 - n3) / f2, 5), p2 = lt((a2 - n3) / f2, 5);
  21384. }
  21385. "zoomY" != c2 && "selectY" != c2 && "zoomXY" != c2 && "selectXY" != c2 || (u2 = lt(o3 / i3, 5), d2 = lt(l2 / i3, 5)), this.xRange = { start: Math.min(h2, p2), end: Math.max(h2, p2) }, this.yRange = { start: Math.min(u2, d2), end: Math.max(u2, d2) }, "selectX" == this.behavior || "selectY" == this.behavior || "selectXY" == this.behavior || this.selection.hide();
  21386. }
  21387. }
  21388. }, e3.prototype.updateSize = function() {
  21389. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  21390. return this.getPropertyValue("radius");
  21391. }, set: function(t3) {
  21392. this.setPercentProperty("radius", t3, false, false, 10, false);
  21393. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  21394. return Fn(this.radius, this.truePixelRadius);
  21395. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "truePixelRadius", { get: function() {
  21396. return Vn(V(100), yt(this.innerWidth / 2, this.innerHeight / 2));
  21397. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  21398. return this.getPropertyValue("innerRadius");
  21399. }, set: function(t3) {
  21400. this.setPercentProperty("innerRadius", t3, false, false, 10, false);
  21401. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  21402. var t3 = this.innerRadius;
  21403. return t3 instanceof A && (t3 = V(100 * t3.value * this.chart.innerRadiusModifyer)), Fn(t3, this.truePixelRadius) || 0;
  21404. }, enumerable: true, configurable: true }), e3.prototype.fixPoint = function(t3) {
  21405. return t3;
  21406. }, e3;
  21407. }(yu);
  21408. Ii.registeredClasses.RadarCursor = mu;
  21409. const vu = function(t2) {
  21410. Di(t2, "SpriteState") && (t2.transitionDuration = 400), Di(t2, "Component") && (t2.rangeChangeDuration = 500, t2.interpolationDuration = 500, t2.sequencedInterpolation = false, Di(t2, "SankeyDiagram") && (t2.sequencedInterpolation = true), Di(t2, "FunnelSeries") && (t2.sequencedInterpolation = true)), Di(t2, "Chart") && (t2.defaultState.transitionDuration = 2e3, t2.hiddenState.transitionDuration = 1e3), Di(t2, "Tooltip") && (t2.animationDuration = 400, t2.defaultState.transitionDuration = 400, t2.hiddenState.transitionDuration = 400), Di(t2, "Scrollbar") && (t2.animationDuration = 500), Di(t2, "Series") && (t2.defaultState.transitionDuration = 1e3, t2.hiddenState.transitionDuration = 700, t2.hiddenState.properties.opacity = 1, t2.showOnInit = true), Di(t2, "MapSeries") && (t2.hiddenState.properties.opacity = 0), Di(t2, "PercentSeries") && (t2.hiddenState.properties.opacity = 0), Di(t2, "FunnelSlice") && (t2.defaultState.transitionDuration = 800, t2.hiddenState.transitionDuration = 1e3, t2.hiddenState.properties.opacity = 1), Di(t2, "Slice") && (t2.defaultState.transitionDuration = 700, t2.hiddenState.transitionDuration = 1e3, t2.hiddenState.properties.opacity = 1), Di(t2, "Preloader") && (t2.hiddenState.transitionDuration = 2e3), Di(t2, "Column") && (t2.defaultState.transitionDuration = 700, t2.hiddenState.transitionDuration = 1e3, t2.hiddenState.properties.opacity = 1), Di(t2, "Column3D") && (t2.hiddenState.properties.opacity = 0);
  21411. }, bu = function(t2) {
  21412. Di(t2, "InterfaceColorSet") && (t2.setFor("stroke", dn("#000000")), t2.setFor("fill", dn("#2b2b2b")), t2.setFor("primaryButton", dn("#6794dc").lighten(-0.2)), t2.setFor("primaryButtonHover", dn("#6771dc").lighten(-0.2)), t2.setFor("primaryButtonDown", dn("#68dc75").lighten(-0.2)), t2.setFor("primaryButtonActive", dn("#68dc75").lighten(-0.2)), t2.setFor("primaryButtonText", dn("#FFFFFF")), t2.setFor("primaryButtonStroke", dn("#6794dc")), t2.setFor("secondaryButton", dn("#3b3b3b")), t2.setFor("secondaryButtonHover", dn("#3b3b3b").lighten(0.1)), t2.setFor("secondaryButtonDown", dn("#3b3b3b").lighten(0.15)), t2.setFor("secondaryButtonActive", dn("#3b3b3b").lighten(0.15)), t2.setFor("secondaryButtonText", dn("#bbbbbb")), t2.setFor("secondaryButtonStroke", dn("#3b3b3b").lighten(-0.2)), t2.setFor("grid", dn("#bbbbbb")), t2.setFor("background", dn("#000000")), t2.setFor("alternativeBackground", dn("#ffffff")), t2.setFor("text", dn("#ffffff")), t2.setFor("alternativeText", dn("#000000")), t2.setFor("disabledBackground", dn("#bbbbbb"))), Di(t2, "Scrollbar") && (t2.background.fillOpacity = 0.4, t2.thumb.background.fillOpacity = 0.5);
  21413. };
  21414. return ls.commercialLicense = true, o2;
  21415. })(), n.exports = i();
  21416. var r = e({ __proto__: null, default: o(n.exports) }, [n.exports]);
  21417. export {
  21418. r as i
  21419. };
  21420. //# sourceMappingURL=chunks-L4FNOR5Z.js.map